Deploying webapps under tomcat deploys other externally configured webapps

Hi,

I noticed that when deploying webapps in Tomcat, IDEA tries to deploys/pick up the other externally configured webapps. I was playing around with other webapps and had manually configured tomcat.

I have entered this as a bug. What do other think about this?
http://www.intellij.net/tracker/idea/viewSCR?publicId=35314

Thanks,
--Venkat.

8 comments
Comment actions Permalink

Already complained about this. When Tomcat, or any other app server, is
started by idea, nothing external should be started, there should only be
the app you're trying to run.

That said, it might not be possible to do with all app servers, but can be
done with Tomcat, and should be.

R


On 6/26/04 11:30 PM, in article
9293900.1088307036047.JavaMail.itn@is.intellij.net, "Venkat Sonnathi"
<no_mail@jetbrains.com> wrote:

Hi,

I noticed that when deploying webapps in Tomcat, IDEA tries to deploys/pick up
the other externally configured webapps. I was playing around with other
webapps and had manually configured tomcat.

I have entered this as a bug. What do other think about this?
http://www.intellij.net/tracker/idea/viewSCR?publicId=35314

Thanks,
--Venkat.


0
Comment actions Permalink

It needs to be kept in mind that there actually might be reasons why you'd
want multiple webapps running as well.

90% of people would just want one running but I imaging there's still that
10% case where having other webapps running would also be useful.


"Robert S. Sfeir" <robert@codepuccino.com> wrote in message
news:BD03D073.3F8F%robert@codepuccino.com...

Already complained about this. When Tomcat, or any other app server, is
started by idea, nothing external should be started, there should only be
the app you're trying to run.

>

That said, it might not be possible to do with all app servers, but can be
done with Tomcat, and should be.

>

R

>
>

On 6/26/04 11:30 PM, in article
9293900.1088307036047.JavaMail.itn@is.intellij.net, "Venkat Sonnathi"
<no_mail@jetbrains.com> wrote:

>

Hi,

>

I noticed that when deploying webapps in Tomcat, IDEA tries to

deploys/pick up

the other externally configured webapps. I was playing around with other
webapps and had manually configured tomcat.

>

I have entered this as a bug. What do other think about this?
http://www.intellij.net/tracker/idea/viewSCR?publicId=35314

>

Thanks,
--Venkat.

>


0
Comment actions Permalink

On Sun, 27 Jun 2004 01:16:35 -0400, Robert S. Sfeir wrote:

Already complained about this. When Tomcat, or any other app server, is
started by idea, nothing external should be started, there should only be
the app you're trying to run.


I think that's too restrictive. IMO It should deploy whatever you
configure it to deploy.

That said, it might not be possible to do with all app servers, but can be
done with Tomcat, and should be.


Exactly right - and the way to do it is to use the CATALINA_BASE
environment variable.

It used to work just fine a few builds ago (around 2140, I think), but the
Tomcat configuration in 2144 has been simplified to the point that it's
now broken for me.

PLEASE allow CATALINA_BASE to be set by the developer. I thought this
was going to be possible on the 'Advanced' tab of the Tomcat Run/Debug
config dialog?

I've opened these :

<http://www.intellij.net/tracker/idea/viewSCR?publicId=35335>
<http://www.intellij.net/tracker/idea/viewSCR?publicId=35338>

--
Mark Scott

0
Comment actions Permalink

I'm not saying there should only be one context run at a time. I have no
issues running multiple contexts and I welcome it. If I have 6 modules and
each has its own context, if I set them as part of the deployment for Tomcat
I expect all of them to run.

Where I have a problem is having apps which are setup directly in Tomcat's
webapps directory also start up. These can get in the way, might have the
same desired context (like / (ROOT)), and can cause interference with what
you're trying to do; Debug your app.

My position on this is that it starts what I ask it to start, not what ever
is available in the webapps directory, plus what I ask it to start. Of
course I can remove the apps from webapps dir, or setup a second instance of
Tomcat to do IDEA debug only... There are always workarounds. I'm also
concerned about the novice user who is new to IDEA who will have a pretty
dang hard time figuring out why these other apps start and things like that.

Either way doesn't really matter to me really. What ever works for
everyone, we've always adjusted to however the IDE is configured, and we
have to do it much less with IDEA than with others, so the issue is really
minimal I think.

R

0
Comment actions Permalink

On Mon, 28 Jun 2004 07:30:52 -0400, Robert S. Sfeir wrote:

