See inline below ... On 6/27/2010 5:24 PM, Pid wrote: > On 27/06/2010 22:09, [email protected] wrote: > >> hi, >> >> i already tried this, but here the output: >> >> D:\ttest>set CLASSPATH=%CATALINA_HOME%\bin\tomcat-juli.jar;%CLASSPATH% >> >> D:\ttest>cd bin >> >> D:\ttest\bin>catalina.bat run >> Using CATALINA_BASE: "D:\ttest" >> Using CATALINA_HOME: "D:\ttest" >> Using CATALINA_TMPDIR: "D:\ttest\temp" >> Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_11" >> Using CLASSPATH: "D:\ttest\bin\bootstrap.jar" >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/juli/loggi >> ng/LogFactory >> at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.juli.logging.LogFactory >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> ... 1 more >> Could not find the main class: org.apache.catalina.startup.Bootstrap. >> Program w >> ill exit. >> >> D:\ttest\bin>set >> ... >> CLASSPATH=%CATALINA_HOME%\bin\tomcat-juli.jar;%CLASSPATH% >> ... >> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11 >> ... >> >> > Why are you setting the CLASSPATH variable? Don't do that. > > > p > >
I'm sure on Martin advice (who replied to wrote to Dessi directly, not on the list -- see below). Martin is wrong by the way ... classpath should NEVER be set under any circumstances. Tomcat's own scripts will set it correctly. And the output I see shows it did exactly as expected, ignoring the externally set classpath in favor of it's own. :-) I'm not seeing anything here explicitly wrong except maybe some kind of permissions issue. I think Dessi is right in that this appears to be some kind of domain issue. Process Monitor (I've posted a link earlier) should be able to show where permission was denied. It just takes a little work to weed through it's log file to figure where the problem is. --David >> D:\ttest\bin>set CLASSPATH=D:\ttest\bin\tomcat-juli.jar;%CLASSPATH% >> >> D:\ttest\bin>set >> ... >> CLASSPATH=D:\ttest\bin\tomcat-juli.jar;%CATALINA_HOME%\bin\tomcat-juli.jar;%CLAS >> SPATH% >> ... >> JAVA_HOME=C:\Program Files\Java\jdk1.6.0_11 >> ... >> >> D:\ttest\bin>catalina.bat run >> Using CATALINA_BASE: "D:\ttest" >> Using CATALINA_HOME: "D:\ttest" >> Using CATALINA_TMPDIR: "D:\ttest\temp" >> Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_11" >> Using CLASSPATH: "D:\ttest\bin\bootstrap.jar" >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/juli/loggi >> ng/LogFactory >> at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.juli.logging.LogFactory >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> ... 1 more >> Could not find the main class: org.apache.catalina.startup.Bootstrap. >> Program w >> ill exit. >> >> D:\ttest\bin>dir >> Volume in drive D is DataDrive >> Volume Serial Number is 78F8-015F >> >> Directory of D:\ttest\bin >> >> 06/27/2010 08:41 AM <DIR> . >> 06/27/2010 08:41 AM <DIR> .. >> 06/25/2010 07:54 PM 22,110 bootstrap.jar >> 06/25/2010 07:54 PM 2,374 catalina-tasks.xml >> 06/25/2010 08:27 PM 11,399 catalina.bat >> 06/25/2010 08:14 PM 11,399 catalina.bat.org.txt >> 06/25/2010 07:54 PM 15,582 catalina.sh >> 06/25/2010 07:54 PM 9,341 commons-daemon.jar >> 06/25/2010 07:54 PM 1,342 cpappend.bat >> 06/25/2010 07:54 PM 2,108 digest.bat >> 06/25/2010 07:54 PM 1,624 digest.sh >> 06/25/2010 07:54 PM 74,398 jsvc.tar.gz >> 06/25/2010 06:56 PM 348,160 msvcr71.dll >> 06/25/2010 07:54 PM 5,062 service.bat >> 06/25/2010 07:54 PM 3,150 setclasspath.bat >> 06/25/2010 07:54 PM 4,114 setclasspath.sh >> 06/25/2010 07:54 PM 2,108 shutdown.bat >> 06/25/2010 07:54 PM 1,563 shutdown.sh >> 06/25/2010 07:54 PM 2,109 startup.bat >> 06/25/2010 07:54 PM 1,956 startup.sh >> 06/25/2010 07:54 PM 868,352 tcnative-1.dll >> 06/25/2010 07:54 PM 26,484 tomcat-juli.jar >> 06/25/2010 07:54 PM 241,274 tomcat-native.tar.gz >> 06/25/2010 07:54 PM 61,440 tomcat6.exe >> 06/25/2010 07:54 PM 98,304 tomcat6w.exe >> 06/25/2010 08:36 PM 3,476 tool-wrapper.bat >> 06/25/2010 07:54 PM 3,459 tool-wrapper.sh >> 06/25/2010 07:54 PM 2,113 version.bat >> 06/25/2010 07:54 PM 1,567 version.sh >> 27 File(s) 1,826,368 bytes >> 2 Dir(s) 119,924,555,776 bytes free >> >> D:\ttest\bin> >> >> when using startup.bat this is shown in my command box: >> >> >> D:\ttest\bin>startup.bat >> Using CATALINA_BASE: "D:\ttest" >> Using CATALINA_HOME: "D:\ttest" >> Using CATALINA_TMPDIR: "D:\ttest\temp" >> Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_11" >> Using CLASSPATH: "D:\ttest\bin\bootstrap.jar" >> >> and as written before a second box shortly appear and immediatly disappear. >> i now could catch the error from this box: >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/juli/loggi >> ng/LogFactory >> at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.juli.logging.LogFactory >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> ... 1 more >> Could not find the main class: org.apache.catalina.startup.Bootstrap. >> Program w >> ill exit. >> >> --> same failure >> >> my suggestion is still that there is a domain policy which is causing this, >> but i really have no clue which one could causing this :( >> >> tommorrow i will ask the OS guys if they could disable them... >> >> kind regards, dessi >> >> >> -------- Original-Nachricht -------- >> >>> Datum: Sun, 27 Jun 2010 11:25:08 -0400 >>> Von: Martin Gainty <[email protected]> >>> An: [email protected] >>> Betreff: RE: Unable to start Tomcat 6 on Windows Server 2003 >>> >> >>> put %CATALINA_HOME%\bin\tomcat-juli.jar on CLASSPATH e.g. >>> >>> SET CLASSPATH=%CATALINA_HOME%\bin\tomcat-juli.jar;%CLASSPATH% >>> >>> >>> FYI: if you executed startup<.sh/.bat> as earlier mentioned the CLASSPATH >>> would be automatically configured to include the necessary jars to >>> initialise CATALINA >>> >>> >>> *gruss* >>> >>> Martin >>> ______________________________________________ >>> Verzicht und Vertraulichkeitanmerkung >>> >>> >>> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >>> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte >>> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht >>> dient >>> lediglich dem Austausch von Informationen und entfaltet keine rechtliche >>> Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen >>> wir keine Haftung fuer den Inhalt uebernehmen. >>> >>> >>> >>> >>> >>> >>>> Date: Sun, 27 Jun 2010 08:49:17 +0200 >>>> From: [email protected] >>>> Subject: Re: Unable to start Tomcat 6 on Windows Server 2003 >>>> To: [email protected] >>>> >>>> hi, >>>> >>>> here is the whole output from the command box: >>>> >>>> D:\ttest\bin>dir >>>> Volume in drive D is DataDrive >>>> Volume Serial Number is 78F8-015F >>>> >>>> Directory of D:\ttest\bin >>>> >>>> 06/27/2010 08:41 AM <DIR> . >>>> 06/27/2010 08:41 AM <DIR> .. >>>> 06/25/2010 07:54 PM 22,110 bootstrap.jar >>>> 06/25/2010 07:54 PM 2,374 catalina-tasks.xml >>>> 06/25/2010 08:27 PM 11,399 catalina.bat >>>> 06/25/2010 08:14 PM 11,399 catalina.bat.org.txt >>>> 06/25/2010 07:54 PM 15,582 catalina.sh >>>> 06/25/2010 07:54 PM 9,341 commons-daemon.jar >>>> 06/25/2010 07:54 PM 1,342 cpappend.bat >>>> 06/25/2010 07:54 PM 2,108 digest.bat >>>> 06/25/2010 07:54 PM 1,624 digest.sh >>>> 06/25/2010 07:54 PM 74,398 jsvc.tar.gz >>>> 06/25/2010 06:56 PM 348,160 msvcr71.dll >>>> 06/25/2010 07:54 PM 5,062 service.bat >>>> 06/25/2010 07:54 PM 3,150 setclasspath.bat >>>> 06/25/2010 07:54 PM 4,114 setclasspath.sh >>>> 06/25/2010 07:54 PM 2,108 shutdown.bat >>>> 06/25/2010 07:54 PM 1,563 shutdown.sh >>>> 06/25/2010 07:54 PM 2,109 startup.bat >>>> 06/25/2010 07:54 PM 1,956 startup.sh >>>> 06/25/2010 07:54 PM 868,352 tcnative-1.dll >>>> 06/25/2010 07:54 PM 26,484 tomcat-juli.jar >>>> 06/25/2010 07:54 PM 241,274 tomcat-native.tar.gz >>>> 06/25/2010 07:54 PM 61,440 tomcat6.exe >>>> 06/25/2010 07:54 PM 98,304 tomcat6w.exe >>>> 06/25/2010 08:36 PM 3,476 tool-wrapper.bat >>>> 06/25/2010 07:54 PM 3,459 tool-wrapper.sh >>>> 06/25/2010 07:54 PM 2,113 version.bat >>>> 06/25/2010 07:54 PM 1,567 version.sh >>>> 27 File(s) 1,826,368 bytes >>>> 2 Dir(s) 119,924,559,872 bytes free >>>> >>>> D:\ttest\bin>catalina.bat run >>>> Using CATALINA_BASE: "D:\ttest" >>>> Using CATALINA_HOME: "D:\ttest" >>>> Using CATALINA_TMPDIR: "D:\ttest\temp" >>>> Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_11" >>>> Using CLASSPATH: "D:\ttest\bin\bootstrap.jar" >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> >>> org/apache/juli/loggi >>> >>>> ng/LogFactory >>>> at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54) >>>> Caused by: java.lang.ClassNotFoundException: >>>> >>> org.apache.juli.logging.LogFactory >>> >>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>>> at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >>>> ... 1 more >>>> Could not find the main class: org.apache.catalina.startup.Bootstrap. >>>> >>> Program w >>> >>>> ill exit. >>>> >>>> D:\ttest\bin> >>>> >>>> kind regards, dessi >>>> -- >>>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >>>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> _________________________________________________________________ >>> Hotmail has tools for the New Busy. Search, chat and e-mail from your >>> inbox. >>> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1 >>> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
