Re: Trouble running TC8 trunk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I can't see this message having been posted -- re-posting just in case. Apologies if my client is the problem and this is a double-post. Thanks, - -chris On 11/8/11 5:37 PM, Christopher Schultz wrote: All, With current trunk HEAD and a fresh: $ ant clean clean-depend download-compile deploy When I attempt to start Tomcat, I get this error (this is 100% of my catalina.out): java.lang.NoClassDefFoundError: org/apache/catalina/startup/SetParentClassLoaderRule at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.SetParentClassLoaderRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more That line in Bootstrap.java is creating a new startup.Catalina object which needs it's own inner class SetParentClassLoaderRule. It looks like the JVM is attempting to load the wrong class: it should be loading startup.Catalina$SetParentClassLoaderRule but instead it's trying to load startup.SetParentClassLoaderRule. I'm at a loss, here. JVM info: $ java -version java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) Any ideas? Thanks, -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk66sggACgkQ9CaO5/Lv0PA5wQCeMmhn950Z5m51vSqFHlePb2Vj pU8AoMAd6FP1Od5d0Raijqwx5GTg4pPH =5jis -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble running TC8 trunk
2011/11/9 Christopher Schultz ch...@christopherschultz.net: I can't see this message having been posted -- re-posting just in case. Apologies if my client is the problem and this is a double-post. Already replied 15hr ago. http://tomcat.markmail.org/thread/qkaukjmf2pnuzt62 Do you still have the problem? CC'ing you to be sure of delivery. There are public searchable archives on the web if you are wondering whether the mail reached the list. Maybe there was some trouble at apache.org with delivering users@ emails to your subscription address? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble running TC8 trunk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/8/11 6:32 PM, Konstantin Kolinko wrote: How do you start it? I use a custom ant target to launch catalina.sh. Here is the command line that actually gets run: /usr/bin/java -Dnop -Xmx64M - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - -Djava.endorsed.dirs=/home/cschultz/.../apache-tomcat/trunk/output/build/endorsed - -classpath /home/cschultz/.../apache-tomcat/trunk/output/build/bin/bootstrap.jar:/home/cschultz/.../apache-tomcat/trunk/output/build/bin/tomcat-juli.jar - -Dcatalina.base=/home/cschultz/.../multipart/8275 - -Dcatalina.home=/home/cschultz/.../apache-tomcat/trunk/output/build - -Djava.io.tmpdir=/home/cschultz/.../multipart/8275/temp org.apache.catalina.startup.Bootstrap start Are you in output/build/bin when you are trying to start it? No, I'm on the dev root of my project. Are CATALINA_HOME and CATALINA_BASE have none or valid values when you are running the startup scripts? See above. CATALINA_HOME env var is not set at all -- I was expecting catalina.sh to auto-set that value, which it looks like it is doing correctly. I can confirm that both catalina.base and catalina.home system properties are being properly set. (catalina.sh should print their values when starting). Maybe try good old rm -rf output instead of Ant clean? $ rm -rf output $ ant clean clean-depend download-compile deploy Last time I cleanly recompiled it was yesterday (to confirm brokenness in the manager webapp - see elsethread), and all was fine. I'll add some debug to the scripts, etc. to see if I can figure it out. Thanks - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk66tPsACgkQ9CaO5/Lv0PCvdgCgjlntSz8DS5Zqfo3ixA4dUwzU XoQAnA8qEALuAVkP9ZCDGMiA4Qd57PA7 =lngr -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble running TC8 trunk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 11/9/11 9:14 AM, Christopher Schultz wrote: $ rm -rf output $ ant clean clean-depend download-compile deploy Looks like this has cleared the log-jam. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk66tcAACgkQ9CaO5/Lv0PBY6gCeOummsjpMu559DHqHKlkuwWlR jhgAni1HeR/S3pf0VG95BI7Fk67bo6I1 =YMdH -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Trouble running TC8 trunk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, With current trunk HEAD and a fresh: $ ant clean clean-depend download-compile deploy When I attempt to start Tomcat, I get this error (this is 100% of my catalina.out): java.lang.NoClassDefFoundError: org/apache/catalina/startup/SetParentClassLoaderRule at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.SetParentClassLoaderRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more That line in Bootstrap.java is creating a new startup.Catalina object which needs it's own inner class SetParentClassLoaderRule. It looks like the JVM is attempting to load the wrong class: it should be loading startup.Catalina$SetParentClassLoaderRule but instead it's trying to load startup.SetParentClassLoaderRule. I'm at a loss, here. JVM info: $ java -version java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) Any ideas? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk652TwACgkQ9CaO5/Lv0PC1LgCeOePAnmx3PjNbTaqqHSvy/ATW Ng0AmgLhQQcd4sECYLnz+4EJ8z5PEHkf =epiQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble running TC8 trunk
- Original Message - From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Tuesday, November 8, 2011 5:37 PM Subject: Trouble running TC8 trunk -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, With current trunk HEAD and a fresh: $ ant clean clean-depend download-compile deploy When I attempt to start Tomcat, I get this error (this is 100% of my catalina.out): java.lang.NoClassDefFoundError: org/apache/catalina/startup/SetParentClassLoaderRule at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.SetParentClassLoaderRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more That line in Bootstrap.java is creating a new startup.Catalina object which needs it's own inner class SetParentClassLoaderRule. It looks like the JVM is attempting to load the wrong class: it should be loading startup.Catalina$SetParentClassLoaderRule but instead it's trying to load startup.SetParentClassLoaderRule. I'm at a loss, here. JVM info: $ java -version java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) Any ideas? Thanks, - -chris Chris, This is likely not to be very helpful . . . Revision: 1199595 java version 1.6.0_29 Java(TM) SE Runtime Environment (build 1.6.0_29-b11) Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing) Apache Ant(TM) version 1.8.2 compiled on December 20 2010 Fedora 15, latest patches Modified build.properties from build.properties.default base.path=/home/mdeggers/src/tomcat-src/trunk-repo # skipping windows installer skip.installer=true Commands: ant clean ant release Copied output/release/v8.0.0-dev/bin/apache-tomcat-8.0.0-dev.tar.gz someplace and unpacked it. It started up fine, and I was able to run a few of the test applications. I enabled the GUI manager and that worked as well. I tried ant clean ant deploy and then ran the resulting output/build/bin/startup.sh from output/build/bin. That ran as well. I also ran it successfully as output/build/bin/startup.sh. The only java-related environment variables I have are the following: JRE_HOME=/usr/jre JAVA_HOME=/usr/java ANT_HOME=/usr/local/Apache/ant M2_HOME=/usr/local/Apache/maven MAVEN_OPTS=-Xms128m -Xmx256m I know, a works for me post isn't very helpful. Sorry 'bout that. . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble running TC8 trunk
2011/11/9 Christopher Schultz ch...@christopherschultz.net: \ With current trunk HEAD and a fresh: $ ant clean clean-depend download-compile deploy When I attempt to start Tomcat, I get this error (this is 100% of my catalina.out): java.lang.NoClassDefFoundError: org/apache/catalina/startup/SetParentClassLoaderRule at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.SetParentClassLoaderRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more That line in Bootstrap.java is creating a new startup.Catalina object which needs it's own inner class SetParentClassLoaderRule. It looks like the JVM is attempting to load the wrong class: it should be loading startup.Catalina$SetParentClassLoaderRule but instead it's trying to load startup.SetParentClassLoaderRule. I'm at a loss, here. JVM info: $ java -version java version 1.6.0_26 Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode) Any ideas? How do you start it? Are you in output/build/bin when you are trying to start it? Are CATALINA_HOME and CATALINA_BASE have none or valid values when you are running the startup scripts? (catalina.sh should print their values when starting). Maybe try good old rm -rf output instead of Ant clean? Last time I cleanly recompiled it was yesterday (to confirm brokenness in the manager webapp - see elsethread), and all was fine. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org