RE: Tomcat 10.1.1 error starting

2022-10-20 Thread jonmcalexander
Awesome Possum!

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@wellsfargo.com
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.


> -Original Message-
> From: Mark Thomas 
> Sent: Thursday, October 20, 2022 1:19 PM
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 10.1.1 error starting
> 
> On 20/10/2022 18:03, jonmcalexan...@wellsfargo.com.INVALID wrote:
> > Ok, thanks Peter. I looked at the running.txt to see if it mentioned a Java
> version minimum and it stated Java 8, so it confused me. I'll try with Java 
> 11.
> 
> That is an error. I've fixed it for the next release.
> 
> Mark
> 
> >
> >
> > Dream * Excel * Explore * Inspire
> > Jon McAlexander
> > Senior Infrastructure Engineer
> > Asst. Vice President
> > He/His
> >
> > Middleware Product Engineering
> > Enterprise CIO | EAS | Middleware | Infrastructure Solutions
> >
> > 8080 Cobblestone Rd | Urbandale, IA 50322
> > MAC: F4469-010
> > Tel 515-988-2508 | Cell 515-988-2508
> >
> > jonmcalexan...@wellsfargo.com
> > This message may contain confidential and/or privileged information. If you
> are not the addressee or authorized to receive this for the addressee, you
> must not use, copy, disclose, or take any action based on this message or any
> information herein. If you have received this message in error, please advise
> the sender immediately by reply e-mail and delete this message. Thank you
> for your cooperation.
> >
> >> -Original Message-
> >> From: Peter Kreuser 
> >> Sent: Thursday, October 20, 2022 12:00 PM
> >> To: Tomcat Users List 
> >> Subject: Re: Tomcat 10.1.1 error starting
> >>
> >> Jon,
> >>
> >>
> >>
> >>> Am 20.10.2022 um 18:57 schrieb
> jonmcalexan...@wellsfargo.com.invalid:
> >>>
> >>> Good morning,
> >>>
> >>> I am getting the following error when trying to start a very generic
> >>> setup of
> >> Tomcat 10.1.1 on Windows Server 2019.
> >>>
> >>> Error: A JNI error has occurred, please check your installation and
> >>> try again Exception in thread "main"
> >> java.lang.UnsupportedClassVersionError:
> >> org/apache/catalina/startup/Bootstrap has been compiled by a more
> >> recent version of the Java Runtime (class file version 55.0), this
> >> version of the Java Runtime only recognizes class file versions up to
> >> 52.0
> >>> at
> >>
> >> Looks like you are running Tomcat on an older Java, that the app was
> >> compiled with...
> >>
> >> Need to lookup the exact class versions, but like:
> >>
> >> Compiled with jdk13 and running on java 11.
> >>
> >> HTH
> >>
> >> Peter
> >>
> >>> java.lang.ClassLoader.defineClass1(Native Method)
> >>> at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> >>> at
> >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
> >> 2)
> >>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> >>> at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> >>> at java.security.AccessController.doPrivileged(Native Method)
> >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> >>> at
> >>>
> >>
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> >>>
> >>> Is there a minimum version of Java 8 that is

Re: Tomcat 10.1.1 error starting

2022-10-20 Thread Mark Thomas

On 20/10/2022 18:03, jonmcalexan...@wellsfargo.com.INVALID wrote:

Ok, thanks Peter. I looked at the running.txt to see if it mentioned a Java 
version minimum and it stated Java 8, so it confused me. I'll try with Java 11.


That is an error. I've fixed it for the next release.

Mark




Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@wellsfargo.com
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.


-Original Message-
From: Peter Kreuser 
Sent: Thursday, October 20, 2022 12:00 PM
To: Tomcat Users List 
Subject: Re: Tomcat 10.1.1 error starting

Jon,




Am 20.10.2022 um 18:57 schrieb jonmcalexan...@wellsfargo.com.invalid:

Good morning,

I am getting the following error when trying to start a very generic setup of

Tomcat 10.1.1 on Windows Server 2019.


Error: A JNI error has occurred, please check your installation and
try again Exception in thread "main"

java.lang.UnsupportedClassVersionError:
org/apache/catalina/startup/Bootstrap has been compiled by a more recent
version of the Java Runtime (class file version 55.0), this version of the Java
Runtime only recognizes class file versions up to 52.0

at


Looks like you are running Tomcat on an older Java, that the app was
compiled with...

Need to lookup the exact class versions, but like:

Compiled with jdk13 and running on java 11.

HTH

Peter


java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at


sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)


Is there a minimum version of Java 8 that is required?

Thanks,

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508



jonmcalexan...@wellsfargo.com<mailto:jonmcalexan...@wellsfargo.com>

This message may contain confidential and/or privileged information. If you

are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or any
information herein. If you have received this message in error, please advise
the sender immediately by reply e-mail and delete this message. Thank you
for your cooperation.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 10.1.1 error starting

2022-10-20 Thread jonmcalexander
Thank you and Noted!

Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@wellsfargo.com
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.


> -Original Message-
> From: Chuck Caldarale 
> Sent: Thursday, October 20, 2022 12:02 PM
> To: Tomcat Users List 
> Subject: Re: Tomcat 10.1.1 error starting
> 
> 
> > On 2022 Oct 20, at 18:56, 
>  wrote:
> >
> > Good morning,
> >
> > I am getting the following error when trying to start a very generic setup 
> > of
> Tomcat 10.1.1 on Windows Server 2019.
> >
> > Error: A JNI error has occurred, please check your installation and
> > try again Exception in thread "main"
> > java.lang.UnsupportedClassVersionError:
> > org/apache/catalina/startup/Bootstrap has been compiled by a more
> > recent version of the Java Runtime (class file version 55.0), this
> > version of the Java Runtime only recognizes class file versions up to
> > 52.0
> >
> > Is there a minimum version of Java 8 that is required?
> 
> See
> https://urldefense.com/v3/__https://tomcat.apache.org/whichversion.html
> __;!!F9svGWnIaVPGSwU!ralQHsOdljjl9YfxzGbqB5NTiRaf-
> L18dKAVaAakSQsXUMbpaSTv8nso4024Yw9kjebZwMuM-IqWWdrPdl-s3Q$
> <https://urldefense.com/v3/__https://tomcat.apache.org/whichversion.ht
> ml__;!!F9svGWnIaVPGSwU!ralQHsOdljjl9YfxzGbqB5NTiRaf-
> L18dKAVaAakSQsXUMbpaSTv8nso4024Yw9kjebZwMuM-IqWWdrPdl-s3Q$
> >; Tomcat 10.1.x requires Java 11 or later.
> 
>   - Chuck


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 10.1.1 error starting

2022-10-20 Thread jonmcalexander
Ok, thanks Peter. I looked at the running.txt to see if it mentioned a Java 
version minimum and it stated Java 8, so it confused me. I'll try with Java 11.


Dream * Excel * Explore * Inspire
Jon McAlexander
Senior Infrastructure Engineer
Asst. Vice President
He/His

Middleware Product Engineering
Enterprise CIO | EAS | Middleware | Infrastructure Solutions

8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508

jonmcalexan...@wellsfargo.com
This message may contain confidential and/or privileged information. If you are 
not the addressee or authorized to receive this for the addressee, you must not 
use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation.

