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



Tomcat 10.1.1 error starting

2022-10-20 Thread jonmcalexander
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 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.



RE: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Berneburg, Cris J. - US
Hi Larry (and Thomas)

crisb> tried a different major version of Java?  Earlier than 11, vendor other 
than Amazon (Corretto)?

LH> Our customer has dictated Java 11, and there were problems
LH> using the combination of Oracle Java 11 and jakarta/jaxws

For experimental purposes, to try to narrow down the problem space, would it be 
possible for you to temporarily use an earlier major version of Corretto?  I'm 
not suggesting that your customer use a different version.  :-)

crisb> “Have you tried a major version of TC earlier than 10.0.23?  
LH> Have not tried earlier Tomcat

Is it possible for you to experiment using TC 9.X to see if you have the same 
issue?

crisb> Are you using any "native" components?”
LH> how would we determine whether we are using any "native" components ?

Not sure about that, but it was just a wild guess.  Some of the more 
knowledgeable folks might be able to say.

Sorry, it's beginning to dawn on me that this is a production system.  Is it an 
environment in which your options for debugging/experimentation with different 
software versions are possible, or are your options restricted?

TH> Did you try to configure the service account to your account?
TH> (just for narrow down the issue)

+1

TH> Another issue could be the NTFS permission of Tomcat and/or java folder.

+1.  Can you check the access rights of the Tomcat folder and sub-folders to 
ensure that service account is included in those rights?  Also, the Tomcat/work 
folder needs to be writable.

When you run Tomcat/bin/Tomcat9w.exe, does anything look "odd"?
What does the "Log On" tab say (without giving away any sensitive info)?
On the java tab, what are the "Java Virtual Machine", "Java Classpath", "Java 
Options", and "Java 9 Options" values?

- Cris B.

-Original Message-
From: Heidt, Larry  
Sent: Thursday, September 22, 2022 1:04 PM
To: Tomcat Users List 
Subject: RE: which missing file prevents tomcat 10 from starting as windows 
service ?

Thanks again for everyone’s review – please see my responses below





“tried a different major version of Java?  Earlier than 11, vendor other than 
Amazon (Corretto)?”



Our customer has dictated Java 11, and there were problems using the 
combination of Oracle Java 11 and jakarta/jaxws





“Have you tried a major version of TC earlier than 10.0.23?  Are you using any 
"native" components?”



Have not tried earlier Tomcat, and how would we determine whether we are using 
any "native" components ?





“Could there be an overly restrictive Windows access rights issue ?”



We’ve tried configuring Windows Services to start Tomcat using the most 
privileged Windows account, with the same results





“Is this a VM/EC2 instance or a Docker image?”



Don’t know, is some kind of VM, perhaps the systeminfo output below would 
answer those questions





“path variable?”



Tomcat is only failing when started as a Windows Service, succeeding when 
started from the Windows command line – seems like the PATH value should be the 
same for both (but maybe not)



The ...\apache-tomcat-10.0.23\bin\service.bat script to install Tomcat as a 
Windows Service does not configure the PATH variable, and the Windows Services 
UI tabs do not show the PATH value



How can one determine the effective PATH value used by Window Service startup ?





Thank you again for your attention to this issue







systeminfo:



Host Name: NDC-LOG-WMS-D01

OS Name:   Microsoft Windows Server 2019 Standard

OS Version:10.0.17763 N/A Build 17763

OS Manufacturer:   Microsoft Corporation

OS Configuration:  Member Server

OS Build Type: Multiprocessor Free

Registered Owner:  Windows User

Registered Organization:

Product ID:00429-7-0-AA946

Original Install Date: 5/2/2019, 3:40:46 PM

System Boot Time:  9/21/2022, 10:37:34 PM

System Manufacturer:   VMware, Inc.

System Model:  VMware7,1

System Type:   x64-based PC

Processor(s):  1 Processor(s) Installed.

   [01]: Intel64 Family 6 Model 63 Stepping 2 
GenuineIntel ~1796 Mhz

BIOS Version:  VMware, Inc. VMW71.00V.13989454.B64.1906190538, 
6/19/2019

Windows Directory: C:\Windows

System Directory:  C:\Windows\system32

Boot Device:   \Device\HarddiskVolume2

System Locale: en-us;English (United States)

Input Locale:  en-us;English (United States)

Time Zone: (UTC-06:00) Central Time (US & Canada)

Total Physical Memory: 8,191 MB

Available Physical Memory: 4,315 MB

Virtual Memory: Max Size:  9,471 MB

Virtual Memory: Available: 5,686 MB

Virtual Memory: In Use:3,785 MB

Page File Location(s): C:\pagefile.sys

D

AW: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello,

the only dll which was missing ever - as far as I remember - was the c++ 
runtime:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
The bit-ness must match to your java bit-ness.

As it runs as normal user mode its unlikely that a dll is missing.

Did you try to configure the service account to your account?
(just for narrow down the issue)

Another issue could be the NTFS permission of Tomcat and/or java folder.

I run Tomcat 10 with Win 2019 without issues, so it's not a general problem I 
think.

Greetings, Thomas

> -Ursprüngliche Nachricht-
> Von: Heidt, Larry 
> Gesendet: Donnerstag, 22. September 2022 19:04
> An: Tomcat Users List 
> Betreff: RE: which missing file prevents tomcat 10 from starting as windows
> service ?
> 
> Thanks again for everyone’s review – please see my responses below
> 
> 
> 
> 
> 
> “tried a different major version of Java?  Earlier than 11, vendor other than
> Amazon (Corretto)?”
> 
> 
> 
> Our customer has dictated Java 11, and there were problems using the
> combination of Oracle Java 11 and jakarta/jaxws
> 
> 
> 
> 
> 
> “Have you tried a major version of TC earlier than 10.0.23?  Are you using
> any "native" components?”
> 
> 
> 
> Have not tried earlier Tomcat, and how would we determine whether we are
> using any "native" components ?
> 
> 
> 
> 
> 
> “Could there be an overly restrictive Windows access rights issue ?”
> 
> 
> 
> We’ve tried configuring Windows Services to start Tomcat using the most
> privileged Windows account, with the same results
> 
> 
> 
> 
> 
> “Is this a VM/EC2 instance or a Docker image?”
> 
> 
> 
> Don’t know, is some kind of VM, perhaps the systeminfo output below
> would answer those questions
> 
> 
> 
> 
> 
> “path variable?”
> 
> 
> 
> Tomcat is only failing when started as a Windows Service, succeeding when
> started from the Windows command line – seems like the PATH value should
> be the same for both (but maybe not)
> 
> 
> 
> The ...\apache-tomcat-10.0.23\bin\service.bat script to install Tomcat as a
> Windows Service does not configure the PATH variable, and the Windows
> Services UI tabs do not show the PATH value
> 
> 
> 
> How can one determine the effective PATH value used by Window Service
> startup ?
> 
> 
> 
> 
> 
> Thank you again for your attention to this issue
> 
> 
> 
> 
> 
> 
> 
> systeminfo:
> 
> 
> 
> Host Name: NDC-LOG-WMS-D01
> 
> OS Name:   Microsoft Windows Server 2019 Standard
> 
> OS Version:10.0.17763 N/A Build 17763
> 
> OS Manufacturer:   Microsoft Corporation
> 
> OS Configuration:  Member Server
> 
> OS Build Type: Multiprocessor Free
> 
> Registered Owner:  Windows User
> 
> Registered Organization:
> 
> Product ID:00429-7-0-AA946
> 
> Original Install Date: 5/2/2019, 3:40:46 PM
> 
> System Boot Time:  9/21/2022, 10:37:34 PM
> 
> System Manufacturer:   VMware, Inc.
> 
> System Model:  VMware7,1
> 
> System Type:   x64-based PC
> 
> Processor(s):  1 Processor(s) Installed.
> 
>[01]: Intel64 Family 6 Model 63 Stepping 2 
> GenuineIntel ~1796
> Mhz
> 
> BIOS Version:  VMware, Inc. VMW71.00V.13989454.B64.1906190538,
> 6/19/2019
> 
> Windows Directory: C:\Windows
> 
> System Directory:  C:\Windows\system32
> 
> Boot Device:   \Device\HarddiskVolume2
> 
> System Locale: en-us;English (United States)
> 
> Input Locale:  en-us;English (United States)
> 
> Time Zone: (UTC-06:00) Central Time (US & Canada)
> 
> Total Physical Memory: 8,191 MB
> 
> Available Physical Memory: 4,315 MB
> 
> Virtual Memory: Max Size:  9,471 MB
> 
> Virtual Memory: Available: 5,686 MB
> 
> Virtual Memory: In Use:3,785 MB
> 
> Page File Location(s): C:\pagefile.sys
> 
> Domain:xxx.org
> 
> Logon Server:  \\NDC-ITM-WDC-P01
> 
> Hotfix(s): 13 Hotfix(s) Installed.
> 
>[01]: KB5013641
> 
>[02]: KB4470788
> 
>[03]: KB4480056
> 
>[04]: KB4493510
> 
>[05]: KB4509095
> 
>[06]: KB4535680
> 
>[07]: KB5005112
> 
>

RE: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Heidt, Larry
Thanks again for everyone’s review – please see my responses below





“tried a different major version of Java?  Earlier than 11, vendor other than 
Amazon (Corretto)?”



Our customer has dictated Java 11, and there were problems using the 
combination of Oracle Java 11 and jakarta/jaxws





“Have you tried a major version of TC earlier than 10.0.23?  Are you using any 
"native" components?”



Have not tried earlier Tomcat, and how would we determine whether we are using 
any "native" components ?





“Could there be an overly restrictive Windows access rights issue ?”



We’ve tried configuring Windows Services to start Tomcat using the most 
privileged Windows account, with the same results





“Is this a VM/EC2 instance or a Docker image?”



Don’t know, is some kind of VM, perhaps the systeminfo output below would 
answer those questions





“path variable?”



Tomcat is only failing when started as a Windows Service, succeeding when 
started from the Windows command line – seems like the PATH value should be the 
same for both (but maybe not)



The ...\apache-tomcat-10.0.23\bin\service.bat script to install Tomcat as a 
Windows Service does not configure the PATH variable, and the Windows Services 
UI tabs do not show the PATH value



How can one determine the effective PATH value used by Window Service startup ?





Thank you again for your attention to this issue







systeminfo:



Host Name: NDC-LOG-WMS-D01

OS Name:   Microsoft Windows Server 2019 Standard

OS Version:10.0.17763 N/A Build 17763

OS Manufacturer:   Microsoft Corporation

OS Configuration:  Member Server

OS Build Type: Multiprocessor Free

Registered Owner:  Windows User

Registered Organization:

Product ID:00429-7-0-AA946

Original Install Date: 5/2/2019, 3:40:46 PM