Where I have a problem is having apps which are setup directly in Tomcat's
webapps directory also start up. These can get in the way, might have the
same desired context (like / (ROOT)), and can cause interference with what
you're trying to do; Debug your app.

My position on this is that it starts what I ask it to start, not what ever
is available in the webapps directory, plus what I ask it to start. Of
course I can remove the apps from webapps dir, There are always
workarounds.


IMO this isn't a workaround - it's the way Tomcat works! If you don't
want all the other webapps to start up then get rid of them. There's a
mechanism for doing this - specify a CATALINA_BASE that doesn't include
anything you don't need/want.

I'm also
concerned about the novice user who is new to IDEA who will have a pretty
dang hard time figuring out why these other apps start and things like that.


I must be an altogether harsher soul than you then :)

Either way doesn't really matter to me really. What ever works for
everyone, we've always adjusted to however the IDE is configured, and we
have to do it much less with IDEA than with others, so the issue is really
minimal I think.


True, making it a shame that the latest changes mean more adjustment is
needed now than was the case a few builds ago.

Maybe this would work :

- allow CATALINA_BASE to be specified (hide it somewhere obscure, even);
- if CATALINA_BASE is specified then use the config it specifies, adding
whatever additional config is needed for the web module;
- if CATALINA_BASE isn't specified then adopt the minimalist approach you
advocate.

--
Mark Scott

0
Comment actions Permalink


IMO this isn't a workaround - it's the way Tomcat works! If you don't
want all the other webapps to start up then get rid of them. There's a
mechanism for doing this - specify a CATALINA_BASE that doesn't include
anything you don't need/want.


Or IDEA by default should specify its own CATALINA_BASE which is what I'm
getting at, and then you can override it if you want it to use its own.
This way IDEA always controls what it loads.

>> I'm also
>> concerned about the novice user who is new to IDEA who will have a pretty
>> dang hard time figuring out why these other apps start and things like that.


I must be an altogether harsher soul than you then :)


Haha, well the thing is that there are always question on the community
forum which are incredibly basic if you've been working with IDEA for a
while, but are obviously daunting if you're new to it. As an IDEA advocate
I'd want things to be as simple as they can be so that it doesn't turn away
even a java novice

True, making it a shame that the latest changes mean more adjustment is
needed now than was the case a few builds ago.

Maybe this would work :


- idea specifies its own CATALINA_BASE by default;

- allow CATALINA_BASE to be specified (hide it somewhere obscure, even);

haha no obscure would piss off advanced folks :)

- if CATALINA_BASE is specified then use the config it specifies, adding
whatever additional config is needed for the web module;
- if CATALINA_BASE isn't specified then adopt the minimalist approach you
advocate.


Yup agree with the rest. That makes it real flexible, unfortunately that's
seen by some as a horrific thing.

My 2cents.
R

0
Comment actions Permalink

On Mon, 28 Jun 2004 08:37:12 -0400, Robert S. Sfeir wrote:

Or IDEA by default should specify its own CATALINA_BASE which is what I'm
getting at, and then you can override it if you want it to use its own.
This way IDEA always controls what it loads.


It's now doing the first of these things - it specifies a CATALINA_BASE
under IDEA_SYSTEM_PATH. Unfortunately, it compounds this (IMO bug) by
assuming it can copy config from CATALINA_HOME. It doesn't appear to let
you override this. Well, I can't get it to.

--
Mark Scott

0
Comment actions Permalink

Yup, you've nailed the problem. IDEA should have a default config which it
uses, not the one in the base. This is part of the problem because Tomcat
throws lots of exceptions when it can't find the files it's looking for.

R


On 6/28/04 8:48 AM, in article
pan.2004.06.28.12.48.58.746921@codebrewer.com, "Mark Scott"
<intellij_news@codebrewer.com> wrote:

On Mon, 28 Jun 2004 08:37:12 -0400, Robert S. Sfeir wrote:

>> Or IDEA by default should specify its own CATALINA_BASE which is what I'm
>> getting at, and then you can override it if you want it to use its own.
>> This way IDEA always controls what it loads.


It's now doing the first of these things - it specifies a CATALINA_BASE
under IDEA_SYSTEM_PATH. Unfortunately, it compounds this (IMO bug) by
assuming it can copy config from CATALINA_HOME. It doesn't appear to let
you override this. Well, I can't get it to.


0

Please sign in to leave a comment.