> -Original Message-
> From: Peter Kreuser 
> Sent: Thursday, October 20, 2022 12:00 PM
> To: Tomcat Users List 
> Subject: Re: Tomcat 10.1.1 error starting
> 
> Jon,
> 
> 
> 
> > Am 20.10.2022 um 18:57 schrieb jonmcalexan...@wellsfargo.com.invalid:
> >
> > Good morning,
> >
> > I am getting the following error when trying to start a very generic setup 
> > of
> Tomcat 10.1.1 on Windows Server 2019.
> >
> > Error: A JNI error has occurred, please check your installation and
> > try again Exception in thread "main"
> java.lang.UnsupportedClassVersionError:
> org/apache/catalina/startup/Bootstrap has been compiled by a more recent
> version of the Java Runtime (class file version 55.0), this version of the 
> Java
> Runtime only recognizes class file versions up to 52.0
> >at
> 
> Looks like you are running Tomcat on an older Java, that the app was
> compiled with...
> 
> Need to lookup the exact class versions, but like:
> 
> Compiled with jdk13 and running on java 11.
> 
> HTH
> 
> Peter
> 
> > java.lang.ClassLoader.defineClass1(Native Method)
> >at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
> >at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> >at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
> >at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
> >at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
> >at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
> >at java.security.AccessController.doPrivileged(Native Method)
> >at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
> >at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> >at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
> >at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> >at
> >
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> >
> > Is there a minimum version of Java 8 that is required?
> >
> > Thanks,
> >
> > Dream * Excel * Explore * Inspire
> > Jon McAlexander
> > Senior Infrastructure Engineer
> > Asst. Vice President
> > He/His
> >
> > Middleware Product Engineering
> > Enterprise CIO | EAS | Middleware | Infrastructure Solutions
> >
> > 8080 Cobblestone Rd | Urbandale, IA 50322
> > MAC: F4469-010
> > Tel 515-988-2508 | Cell 515-988-2508
> >
> >
> jonmcalexan...@wellsfargo.com<mailto:jonmcalexan...@wellsfargo.com>
> > This message may contain confidential and/or privileged information. If you
> are not the addressee or authorized to receive this for the addressee, you
> must not use, copy, disclose, or take any action based on this message or any
> information herein. If you have received this message in error, please advise
> the sender immediately by reply e-mail and delete this message. Thank you
> for your cooperation.
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 10.1.1 error starting

2022-10-20 Thread Mark Thomas



On 20/10/2022 17:56, jonmcalexan...@wellsfargo.com.INVALID wrote:

Good morning,

I am getting the following error when trying to start a very generic setup of 
Tomcat 10.1.1 on Windows Server 2019.

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/apache/catalina/startup/Bootstrap has been compiled by a more recent version of the 
Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes 
class file versions up to 52.0





Is there a minimum version of Java 8 that is required?


Tomcat 10.1.x requires Java 11 as a minimum.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 10.1.1 error starting

2022-10-20 Thread Chuck Caldarale

> On 2022 Oct 20, at 18:56,  
>  wrote:
> 
> Good morning,
> 
> I am getting the following error when trying to start a very generic setup of 
> Tomcat 10.1.1 on Windows Server 2019.
> 
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
> org/apache/catalina/startup/Bootstrap has been compiled by a more recent 
> version of the Java Runtime (class file version 55.0), this version of the 
> Java Runtime only recognizes class file versions up to 52.0
> 
> Is there a minimum version of Java 8 that is required?

See https://tomcat.apache.org/whichversion.html 
; Tomcat 10.1.x requires Java 11 
or later.

  - Chuck



Re: Tomcat 10.1.1 error starting

2022-10-20 Thread Peter Kreuser
Jon,

 

> Am 20.10.2022 um 18:57 schrieb jonmcalexan...@wellsfargo.com.invalid:
> 
> Good morning,
> 
> I am getting the following error when trying to start a very generic setup of 
> Tomcat 10.1.1 on Windows Server 2019.
> 
> Error: A JNI error has occurred, please check your installation and try again
> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
> org/apache/catalina/startup/Bootstrap has been compiled by a more recent 
> version of the Java Runtime (class file version 55.0), this version of the 
> Java Runtime only recognizes class file versions up to 52.0
>at

Looks like you are running Tomcat on an older Java, that the app was compiled 
with...

Need to lookup the exact class versions, but like:

Compiled with jdk13 and running on java 11.

HTH

Peter

> java.lang.ClassLoader.defineClass1(Native Method)
>at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
>at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
>at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
>at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
>at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
>at java.security.AccessController.doPrivileged(Native Method)
>at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
>at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>at 
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)
> 
> Is there a minimum version of Java 8 that is required?
> 
> Thanks,
> 
> Dream * Excel * Explore * Inspire
> Jon McAlexander
> Senior Infrastructure Engineer
> Asst. Vice President
> He/His
> 
> Middleware Product Engineering
> Enterprise CIO | EAS | Middleware | Infrastructure Solutions
> 
> 8080 Cobblestone Rd | Urbandale, IA 50322
> MAC: F4469-010
> Tel 515-988-2508 | Cell 515-988-2508
> 
> jonmcalexan...@wellsfargo.com
> This message may contain confidential and/or privileged information. If you 
> are not the addressee or authorized to receive this for the addressee, you 
> must not use, copy, disclose, or take any action based on this message or any 
> information herein. If you have received this message in error, please advise 
> the sender immediately by reply e-mail and delete this message. Thank you for 
> your cooperation.
> 

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7.082 not starting in EC2 after doing yum update

2017-10-26 Thread Kiran Badi
Ok this is resolved. It was permission issue. now tomcat runs under its own
user id and for some reason I missed to read tomcat.conf file.

Now it works however server start up is now very slow.

INFO: Server startup in 352544 ms

something which was very fast in earlier version 7.081  and 7.050

Let me check logs tomorrow for finer details.

Thanking you
Kiran Badi


I will

On Thu, Oct 26, 2017 at 11:03 PM, Kiran Badi  wrote:

> Hi,
>
> Couple of hours(3 hrs) back I did yum update to install 7.0.82 version to
> install latest security patch.
>
> Yum update went well. Then tried to install ROOT war, after stopping and
> un deploying existing ROOT.war. Deployment failed saying that ROOT folder
> already exists. So deleted ROOT folder and ROOT.war from the web apps
> folder. After this step, tomcat 7 seems to be not starting for some reason
> and neither its writing to logs anything.
>
>  I think I messed something very badly.
>
> How do I figure this out. Do I need to do clean install again via wget ?
>
> I hate to say that my linux skills are very rusty. so appreciate some help.
>
> [root]# sudo service tomcat7 start
> [root]#  [  OK  ]
> [root]# sudo service tomcat7 status
> [root]# s not running[WARNING]
>
> whenever I try to restart , the only place it writes is tomcat7-initd.log
>
> /usr/sbin/tomcat7: line 40: /usr/share/tomcat7/logs/catalina.out:
> Permission denied
>
> and permissions I have on this folder is
>
> drwxr-xr-x 2 ec2-user ec2-user 12288 Oct 27 02:07 /usr/share/tomcat7/logs/
>
>
>
> Thanking you
> Kiran Badi
>
>
>
>
>
>
>
>
>


Re: Tomcat dies after starting

2010-09-02 Thread Wesley Acheson
This looks like you've got many instances started at once (at least the end
part of it does). Ensure that it is shut down fully before starting again.
Are you the only user on this machine or is it shared? Other users may have
the same ports used for a given reason. Its intresting that the JK connector
was able to connect.

But basically it looks like its running. On that machine if your the only
user try typing

telnet localhost 8005
SHUTDOWN

Then clear the log file and startup again. See if you get any more
java.net.BindException appearing in that log.

For the record the bind exception means it couldn't attach to the port.

Oh and a stack trace is not well explained here
http://en.wikipedia.org/wiki/Stack_trace but it should give you the idea.

from your own logs this is a single stack trace. The first line tells you
the type of error (SocketException) along with a text descriptor of the
error (Address already in use)