System Boot Time:  9/21/2022, 10:37:34 PM

System Manufacturer:   VMware, Inc.

System Model:  VMware7,1

System Type:   x64-based PC

Processor(s):  1 Processor(s) Installed.

   [01]: Intel64 Family 6 Model 63 Stepping 2 
GenuineIntel ~1796 Mhz

BIOS Version:  VMware, Inc. VMW71.00V.13989454.B64.1906190538, 
6/19/2019

Windows Directory: C:\Windows

System Directory:  C:\Windows\system32

Boot Device:   \Device\HarddiskVolume2

System Locale: en-us;English (United States)

Input Locale:  en-us;English (United States)

Time Zone: (UTC-06:00) Central Time (US & Canada)

Total Physical Memory: 8,191 MB

Available Physical Memory: 4,315 MB

Virtual Memory: Max Size:  9,471 MB

Virtual Memory: Available: 5,686 MB

Virtual Memory: In Use:3,785 MB

Page File Location(s): C:\pagefile.sys

Domain:xxx.org

Logon Server:  \\NDC-ITM-WDC-P01

Hotfix(s): 13 Hotfix(s) Installed.

   [01]: KB5013641

   [02]: KB4470788

   [03]: KB4480056

   [04]: KB4493510

   [05]: KB4509095

   [06]: KB4535680

   [07]: KB5005112

   [08]: KB5012170

   [09]: KB5017315

   [10]: KB5012675

   [11]: KB5014031

   [12]: KB5014797

   [13]: KB5015896

Network Card(s):   1 NIC(s) Installed.

   [01]: vmxnet3 Ethernet Adapter

 Connection Name: Ethernet0 2

 DHCP Enabled:No

 IP address(es)

 [01]: 10.8.152.76

 [02]: fe80::654a:bb1c:688b:acd0

Hyper-V Requirements:  A hypervisor has been detected. Features required 
for Hyper-V will not be displayed.





-Original Message-
From: Thomas Hoffmann (Speed4Trade GmbH) 

Sent: Thursday, September 22, 2022 8:14 AM
To: Tomcat Users List 
Subject: AW: which missing file prevents tomcat 10 from starting as windows 
service ?



WARNING: This email originated outside of the company. DO NOT CLICK links or 
attachments or enter any information into forms unless you trust the sender and 
know the content is safe.











Short note from my side:

WinsxS is the cache for windows updates.

You should not copy from that location and also don't mess around with windows 
internal folders 



Von: Berneburg, Cris J. - US 
mailto:cberneb...@caci.com.INVALID>>

Gesendet: Donnerstag, 22. September 2022 14:38:35

An: Tomcat Users List

Betreff: RE: which missing file prevents tomcat 10 from starting as windows 
service ?



Hi Again Larry



So

AW: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Thomas Hoffmann (Speed4Trade GmbH)
Short note from my side:
WinsxS is the cache for windows updates.
You should not copy from that location and also don't mess around with windows 
internal folders 

Von: Berneburg, Cris J. - US 
Gesendet: Donnerstag, 22. September 2022 14:38:35
An: Tomcat Users List
Betreff: RE: which missing file prevents tomcat 10 from starting as windows 
service ?

Hi Again Larry

Sorry, more guesswork on my part.

> This file does seem to exist:
> c:\Windows\WinSxS\amd64_microsoft-windows-wid-x86_31bf3856ad364e35_10.0.17763.1_none_a9a257b2f2875ecb\msvcr100.dll

OT: That seems like a strange location.  Is that the Windows startup cache?  
The file might not be needed anyway.

> "1:39:55.5108687 
> PM","Tomcat10.exe","12464","DeviceIoControl","C:\Windows\System32\advapi32.dll","NOT
>  FOUND","Control: 0x8696c (Device:0x8 Function:2651 Method: 0)"

1. Like Thomas Hoffmann asked, what's Tomcat's effective PATH variable set to?

If we can't determine what the issue is, perhaps we can figure out what it's 
not.  :-)  IOW, is this a platform, Windows, Java, or Tomcat issue?

2. In case I missed it, have you tried a different major version of Java?  
Earlier than 11, vendor other than Amazon (Corretto)?

3. Have you tried a major version of TC earlier than 10.0.23?  Are you using 
any "native" components?

4. Could there be an overly restrictive Windows access rights issue?

5. Is this a VM/EC2 instance or a Docker image?  I'm wondering if there's 
something wonky in the way the computer was configured.

Again, apologies, as I am not an expert and can only ask generic diagnostic 
questions.

- Cris B.

-

From: Heidt, Larry 
Sent: Wednesday, September 21, 2022 6:11 PM
To: Tomcat Users List 
Subject: RE: which missing file prevents tomcat 10 from starting as windows 
service ?

Thanks to everyone who read my initial message, and especially to Thomas, Cris, 
and Chuck for their responses

Please see the current issue below


Thomas,

“Does calling java.exe succeed?”

The following commons_daemon logging indicates no – is there something else to 
check ?

[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] CreateJavaVM Failed 
with error [-1]
[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] The system cannot find 
the file specified.


“use procmon to figure out which file is missing”

Your excellent ProcMon suggestion (never had used, will again) has enabled me 
to get past this first issue – please see the work-around below


Cris,

“Does the Windows Event Viewer provide any insight into the service failing?”

Only that “The system cannot open the file”, but thanks for the suggestion

“due to a missing msvcr100.dll?”

This file does seem to exist:

c:\Windows\WinSxS\amd64_microsoft-windows-wid-x86_31bf3856ad364e35_10.0.17763.1_none_a9a257b2f2875ecb\msvcr100.dll
c:\Windows\WinSxS\amd64_microsoft-windows-wid_31bf3856ad364e35_10.0.17763.1_none_9870f12fb40ec83a\msvcr100.dll


Chuck,

“JVM options include “exit” and “abort”, which seems rather odd. The JVM may be 
looking for files with those names.”

Thanks, however ProcMon doesn’t show the JVM looking for files with those names 
(also, those options are defined by Tomcat 10)


work-around for “system cannot find the file specified”

Copied several .dll files (identified as “not found” by ProcMon) from 
C:\Windows\System32 to …\apache-tomcat-10.0.23\bin


Current issue:

commons_daemon logging no longer indicates "The system cannot find the file 
specified", however still shows the following errors:

[2022-09-21 13:57:40] [debug] ( javajni.c:419 ) [  184] JNI_GetCreatedJavaVMs...
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[3] 
-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[4] 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[5] 
-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[6]  
-Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[7] 
--add-opens=java.base/java.lang=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[8] 
--add-opens=java.base/java.io=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Opti

RE: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Berneburg, Cris J. - US
Hi Again Larry

Sorry, more guesswork on my part.

> This file does seem to exist:
> c:\Windows\WinSxS\amd64_microsoft-windows-wid-x86_31bf3856ad364e35_10.0.17763.1_none_a9a257b2f2875ecb\msvcr100.dll

OT: That seems like a strange location.  Is that the Windows startup cache?  
The file might not be needed anyway.

> "1:39:55.5108687 
> PM","Tomcat10.exe","12464","DeviceIoControl","C:\Windows\System32\advapi32.dll","NOT
>  FOUND","Control: 0x8696c (Device:0x8 Function:2651 Method: 0)"

1. Like Thomas Hoffmann asked, what's Tomcat's effective PATH variable set to?

If we can't determine what the issue is, perhaps we can figure out what it's 
not.  :-)  IOW, is this a platform, Windows, Java, or Tomcat issue?

2. In case I missed it, have you tried a different major version of Java?  
Earlier than 11, vendor other than Amazon (Corretto)?

3. Have you tried a major version of TC earlier than 10.0.23?  Are you using 
any "native" components?

4. Could there be an overly restrictive Windows access rights issue?

5. Is this a VM/EC2 instance or a Docker image?  I'm wondering if there's 
something wonky in the way the computer was configured.

Again, apologies, as I am not an expert and can only ask generic diagnostic 
questions.

- Cris B.

-

From: Heidt, Larry  
Sent: Wednesday, September 21, 2022 6:11 PM
To: Tomcat Users List 
Subject: RE: which missing file prevents tomcat 10 from starting as windows 
service ?

Thanks to everyone who read my initial message, and especially to Thomas, Cris, 
and Chuck for their responses

Please see the current issue below


Thomas, 

“Does calling java.exe succeed?”

The following commons_daemon logging indicates no – is there something else to 
check ?

[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] CreateJavaVM Failed 
with error [-1]
[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] The system cannot find 
the file specified.


“use procmon to figure out which file is missing”

Your excellent ProcMon suggestion (never had used, will again) has enabled me 
to get past this first issue – please see the work-around below


Cris, 

“Does the Windows Event Viewer provide any insight into the service failing?”

Only that “The system cannot open the file”, but thanks for the suggestion

“due to a missing msvcr100.dll?”

This file does seem to exist:

c:\Windows\WinSxS\amd64_microsoft-windows-wid-x86_31bf3856ad364e35_10.0.17763.1_none_a9a257b2f2875ecb\msvcr100.dll
c:\Windows\WinSxS\amd64_microsoft-windows-wid_31bf3856ad364e35_10.0.17763.1_none_9870f12fb40ec83a\msvcr100.dll


Chuck,

“JVM options include “exit” and “abort”, which seems rather odd. The JVM may be 
looking for files with those names.”

Thanks, however ProcMon doesn’t show the JVM looking for files with those names 
(also, those options are defined by Tomcat 10)


work-around for “system cannot find the file specified” 

Copied several .dll files (identified as “not found” by ProcMon) from 
C:\Windows\System32 to …\apache-tomcat-10.0.23\bin


Current issue:

commons_daemon logging no longer indicates "The system cannot find the file 
specified", however still shows the following errors:

[2022-09-21 13:57:40] [debug] ( javajni.c:419 ) [  184] JNI_GetCreatedJavaVMs...
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[3] 
-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[4] 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[5] 
-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[6]  
-Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[7] 
--add-opens=java.base/java.lang=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[8] 
--add-opens=java.base/java.io=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[9] 
--add-opens=java.base/java.util=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[10] 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[11] 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[12] 
-Djava.

AW: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-22 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello,
DLL files from windows/system32 are usually in the search path and don't need 
to be copied.
Could you check your path variable?

Hint: Not every "not found" indicates an error, especially in registry.

Greetings, Thomas

Von: Heidt, Larry 
Gesendet: Donnerstag, 22. September 2022 00:11:20
An: Tomcat Users List
Betreff: RE: which missing file prevents tomcat 10 from starting as windows 
service ?


Thanks to everyone who read my initial message, and especially to Thomas, Cris, 
and Chuck for their responses



Please see the current issue below





Thomas,



“Does calling java.exe succeed?”



The following commons_daemon logging indicates no – is there something else to 
check ?



