RE: Please explain this Tomcat problem to me.

2001-10-26 Thread m akeijou

Kemp Randy-W18971 [EMAIL PROTECTED] wrote:

I have this unusual quirk with Tomcat, and maybe someone out there can
explain what is happening.
1.  I have Apache 1.3.19 and Tomcat 4.01 on Solaris 5.6, with Sun JDK 1.3.1.
2.  I start and stop Tomcat 4.01 with startup.sh and shutdown.sh.
3.  After this, I bring up http://my.domain.name:8080, and I see Tomcat 4.01
screen.
4.  I shut down Tomcat, and bring up the Jboss/Tomcat 3.23 bundle.  If I
type http://my.domain.name:8080, I see the Tomat 3.23 screen.
5.  I shut down Jboss/tomcat and type http://my.domain.name:8080, and I get
can't connect to server or some such message.
6.  I bring up Tomcat 4.01 with startup.sh, and instead of a Tomcat 4.01
screen, I get a Tomcat 3.23 screen.

i had a similar problem.  solved by switching CATALINA_HOME environment variable back 
to 4.0.1.  in general, when running tomcat standalone, we have to make sure that the 
env variables are set properly.  you see this right after tomcat startup--the env 
settings that tomcat is using are printed on sysout.  i'm not sure why it works in 
item 4 even without switching the variables.  perhaps jboss takes care of it.

What could be causing the scenario in item 6, and is there a way to correct
it without rebooting the machine?

if for some reason tomcat hangs and tomcat shutdown doesn't do it, i kill all java 
processes.  but of course that also kills other non-tomcat processes.  what's easiest 
way to determine which processes belong to tomcat?
--meg


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




two tomcat-apache connections?

2001-09-26 Thread m akeijou

red hat linux 7.1, apache 1.3.20 with mod_webapp, jakarta-tomcat 4.0

the tomcat-apache connection for /examples works with the following setting in 
httpd.conf:
   WebAppConnection  conn  warp  myhostname:8008
   WebAppDeploy  examples  conn  /examples

now, i have another application /jsp that currently works as standalone, i.e., 
http://myhostname:8080/jsp.

how do i set it up such that it also goes through apache?  i tried defining another 
Apache-Connector service in server.xml with port 8009 then placed another couple of 
lines in httpd.conf as follows:

   WebAppConnection  conn2 warp   myhostname:8009
   WebAppDeploy  jsp   conn2  /jsp

and restarted the servers.  was just guessing so i was not surprised that it did not 
work.  the errors in the apache log in tomcat say that there are errors in 
initializing naming contexts for /examples and /jsp so that the context startup 
failed.  the error on the browser when accessing http://myhostname/examples/ is the 
requested resource(/examples/) is not found, which makes sense.  and the standalone 
tomcat, e.g., http://myhostname:8080/examples still worked.

question: how should i set up tomcat and apache to serve more than one app?
thanks,
--meg



__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/