The other lines tell you the Class name and method called. As this is a
stack the error happened in the top line which was called by the line below
etc etc.

for example

 at java.net.PlainSocketImpl.

 listen(PlainSocketImpl.java:380)


means happened in a class called PlainSocketImpl in a method called listen.
PlainSocketImpl.java:380 refers to the location in the physical file which
is called PlainSocketImpl.java line number 380


java.net.SocketException: Address already in use
   at java.net.PlainSocketImpl.

 socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
at java.net.ServerSocket.bind(ServerSocket.java:320)
at java.net.ServerSocket.init(ServerSocket.java:185)
at java.net.ServerSocket.init(ServerSocket.java:141)
at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
at
 org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load





Regards,

Wes

Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

 /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

 /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 754 ms
 Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.SocketException: Address already in use
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
at java.net.ServerSocket.bind(ServerSocket.java:320)
at java.net.ServerSocket.init(ServerSocket.java:185)
at java.net.ServerSocket.init(ServerSocket.java:141)
at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
at
 org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
at
 

Re: Tomcat dies after starting

2010-09-02 Thread jan gestre
On Thu, Sep 2, 2010 at 2:09 PM, Wesley Acheson wesley.ache...@gmail.com wrote:
 This looks like you've got many instances started at once (at least the end
 part of it does). Ensure that it is shut down fully before starting again.
 Are you the only user on this machine or is it shared? Other users may have
 the same ports used for a given reason. Its intresting that the JK connector
 was able to connect.

 But basically it looks like its running. On that machine if your the only
 user try typing

 telnet localhost 8005
 SHUTDOWN

 Then clear the log file and startup again. See if you get any more
 java.net.BindException appearing in that log.

 For the record the bind exception means it couldn't attach to the port.

 Oh and a stack trace is not well explained here
 http://en.wikipedia.org/wiki/Stack_trace but it should give you the idea.

 from your own logs this is a single stack trace. The first line tells you
 the type of error (SocketException) along with a text descriptor of the
 error (Address already in use)

 The other lines tell you the Class name and method called. As this is a
 stack the error happened in the top line which was called by the line below
 etc etc.

 for example

  at java.net.PlainSocketImpl.

 listen(PlainSocketImpl.java:380)


 means happened in a class called PlainSocketImpl in a method called listen.
 PlainSocketImpl.java:380 refers to the location in the physical file which
 is called PlainSocketImpl.java line number 380


 java.net.SocketException: Address already in use
       at java.net.PlainSocketImpl.

 socketListen(Native Method)
        at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
        at java.net.ServerSocket.bind(ServerSocket.java:320)
        at java.net.ServerSocket.init(ServerSocket.java:185)
        at java.net.ServerSocket.init(ServerSocket.java:141)
        at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
        at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
        at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
        at
 org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
        at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load





 Regards,

 Wes

 Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

 /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 Aug 24, 2010 4:06:00 PM org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:

 /usr/java/jdk1.6.0_21/jre/lib/amd64/server:/usr/java/jdk1.6.0_21/jre/lib/amd64:/usr/java/jdk1.6.0_21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
 Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 754 ms
 Aug 24, 2010 4:06:01 PM org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.SocketException: Address already in use
        at java.net.PlainSocketImpl.socketListen(Native Method)
        at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:380)
        at java.net.ServerSocket.bind(ServerSocket.java:320)
        at java.net.ServerSocket.init(ServerSocket.java:185)
        at java.net.ServerSocket.init(ServerSocket.java:141)
        at
 org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
        at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
        at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
        at
 

Re: Tomcat dies after starting

2010-09-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan,

On 9/2/2010 2:42 AM, jan gestre wrote:
 I'm the only user of this dedicated machine, it's not yet in
 production that's why I'm quite sure :). Even the init scripts logs
 tells that Tomcat is started only to find out that it's not actually
 running because of sudden death.

You may still have started Tomcat more than once, or something else
might be running on the machine taking those ports.

Try these:

$ ps aux | grep java

(See if there are any java processes running)

$ netstat -an | grep 8080

You may need to be root in order to read all processes and port usages.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx/uisACgkQ9CaO5/Lv0PCObACeKJXQnRdwba+x60PGcS8PRDU6
qMAAn3+93i2uNJaQWAmsx3T6kCewbCB2
=ZpbR
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat dies after starting

2010-09-02 Thread Caldarale, Charles R
 From: jan gestre [mailto:ipcopper...@gmail.com] 
 Subject: Re: Tomcat dies after starting

 I'm the only user of this dedicated machine, it's not yet in
 production that's why I'm quite sure :). Even the init scripts logs
 tells that Tomcat is started only to find out that it's not actually
 running because of sudden death.

What you're saying doesn't match what's visible in the logs.  It's very evident 
that you have at least two Tomcats running - perhaps your startup script is 
accidentally kicking off the Tomcat process twice.  To reduce confusion, clear 
out the Tomcat logs and try starting Tomcat, and then repost the log.
 
 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-02 Thread jan gestre
On Thu, Sep 2, 2010 at 10:52 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jan,

 On 9/2/2010 2:42 AM, jan gestre wrote:
 I'm the only user of this dedicated machine, it's not yet in
 production that's why I'm quite sure :). Even the init scripts logs
 tells that Tomcat is started only to find out that it's not actually
 running because of sudden death.

 You may still have started Tomcat more than once, or something else
 might be running on the machine taking those ports.

 Try these:

 $ ps aux | grep java

 (See if there are any java processes running)

 $ netstat -an | grep 8080

 You may need to be root in order to read all processes and port usages.

 - -chris

Hi Chris,

That's the odd thing about it, both ps and netstat did not return any
result, also only heartbeat does the starting (this is an HA cluster
using DRBD and Heartbeat), the only issue I've noticed in the ha logs
is that it's not unmounting the drbd partition cleanly i.e. it has to
send SIGTERM to kill the process.

Regards,

Jan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-01 Thread Wesley Acheson
Can you put in the beginning of the stack trace?

Some things to look at make sure that you have permission to bind to
the port that you've set your http connection to. (you probably won't
be able to bind to port 80 on a linux box)

RHEL5 has selinux installed by default which may cause problems. I'm not sure.
Ensure nothing else is listening to that port.

Regards,

Wesley Acheson

On Wed, Sep 1, 2010 at 9:00 AM, jan gestre ipcopper...@gmail.com wrote:
 Hi Everyone,

 I'm using 6.0.26 tomcat binary in my RHEL5 box, it was configured for
 high availability using DRBD, it was already working for more than a
 week already but all of a sudden it stopped working, tomcat just dies,
 restarting it manually does not help either.

 Here's my setup:

 RHEL5 64bit
 Sun Java 1.6 SDK 64 bit
 Tomcat 6.0.29

 Here's my catalina.out log which is the same as the catalina.2010-09-01.log:

 logs/catalina.out
        at
 org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
        at
 org.apache.catalina.core.StandardService.stop(StandardService.java:596)
        at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
        at
 org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
 Sep 1, 2010 1:44:26 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8080
 Sep 1, 2010 1:44:26 PM org.apache.catalina.connector.Connector stop
 SEVERE: Coyote connector has not been started
 ---

 Here's the log when it was working/running:

 catalina.2010-08-23.log
 Aug 23, 2010 3:00:16 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Aug 23, 2010 3:00:16 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Aug 23, 2010 3:00:16 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/16  config=null
 Aug 23, 2010 3:00:16 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 513 ms
 Aug 23, 2010 3:10:19 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080

 I've already googled similar issues but did not find any concrete solution.

 Will appreciate any help.

 Many thanks in advance.

 Jan

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat dies after starting