[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] CreateJavaVM Failed 
with error [-1]

[2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] The system cannot find 
the file specified.





“use procmon to figure out which file is missing”



Your excellent ProcMon suggestion (never had used, will again) has enabled me 
to get past this first issue – please see the work-around below




Cris,

“Does the Windows Event Viewer provide any insight into the service failing?”

Only that “The system cannot open the file”, but thanks for the suggestion

“due to a missing msvcr100.dll?”

This file does seem to exist:

c:\Windows\WinSxS\amd64_microsoft-windows-wid-x86_31bf3856ad364e35_10.0.17763.1_none_a9a257b2f2875ecb\msvcr100.dll
c:\Windows\WinSxS\amd64_microsoft-windows-wid_31bf3856ad364e35_10.0.17763.1_none_9870f12fb40ec83a\msvcr100.dll


Chuck,

“JVM options include “exit” and “abort”, which seems rather odd. The JVM may be 
looking for files with those names.”

Thanks, however ProcMon doesn’t show the JVM looking for files with those names 
(also, those options are defined by Tomcat 10)



work-around for “system cannot find the file specified”



Copied several .dll files (identified as “not found” by ProcMon) from 
C:\Windows\System32 to …\apache-tomcat-10.0.23\bin





Current issue:



commons_daemon logging no longer indicates "The system cannot find the file 
specified", however still shows the following errors:



[2022-09-21 13:57:40] [debug] ( javajni.c:419 ) [  184] JNI_GetCreatedJavaVMs...

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[3] 
-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[4] 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[5] 
-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[6]  
-Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[7] 
--add-opens=java.base/java.lang=ALL-UNNAMED

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[8] 
--add-opens=java.base/java.io=ALL-UNNAMED

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[9] 
--add-opens=java.base/java.util=ALL-UNNAMED

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[10] 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[11] 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[12] 
-Djava.class.path=c:\Dematic\apache-tomcat-10.0.23\bin\bootstrap.jar;c:\Dematic\apache-tomcat-10.0.23\bin\tomcat-juli.jar

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[13] exit

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[14] abort

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[15] -Xms128m

[2022-09-21 13:57:40] [debug] ( javajni.c:817 ) [11468] JVM Option[16] -Xmx256m

[2022-09-21 13:57:40] [error] ( javajni.c:828 ) [11468] CreateJavaVM Failed 
with error [-1]

[2022-09-21 13:57:40] [debug] ( javajni.c:1087) [11468] Java worker thread 
finished : with status = 2

[2022-09-21 13:57:40] [error] ( prunsrv.c:1483) [  184] Failed to start Java

[2022-09-21 13:57:40] [error] ( prunsrv.c:1840) [  184] ServiceStart returned 4.

[2022-09-21 13:57:40] [debug] ( prunsrv.c:1123) [  184] reportServiceStatusE: 
dwCurrentState = 1 (SERVICE_STOPPED), dwWin32ExitCode = 1066, dwWaitHint = 0 
milliseconds, dwServiceSpecificExitCode = 4.





Does anyone know what a Tomcat exitCode of 4 means ?



The listing below is current

Re: [OT] which missing file prevents tomcat 10 from starting as windows service ?

2022-09-21 Thread Christopher Schultz

Chuck lives!

On 9/21/22 08:58, Chuck Caldarale wrote:

[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[12] 
-Djava.class.path=c:\Dematic\apache-tomcat-10.0.23\bin\bootstrap.jar;c:\Dematic\apache-tomcat-10.0.23\bin\tomcat-juli.jar
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[13] exit
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[14] abort
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[15] -Xms128m
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[16] -Xmx256m



The above JVM options include “exit” and “abort”, which seems rather odd. The 
JVM may be looking for files with those names.

   - Chuck


-
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: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-21 Thread Chuck Caldarale
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[12] 
> -Djava.class.path=c:\Dematic\apache-tomcat-10.0.23\bin\bootstrap.jar;c:\Dematic\apache-tomcat-10.0.23\bin\tomcat-juli.jar
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[13] exit
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[14] abort
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[15] 
> -Xms128m
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[16] 
> -Xmx256m


The above JVM options include “exit” and “abort”, which seems rather odd. The 
JVM may be looking for files with those names.

  - Chuck


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



RE: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-21 Thread Berneburg, Cris J. - US
Hi Larry

Some general guessing questions:

1. Does the Windows Event Viewer provide any insight into the service failing?

2. Is this possibly one of those issues due to a missing msvcr100.dll?

- Cris B.

-Original Message-
From: Heidt, Larry 
Sent: Monday, September 19, 2022 5:15 PM
To: users@tomcat.apache.org
Subject: which missing file prevents tomcat 10 from starting as windows service 
?

EXTERNAL EMAIL - This email originated from outside of CACI. Do not click any 
links or attachments unless you recognize and trust the sender.





The "...\apache-tomcat-10.0.23\bin\service.bat install" command succeeds, 
however starting Tomcat from Windows Services fails, with the commons_daemon 
logging below indicating "The system cannot find the file specified."

Notes:


  1.  All files/folders referenced in the logging below exist, except the 
"endorsed" subfolder specified in the following:   
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'


  1.  Adding "--JavaHome "C:\Dematic\Programs\AmazonCorretto\jdk11" to the 
"service.bat install" command line does not eliminate the "'(null)'" below, and 
the service fails with the same error


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'"


  1.  Starting Tomcat10.exe in console mode fails with the same error and very 
similar logging, except mainly for the following:


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home 
'C:\Dematic\Programs\AmazonCorretto\jdk11'"


  1.  The exact Java version used is 11.0.16.8.1


Is there any way to determine exactly which file cannot be found ?

Are there one or more likely culprits for the file which cannot be found ?

Thank you in advance for any assistance.


commons_daemon.-mm-dd.log:

[2022-09-19 13:09:06] [debug] ( prunsrv.c:1994) [11004] Apache Commons Daemon 
procrun log initialized.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:2002) [11004] Apache Commons Daemon 
procrun (1.3.1.0 64-bit) started.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1906) [11004] Running Service 
'Tomcat10'...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1677) [10552] Inside serviceMain()...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1123) [10552] reportServiceStatusE: 
dwCurrentState = 2 (SERVICE_START_PENDING), dwWin32ExitCode = 0, dwWaitHint = 
3000 milliseconds, dwServiceSpecificExitCode = 0.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1422) [10552] Starting service...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:497 ) [10552] Checking Java options 
for environment variable requirements
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for ' -Dirista.log.dir=C:\Dematic\Foundation\Source\log 
-DSERVER_ID=Enterprise'
[2022-09-19 13:09:06] [debug] ( javajni.c:216 ) [10552] Explicit RuntimeLib 
specified 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:280 ) [10552] Adding Java bin path to 
the PATH to fix loading of awt.dll: 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin'
[2022-09-19 13:09:06] [debug] ( javajni.c:286 ) [10552] Loading JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:414 ) [10552] Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'.
[2022-09-19 13:09:06] [debug] ( javajni.c:419 ) [10552] JNI_GetCreatedJavaVMs...
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 76

AW: which missing file prevents tomcat 10 from starting as windows service ?

2022-09-19 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello,

