RE: Shared web.xml

2005-06-06 Thread Trice, Jim
 -Original Message-
 From: QM [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 02, 2005 4:29 PM
 To: Tomcat Users List
 Subject: Re: Shared web.xml
 
 On Thu, Jun 02, 2005 at 02:01:15PM -0500, Trice, Jim wrote:
 :I inherited a tomcat installation with two tomcat servers running
RedHat
 : Enterprise 3 and tomcat 4.1. They are being load balanced behind a
netscaler.
 : The webapps directory and thus the web.xml files for each context are
shared
 : via NFS.
 
 This will hurt.  What's the point of load-balancing the two Tomcat
 instances (eliminating a single point of failure), if they are
 susceptible to a problem with the NFS server (introducing a single point
 of failure)?
The point of load balancing in this case is to improve response under heavy
load. Using nfs need not introduce a single point of failure. In this case
the solution to the single point of failure would more likely be setting up a
clustered nfs service.
 
 I realize it's more of a headache to manage two installs than one; but
 it's even more painful to manage nothing when the shared storage goes
 south. =)
 
 
 Read on:
 
 : The problem I have is that any time the web.xml is updated for a
 : context that context is reloaded. Since the web.xml file is shared that
means
 : both servers reload the context at the same time. That means downtime. I
know
 : I can set up a local copy of web.xml and create a link to that but this
makes
 : things more complicated. Is there any way to force tomcat 4 to wait to
reload
 : the class until a reload is requested? I have tried reloadable=false
for
 : each context.
 
 
 Setting reloadable=false (inside the Context/ attribute of
 server.xml, or inside context.xml) and restarting Tomcat should have
 done it.
 
 You mention you inherited this setup.  Perhaps the old admins had setup
 a watchdog job, and that's what triggers restarts?
I tested a default install of the tomcat 4.1 and it exhibited the same
behavior using the examples context set to reloadable=false. 
 
 -QM
 
 
 --
 
 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.org/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Shared web.xml

2005-06-02 Thread Trice, Jim
All,
   I inherited a tomcat installation with two tomcat servers running RedHat
Enterprise 3 and tomcat 4.1. They are being load balanced behind a netscaler.
The webapps directory and thus the web.xml files for each context are shared
via NFS. The problem I have is that any time the web.xml is updated for a
context that context is reloaded. Since the web.xml file is shared that means
both servers reload the context at the same time. That means downtime. I know
I can set up a local copy of web.xml and create a link to that but this makes
things more complicated. Is there any way to force tomcat 4 to wait to reload
the class until a reload is requested? I have tried reloadable=false for
each context. 
Thanks,
Jim T.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Trice, Jim
Chris,
   When running top you can toggle displaying individual threads by hitting
H.
   Also, you can see threads using ps with the -m switch.
Jim T.

-Original Message-
From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Running Tomcat on multiple processors on Windows 2003

 Huh?  The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of
the CPUs on our
 systems quite nicely.  What may be going on is that
some administrator
 has set Windows' CPU affinity to restrict all
threads of a given 
 process to a single CPU.
 
 - Chuck

We have a recent and up2date Linux Redhat
installation, and the sun Java hotspot 1.4.2 in server
mode JVM.  When I run top I see Java as one process,
and with one Tomcat running in a performance test, it
only hits 50% CPU (of a 2 CPU box).  When I run 2
tomcats, I see two processes, and it hits 100% CPU. 
If anyone has seen this behavior, and then changed
some settings to get Tomcat or Java to use multiple
CPUs for one instance, I would be curious.  Maybe it
is something with the threading model or something.  I
thought Java used native threads by default, or at
least green threads on top of native threads
(one-to-one), so Im not sure how this fits in...

Thanks,
Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help !!! Tomcat 5.5.7 - cannot start

2005-04-08 Thread Trice, Jim
Look in $CATALINA_BASE/catalina.out for the startup error. The script
redirects STDOUT and STDERR on startup but not shutdown.
JT

-Original Message-
From: Parveen Pasha [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 1:48 PM
To: Tomcat Users List; Robert Harrison
Subject: Re: Help !!! Tomcat 5.5.7 - cannot start

I am installing all this for the first time.

Where do you set the classpath, to include the
catalina.jar? How do I know if tomcat is running?

ps -ef | grep tomcat yields the same result. Do not
see any pid the output is a set of paths that has
tomcat in it.

$JAVA_HOME and $CATLINA_HOME are set correctly.

I may have said it wrong that it is during startup I
get the error. It is actually during execution of
shutdown.sh. Sorry about that.

When I do:
su - tomcat -c
/usr/local/tomcat/jakarta-tomcat-5.5.7/bin/startup.sh

I get:

Using CATALINA_BASE:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_HOME:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR:
/usr/local/tomcat/jakarta-tomcat-5.5.7/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02

[EMAIL PROTECTED] ~]# su - tomcat -c
/usr/local/tomcat/jakarta-tomcat-5.5.7/bin/shutdown.sh

I get:

Using CATALINA_BASE:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_HOME:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR:
/usr/local/tomcat/jakarta-tomcat-5.5.7/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02
java.lang.ClassNotFoundException:
org.apache.catalina.startup.Catalina
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:198)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)


--- Robert Harrison [EMAIL PROTECTED] wrote:
 Does echo $JAVA_HOME show it set correctly?
 Bob
 
 On Apr 8, 2005 1:28 PM, Anoop kumar V
 [EMAIL PROTECTED] wrote:
  Just make sure you have included catalina.jar file
 in the classpath.
  
  -Anoop
  
  On Apr 8, 2005 1:23 PM, Parveen Pasha
 [EMAIL PROTECTED] wrote:
   Using Tomcat 5.5 + Fedora Core 3 + jdk1.5.02
  
   Changed the port to 8090 from the default 8080
   port in server.xml.
  
   Did not install the runtime environment. only
   installed jdk1.5.02 using the
   rpm -iv jdk-1_5_0_02-linux-i586-rpm
  
   When I execute the startup.sh script, I receive
 the
   following error in Catalina.out
  
   java.lang.ClassNotFoundException:
   org.apache.catalina.startup.Catalina
   at
  

java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at
  
 java.security.AccessController.doPrivileged(Native
   Method)
   at
  

java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at
  

java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at
  

java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at
  

org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:198)
   at
  

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)
  
   Cannot view the default web applications
 included with
   Tomcat when accessing via  http://localhost:8090
  
   I receive the following message: The page cannot
 be
   displayed.
  
   I did not find any solution on the Web. Can
 someone
   help.
  
   Thanks! Thanks! 
  
   Parveen
  
  

-
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
  --
  Thanks and best regards,
  Anoop
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 --
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help !!! Tomcat 5.5.7 - cannot start

2005-04-08 Thread Trice, Jim
Sorry I meant $CATALINA_BASE/logs/catalina.out.

-Original Message-
From: Trice, Jim [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 2:46 PM
To: Tomcat Users List
Subject: RE: Help !!! Tomcat 5.5.7 - cannot start

Look in $CATALINA_BASE/catalina.out for the startup error. The script
redirects STDOUT and STDERR on startup but not shutdown.
JT

-Original Message-
From: Parveen Pasha [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 1:48 PM
To: Tomcat Users List; Robert Harrison
Subject: Re: Help !!! Tomcat 5.5.7 - cannot start

I am installing all this for the first time.

Where do you set the classpath, to include the
catalina.jar? How do I know if tomcat is running?

ps -ef | grep tomcat yields the same result. Do not
see any pid the output is a set of paths that has
tomcat in it.

$JAVA_HOME and $CATLINA_HOME are set correctly.

I may have said it wrong that it is during startup I
get the error. It is actually during execution of
shutdown.sh. Sorry about that.

When I do:
su - tomcat -c
/usr/local/tomcat/jakarta-tomcat-5.5.7/bin/startup.sh

I get:

Using CATALINA_BASE:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_HOME:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR:
/usr/local/tomcat/jakarta-tomcat-5.5.7/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02

[EMAIL PROTECTED] ~]# su - tomcat -c
/usr/local/tomcat/jakarta-tomcat-5.5.7/bin/shutdown.sh

I get:

Using CATALINA_BASE:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_HOME:  
/usr/local/tomcat/jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR:
/usr/local/tomcat/jakarta-tomcat-5.5.7/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_02
java.lang.ClassNotFoundException:
org.apache.catalina.startup.Catalina
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:198)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)


--- Robert Harrison [EMAIL PROTECTED] wrote:
 Does echo $JAVA_HOME show it set correctly?
 Bob
 
 On Apr 8, 2005 1:28 PM, Anoop kumar V
 [EMAIL PROTECTED] wrote:
  Just make sure you have included catalina.jar file
 in the classpath.
  
  -Anoop
  
  On Apr 8, 2005 1:23 PM, Parveen Pasha
 [EMAIL PROTECTED] wrote:
   Using Tomcat 5.5 + Fedora Core 3 + jdk1.5.02
  
   Changed the port to 8090 from the default 8080
   port in server.xml.
  
   Did not install the runtime environment. only
   installed jdk1.5.02 using the
   rpm -iv jdk-1_5_0_02-linux-i586-rpm
  
   When I execute the startup.sh script, I receive
 the
   following error in Catalina.out
  
   java.lang.ClassNotFoundException:
   org.apache.catalina.startup.Catalina
   at
  

java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at
  
 java.security.AccessController.doPrivileged(Native
   Method)
   at
  

java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at
  

java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at
  

java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at
  

org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:198)
   at
  

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)
  
   Cannot view the default web applications
 included with
   Tomcat when accessing via  http://localhost:8090
  
   I receive the following message: The page cannot
 be
   displayed.
  
   I did not find any solution on the Web. Can
 someone
   help.
  
   Thanks! Thanks! 
  
   Parveen
  
  

-
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
  --
  Thanks and best regards,
  Anoop
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 --
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Hang on Linux (hangs the entire system)