2010-09-01 Thread Caldarale, Charles R
 From: Wesley Acheson [mailto:wesley.ache...@gmail.com] 
 Subject: Re: Tomcat dies after starting

 Can you put in the beginning of the stack trace?

Nice that the OP cut off the critical information...

Also, the OP should post the server.xml, preferably with comments removed and 
security information obfuscated, and let us know if APR is being used.

 (you probably won't be able to bind to port 80 on a linux box)

Of course you can - but you have to use the proper technique, such as starting 
Tomcat via jsvc or using iptables.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-01 Thread Wesley Acheson
On Wed, Sep 1, 2010 at 3:28 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Wesley Acheson [mailto:wesley.ache...@gmail.com]
 Subject: Re: Tomcat dies after starting

 Of course you can - but you have to use the proper technique, such as 
 starting Tomcat via jsvc or using iptables.

I know that. I was trying to keep it simple. As in if you start what
is the first thing to look at.  You can't bind to port 80 (or any port
below 1024) as a non root user unless you apply a work around.

  - Chuck


Are you happier with that response. I was only trying to help.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat dies after starting

2010-09-01 Thread Caldarale, Charles R
 From: Wesley Acheson [mailto:wesley.ache...@gmail.com] 
 Subject: Re: Tomcat dies after starting

 I know that. I was trying to keep it simple.

The problem with making an unqualified statement is that many people - 
especially inexperienced ones - will take it as an absolute, resulting in 
misconceptions and confusion that might be carried on for years.

 You can't bind to port 80 (or any port below 1024) as a
 non root user unless you apply a work around.

Better, but I wouldn't qualify it as a work-around, just an appropriate 
technique; work-around has the connotation of something temporary.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-01 Thread jan gestre
On Wed, Sep 1, 2010 at 4:40 PM, Wesley Acheson wesley.ache...@gmail.com wrote:
 Can you put in the beginning of the stack trace?

 Some things to look at make sure that you have permission to bind to
 the port that you've set your http connection to. (you probably won't
 be able to bind to port 80 on a linux box)

 RHEL5 has selinux installed by default which may cause problems. I'm not sure.
 Ensure nothing else is listening to that port.

 Regards,

 Wesley Acheson

 On Wed, Sep 1, 2010 at 9:00 AM, jan gestre ipcopper...@gmail.com wrote:
 Hi Everyone,

 I'm using 6.0.26 tomcat binary in my RHEL5 box, it was configured for
 high availability using DRBD, it was already working for more than a
 week already but all of a sudden it stopped working, tomcat just dies,
 restarting it manually does not help either.

 Here's my setup:

 RHEL5 64bit
 Sun Java 1.6 SDK 64 bit
 Tomcat 6.0.29

 Here's my catalina.out log which is the same as the catalina.2010-09-01.log:

 logs/catalina.out
        at
 org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
        at
 org.apache.catalina.core.StandardService.stop(StandardService.java:596)
        at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
        at
 org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
 Sep 1, 2010 1:44:26 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8080
 Sep 1, 2010 1:44:26 PM org.apache.catalina.connector.Connector stop
 SEVERE: Coyote connector has not been started
 ---

 Here's the log when it was working/running:

 catalina.2010-08-23.log
 Aug 23, 2010 3:00:16 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080
 Aug 23, 2010 3:00:16 PM org.apache.jk.common.ChannelSocket init
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 Aug 23, 2010 3:00:16 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/16  config=null
 Aug 23, 2010 3:00:16 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 513 ms
 Aug 23, 2010 3:10:19 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080

 I've already googled similar issues but did not find any concrete solution.

 Will appreciate any help.

 Many thanks in advance.

 Jan

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



Hi Wesley,

SELinux is disabled as well as the firewall, and Tomcat is running as
unprivileged user, all related files is owned by that user.

Jan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-01 Thread jan gestre
On Wed, Sep 1, 2010 at 9:28 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: Wesley Acheson [mailto:wesley.ache...@gmail.com]
 Subject: Re: Tomcat dies after starting

 Can you put in the beginning of the stack trace?

 Nice that the OP cut off the critical information...

 Also, the OP should post the server.xml, preferably with comments removed and 
 security information obfuscated, and let us know if APR is being used.

 (you probably won't be able to bind to port 80 on a linux box)

 Of course you can - but you have to use the proper technique, such as 
 starting Tomcat via jsvc or using iptables.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
 MATERIAL and is thus for use only by the intended recipient. If you received 
 this in error, please contact the sender and delete the e-mail and its 
 attachments from all computers.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



Hi Charles,

Here's my server.xml file, pardon me but I don't know what stack trace
is. As you can see they're default values, I did not change anything
in my box. How would I know if apr is used? I think apr is installed.
Also I'm planning to configure to use Apache installed in another
machine as a reverse proxy to access Tomcat.


server.xml:

?xml version=1.0 encoding=utf-8 ?
- Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener
/
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
/
- GlobalNamingResources
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database
that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
- Service name=Catalina
  Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2
redirectPort=8443 /
  Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /
- Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /
- Host name=localhost appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  /Host
  /Engine
  /Service
  /Server

Regards,

Jan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat dies after starting

2010-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan,

On 9/1/2010 8:44 PM, jan gestre wrote:
 Here's my server.xml file, pardon me but I don't know what stack trace
 is.

The is the bottom of the stack trace, from your original post:

 at
 org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:176)
 at org.apache.catalina.connector.Connector.stop(Connector.java:1135)
 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:596)
 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:648)
 at
 org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:692)
 Sep 1, 2010 1:44:26 PM org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stopping Coyote HTTP/1.1 on http-8080
 Sep 1, 2010 1:44:26 PM org.apache.catalina.connector.Connector stop
 SEVERE: Coyote connector has not been started

There's more in the log file before that. It should say something like:

[date and time] SomeKindOfException: Something bad happened! Oh, no!
Cause by: org.apache.catalina.core.Whatever.someMethod(Whatever.java:45)
 at org.apache.catalina.core.Whatever.someMethod(Whatever.java:98)
   ...

...ending in the stuff you've already posted. If you post the entire
stack trace, it will likely tell us what the problem was. It looks like
there was an error that caused Tomcat to voluntarily shut down, and then
the shut down caused an error, too.

Tell you what: stop Tomcat 9if it's somehow running), delete your
logs/catalina.out file, then re-start Tomcat. If/when it fails, attach
the /entire/ catalina.out file to a message to the list, and we'll check
it out.

 As you can see they're default values, I did not change anything
 in my box. How would I know if apr is used? I think apr is installed.

APR will tell you if it's running at the top of your logs/catalina.out
log file. Each time you start the server, it should tell you whether APR
is enabled or not.

 Also I'm planning to configure to use Apache [httpd] installed in another
 machine as a reverse proxy to access Tomcat.

Why particular reason you're putting Apache httpd into the mix? Tomcat
is a perfectly fine web server on it's own.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx/B4cACgkQ9CaO5/Lv0PCpvgCeMYFjkUD4980tRCBaPQDKJuXa
2NMAoLv4+zQhWph8+F16t5AzOmYBi+0m
=rNhJ
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-14 Thread Rahman Akhlaqur

I have some more info about the issue that I think is related. I found our 
Tomcat executable is also establishing a lot of TCP connections. just doing a 
simple netstat just after I start tomcat and comparing it to when thread count 
for tomcat reaches 2000, I found a lot more lines like

  TCP    127.0.0.1:4912 127.0.0.1:2170 ESTABLISHED 4064
  [tomcat5.exe]
  TCP    127.0.0.1:4912 127.0.0.1:4913 ESTABLISHED 4064
  [tomcat5.exe]
  TCP    127.0.0.1:4913 127.0.0.1:4912 ESTABLISHED 4064
  [tomcat5.exe]
  TCP    127.0.0.1:4914 127.0.0.1:4917 ESTABLISHED 4064
  [tomcat5.exe]