> -Ursprüngliche Nachricht-
> Von: Heidt, Larry 
> Gesendet: Montag, 19. September 2022 23:15
> An: users@tomcat.apache.org
> Betreff: which missing file prevents tomcat 10 from starting as windows
> service ?
> 
> The "...\apache-tomcat-10.0.23\bin\service.bat install" command succeeds,
> however starting Tomcat from Windows Services fails, with the
> commons_daemon logging below indicating "The system cannot find the file
> specified."
> 
> Notes:
> 
> 
>   1.  All files/folders referenced in the logging below exist, except the
> "endorsed" subfolder specified in the following:   '-
> Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
> 
> 
>   1.  Adding "--JavaHome "C:\Dematic\Programs\AmazonCorretto\jdk11" to
> the "service.bat install" command line does not eliminate the "'(null)'" 
> below,
> and the service fails with the same error
> 
> 
>   *   "Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> '(null)'"
> 
> 
>   1.  Starting Tomcat10.exe in console mode fails with the same error and
> very similar logging, except mainly for the following:
> 
> 
>   *   "Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> 'C:\Dematic\Programs\AmazonCorretto\jdk11'"
> 
> 
>   1.  The exact Java version used is 11.0.16.8.1
> 
> 
> Is there any way to determine exactly which file cannot be found ?
> 
> Are there one or more likely culprits for the file which cannot be found ?
> 
> Thank you in advance for any assistance.
> 
> 
> commons_daemon.-mm-dd.log:
> 
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1994) [11004] Apache Commons
> Daemon procrun log initialized.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:2002) [11004] Apache Commons
> Daemon procrun (1.3.1.0 64-bit) started.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:1906) [11004] Running Service
> 'Tomcat10'...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1677) [10552] Inside
> serviceMain()...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1123) [10552]
> reportServiceStatusE: dwCurrentState = 2 (SERVICE_START_PENDING),
> dwWin32ExitCode = 0, dwWaitHint = 3000 milliseconds,
> dwServiceSpecificExitCode = 0.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:1422) [10552] Starting service...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:497 ) [10552] Checking Java
> options for environment variable requirements
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-Dcatalina.base=c:\Dematic\apache-
> tomcat-10.0.23'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.util.logging.config.file=c:\Dematic\apache-tomcat-
> 10.0.23\conf\logging.properties'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for ' -
> Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise'
> [2022-09-19 13:09:06] [debug] ( javajni.c:216 ) [10552] Explicit RuntimeLib
> specified 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
> [2022-09-19 13:09:06] [debug] ( javajni.c:280 ) [10552] Adding Java bin path
> to the PATH to fix loading of awt.dll:
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin'
> [2022-09-19 13:09:06] [debug] ( javajni.c:286 ) [10552] Loading JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
> [2022-09-19 13:09:06] [debug] ( javajni.c:414 ) [10552] Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> '(null)'.
> [2022-09-19 13:09:06] [debug] ( javajni.c:419 ) [10552]
> JNI_GetCreatedJavaVMs...
> [2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[0] -
> Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
> [2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[1] -
> Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
> [2022-09-19 13:09:07] 

which missing file prevents tomcat 10 from starting as windows service ?

2022-09-19 Thread Heidt, Larry
The "...\apache-tomcat-10.0.23\bin\service.bat install" command succeeds, 
however starting Tomcat from Windows Services fails, with the commons_daemon 
logging below indicating "The system cannot find the file specified."

Notes:


  1.  All files/folders referenced in the logging below exist, except the 
"endorsed" subfolder specified in the following:   
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'


  1.  Adding "--JavaHome "C:\Dematic\Programs\AmazonCorretto\jdk11" to the 
"service.bat install" command line does not eliminate the "'(null)'" below, and 
the service fails with the same error


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'"


  1.  Starting Tomcat10.exe in console mode fails with the same error and very 
similar logging, except mainly for the following:


  *   "Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home 
'C:\Dematic\Programs\AmazonCorretto\jdk11'"


  1.  The exact Java version used is 11.0.16.8.1


Is there any way to determine exactly which file cannot be found ?

Are there one or more likely culprits for the file which cannot be found ?

Thank you in advance for any assistance.


commons_daemon.-mm-dd.log:

[2022-09-19 13:09:06] [debug] ( prunsrv.c:1994) [11004] Apache Commons Daemon 
procrun log initialized.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:2002) [11004] Apache Commons Daemon 
procrun (1.3.1.0 64-bit) started.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1906) [11004] Running Service 
'Tomcat10'...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1677) [10552] Inside serviceMain()...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:1123) [10552] reportServiceStatusE: 
dwCurrentState = 2 (SERVICE_START_PENDING), dwWin32ExitCode = 0, dwWaitHint = 
3000 milliseconds, dwServiceSpecificExitCode = 0.
[2022-09-19 13:09:06] [info]  ( prunsrv.c:1422) [10552] Starting service...
[2022-09-19 13:09:06] [debug] ( prunsrv.c:497 ) [10552] Checking Java options 
for environment variable requirements
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for '-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for 
'-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties'
[2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking environment 
variable requirements for ' -Dirista.log.dir=C:\Dematic\Foundation\Source\log 
-DSERVER_ID=Enterprise'
[2022-09-19 13:09:06] [debug] ( javajni.c:216 ) [10552] Explicit RuntimeLib 
specified 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:280 ) [10552] Adding Java bin path to 
the PATH to fix loading of awt.dll: 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin'
[2022-09-19 13:09:06] [debug] ( javajni.c:286 ) [10552] Loading JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
[2022-09-19 13:09:06] [debug] ( javajni.c:414 ) [10552] Loaded JVM DLL 
'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home '(null)'.
[2022-09-19 13:09:06] [debug] ( javajni.c:419 ) [10552] JNI_GetCreatedJavaVMs...
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[0] 
-Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[1] 
-Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[2] 
-Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[3] 
-Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[4] 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[5] 
-Djava.util.logging.config.file=c:\Dematic\apache-tomcat-10.0.23\conf\logging.properties
[2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[6]  
-Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise
[2022-09-19 13:09:07] [debug] ( javajni.c

Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-30 Thread Christopher Schultz

Piyush,

On 8/24/21 23:47, Piyush Sharma wrote:

On Mon, Aug 23, 2021 at 8:29 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:


Piyush,

On 8/22/21 03:54, Piyush Sharma wrote:

On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:


Piyush,

On 8/20/21 06:36, Piyush Sharma wrote:


Hello,

I am using Apache Tomcat 9.0.46 version on docker container.

There is a problem, where the base path was wrongly set by automation
script due to which it starts for few seconds, listen port 8080 and

then

stop, due to that container exit after sometime.



Now how can we debug such issue, which shows any error / problem in

tomcat

configuration.

I tried with "jpda start" or "debug" options, but that didn't help me.

Is

there any option to debug tomcat related issues or problems.

"catalina.sh configtest" will show any error in xml or properties but

will

not help to debug tomcat startup problem.

*Note:* I am just deploying with the helloworld war file. nothing much

in

code as of now.


Maybe just fix your automation script to use the right path?

It's hard to understand what the problem is given the information you
have presented.

-chris



Thanks Chris

I have removed automation and harded everything and created a new docker
image.
Now when I try to start the container, it starts for a few seconds and
stops (port 8080 listens for a while). Nothing in logs.

$ catalina.sh run  (tried with "jpda start" or "debug" options as well)
$ ps aux |grep java --> show the process for few seconds
$ netstat -ntpl |grep 8080 --> shows the port for few seconds

I am wondering if I can debug such issues, when it starts for a few

seconds

and then stops. Is there any memory , config file or any other issues?

Any debug option whether tomcat


What do the logs say?

-chris




Hello Chris,

After starting the container in debug mode, I noticed Exit Code 137 which
seems to be OOM (out of memory) issue. Due to which container exit /
terminate.

Is there any other reason for Exit Code 137 ? as I am just starting hello
world application and given 2 GB RAM.


What do the logs say?

-chris

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



Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-24 Thread Piyush Sharma
On Mon, Aug 23, 2021 at 8:29 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Piyush,
>
> On 8/22/21 03:54, Piyush Sharma wrote:
> > On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> >> Piyush,
> >>
> >> On 8/20/21 06:36, Piyush Sharma wrote:
> 
>  Hello,
> 
>  I am using Apache Tomcat 9.0.46 version on docker container.
> 
>  There is a problem, where the base path was wrongly set by automation
>  script due to which it starts for few seconds, listen port 8080 and
> then
>  stop, due to that container exit after sometime.
> 
> >>>
> >>> Now how can we debug such issue, which shows any error / problem in
> >> tomcat
>  configuration.
> 
>  I tried with "jpda start" or "debug" options, but that didn't help me.
> >> Is
>  there any option to debug tomcat related issues or problems.
> 
>  "catalina.sh configtest" will show any error in xml or properties but
> >> will
>  not help to debug tomcat startup problem.
> 
>  *Note:* I am just deploying with the helloworld war file. nothing much
> >> in
>  code as of now.
> >>
> >> Maybe just fix your automation script to use the right path?
> >>
> >> It's hard to understand what the problem is given the information you
> >> have presented.
> >>
> >> -chris
> >>
> >>
> > Thanks Chris
> >
> > I have removed automation and harded everything and created a new docker
> > image.
> > Now when I try to start the container, it starts for a few seconds and
> > stops (port 8080 listens for a while). Nothing in logs.
> >
> > $ catalina.sh run  (tried with "jpda start" or "debug" options as well)
> > $ ps aux |grep java --> show the process for few seconds
> > $ netstat -ntpl |grep 8080 --> shows the port for few seconds
> >
> > I am wondering if I can debug such issues, when it starts for a few
> seconds
> > and then stops. Is there any memory , config file or any other issues?
> >
> > Any debug option whether tomcat
>
> What do the logs say?
>
> -chris
>
>

Hello Chris,

After starting the container in debug mode, I noticed Exit Code 137 which
seems to be OOM (out of memory) issue. Due to which container exit /
terminate.

Is there any other reason for Exit Code 137 ? as I am just starting hello
world application and given 2 GB RAM.



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

-- 

*Thanks & Regards,*

*Piyush M Sharma*
My Linux Blog 

http://in.linkedin.com/in/linuxboy


Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Piyush Sharma
On Mon, Aug 23, 2021 at 8:29 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Piyush,
>
> On 8/22/21 03:54, Piyush Sharma wrote:
> > On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> >> Piyush,
> >>
> >> On 8/20/21 06:36, Piyush Sharma wrote:
> 
>  Hello,
> 
>  I am using Apache Tomcat 9.0.46 version on docker container.
> 
>  There is a problem, where the base path was wrongly set by automation
>  script due to which it starts for few seconds, listen port 8080 and
> then
>  stop, due to that container exit after sometime.
> 
> >>>
> >>> Now how can we debug such issue, which shows any error / problem in
> >> tomcat
>  configuration.
> 
>  I tried with "jpda start" or "debug" options, but that didn't help me.
> >> Is
>  there any option to debug tomcat related issues or problems.
> 
>  "catalina.sh configtest" will show any error in xml or properties but
> >> will
>  not help to debug tomcat startup problem.
> 
>  *Note:* I am just deploying with the helloworld war file. nothing much
> >> in
>  code as of now.
> >>
> >> Maybe just fix your automation script to use the right path?
> >>
> >> It's hard to understand what the problem is given the information you
> >> have presented.
> >>
> >> -chris
> >>
> >>
> > Thanks Chris
> >
> > I have removed automation and harded everything and created a new docker
> > image.
> > Now when I try to start the container, it starts for a few seconds and
> > stops (port 8080 listens for a while). Nothing in logs.
> >
> > $ catalina.sh run  (tried with "jpda start" or "debug" options as well)
> > $ ps aux |grep java --> show the process for few seconds
> > $ netstat -ntpl |grep 8080 --> shows the port for few seconds
> >
> > I am wondering if I can debug such issues, when it starts for a few
> seconds
> > and then stops. Is there any memory , config file or any other issues?
> >
> > Any debug option whether tomcat
>
> What do the logs say?


-chris

>
>

Nothing in logs, also I noticed that tomcat starts after multiple retries..
Means it starts successfully 1 time out of 5 times.

Also, I have commented 8005 and 8009 ports.

Don't know what is happening.. at least it should print any error or info.

I have even been given 2 GB RAM which is I guess more than enough to start.




Thanks
Piyush


Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Christopher Schultz

Piyush,

On 8/22/21 03:54, Piyush Sharma wrote:

On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:


Piyush,

On 8/20/21 06:36, Piyush Sharma wrote:


Hello,

I am using Apache Tomcat 9.0.46 version on docker container.

There is a problem, where the base path was wrongly set by automation
script due to which it starts for few seconds, listen port 8080 and then
stop, due to that container exit after sometime.



Now how can we debug such issue, which shows any error / problem in

tomcat

configuration.

I tried with "jpda start" or "debug" options, but that didn't help me.

Is

there any option to debug tomcat related issues or problems.

"catalina.sh configtest" will show any error in xml or properties but

will

not help to debug tomcat startup problem.

*Note:* I am just deploying with the helloworld war file. nothing much

in

code as of now.


Maybe just fix your automation script to use the right path?

It's hard to understand what the problem is given the information you
have presented.

-chris



Thanks Chris

I have removed automation and harded everything and created a new docker
image.
Now when I try to start the container, it starts for a few seconds and
stops (port 8080 listens for a while). Nothing in logs.

$ catalina.sh run  (tried with "jpda start" or "debug" options as well)
$ ps aux |grep java --> show the process for few seconds
$ netstat -ntpl |grep 8080 --> shows the port for few seconds

I am wondering if I can debug such issues, when it starts for a few seconds
and then stops. Is there any memory , config file or any other issues?

Any debug option whether tomcat


What do the logs say?

-chris

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



Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-23 Thread Peter Chamberlain
On Sun, 22 Aug 2021 at 08:55, Piyush Sharma  wrote:
>
> On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
> > Piyush,
> >
> > On 8/20/21 06:36, Piyush Sharma wrote:
> > >>
> > >> Hello,
> > >>
> > >> I am using Apache Tomcat 9.0.46 version on docker container.
> > >>
> > >> There is a problem, where the base path was wrongly set by automation
> > >> script due to which it starts for few seconds, listen port 8080 and then
> > >> stop, due to that container exit after sometime.
> > >>
> > >
> > > Now how can we debug such issue, which shows any error / problem in
> > tomcat
> > >> configuration.
> > >>
> > >> I tried with "jpda start" or "debug" options, but that didn't help me.
> > Is
> > >> there any option to debug tomcat related issues or problems.
> > >>
> > >> "catalina.sh configtest" will show any error in xml or properties but
> > will
> > >> not help to debug tomcat startup problem.
> > >>
> > >> *Note:* I am just deploying with the helloworld war file. nothing much
> > in
> > >> code as of now.
> >
> > Maybe just fix your automation script to use the right path?
> >
> > It's hard to understand what the problem is given the information you
> > have presented.
> >
> > -chris
> >
> >
> Thanks Chris
>
> I have removed automation and harded everything and created a new docker
> image.
> Now when I try to start the container, it starts for a few seconds and
> stops (port 8080 listens for a while). Nothing in logs.
>
> $ catalina.sh run  (tried with "jpda start" or "debug" options as well)
> $ ps aux |grep java --> show the process for few seconds
> $ netstat -ntpl |grep 8080 --> shows the port for few seconds
>
> I am wondering if I can debug such issues, when it starts for a few seconds
> and then stops. Is there any memory , config file or any other issues?
>
> Any debug option whether tomcat
>
>
> Thanks
> Piyush

Could it be a clash of port or similar for the shutdown port, or maybe
another port, eg, in server.xml:
Server port="8005"

Best regards, Peter

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



Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-22 Thread Piyush Sharma
On Fri, Aug 20, 2021 at 10:40 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> Piyush,
>
> On 8/20/21 06:36, Piyush Sharma wrote:
> >>
> >> Hello,
> >>
> >> I am using Apache Tomcat 9.0.46 version on docker container.
> >>
> >> There is a problem, where the base path was wrongly set by automation
> >> script due to which it starts for few seconds, listen port 8080 and then
> >> stop, due to that container exit after sometime.
> >>
> >
> > Now how can we debug such issue, which shows any error / problem in
> tomcat
> >> configuration.
> >>
> >> I tried with "jpda start" or "debug" options, but that didn't help me.
> Is
> >> there any option to debug tomcat related issues or problems.
> >>
> >> "catalina.sh configtest" will show any error in xml or properties but
> will
> >> not help to debug tomcat startup problem.
> >>
> >> *Note:* I am just deploying with the helloworld war file. nothing much
> in
> >> code as of now.
>
> Maybe just fix your automation script to use the right path?
>
> It's hard to understand what the problem is given the information you
> have presented.
>
> -chris
>
>
Thanks Chris

I have removed automation and harded everything and created a new docker
image.
Now when I try to start the container, it starts for a few seconds and
stops (port 8080 listens for a while). Nothing in logs.

$ catalina.sh run  (tried with "jpda start" or "debug" options as well)
$ ps aux |grep java --> show the process for few seconds
$ netstat -ntpl |grep 8080 --> shows the port for few seconds

I am wondering if I can debug such issues, when it starts for a few seconds
and then stops. Is there any memory , config file or any other issues?

Any debug option whether tomcat


Thanks
Piyush


Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-20 Thread Christopher Schultz

Piyush,

On 8/20/21 06:36, Piyush Sharma wrote:


Hello,

I am using Apache Tomcat 9.0.46 version on docker container.

There is a problem, where the base path was wrongly set by automation
script due to which it starts for few seconds, listen port 8080 and then
stop, due to that container exit after sometime.



Now how can we debug such issue, which shows any error / problem in tomcat

configuration.

I tried with "jpda start" or "debug" options, but that didn't help me. Is
there any option to debug tomcat related issues or problems.

"catalina.sh configtest" will show any error in xml or properties but will
not help to debug tomcat startup problem.

*Note:* I am just deploying with the helloworld war file. nothing much in
code as of now.


Maybe just fix your automation script to use the right path?

It's hard to understand what the problem is given the information you 
have presented.


-chris

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



Re: Apache Tomcat 9 | Tomcat starting issue

2021-08-20 Thread Piyush Sharma
>
> Hello,
>
> I am using Apache Tomcat 9.0.46 version on docker container.
>
> There is a problem, where the base path was wrongly set by automation
> script due to which it starts for few seconds, listen port 8080 and then
> stop, due to that container exit after sometime.
>

Now how can we debug such issue, which shows any error / problem in tomcat
> configuration.
>
> I tried with "jpda start" or "debug" options, but that didn't help me. Is
> there any option to debug tomcat related issues or problems.
>
> "catalina.sh configtest" will show any error in xml or properties but will
> not help to debug tomcat startup problem.
>
> *Note:* I am just deploying with the helloworld war file. nothing much in
> code as of now.
>
> Thanks
> Piyush
>


Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-17 Thread Kiran Badi
Thanks Jakel for the link and thanks Shawn for reply and some insights.

I did scan some of my application logs and can see some kind of XSS attacks
originating from china/Russia .Most of them were targeted to the database.
Tried to reproduce many of them , they don't yield anything.

I have not yet figured as how they have gained entry to the system.I will
spend some time this weekend to patch the things up and see if I can
investigate this further.



On Thu, May 17, 2018 at 3:11 AM, Jäkel, Guido <g.jae...@dnb.de> wrote:

> Dear Kiran,
>
> there might be many other ways to compromise your server. But I wonder
> about the application you run on you Tomcat and if you know about the
> wide-used exploit in the Java JSF library "Primefaces" (see
> https://www.exploit-db.com/exploits/43733/).
>
> With greetings
>
> Guido
>
> >-Original Message-
> >From: Kiran Badi [mailto:ki...@poonam.org]
> >Sent: Wednesday, May 16, 2018 7:13 PM
> >To: Tomcat Users List <users@tomcat.apache.org>
> >Subject: Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory
> issue .Please mask if
> >
> >Yes tomcat is not starting up. I am also suspecting that EC2 instance was
> >probably compromised. Not sure as how but I see some rogue programs were
> >running under tomcat user. I use putty with private keys to login and
> those
> >keys are not in public view for sure.
> >
>


RE: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-17 Thread Jäkel , Guido
Dear Kiran,

there might be many other ways to compromise your server. But I wonder about 
the application you run on you Tomcat and if you know about the wide-used 
exploit in the Java JSF library "Primefaces" (see 
https://www.exploit-db.com/exploits/43733/).

With greetings

Guido

>-Original Message-
>From: Kiran Badi [mailto:ki...@poonam.org]
>Sent: Wednesday, May 16, 2018 7:13 PM
>To: Tomcat Users List <users@tomcat.apache.org>
>Subject: Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue 
>.Please mask if
>
>Yes tomcat is not starting up. I am also suspecting that EC2 instance was
>probably compromised. Not sure as how but I see some rogue programs were
>running under tomcat user. I use putty with private keys to login and those
>keys are not in public view for sure.
>


Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-16 Thread Shawn Heisey
On 5/16/2018 11:13 AM, Kiran Badi wrote:
> Yes tomcat is not starting up. I am also suspecting that EC2 instance was > 
> probably compromised. Not sure as how but I see some rogue programs
were > running under tomcat user. I use putty with private keys to login
and those > keys are not in public view for sure. > > These program were
talking to some servers based out of China,Russia and > Germany with
tcp,http and stratrum-tcp protocol with jsonp as data exchange > formt.
I am not sure as how they got access to my ec2 instance and got >
themselves installed. > > I did some initial analysis on this one and
have put those files in my g > drive which I have made public. I suspect
either they have used tomcat to > gain access or they might have used
yum updates for getting access to ec2 > instance.
Because the evil software is/was running as the tomcat user, it is
likely that a vulnerability in Tomcat or a vulnerability in the
application(s) you're running in tomcat was the entry point.  Your logs
may provide clues, but it's also possible that information about exactly
how they broke in isn't available.

Information in the jwzckuz.cf file you provided indicates that this is a
crypto-mining program for the monero crypto-currency.  They're using
your system resources to mine currency for themselves.

The Java Hotspot warning you received during startup indicates that Java
was not able to allocate memory from the operating system.

The information in the hotspot error log (near the end, from
/proc/meminfo) says that this machine only has 1GB of total memory, and
that at the time of the crash, 899240KB of that was actively being
used.  There wasn't enough memory for Java to allocate what it was being
asked to allocate.

Depending on how much memory the programs added by the attacker are
using, killing them might allow Tomcat to start up.

Thanks,
Shawn


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



Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue .Please mask if

2018-05-16 Thread Kiran Badi
Yes tomcat is not starting up. I am also suspecting that EC2 instance was
probably compromised. Not sure as how but I see some rogue programs were
running under tomcat user. I use putty with private keys to login and those
keys are not in public view for sure.

These program were talking to some servers based out of China,Russia and
Germany with tcp,http and stratrum-tcp protocol with jsonp as data exchange
formt. I am not sure as how they got access to my ec2 instance and got
themselves installed.

I did some initial analysis on this one and have put those files in my g
drive which I have made public. I suspect either they have used tomcat to
gain access or they might have used yum updates for getting access to ec2
instance.


cronjobs.txt contains information that some programs were running with
tomcat user id.

hs_err_pid23773.log contains pid  details for tomcat event.

jwzckuz.cf  is probably some config file installed by hacker.

rciwd - was actual program which was consuming too much of swap and cpu and
was running as cron job. Not sure as what this is.

script.txt is actual script I extracted from one of the http request by
capturing traffic via wireshark.

files with names 0515 are tcpdump capture on the server taken while
unauthorised programs were running.

172-xx-68-244  is my ec2 instance and 98.122.xx.xx is my ip in the trace.

https://drive.google.com/drive/folders/1K5gfXTEvmuoIynCYtlwmf7DknyGkvhMI?usp=sharing

appreciate if someone from tomcat team take a look at all the files I have
attached in the drive.

Please let me know if more information is needed.













On Wed, May 16, 2018 at 11:09 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Kiran,
>
> On 5/15/18 5:58 PM, Kiran Badi wrote:
> > For some reason my application hosted on ec2 is just not starting
> > up. I know I never had any memory issues in last 1 year or so.
> >
> > I see below trace in catalina.out file. I am not sure if I need to
> > add swap space or file permission is an issue here. Something
> > changed in ec2 that is causing this error.I think they auto updated
> > the tomcat version as well from 7.0.82 to 7.0.85.
> >
> > I seriously need some suggestions. I also need some suggestion as
> > how to prevent bots from trying to access manager app.
> >
> > May 14, 2018 8:44:46 PM org.apache.catalina.realm.LockOutRealm
> > filterLockedAccounts WARNING: An attempt was made to authenticate
> > the locked user "admin"
>
> It sure looks like Tomcat has started, since it is processing
> requests. Are you sure it's not starting?
>
> > java.util.logging.ErrorManager: 4 java.io.FileNotFoundException:
> > /usr/share/tomcat7/logs/catalina.2018-05-15.log (Permission
> > denied) at java.io.FileOutputStream.open0(Native Method)
>
> Obviously this is not memory-related. Did you intend to report this as
> a part of your problem?
> > Java HotSpot(TM) 64-Bit Server VM warning: INFO:
> > os::commit_memory(0x7f48f29d, 65536, 1) failed;
> > error='Cannot allocate memory' (errno=12) # # There is insufficient
> > memory for the Java Runtime Environment to continue. # Native
> > memory allocation (mmap) failed to map 65536 bytes for committing
> > reserved memory. # An error report file with more information is
> > saved as: # /usr/share/tomcat7/hs_err_pid23773.log # # Compiler
> > replay data is saved as:
> >
>
> The Java stack trace might be helpful, as would the native stack trace.
>
> What are your memory-related JVM launch parameters? What JVM are you
> using (version, architecture)?
>
> Odd that allocating 64kib should fail...
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlr8Sa0ACgkQHPApP6U8
> pFiBZg/+JmjmrlDUZuzoleg1ypwrxM51NSCCUPxLCxy/tI2UZF2MgRUwDZU3tdXX
> iHJsfwZ83bCt8m9eFBVy/4jWUQNjlDK+ahDBTOeqJvDkaNtdYLiLRBMqegtXF9JT
> cyt2nQdsetKx+rsI5HGytXBX6OuzJCSAw+bVHzzq2KFiOe4gnyqItsLg8TyXM+50
> giB0WlIBldyqj+kD9S8hRwqTTIXkAg4H+tI8+piBKKAojfLpuZB3qGhXhTncEMBA
> LL8Udbrz08vU3gXMg5U07pUHc/Vkn8U1axgcn4U3lQ0flKHRkBeabp/wVZ6a1Cuj
> a918715HRqZPezqEYoEYJjyUHV13c07T1nKFcLfR97VhFx1WjuTEGuHFriYjsPXN
> Qo0J6ej4+z0JItQVJ3w3qxijU9Vt0kEJq53raeclqNgdxhaVvLDDrPOxwZWvT9vz
> 1FiIyylRTNlC0tEAV3osQ9MFhf4eUgLGPGbEN69U+pEJ4Y2WgTlioKsueVDZcNrs
> czS6x0sR1Rd1waYQbnIXNpzIngQNAsnrw9cX73FSTmRVT3VGNdtlIFYzQ9aIl3UX
> 3cuLlqyumLySIV6BjORu6TgqGefSw+KYOJagTWo6IuExzLeU1vYs4V/ZVGt5qHQO
> kKLJmRaQozQ4u+ajMR9Lp5ESsLtjs+TPWy5tu4cQr6SE9PzL1fo=
> =Bm4c
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue

2018-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Kiran,

On 5/15/18 5:58 PM, Kiran Badi wrote:
> For some reason my application hosted on ec2 is just not starting
> up. I know I never had any memory issues in last 1 year or so.
> 
> I see below trace in catalina.out file. I am not sure if I need to
> add swap space or file permission is an issue here. Something
> changed in ec2 that is causing this error.I think they auto updated
> the tomcat version as well from 7.0.82 to 7.0.85.
> 
> I seriously need some suggestions. I also need some suggestion as
> how to prevent bots from trying to access manager app.
> 
> May 14, 2018 8:44:46 PM org.apache.catalina.realm.LockOutRealm 
> filterLockedAccounts WARNING: An attempt was made to authenticate
> the locked user "admin"

It sure looks like Tomcat has started, since it is processing
requests. Are you sure it's not starting?

> java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: 
> /usr/share/tomcat7/logs/catalina.2018-05-15.log (Permission
> denied) at java.io.FileOutputStream.open0(Native Method)

Obviously this is not memory-related. Did you intend to report this as
a part of your problem?
> Java HotSpot(TM) 64-Bit Server VM warning: INFO: 
> os::commit_memory(0x7f48f29d, 65536, 1) failed;
> error='Cannot allocate memory' (errno=12) # # There is insufficient
> memory for the Java Runtime Environment to continue. # Native
> memory allocation (mmap) failed to map 65536 bytes for committing 
> reserved memory. # An error report file with more information is
> saved as: # /usr/share/tomcat7/hs_err_pid23773.log # # Compiler
> replay data is saved as:
> 

The Java stack trace might be helpful, as would the native stack trace.

What are your memory-related JVM launch parameters? What JVM are you
using (version, architecture)?

Odd that allocating 64kib should fail...

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlr8Sa0ACgkQHPApP6U8
pFiBZg/+JmjmrlDUZuzoleg1ypwrxM51NSCCUPxLCxy/tI2UZF2MgRUwDZU3tdXX
iHJsfwZ83bCt8m9eFBVy/4jWUQNjlDK+ahDBTOeqJvDkaNtdYLiLRBMqegtXF9JT
cyt2nQdsetKx+rsI5HGytXBX6OuzJCSAw+bVHzzq2KFiOe4gnyqItsLg8TyXM+50
giB0WlIBldyqj+kD9S8hRwqTTIXkAg4H+tI8+piBKKAojfLpuZB3qGhXhTncEMBA
LL8Udbrz08vU3gXMg5U07pUHc/Vkn8U1axgcn4U3lQ0flKHRkBeabp/wVZ6a1Cuj
a918715HRqZPezqEYoEYJjyUHV13c07T1nKFcLfR97VhFx1WjuTEGuHFriYjsPXN
Qo0J6ej4+z0JItQVJ3w3qxijU9Vt0kEJq53raeclqNgdxhaVvLDDrPOxwZWvT9vz
1FiIyylRTNlC0tEAV3osQ9MFhf4eUgLGPGbEN69U+pEJ4Y2WgTlioKsueVDZcNrs
czS6x0sR1Rd1waYQbnIXNpzIngQNAsnrw9cX73FSTmRVT3VGNdtlIFYzQ9aIl3UX
3cuLlqyumLySIV6BjORu6TgqGefSw+KYOJagTWo6IuExzLeU1vYs4V/ZVGt5qHQO
kKLJmRaQozQ4u+ajMR9Lp5ESsLtjs+TPWy5tu4cQr6SE9PzL1fo=
=Bm4c
-END PGP SIGNATURE-

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



Amazon EC2 Tomcat 7.0.85 not starting up due to some memory issue

2018-05-15 Thread Kiran Badi
Hi All,

For some reason my application hosted on ec2 is just not starting up. I
know I never had any memory issues in last 1 year or so.

I see below trace in catalina.out file. I am not sure if I need to add swap
space or file permission is an issue here. Something changed in ec2 that is
causing this error.I think they auto updated the tomcat version as well
from 7.0.82 to 7.0.85.

I seriously need some suggestions. I also need some suggestion as how to
prevent bots from trying to access manager app.

May 14, 2018 8:44:46 PM org.apache.catalina.realm.LockOutRealm
filterLockedAccounts
WARNING: An attempt was made to authenticate the locked user "admin"
May 14, 2018 8:44:46 PM org.apache.catalina.realm.LockOutRealm
filterLockedAccounts
WARNING: An attempt was made to authenticate the locked user "admin"
May 14, 2018 8:44:47 PM org.apache.catalina.realm.LockOutRealm
filterLockedAccounts
WARNING: An attempt was made to authenticate the locked user "admin"
May 14, 2018 8:44:47 PM org.apache.catalina.realm.LockOutRealm
filterLockedAccounts
WARNING: An attempt was made to authenticate the locked user "admin"
May 14, 2018 8:44:47 PM org.apache.catalina.realm.LockOutRealm
filterLockedAccounts
WARNING: An attempt was made to authenticate the locked user "admin"
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException:
/usr/share/tomcat7/logs/catalina.2018-05-15.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:498)
at org.apache.juli.FileHandler.publish(FileHandler.java:272)
at java.util.logging.Logger.log(Logger.java:738)
at java.util.logging.Logger.doLog(Logger.java:765)
at java.util.logging.Logger.logp(Logger.java:1042)
at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:185)
at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:151)
at
org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1220)
at
org.apache.catalina.valves.AccessLogValve.rotate(AccessLogValve.java:1015)
at
org.apache.catalina.valves.AccessLogValve.log(AccessLogValve.java:1155)
at
org.apache.catalina.valves.AccessLogValve.log(AccessLogValve.java:991)
at
org.apache.catalina.core.AccessLogAdapter.log(AccessLogAdapter.java:51)
at
org.apache.catalina.core.ContainerBase.logAccess(ContainerBase.java:1386)
at
org.apache.catalina.core.ContainerBase.logAccess(ContainerBase.java:1393)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:490)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
May 15, 2018 12:15:03 AM org.apache.catalina.valves.AccessLogValve open
SEVERE: Failed to open access log file
[/usr/share/tomcat7/logs/localhost_access_log.2018-05-15.txt]
java.io.FileNotFoundException:
/usr/share/tomcat7/logs/localhost_access_log.2018-05-15.txt (Permission
denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at
org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1212)
at
org.apache.catalina.valves.AccessLogValve.rotate(AccessLogValve.java:1015)
at
org.apache.catalina.valves.AccessLogValve.log(AccessLogValve.java:1155)
at
org.apache.catalina.valves.AccessLogValve.log(AccessLogValve.java:991)
at
org.apache.catalina.core.AccessLogAdapter.log(AccessLogAdapter.java:51)
at
org.apache.catalina.core.ContainerBase.logAccess(ContainerBase.java:1386)
at
org.apache.catalina.core.ContainerBase.logAccess(ContainerBase.java:1393)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:490)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Java HotSpot(TM) 64-Bit 

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
>
>
>
>
>
>
>
>
>