2005-03-31 Thread Trice, Jim
Hi,
One thing I have found helpful in the past is to looks at sar statistics
leading up to a system lockup. If it doesn't occur too quickly you might
catch something building up on the system. You must have the sysstat package
installed. See man sar. I check things like process creation, memory,
swapping, etc.

Jim T.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:44 AM
To: Tomcat Users List
Subject: Re: Tomcat Hang on Linux (hangs the entire system)

Hi,

You can try the following step by step approach

1) Check whether you are able to run the examples application in tomcat. If
you are not able to run that there's a problem with tomcat configuration or
the JVM.

2) If that runs smoothly without any problems, check your application and
ensure that it doesn't go into any infinite loops etc, since that's one
runaway thing that can bring down the whole machine consuming lot of cpu and
perhaps even memory leaving no room for anything else.

3) If your application is OK, make sure no other application is consuming lot
of CPU or memory.





-- Original Message --

On 31 Mar 2005, 04:43:10 PM, Viorel Dragomir writes:

 
 It might be a hardware related problem.
 Try to change the memory.
 
 
 
 
 Viorel Dragomir
 
 .
 ..
 ---
 
 
 
 - Original Message - 
 From: Steve Vanspall 
 To: tomcat-user@jakarta.apache.org 
 Sent: Thursday, March 31, 2005 09:38
 Subject: Tomcat Hang on Linux (hangs the entire system)
 
 
 Hi there, 
 
 I am posting this in a few areas because I cannot pinpoint where the 
 
 problem stems from. 
 
 I have a standard Pentium III bases pc running linux. 
 
 It has only 380 meg (or therabouts) of ram 
 
 Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but 
 
 they all hang) 
 
 I have 2 webapps running. One of them uses Apache to translate two 
 
 different domain to the right ibay for it's content but uses the same code 
 
 base. The second webapp is accessed, currently, using 
 
 http://www.mycomapny.com:8080/MyApp style URL. 
 
 The webapp just hangs. It will not load any pages, and when it hangs, both 
 
 webapps hang. So I think this is a Tomcat or Java or Linux error. Once the 
 
 hang occurs I cannot do a ps -ef as this also hangs. My only option is to 
 
 reboot the machine. But it hangs half way and has to be physically powered 
 
 off. We are going to put a new, more powerful computer in there, but for 
 
 now I wanted to see if anyone else had experienced such a problem. Can 
 
 you give me some pointers as to where to look for the source of the 
 
 problem. 
 
 This has happened before, and I got no information about it. I know it's a 
 
 pretty vague explanation, but I don't know what more informationI can give 
 
 you. 
 
 The log files do not show any errors, and it never happens at the same 
 
 point 
 
 in the web application. At first I thought it happen when concurrent users 
 
 logged in, but that's not the case either, and I have trimmed down the 
 
 sychornicity management when accesing Singletons in my web app. 
 
 Now I have been through all my code, and cannot find anything that should 
 
 be causing an error. I have run the code under a number of different 
 
 cirsumstances on my development machine (Windows 2000) and 
 
 everything runs without a problem. 
 
 Any help would be appreciated 
 
 Regards 
 
 Steve 
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redhat Tomcat support

2005-03-14 Thread Trice, Jim
All,
   I'm relatively new to Tomcat support. Has any had any experience with
RedHat support for Tomcat? We're currently running Tomcat 4.1 and would have
to upgrade to 5.5 to get support from RedHat. Is it worth it?
 
Jim

 

 

James H. Trice

Haas TCM, Inc.

[EMAIL PROTECTED]

(512) 519-3955

 



RE: Redhat Tomcat support

2005-03-14 Thread Trice, Jim


All,
Thanks for the feedback. I'm coming from an environment that was more SUN
than anything else and my experience with Redhat support has been very
limited. This helps.
Jim
-Original Message-
From: Benson Margulies [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 14, 2005 5:43 PM
To: Tomcat Users List
Subject: RE: Redhat Tomcat support

Personally, I've never gotten anything from Redhat but a bill. Their
support agreement is a masterpiece of extracting the maximum money for
the minimum in actual support. Pretty much anything you might actually
need help with is carefully excluded. 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat fails on FC3

2005-03-08 Thread Trice, Jim
David,
If you install the j2sdk from http://java.sun.com it should replace the links
in /etc/alternatives to java and javac from that kit. 
Jim T.

-Original Message-
From: David Smithson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 3:10 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat fails on FC3

Hi all.  I followed the instructions in RUNNING.txt from the binary
distribution of Tomcat 5.  I'm having some trouble and would appreciate
a little help.  What am I doing wrong?

When I run startup.sh, I get this output in the shell:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:   /usr

And logs/catalina.out shows:

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
Exception in thread main java.lang.NoClassDefFoundError: while
resolving class: org.apache.catalina.startup.Bootstrap
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   ...9 more

-- 
David Smithson [EMAIL PROTECTED]
Custom Film Effects


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]