Is this some sort of tomcat ping? 

Our tomcat connectors are set up to limit the max http threads as below

    Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=250 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /

    Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=100 minSpareThreads=25 maxSpareThreads=50
   enableLookups=false disableUploadTimeout=true
   connectionTimeout=2 acceptCount=100 scheme=https 
   secure=false  proxyPort=443/


The only timeouts are for the http requests, are there any other timeouts I can 
configure that could potentially stop all those selector threads from 
persisting?


- Original Message 
From: Caldarale, Charles R chuck.caldar...@unisys.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, 14 July, 2009 2:59:36
Subject: RE: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Tomcat 5.5.23 keeps starting threads until OS runs out of
 memory
 
 I'm surprised you're not hitting a thread maximum in the OS
 and halting the JVM.

I'm not aware of any hard limit in Windows; regardless, hitting such a limit 
just returns an error status on the system call, not a process abort.

 Showing more of the stack trace will certainly help reveal the problem.

Not likely; that will only show the stack of the started thread, not where it 
was started from.  A heap profiler should show who created the Thread objects, 
if the profiler captures enough of the call stack at object creation time.

One would think a grep of the webapp source for calls to start() would be a 
rather quick first cut if a profiler can't be used.

If the source isn't available, then one possible way to trap the origin of the 
Thread.start() call is to enable a security manager and only allow start() 
calls from Tomcat, not webapp, code.  This would probably require several 
iterations and would be somewhat tedious.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-14 Thread Caldarale, Charles R
 From: Rahman Akhlaqur [mailto:aki...@yahoo.co.uk]
 Subject: Re: Tomcat 5.5.23 keeps starting threads until OS runs out of
 memory
 
 I have some more info about the issue that I think is related. I found
 our Tomcat executable is also establishing a lot of TCP connections.

Tomcat isn't, your webapp is.  Don't blame Tomcat for your misbehaving code.

 Is this some sort of tomcat ping?

No, it's your webapp opening up some sort of connection - likely RMI, judging 
from your stack trace.

 Our tomcat connectors are set up to limit the max http threads as below

That's irrelevant, since it's your webapp starting the extra threads.

 The only timeouts are for the http requests, are there any other
 timeouts I can configure that could potentially stop all those selector
 threads from persisting?

Whatever you can configure in your webapp - this is a problem with your code, 
not with Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-14 Thread Rahman Akhlaqur

I found the cause of the issue. A call was being made to a jsp that opened a 
connection to another application sitting on the same server (via orbd.exe). 
This jsp is being called approx 10 times a second (as it is a monitor jsp) and 
the majority of requests are being served but on occasion it would seem that 
the request is not being served and a connection is left dangling. So I guess 
it was not Tomcats fault in the end! 

I found some error messages in the catalina log alluding to a connection 
problem related to a jsp that is not actually part of the webapp - hence why I 
didn't think of it until I saw the stack trace.

To prove it was this jsp, I took out the code that creates a connection and 
found the windows threads just stood at the same thread count. Gonna have to 
have a word with the TA about this...


- Original Message 
From: Caldarale, Charles R chuck.caldar...@unisys.com
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, 14 July, 2009 13:00:53
Subject: RE: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

 From: Rahman Akhlaqur [mailto:aki...@yahoo.co.uk]
 Subject: Re: Tomcat 5.5.23 keeps starting threads until OS runs out of
 memory
 
 I have some more info about the issue that I think is related. I found
 our Tomcat executable is also establishing a lot of TCP connections.

Tomcat isn't, your webapp is.  Don't blame Tomcat for your misbehaving code.

 Is this some sort of tomcat ping?

No, it's your webapp opening up some sort of connection - likely RMI, judging 
from your stack trace.

 Our tomcat connectors are set up to limit the max http threads as below

That's irrelevant, since it's your webapp starting the extra threads.

 The only timeouts are for the http requests, are there any other
 timeouts I can configure that could potentially stop all those selector
 threads from persisting?

Whatever you can configure in your webapp - this is a problem with your code, 
not with Tomcat.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rahman,

On 7/13/2009 9:13 AM, Rahman Akhlaqur wrote:
 Hi
 
 I am having an issue with Tomcat starting too many selector threads.
 I have got some stack trace info about these threads as below:
 
 SelectorThread 
 sun.nio.ch.PollArrayWrapper.poll0 ( native code ) 
 sun.nio.ch.PollArrayWrapper.poll ( PollArrayWrapper.java:74 ) 
 sun.nio.ch.WindowsSelectorImpl.doSelect ( WindowsSelectorImpl.java:61 ) 
 sun.nio.ch.SelectorImpl.lockAndDoSelect ( SelectorImpl.java:69 ) 
 sun.nio.ch.SelectorImpl.select ( SelectorImpl.java:80 ) 
 com.sun.corba.se.impl.transport.SelectorImpl.run ( SelectorImpl.java:249 ) 

CORBA, eh? Are you starting an RMI server per request?

 When Tomcat starts approx 1800-1900 hundred of these selector 
 threads, Windows runs out of memory and we have to restart tomcat to
 restore the website.

1900 hundred? That's a whole lotta threads. I'm surprised you're not
hitting a thread maximum in the OS and halting the JVM.

 I think these are started by our webapp, but not sure how to trace 
 this back to the bit of code that is doing this. Any suggestions
 would be appreciated.

Showing more of the stack trace will certainly help reveal the problem.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpb4jkACgkQ9CaO5/Lv0PD8+wCdEyIQGJ6y4QR0QAuUFgrIsk5w
rvcAoIrxIdO4yg0nP9Oo/7IX+HFQlNV7
=ALeE
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-13 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: Tomcat 5.5.23 keeps starting threads until OS runs out of
 memory
 
 I'm surprised you're not hitting a thread maximum in the OS
 and halting the JVM.

I'm not aware of any hard limit in Windows; regardless, hitting such a limit 
just returns an error status on the system call, not a process abort.

 Showing more of the stack trace will certainly help reveal the problem.

Not likely; that will only show the stack of the started thread, not where it 
was started from.  A heap profiler should show who created the Thread objects, 
if the profiler captures enough of the call stack at object creation time.

One would think a grep of the webapp source for calls to start() would be a 
rather quick first cut if a profiler can't be used.
 
If the source isn't available, then one possible way to trap the origin of the 
Thread.start() call is to enable a security manager and only allow start() 
calls from Tomcat, not webapp, code.  This would probably require several 
iterations and would be somewhat tedious.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: Tomcat server Not starting when symantec installed!

2009-07-08 Thread Tim Funk

Don't run Symantec ? :)

Symantec is probably doing 1 of 2 things
1) Noticing tomcat is trying to bind to a socket (it is a webserver) and 
killing it

2) It has bad heuristics and thinks its a trojan

My bet is #1. You probably need to white list tomcat. Actually - you 
might need to whitelist java. Symantec should provide a faq or tech support.



-Tim

Raghu.p wrote:

Hi,
I have installed Tomcat 6.0.18 in Windows 2003 server previously it is
working  fine,  today  I have installed Symantec End Point Protection 
11.0  In that same server,  then I restarted  the server,  now tomcat is

not starting and it’s not recording any error messages in log files.

Then I have un-installed Symantec then again Tomcat is working fine.

Can anybody tell solution to resolve the issue.

Thanks
Raghav



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat server Not starting when symantec installed!