Tomcat 7.082 not starting in EC2 after doing yum update

2017-10-26 Thread Kiran Badi
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
)
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
 SEVERE: Catalina.start
 LifecycleException:  Protocol handler initialization failed:
 java.net.SocketException: Address already in use
at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
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
 INFO: Initialization processed in 1081 ms
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory docs
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory docs
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory examples
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory examples
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory ROOT
 Aug 24, 2010 4:06:02 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory ROOT
 Aug 24, 2010 4:06:02 PM org.apache.coyote.http11.Http11Protocol start
 SEVERE: Error starting endpoint
 java.net.BindException: Address already in use null:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
at
 org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
at
 org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
at
 org.apache.catalina.connector.Connector.start(Connector.java:1087)
at
 org.apache.catalina.core.StandardService.start(StandardService.java:534)
at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
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.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365

Re: Tomcat dies after starting

2010-09-02 Thread jan gestre
)
        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
 SEVERE: Catalina.start
 LifecycleException:  Protocol handler initialization failed:
 java.net.SocketException: Address already in use
        at
 org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
        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
 INFO: Initialization processed in 1081 ms
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
 Aug 24, 2010 4:06:01 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDescriptor
 INFO: Deploying configuration descriptor host-manager.xml
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory docs
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory docs
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory examples
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory examples
 Aug 24, 2010 4:06:01 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory ROOT
 Aug 24, 2010 4:06:02 PM org.apache.catalina.startup.HostConfig
 deployDirectory
 INFO: Deploying web application directory ROOT
 Aug 24, 2010 4:06:02 PM org.apache.coyote.http11.Http11Protocol start
 SEVERE: Error starting endpoint
 java.net.BindException: Address already in use null:8080
        at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
        at
 org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:565)
        at
 org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
        at
 org.apache.catalina.connector.Connector.start(Connector.java:1087)
        at
 org.apache.catalina.core.StandardService.start(StandardService.java:534)
        at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        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.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 Caused by: java.net.BindException: Address already in use

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