2009-07-08 Thread David kerber
I use SEP 11 with tomcat 5.5, and had no trouble.  I installed SEP while 
TC was running, so maybe it detected that it needed to leave that port open?


D

Tim Funk wrote:

Don't run Symantec ? :)

Symantec is probably doing 1 of 2 things
1) Noticing tomcat is trying to bind to a socket (it is a webserver) 
and killing it

2) It has bad heuristics and thinks its a trojan

My bet is #1. You probably need to white list tomcat. Actually - you 
might need to whitelist java. Symantec should provide a faq or tech 
support.



-Tim

Raghu.p wrote:

Hi,
I have installed Tomcat 6.0.18 in Windows 2003 server previously it is
working  fine,  today  I have installed Symantec End Point 
Protection 11.0  In that same server,  then I restarted  the 
server,  now tomcat is

not starting and it’s not recording any error messages in log files.

Then I have un-installed Symantec then again Tomcat is working fine.

Can anybody tell solution to resolve the issue.

Thanks
Raghav



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat server Not starting when symantec installed!

2009-07-08 Thread Caldarale, Charles R
 From: David kerber [mailto:dcker...@verizon.net]
 Subject: Re: Tomcat server Not starting when symantec installed!
 
 I use SEP 11 with tomcat 5.5, and had no trouble.  I installed
 SEP while TC was running, so maybe it detected that it needed
 to leave that port open?

Can't be a simple port problem, or there would be some indication of that in 
the Tomcat logs.  (I'm also running SEP 11.0.4202.75 on Vista 64 with Tomcat 
6.0.x with no problems.)

SEP does keep log files to track what it does, so the OP could check those - or 
ask Symantec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



Re: Tomcat error while starting related to java

2009-03-10 Thread Ognjen Blagojevic

Hi Selvajava,

Read the stack trace carefully. It seems that the class 
com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML 
file (probably TableProperties.xml), and during that process the 
exception is thrown - probably due to malformed XML.


It seems that it doesn't have anything to do with the Tomcat. It is 
webapp config issue.


Regards,
Ognjen


selvajava wrote:

HI All,
I am getting following error while starting tomcat.. But tomcat staring
successfully..

2009-03-10
12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
- TableProperties URL is
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
2009-03-10
12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
- TCConfig URL is
file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main] - End
event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
at
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
at
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
at 
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
at
org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:197)
at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1666)
at
com.headstrong.tablecomponent.util.ConfigFileParser.parseConfigFile(ConfigFileParser.java:115)
at
com.headstrong.tablecomponent.servlet.TableComponentServlet.init(TableComponentServlet.java:71)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava

Thanks Bla

Yes, I know its related to web apps.. I validated my xml file. But no
error.. I am looking clue less



Ognjen Blagojevic-3 wrote:
 
 Hi Selvajava,
 
 Read the stack trace carefully. It seems that the class 
 com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML 
 file (probably TableProperties.xml), and during that process the 
 exception is thrown - probably due to malformed XML.
 
 It seems that it doesn't have anything to do with the Tomcat. It is 
 webapp config issue.
 
 Regards,
 Ognjen
 
 
 selvajava wrote:
 HI All,
 I am getting following error while starting tomcat.. But tomcat staring
 successfully..
 
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
 - TableProperties URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
 - TCConfig URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
 2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main] -
 End
 event threw exception
 java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at
 org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
  at
 org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
  at
 org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
  at
 org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
  at
 org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
  at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
  at
 org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:197)
  at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.commons.digester.Digester.parse(Digester.java:1666)
  at
 com.headstrong.tablecomponent.util.ConfigFileParser.parseConfigFile(ConfigFileParser.java:115)
  at
 com.headstrong.tablecomponent.servlet.TableComponentServlet.init(TableComponentServlet.java:71)
  at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
  at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
  at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
  at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
  at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
  at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
  at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
  at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
  at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
  at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
  at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
  at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
  at
 org.apache.catalina.core.StandardService.start(StandardService.java:480)
  at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
  at 

Re: Tomcat error while starting related to java

2009-03-10 Thread Pid
selvajava wrote:
 Thanks Bla
 
 Yes, I know its related to web apps.. I validated my xml file. But no
 error.. I am looking clue less

The error below appears in the stacktrace

 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/lang/NullArgumentException

Is the jar containing this class in your webapps /lib directory?

p


 Ognjen Blagojevic-3 wrote:
 Hi Selvajava,

 Read the stack trace carefully. It seems that the class 
 com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML 
 file (probably TableProperties.xml), and during that process the 
 exception is thrown - probably due to malformed XML.

 It seems that it doesn't have anything to do with the Tomcat. It is 
 webapp config issue.

 Regards,
 Ognjen


 selvajava wrote:
 HI All,
 I am getting following error while starting tomcat.. But tomcat staring
 successfully..

 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
 - TableProperties URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
 - TCConfig URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
 2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main] -
 End
 event threw exception
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
 at
 org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
 at
 org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
 at
 org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
 at
 org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
 at
 org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:197)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1666)
 at
 com.headstrong.tablecomponent.util.ConfigFileParser.parseConfigFile(ConfigFileParser.java:115)
 at
 com.headstrong.tablecomponent.servlet.TableComponentServlet.init(TableComponentServlet.java:71)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
 at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at
 

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava

Thanks for this help.. But I have done little deferent.. I have moved this
jar from webapps/lib to global lib folder.. Now this error not showing...

Is that the solution??  What could be the reason??


Pid-2 wrote:
 
 selvajava wrote:
 Thanks Bla
 
 Yes, I know its related to web apps.. I validated my xml file. But no
 error.. I am looking clue less
 
 The error below appears in the stacktrace
 
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/lang/NullArgumentException
 
 Is the jar containing this class in your webapps /lib directory?
 
 p
 
 
 Ognjen Blagojevic-3 wrote:
 Hi Selvajava,

 Read the stack trace carefully. It seems that the class 
 com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML 
 file (probably TableProperties.xml), and during that process the 
 exception is thrown - probably due to malformed XML.

 It seems that it doesn't have anything to do with the Tomcat. It is 
 webapp config issue.

 Regards,
 Ognjen


 selvajava wrote:
 HI All,
 I am getting following error while starting tomcat.. But tomcat staring
 successfully..

 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
 - TableProperties URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
 - TCConfig URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
 2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main] -
 End
 event threw exception
 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
 org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
at
 org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at
 org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
at
 org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at
 org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
at
 org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:197)
at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1666)
at
 com.headstrong.tablecomponent.util.ConfigFileParser.parseConfigFile(ConfigFileParser.java:115)
at
 com.headstrong.tablecomponent.servlet.TableComponentServlet.init(TableComponentServlet.java:71)
at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at
 org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at 

Re: Tomcat error while starting related to java

2009-03-10 Thread Pid
selvajava wrote:
 Thanks for this help.. But I have done little deferent.. I have moved this
 jar from webapps/lib to global lib folder.. Now this error not showing...

Does that mean that your application is now working?

 Is that the solution??  What could be the reason??

It depends.  Have you placed most of your jars there?