Tomcat dies after starting

2010-09-01 Thread jan gestre
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



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



Tomcat 5.5.23 keeps starting threads until OS runs out of memory

2009-07-13 Thread Rahman Akhlaqur

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 ) 

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.

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.

Best Regards,
Akik Rahman




-
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.



Tomcat server Not starting when symantec installed!

2009-07-08 Thread Raghu.p

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

-- 
View this message in context: 
http://www.nabble.com/Tomcat-server-Not-starting-when-symantec-installed%21-tp24391352p24391352.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 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.



Tomcat error while starting related to java

2009-03-10 Thread selvajava

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
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.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused

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

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

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

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 org.apache.catalina.core.StandardHost.start(StandardHost.java

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
 org.apache.catalina.core.ContainerBase.start

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

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: Apache Tomcat 6.0.18 Not Starting

2008-12-10 Thread André Warnier

Michael CC wrote:

I am already running Apache Webserver on 8080. I changed the Connector Port
to 8088 in the Server. xml file. When I test the service by calling
http://localhost:8088/ I get the Internet Explorer cannot display the
webpage. 




Maybe another back-reference to
http://marc.info/?l=tomcat-userm=122823060425367w=2
Items #1 and #7 ?
:-)
Just kidding.

Seriously now :
- the first logfile excerpt that you sent looks totally normal, and does 
not look like Tomcat is Not Starting.  It does start, and says so.
- there can be multiple reasons why Internet Explorer would come up with 
this page.  The first one being that this is an internal error page from 
IE, which it displays instead of the page it (maybe) gets from Tomcat. 
It may hide a more significant error page from Tomcat, but which IE in 
its wisdom decides not to show.


Try the following, after you start Tomcat :
- open a Command window
- enter netstat -an | more
Do you see somewhere a line like :
  TCP0.0.0.0:8088   0.0.0.0:0  LISTEN
(the important part is the :8088 and the LISTEN)
?

- then, if the line above is there, enter :
  telnet localhost 8088
does it connect ?
If it does, enter (exactly) :
GET / HTTP/1.1CR
CR
(where CR stands for the Return key)
What is happening ?

Alternatively, if you have Perl installed on that system, enter :
lwp-request -m GET -Sed http://localhost:8088/
it is much more informative.




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



Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Michael CC

I just installed this version on Vista. When I run startup.bat, Tomcat is not
finishing loading. It just hangs there. Here is a copy of my log. Any
suggestions?

Dec 9, 2008 4:46:07 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: c:\Program Files
(x86)\Java\jdk1.6.0_11\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PHP\;C:\ColdFusion8SearchService\k2\_nti40\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files (x86)\CyberLink\Power2Go\;C:\Program Files (x86)\MySQL\MySQL Server
5.0\bin;C:\Program Files (x86)\QuickTime\QTSystem\
Dec 9, 2008 4:46:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8088
Dec 9, 2008 4:46:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1464 ms
Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 9, 2008 4:46:08 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8088
Dec 9, 2008 4:46:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 9, 2008 4:46:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Dec 9, 2008 4:46:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1009 ms
-- 
View this message in context: 
http://www.nabble.com/Apache-Tomcat-6.0.18-Not-Starting-tp20925191p20925191.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Caldarale, Charles R
 From: Michael CC [mailto:[EMAIL PROTECTED]
 Subject: Apache Tomcat 6.0.18 Not Starting

 I just installed this version on Vista. When I run
 startup.bat, Tomcat is not finishing loading.

What makes you think that?  What's shown in your log is exactly what one would 
expect to see.

 Dec 9, 2008 4:46:08 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 1009 ms

The above is normally the last message until an error occurs or a shutdown is 
requested.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Kirk True

Hi Michael,

Michael CC wrote:

I just installed this version on Vista. When I run startup.bat, Tomcat is not
finishing loading. It just hangs there. Here is a copy of my log. Any
suggestions?

Dec 9, 2008 4:46:07 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: c:\Program Files
(x86)\Java\jdk1.6.0_11\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PHP\;C:\ColdFusion8SearchService\k2\_nti40\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files (x86)\CyberLink\Power2Go\;C:\Program Files (x86)\MySQL\MySQL Server
5.0\bin;C:\Program Files (x86)\QuickTime\QTSystem\
Dec 9, 2008 4:46:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8088
Dec 9, 2008 4:46:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1464 ms
Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 9, 2008 4:46:08 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8088
  


Isn't the default port 8080, not 8088? Was this intentional?

Kirk

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



Re: Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Michael CC

I am already running Apache Webserver on 8080. I changed the Connector Port
to 8088 in the Server. xml file. When I test the service by calling
http://localhost:8088/ I get the Internet Explorer cannot display the
webpage. 


Kirk True wrote:
 
 Hi Michael,
 
 Michael CC wrote:
 I just installed this version on Vista. When I run startup.bat, Tomcat is
 not
 finishing loading. It just hangs there. Here is a copy of my log. Any
 suggestions?

 Dec 9, 2008 4:46:07 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: c:\Program Files
 (x86)\Java\jdk1.6.0_11\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\PHP\;C:\ColdFusion8SearchService\k2\_nti40\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
 Files (x86)\CyberLink\Power2Go\;C:\Program Files (x86)\MySQL\MySQL Server
 5.0\bin;C:\Program Files (x86)\QuickTime\QTSystem\
 Dec 9, 2008 4:46:07 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8088
 Dec 9, 2008 4:46:07 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 1464 ms
 Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Dec 9, 2008 4:46:07 PM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
 Dec 9, 2008 4:46:08 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8088
   
 
 Isn't the default port 8080, not 8088? Was this intentional?
 
 Kirk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Apache-Tomcat-6.0.18-Not-Starting-tp20925191p20927375.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Michael CC

Seems odd the way the server.bat file never closed gracefully. When I check
Services in the Windows Task Manager, I don't see any service running. I
tried to run the Service.bat install as well and it gave me a Failed
Installing Tomcat service error. Something is not right here.


Caldarale, Charles R wrote:
 
 From: Michael CC [mailto:[EMAIL PROTECTED]
 Subject: Apache Tomcat 6.0.18 Not Starting

 I just installed this version on Vista. When I run
 startup.bat, Tomcat is not finishing loading.
 
 What makes you think that?  What's shown in your log is exactly what one
 would expect to see.
 
 Dec 9, 2008 4:46:08 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 1009 ms
 
 The above is normally the last message until an error occurs or a shutdown
 is requested.
 
  - 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Apache-Tomcat-6.0.18-Not-Starting-tp20925191p20927489.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Apache Tomcat 6.0.18 Not Starting

2008-12-09 Thread Caldarale, Charles R
 From: Michael CC [mailto:[EMAIL PROTECTED]
 Subject: RE: Apache Tomcat 6.0.18 Not Starting

 Seems odd the way the server.bat file never closed gracefully.

There is no server.bat file; did you mean service.bat or startup.bat?

 When I check Services in the Windows Task Manager, I don't
 see any service running.

The startup.bat script runs Tomcat as a normal program, not a service.

 I tried to run the Service.bat install as well and it gave me
 a Failed Installing Tomcat service error.

You're using Vista - you must run the service.bat script from a command prompt 
that's started via Run as administrator.

As far as port 8088 goes, do you have a firewall that's blocking it?

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Is not starting

2008-09-23 Thread Partha Goswami
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] ServiceStart returned 1
[2008-09-23 21:22:35] [info] Debug service finished.
[2008-09-23 21:22:35] [info] Procrun finished.
[2008-09-23 22:17:36] [info] Procrun (2.0.4.0) started
[2008-09-23 22:17:37] [info] Running Service...
[2008-09-23 22:17:37] [info] Starting service...
[2008-09-23 22:17:37] [174  javajni.c] [error] The specified module could
not be found.
[2008-09-23 22:17:38] [994  prunsrv.c] [error] Failed creating java
C:\Program Files\Java\jre1.6.0_04\bin\client\jvm.dll
[2008-09-23 22:17:38] [1269 prunsrv.c] [error] ServiceStart returned 1
[2008-09-23 22:17:38] [info] Run service finished.
[2008-09-23 22:17:39] [info] Procrun finished.
[2008-09-23 22:48:24] [info] Procrun (2.0.4.0) started
[2008-09-23 22:48:24] [info] Running Service...
[2008-09-23 22:48:27] [info] Starting service...
[2008-09-23 22:48:27] [174  javajni.c

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: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-25 Thread David Delbecq
Did you try adding an |org.apache.catalina.LifecycleListener to the
engine entry? I see there is an event |
org.apache.catalina.Lifecycle.AFTER_START_EVENT that gets called after
the start of component.

En l'instant précis du 01/25/07 08:50, Vlad s'exprimait en ces termes:
 * Andre Prasetya [EMAIL PROTECTED] [Thu, 25 Jan 2007 10:55:51
 +0700]:
 There are many ways
 1. Parse the localhost log cek for startup completed or something like
 that

 Thank you for this idea, it seens this is a way to go!

 2. telnet to your server at tomcat port

 As I said earlier, there is a period when it listens on port, but
 returns http error message about no host found.

 3. try requesting something from your tomcat

 This requires some knoweledge about site structure (and the url to
 peak).. It's not an option for us.

 But checking the logs seems to be a best option, thanks again!


 -- 
 Vlad .


 On 1/25/07, Vlad [EMAIL PROTECTED] wrote:
 
  Hello,
 
  We are planning to use latest Tomcat from 5.x branch on Windows. 
 It's
  started using 'bin/catalina.run bat' (please don't offer to run it 
 as
 a
  service!). Our application requires Tomcat to be often started (and
  stopped) and we wish to enable certain button in the GUI once it's
  started completely.
 
  We have a problem - we can't find a way to reliably determine 
 whether
  it has finished started or not.
  In the middle of startup, it even responds to http requests - but
  returns http error code 400 with error message like
 No Host matches server name 127.0.0.1
 
  What is the recommended way to determine whether Tomcat has finished
  starting up?
 
  Thank you very much for your answers in advance!
 

 -
 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]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-25 Thread Propes, Barry L [GCG-NAOT]
I kind of have that deal here, but that's why we have to rely on the admin.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 1:43 AM
To: Tomcat Users List
Subject: RE: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We have very specific needs and can't run it as a service (user who runs 
it may not have enough permissions to start/stop service)..

--
Vlad .

* Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] [Wed, 24 
Jan 2007 15:01:14 -0500]:
 by the way...why not run it as a service? We do on our Win2K server
 here! We also daily stop it at 5:50 am, and restart it at 5:55 am, 