p




 Pid-2 wrote:
 selvajava wrote:
 Thanks Bla

 Yes, I know its related to web apps.. I validated my xml file. But no
 error.. I am looking clue less
 The error below appears in the stacktrace

 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/lang/NullArgumentException
 Is the jar containing this class in your webapps /lib directory?

 p


 Ognjen Blagojevic-3 wrote:
 Hi Selvajava,

 Read the stack trace carefully. It seems that the class 
 com.headstrong.tablecomponent.util.ConfigFileParser is digesting an XML 
 file (probably TableProperties.xml), and during that process the 
 exception is thrown - probably due to malformed XML.

 It seems that it doesn't have anything to do with the Tomcat. It is 
 webapp config issue.

 Regards,
 Ognjen


 selvajava wrote:
 HI All,
 I am getting following error while starting tomcat.. But tomcat staring
 successfully..

 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
 - TableProperties URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
 - TCConfig URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
 2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main] -
 End
 event threw exception
 java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at
 org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
   at
 org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
   at
 org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
   at
 org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
   at
 org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
   at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
   at
 org.apache.commons.digester.BeanPropertySetterRule.end(BeanPropertySetterRule.java:197)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
 Source)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
   at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1666)
   at
 com.headstrong.tablecomponent.util.ConfigFileParser.parseConfigFile(ConfigFileParser.java:115)
   at
 com.headstrong.tablecomponent.servlet.TableComponentServlet.init(TableComponentServlet.java:71)
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
   at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
   at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
   at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
   at
 org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
   at
 org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
   at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
   at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
   at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at
 

Re: Tomcat error while starting related to java

2009-03-10 Thread selvajava

remaining jar files are in my classpath..

Now application is working. But while starting tomcat I am getting following
message.. I dont know exactly what need to configure in log4j.xml

Listening for transport dt_socket at address: 5005
log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup
mbedded).
log4j:WARN Please initialize the log4j system properly.
Searching for resource file infraProperties.xml
ClassLoader is WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
-- Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\shared\classes
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\shared\lib\log
-1.2.13.jar
-- Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\classes
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\ant
auncher.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\ant
ar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-collections-3.1.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-dbcp-1.2.1.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-el.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-lang-2.0.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-logging.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-pool-1.1.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\com
ns-pool-1.2.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jas
r-compiler.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jas
r-runtime.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jsp
pi.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\log
-1.2.13.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\nam
g-common.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\nam
g-factory.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\nam
g-java.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\nam
g-resources.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\ser
et-api.jar
file:C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\too
.jar
-- Parent Classloader:
sun.misc.launcher$appclassloa...@a39137



OpenJMS 0.7.6.1
The OpenJMS Group. (C) 1999-2004. All rights reserved.
http://openjms.sourceforge.net




Pid-2 wrote:
 
 selvajava wrote:
 Thanks for this help.. But I have done little deferent.. I have moved
 this
 jar from webapps/lib to global lib folder.. Now this error not showing...
 
 Does that mean that your application is now working?
 
 Is that the solution??  What could be the reason??
 
 It depends.  Have you placed most of your jars there?
 
 p
 
 
 
 
 Pid-2 wrote:
 selvajava wrote:
 Thanks Bla

 Yes, I know its related to web apps.. I validated my xml file. But no
 error.. I am looking clue less
 The error below appears in the stacktrace

 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/lang/NullArgumentException
 Is the jar containing this class in your webapps /lib directory?

 p


 Ognjen Blagojevic-3 wrote:
 Hi Selvajava,

 Read the stack trace carefully. It seems that the class 
 com.headstrong.tablecomponent.util.ConfigFileParser is digesting an
 XML 
 file (probably TableProperties.xml), and during that process the 
 exception is thrown - probably due to malformed XML.

 It seems that it doesn't have anything to do with the Tomcat. It is 
 webapp config issue.

 Regards,
 Ognjen


 selvajava wrote:
 HI All,
 I am getting following error while starting tomcat.. But tomcat
 staring
 successfully..

 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:59)[main]
 - TableProperties URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TableProperties.xml
 2009-03-10
 12:11:11,533[DEBUG][TableComponentServlet](TableComponentServlet.java:60)[main]
 - TCConfig URL is
 file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/webapps/dte/WEB-INF/classes/TCConfig.xml
 2009-03-10 12:11:11,970[ERROR][Digester](Digester.java:1132)[main]
 -
 End
 event threw exception
 java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at 

RE: Tomcat error while starting related to java

2009-03-10 Thread Caldarale, Charles R
 From: selvajava [mailto:selvar...@headstrong.com] 
 Subject: Re: Tomcat error while starting related to java
 
 remaining jar files are in my classpath..

If that means you're using the CLASSPATH environment variable, you've made a 
fatal error - that should never be set when running Tomcat.

 file:C:\Program Files\Apache Software Foundation\Tomcat
 5.0\shared\classes

Tomcat 5.0 is no longer supported.  Please try to reproduce the problem on a 
current level.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat error while starting related to java

2009-03-10 Thread selvajava

Sorry..

I have mistaken I am not using any Classpath.. its inside tomcat webapps
folder..

I am using tomcat 5.0.28 ..  Actually this is old project and production its
running properly. I try to create development env.


Caldarale, Charles R wrote:
 
 From: selvajava [mailto:selvar...@headstrong.com] 
 Subject: Re: Tomcat error while starting related to java
 
 remaining jar files are in my classpath..
 
 If that means you're using the CLASSPATH environment variable, you've made
 a fatal error - that should never be set when running Tomcat.
 
 file:C:\Program Files\Apache Software Foundation\Tomcat
 5.0\shared\classes
 
 Tomcat 5.0 is no longer supported.  Please try to reproduce the problem on
 a current level.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-error-while-starting-related-to-java-tp22429031p22449061.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Is not starting