just
 to kill off any bad threads if there are any. It's rare that there are
 anyway.

 -Original Message-
 From: Vlad [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 24, 2007 1:42 PM
 To: users@tomcat.apache.org
 Subject: how to detect whether Tomcat has finished starting completely
 on Windows?


 Hello,

 We are planning to use latest Tomcat from 5.x branch on Windows. It's
 started using 'bin/catalina.run bat' (please don't offer to run it as 
a
 service!). Our application requires Tomcat to be often started (and
 stopped) and we wish to enable certain button in the GUI once it's
 started completely.

 We have a problem - we can't find a way to reliably determine  whether
 it has finished started or not.
 In the middle of startup, it even responds to http requests - but
 returns http error code 400 with error message like
No Host matches server name 127.0.0.1

 What is the recommended way to determine whether Tomcat has finished
 starting up?

 Thank you very much for your answers in advance!

 --
 Vlad .

 --
 Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
 http://irr.rambler.ru/

 -
 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]




-
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]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Propes, Barry L [GCG-NAOT]
usually just shows a message stating 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

for me. I would guess 5.5 does much the same.
-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's 
started using 'bin/catalina.run bat' (please don't offer to run it as a 
service!). Our application requires Tomcat to be often started (and 
stopped) and we wish to enable certain button in the GUI once it's 
started completely.

We have a problem - we can't find a way to reliably determine  whether 
it has finished started or not.
In the middle of startup, it even responds to http requests - but 
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished 
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/

-
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]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Propes, Barry L [GCG-NAOT]
by the way...why not run it as a service? We do on our Win2K server here! We 
also daily stop it at 5:50 am, and restart it at 5:55 am, just to kill off any 
bad threads if there are any. It's rare that there are anyway.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely on 
Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's 
started using 'bin/catalina.run bat' (please don't offer to run it as a 
service!). Our application requires Tomcat to be often started (and 
stopped) and we wish to enable certain button in the GUI once it's 
started completely.

We have a problem - we can't find a way to reliably determine  whether 
it has finished started or not.
In the middle of startup, it even responds to http requests - but 
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished 
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/

-
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]



RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread DHARNA, AJAY [AG/1000]
If you are using Ant - you can use the waitfor task and try and hit
http://localhost:8080/servlets-examples/servlet/RequestHeaderExample

And check to see if it return a error message.

Ajay


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 24, 2007 2:01 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: how to detect whether Tomcat has finished starting completely
on Windows?


by the way...why not run it as a service? We do on our Win2K server here! We
also daily stop it at 5:50 am, and restart it at 5:55 am, just to kill off
any bad threads if there are any. It's rare that there are anyway.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely on
Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's 
started using 'bin/catalina.run bat' (please don't offer to run it as a 
service!). Our application requires Tomcat to be often started (and 
stopped) and we wish to enable certain button in the GUI once it's 
started completely.

We have a problem - we can't find a way to reliably determine  whether 
it has finished started or not.
In the middle of startup, it even responds to http requests - but 
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished 
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/

-
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]


-
This e-mail message may contain privileged and/or confidential information, and 
is intended to be received only by persons entitled to receive such 
information. If you have received this e-mail in error, please notify the 
sender immediately. Please delete it and all attachments from any servers, hard 
drives or any other media. Other use of this e-mail by you is strictly 
prohibited.


All e-mails and attachments sent and received are subject to monitoring, 
reading and archival by Monsanto. The recipient of this e-mail is solely 
responsible for checking for the presence of Viruses or other Malware. 
Monsanto accepts no liability for any damage caused by any such code 
transmitted by or accompanying this e-mail or any attachment.
-


-
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: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Andre Prasetya

There are many ways
1. Parse the localhost log cek for startup completed or something like that
2. telnet to your server at tomcat port
3. try requesting something from your tomcat


On 1/25/07, Vlad [EMAIL PROTECTED] wrote:


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's
started using 'bin/catalina.run bat' (please don't offer to run it as a
service!). Our application requires Tomcat to be often started (and
stopped) and we wish to enable certain button in the GUI once it's
started completely.

We have a problem - we can't find a way to reliably determine  whether
it has finished started or not.
In the middle of startup, it even responds to http requests - but
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
http://irr.rambler.ru/

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





--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?


RE: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Vlad

Hello,

We have very specific needs and can't run it as a service (user who runs 
it may not have enough permissions to start/stop service)..


--
Vlad .

* Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] [Wed, 24 
Jan 2007 15:01:14 -0500]:

by the way...why not run it as a service? We do on our Win2K server
here! We also daily stop it at 5:50 am, and restart it at 5:55 am, 

just

to kill off any bad threads if there are any. It's rare that there are
anyway.

-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely
on Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's
started using 'bin/catalina.run bat' (please don't offer to run it as 

a

service!). Our application requires Tomcat to be often started (and
stopped) and we wish to enable certain button in the GUI once it's
started completely.

We have a problem - we can't find a way to reliably determine  whether
it has finished started or not.
In the middle of startup, it even responds to http requests - but
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
http://irr.rambler.ru/

-
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]





-
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: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Vlad
* Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] [Wed, 24 
Jan 2007 15:00:08 -0500]:

usually just shows a message stating

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1

for me. I would guess 5.5 does much the same.


Yes, it does., but we need an automatic control of whether it's started 
or not..



-Original Message-
From: Vlad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 1:42 PM
To: users@tomcat.apache.org
Subject: how to detect whether Tomcat has finished starting completely
on Windows?


Hello,

We are planning to use latest Tomcat from 5.x branch on Windows. It's
started using 'bin/catalina.run bat' (please don't offer to run it as 

a

service!). Our application requires Tomcat to be often started (and
stopped) and we wish to enable certain button in the GUI once it's
started completely.

We have a problem - we can't find a way to reliably determine  whether
it has finished started or not.
In the middle of startup, it even responds to http requests - but
returns http error code 400 with error message like
   No Host matches server name 127.0.0.1

What is the recommended way to determine whether Tomcat has finished
starting up?

Thank you very much for your answers in advance!

--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки!
http://irr.rambler.ru/

-
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]



--
Vlad .

--
Рамблер-Объявления - прямой доступ к базе газеты Из Рук в Руки! 
http://irr.rambler.ru/


-
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: how to detect whether Tomcat has finished starting completely on Windows?

2007-01-24 Thread Vlad
* Andre Prasetya [EMAIL PROTECTED] [Thu, 25 Jan 2007 10:55:51 
+0700]:

There are many ways
1. Parse the localhost log cek for startup completed or something like
that


Thank you for this idea, it seens this is a way to go!


2. telnet to your server at tomcat port


As I said earlier, there is a period when it listens on port, but 
returns http error message about no host found.



3. try requesting something from your tomcat


This requires some knoweledge about site structure (and the url to 
peak).. It's not an option for us.


But checking the logs seems to be a best option, thanks again!


--
Vlad .



On 1/25/07, Vlad [EMAIL PROTECTED] wrote:

 Hello,

 We are planning to use latest Tomcat from 5.x branch on Windows. 

It's
 started using 'bin/catalina.run bat' (please don't offer to run it 

as

a
 service!). Our application requires Tomcat to be often started (and
 stopped) and we wish to enable certain button in the GUI once it's
 started completely.

 We have a problem - we can't find a way to reliably determine 

whether

 it has finished started or not.
 In the middle of startup, it even responds to http requests - but
 returns http error code 400 with error message like
No Host matches server name 127.0.0.1

 What is the recommended way to determine whether Tomcat has finished
 starting up?

 Thank you very much for your answers in advance!



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



tomcat 5 not starting

2006-05-25 Thread ahum

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]



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]



error during tomcat startup when starting springframework

2006-05-09 Thread lee hwaying

can some one help please



@4000445f116006a73194
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in ServletContext resource [/WEB-
INF/applicationContext-hibernate.xml]: Initialization of bean failed; nested
exception is java.lang.NoClassDefFoundError: null
@4000445f116006a74134 java.lang.NoClassDefFoundError
@4000445f116006a7451c at
net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
@4000445f116006a7d5a4 at
net.sf.cglib.core.DefaultGeneratorStrategy.generate
(DefaultGeneratorStrategy.java:25)
@4000445f116006a7dd74 at
net.sf.cglib.core.AbstractClassGenerator.create
(AbstractClassGenerator.java:215)
@4000445f116006a7e544 at
net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
@4000445f116006a7ed14 at net.sf.cglib.core.KeyFactory.create
(KeyFactory.java:117)
@4000445f116006a80c54 at net.sf.cglib.core.KeyFactory.create
(KeyFactory.java:108)
@4000445f116006a8103c at net.sf.cglib.core.KeyFactory.create
(KeyFactory.java:104)
@4000445f116006a8180c at
org.hibernate.impl.SessionFactoryImpl.clinit(SessionFactoryImpl.java:321)
@4000445f116006a81fdc at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
@4000445f116006a852a4 at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory
(LocalSessionFactoryBean.java:777)
@4000445f116006a85a74 at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet
(LocalSessionFactoryBean.java:703)
@4000445f116006a8662c at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.in
vokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058)
@4000445f116006a8856c at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cr
eateBean(AbstractAutowireCapableBeanFactory.java:363)
@4000445f116006a89124 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
@4000445f116006a898f4 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:147)
@4000445f116006a8b44c at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstant
iateSingletons(DefaultListableBeanFactory.java:269)
@4000445f116006a8c004 at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:318)
@4000445f116006a8c7d4 at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContex

_
Find just what you are after with the more precise, more powerful new MSN 
Search. http://search.msn.com.my/ Try it now.



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



Re: error during tomcat startup when starting springframework

2006-05-09 Thread Asegid Debebe

Dear All,

Can you please tell me where I can download the JDBC driver for Microsoft
Access 2002/3 databases? I have write a sample Servlet that reads data from
Microsost Access databases, very quickly.

Thanks,

AD


Re: error during tomcat startup when starting springframework

2006-05-09 Thread Konstantin Ignatyev

I used to do it with JDBC-ODBC bridge driver few years ago
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html

Asegid Debebe wrote:

Dear All,

Can you please tell me where I can download the JDBC driver for Microsoft
Access 2002/3 databases? I have write a sample Servlet that reads data from
Microsost Access databases, very quickly.

Thanks,

AD



--
Thanks,

Konstantin

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