2008-09-23 Thread Caldarale, Charles R
 From: Partha Goswami [mailto:[EMAIL PROTECTED]
 Subject: Tomcat Is not starting

 I attached, log files, Tomcat is not starting, in Windows
 xp/2003, Pls help

The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin 
directory.  Search the archives for other alternatives.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Is not starting

2008-09-23 Thread Partha Goswami
I am trying..

On Tue, Sep 23, 2008 at 11:09 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Partha Goswami [mailto:[EMAIL PROTECTED]
  Subject: Tomcat Is not starting
 
  I attached, log files, Tomcat is not starting, in Windows
  xp/2003, Pls help

 The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin
 directory.  Search the archives for other alternatives.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Regards
Partha Goswami
President
Global Web-Tech Solution
www.globalwebtechsolution.com


Re: Tomcat Is not starting

2008-09-23 Thread Partha Goswami
Thanks Working

On Tue, Sep 23, 2008 at 11:12 PM, Partha Goswami 
[EMAIL PROTECTED] wrote:

 I am trying..

 On Tue, Sep 23, 2008 at 11:09 PM, Caldarale, Charles R 
 [EMAIL PROTECTED] wrote:

  From: Partha Goswami [mailto:[EMAIL PROTECTED]
  Subject: Tomcat Is not starting
 
  I attached, log files, Tomcat is not starting, in Windows
  xp/2003, Pls help

 The usual fix is to find a copy of msvcr71.dll and put it in Tomcat's bin
 directory.  Search the archives for other alternatives.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Regards
 Partha Goswami
 President
 Global Web-Tech Solution
 www.globalwebtechsolution.com




-- 
Regards
Partha Goswami
President
Global Web-Tech Solution
www.globalwebtechsolution.com


RE: Tomcat Is not starting

2008-09-23 Thread Martin Gainty

hi partha

check out
http://forums.sun.com/thread.jspa?threadID=5121172start=0tstart=0

take a working copy of mscvr71.dll  from
http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71
and copy to /windows/system32

With Warm Regards
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Tue, 23 Sep 2008 22:57:11 +0530
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Tomcat Is not starting
 
 Hi,
 
 I attached, log files, Tomcat is not starting, in Windows xp/2003, Pls help
 
 
 
 [2008-09-23 20:48:59] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:48:59] [info] Service Tomcat6 name Apache Tomcat
 [2008-09-23 20:49:00] [info] Service Tomcat6 installed
 [2008-09-23 20:49:00] [info] Procrun finished.
 [2008-09-23 20:49:00] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:00] [info] Updating service...
 [2008-09-23 20:49:01] [info] Service Tomcat6 updated
 [2008-09-23 20:49:01] [info] Update service finished.
 [2008-09-23 20:49:01] [info] Procrun finished.
 [2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:05] [info] Updating service...
 [2008-09-23 20:49:05] [info] Service Tomcat6 updated
 [2008-09-23 20:49:05] [info] Update service finished.
 [2008-09-23 20:49:05] [info] Procrun finished.
 [2008-09-23 20:49:05] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:05] [info] Updating service...
 [2008-09-23 20:49:05] [info] Service Tomcat6 updated
 [2008-09-23 20:49:05] [info] Update service finished.
 [2008-09-23 20:49:05] [info] Procrun finished.
 [2008-09-23 20:49:58] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:49:58] [info] Running Service...
 [2008-09-23 20:49:58] [info] Starting service...
 [2008-09-23 20:49:58] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 20:49:58] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 20:49:58] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 20:49:58] [info] Run service finished.
 [2008-09-23 20:49:58] [info] Procrun finished.
 [2008-09-23 20:59:55] [info] Procrun (2.0.4.0) started
 [2008-09-23 20:59:55] [info] Running Service...
 [2008-09-23 20:59:56] [info] Starting service...
 [2008-09-23 20:59:56] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 20:59:56] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 20:59:56] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 20:59:58] [info] Run service finished.
 [2008-09-23 20:59:58] [info] Procrun finished.
 [2008-09-23 21:22:29] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:29] [info] Debugging Service...
 [2008-09-23 21:22:29] [info] Starting service...
 [2008-09-23 21:22:29] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:29] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:29] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:29] [info] Debug service finished.
 [2008-09-23 21:22:29] [info] Procrun finished.
 [2008-09-23 21:22:33] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:33] [info] Debugging Service...
 [2008-09-23 21:22:33] [info] Starting service...
 [2008-09-23 21:22:33] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:33] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:33] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:33] [info] Debug service finished.
 [2008-09-23 21:22:33] [info] Procrun finished.
 [2008-09-23 21:22:34] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:34] [info] Debugging Service...
 [2008-09-23 21:22:34] [info] Starting service...
 [2008-09-23 21:22:34] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:34] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:34] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2008-09-23 21:22:34] [info] Debug service finished.
 [2008-09-23 21:22:34] [info] Procrun finished.
 [2008-09-23 21:22:35] [info] Procrun (2.0.4.0) started
 [2008-09-23 21:22:35] [info] Debugging Service...
 [2008-09-23 21:22:35] [info] Starting service...
 [2008-09-23 21:22:35] [174  javajni.c] [error] The specified module could
 not be found.
 [2008-09-23 21:22:35] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
 [2008-09-23 21:22:35] [1269 prunsrv.c] [error] 

Re: Tomcat Is not starting

2008-09-23 Thread Johnny Kewl


- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, September 23, 2008 8:11 PM
Subject: RE: Tomcat Is not starting



hi partha

check out
http://forums.sun.com/thread.jspa?threadID=5121172start=0tstart=0

take a working copy of mscvr71.dll  from
http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71
and copy to

--
   The file may already be in your jdk1.6.0_04\bin folder
   Do as martin says copy into /windows/system32

   On the older window systems you'll start getting alot of these issues...
   Google for and get a program called Dependency Walker...
   It allows you to see what an application is looking for very handy 
;)

   So if the fix doesnt work, you can check what the right fix is yourself.

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5 not starting

2006-05-25 Thread Warren Lewis
Take a peek at this bugzilla entry that addresses your problem:
http://issues.apache.org/bugzilla/show_bug.cgi?id=28988

cheers - Warren 

-Original Message-
From: ahum [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 4:21 PM
To: users@tomcat.apache.org
Subject: tomcat 5 not starting


I am running apache 2.2.2 and tomcat 5.0 with jdk1.3 i get the following error 
message when trying to run tomcat 5:



[2006-05-25 20:49:24] [info] Service Tomcat5 name Apache Tomcat
[2006-05-25 20:49:25] [info] Service Tomcat5 installed
[2006-05-25 20:49:25] [info] Procrun finished.
[2006-05-25 20:50:15] [info] Updating service...
[2006-05-25 20:50:15] [info] Service Tomcat5 updated
[2006-05-25 20:50:15] [info] Update service finished.
[2006-05-25 20:50:15] [info] Procrun finished.
[2006-05-25 20:50:15] [info] Updating service...
[2006-05-25 20:50:15] [info] Service Tomcat5 updated
[2006-05-25 20:50:15] [info] Update service finished.
[2006-05-25 20:50:15] [info] Procrun finished.
[2006-05-25 20:50:38] [info] Running Service...
[2006-05-25 20:50:38] [info] Starting service...
[2006-05-25 20:50:38] [364  javajni.c] [error] Unsuported JNI version 65537
[2006-05-25 20:50:38] [770  prunsrv.c] [error] Failed initializing java 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2006-05-25 20:50:38] [982  prunsrv.c] [error] ServiceStart returned 2
[2006-05-25 20:50:38] [info] Run service finished.
[2006-05-25 20:50:38] [info] Procrun finished.
[2006-05-25 20:50:55] [info] Running Service...
[2006-05-25 20:50:55] [info] Starting service...
[2006-05-25 20:50:56] [364  javajni.c] [error] Unsuported JNI version 65537
[2006-05-25 20:50:56] [770  prunsrv.c] [error] Failed initializing java 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2006-05-25 20:50:56] [982  prunsrv.c] [error] ServiceStart returned 2
[2006-05-25 20:50:56] [info] Run service finished.
[2006-05-25 20:50:56] [info] Procrun finished.
[2006-05-25 20:51:17] [info] Running Service...
[2006-05-25 20:51:17] [info] Starting service...
[2006-05-25 20:51:17] [364  javajni.c] [error] Unsuported JNI version 65537
[2006-05-25 20:51:17] [770  prunsrv.c] [error] Failed initializing java 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2006-05-25 20:51:17] [982  prunsrv.c] [error] ServiceStart returned 2
[2006-05-25 20:51:17] [info] Run service finished.
[2006-05-25 20:51:17] [info] Procrun finished.
[2006-05-25 21:01:46] [info] Running Service...
[2006-05-25 21:01:46] [info] Starting service...
[2006-05-25 21:01:46] [364  javajni.c] [error] Unsuported JNI version 65537
[2006-05-25 21:01:46] [770  prunsrv.c] [error] Failed initializing java 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2006-05-25 21:01:46] [982  prunsrv.c] [error] ServiceStart returned 2
[2006-05-25 21:01:46] [info] Run service finished.
[2006-05-25 21:01:46] [info] Procrun finished.
[2006-05-25 21:07:10] [info] Running Service...
[2006-05-25 21:07:10] [info] Starting service...
[2006-05-25 21:07:10] [364  javajni.c] [error] Unsuported JNI version 65537
[2006-05-25 21:07:10] [770  prunsrv.c] [error] Failed initializing java 
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
[2006-05-25 21:07:10] [982  prunsrv.c] [error] ServiceStart returned 2
[2006-05-25 21:07:10] [info] Run service finished.
[2006-05-25 21:07:10] [info] Procrun finished.

ive tried installing tomcat 3 and 4 but still have no luck in getting it to 
run. It just flashes up quickly (command window) but I dont think tomcat is 
actually running.
--
View this message in context: 
http://www.nabble.com/tomcat+5+not+starting-t1683208.html#a4565490
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]