[Bug 265604] New: Tomcat5 does not start due to broken symbolic links
https://bugzilla.novell.com/show_bug.cgi?id=265604 Summary: Tomcat5 does not start due to broken symbolic links Product: openSUSE 10.2 Version: Final Platform: 64bit OS/Version: openSUSE 10.2 Status: NEW Severity: Normal Priority: P5 - None Component: Java AssignedTo: dbornkessel@novell.com ReportedBy: mstefan@cs.toronto.edu QAContact: qa@suse.de After installation of SUSE 10.2 provided media, the Tomcat 5 java web server does not start. The contents of /var/log/tomcat5/catalina.out are reproduced below: Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/[jndi].jar' at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957) at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207) at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.jar.JarFile.<init>(JarFile.java:132) at java.util.jar.JarFile.<init>(JarFile.java:70) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944) ... 6 more Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/[jndi].jar' at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957) at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207) at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.jar.JarFile.<init>(JarFile.java:132) at java.util.jar.JarFile.<init>(JarFile.java:70) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944) ... 6 more Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/[jndi].jar' at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957) at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:153) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207) at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:203) at java.util.jar.JarFile.<init>(JarFile.java:132) at java.util.jar.JarFile.<init>(JarFile.java:70) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944) ... 6 more The root cause can be seen by listing the /usr/share/tomcat5/common/lib/ directory: 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 [ant].jar -> /usr/share/java/ant.jar 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 ant.jar -> /usr/share/java/ant.jar 0 lrwxrwxrwx 1 root root 39 2007-04-17 18:25 [commons-collections].jar -> /usr/share/java/commons-collections.jar 0 lrwxrwxrwx 1 root root 39 2007-04-17 18:25 commons-collections.jar -> /usr/share/java/commons-collections.jar 0 lrwxrwxrwx 1 root root 32 2007-04-17 18:25 [commons-dbcp].jar -> /usr/share/java/commons-dbcp.jar 0 lrwxrwxrwx 1 root root 32 2007-04-17 18:25 commons-dbcp.jar -> /usr/share/java/commons-dbcp.jar 0 lrwxrwxrwx 1 root root 30 2007-04-17 18:25 [commons-el].jar -> /usr/share/java/commons-el.jar 0 lrwxrwxrwx 1 root root 30 2007-04-17 18:25 commons-el.jar -> /usr/share/java/commons-el.jar 0 lrwxrwxrwx 1 root root 39 2007-04-17 18:25 [commons-logging-api].jar -> /usr/share/java/commons-logging-api.jar 0 lrwxrwxrwx 1 root root 39 2007-04-17 18:25 commons-logging-api.jar -> /usr/share/java/commons-logging-api.jar 0 lrwxrwxrwx 1 root root 32 2007-04-17 18:25 [commons-pool].jar -> /usr/share/java/commons-pool.jar 0 lrwxrwxrwx 1 root root 32 2007-04-17 18:25 commons-pool.jar -> /usr/share/java/commons-pool.jar 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 [jaf].jar -> /usr/share/java/jaf.jar 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 jaf.jar -> /usr/share/java/jaf.jar 352 -rw-r--r-- 1 root root 354043 2007-03-21 12:36 jasper-compiler.jar 112 -rw-r--r-- 1 root root 106583 2007-03-21 12:36 jasper-runtime.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 [javamail]imap-1.4.jar -> /usr/share/java/javamail/imap-1.4.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 javamailimap-1.4.jar -> /usr/share/java/javamail/imap-1.4.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 [javamail]imap.jar -> /usr/share/java/javamail/imap.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 javamailimap.jar -> /usr/share/java/javamail/imap.jar 0 lrwxrwxrwx 1 root root 40 2007-04-17 18:25 [javamail]mailapi-1.4.jar -> /usr/share/java/javamail/mailapi-1.4.jar 0 lrwxrwxrwx 1 root root 40 2007-04-17 18:25 javamailmailapi-1.4.jar -> /usr/share/java/javamail/mailapi-1.4.jar 0 lrwxrwxrwx 1 root root 36 2007-04-17 18:25 [javamail]mailapi.jar -> /usr/share/java/javamail/mailapi.jar 0 lrwxrwxrwx 1 root root 36 2007-04-17 18:25 javamailmailapi.jar -> /usr/share/java/javamail/mailapi.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 [javamail]pop3-1.4.jar -> /usr/share/java/javamail/pop3-1.4.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 javamailpop3-1.4.jar -> /usr/share/java/javamail/pop3-1.4.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 [javamail]pop3.jar -> /usr/share/java/javamail/pop3.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 javamailpop3.jar -> /usr/share/java/javamail/pop3.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 [javamail]smtp-1.4.jar -> /usr/share/java/javamail/smtp-1.4.jar 0 lrwxrwxrwx 1 root root 37 2007-04-17 18:25 javamailsmtp-1.4.jar -> /usr/share/java/javamail/smtp-1.4.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 [javamail]smtp.jar -> /usr/share/java/javamail/smtp.jar 0 lrwxrwxrwx 1 root root 33 2007-04-17 18:25 javamailsmtp.jar -> /usr/share/java/javamail/smtp.jar 0 lrwxrwxrwx 1 root root 25 2007-04-17 18:25 [jmxri].jar -> /usr/share/java/jmxri.jar 0 lrwxrwxrwx 1 root root 25 2007-04-17 18:25 jmxri.jar -> /usr/share/java/jmxri.jar 0 lrwxrwxrwx 1 root root 38 2007-04-17 18:25 [jndi].jar -> /could/not/find/extension/for/this/jvm 0 lrwxrwxrwx 1 root root 38 2007-04-17 18:25 jndi.jar -> /could/not/find/extension/for/this/jvm 0 lrwxrwxrwx 1 root root 26 2007-04-17 18:25 [jspapi].jar -> /usr/share/java/jspapi.jar 0 lrwxrwxrwx 1 root root 40 2007-04-17 18:25 jsp-api.jar -> /usr/share/tomcat5/common/lib/jspapi.jar 0 lrwxrwxrwx 1 root root 26 2007-04-17 18:25 jspapi.jar -> /usr/share/java/jspapi.jar 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 [jta].jar -> /usr/share/java/jta.jar 0 lrwxrwxrwx 1 root root 23 2007-04-17 18:25 jta.jar -> /usr/share/java/jta.jar 0 lrwxrwxrwx 1 root root 25 2007-04-17 18:25 [log4j].jar -> /usr/share/java/log4j.jar 0 lrwxrwxrwx 1 root root 25 2007-04-17 18:25 log4j.jar -> /usr/share/java/log4j.jar 28 -rw-r--r-- 1 root root 27977 2007-03-21 12:36 naming-common.jar 16 -rw-r--r-- 1 root root 14980 2007-03-21 12:36 naming-factory.jar 4 -rw-r--r-- 1 root root 2063 2007-03-21 12:36 naming-java.jar 44 -rw-r--r-- 1 root root 42355 2007-03-21 12:36 naming-resources.jar 0 lrwxrwxrwx 1 root root 31 2007-04-17 18:25 [servletapi5].jar -> /usr/share/java/servletapi5.jar 0 lrwxrwxrwx 1 root root 31 2007-04-17 18:25 servletapi5.jar -> /usr/share/java/servletapi5.jar 0 lrwxrwxrwx 1 root root 45 2007-04-17 18:25 servlet-api.jar -> /usr/share/tomcat5/common/lib/servletapi5.jar The cause are the broken symlinks for "jndi.jar" and "[jndi].jar" (there are other two broken symblinks in /usr/share/tomcat5/server/lib"). Workaround: ln -s -f /usr/lib/jvm-exports/java/jndi.jar /usr/share/tomcat5/common/lib/jndi.jar ln -s -f /usr/lib/jvm-exports/java/jndi.jar /usr/share/tomcat5/common/lib/[jndi].jar ln -s -f /usr/lib/jvm-exports/java/jaas.jar /usr/share/tomcat5/server/lib/jaas.jar ln -s -f /usr/lib/jvm-exports/java/jaas.jar /usr/share/tomcat5/server/lib/[jaas].jar -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=265604 dbornkessel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mstefan@cs.toronto.edu ------- Comment #1 from dbornkessel@novell.com 2007-04-19 09:17 MST ------- urgs ... sounds bad. I have a suspicion: Could you please provide the output of: java -version and rpm -qa | grep "java-" ? Thanks, Daniel -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=265604 mstefan@cs.toronto.edu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|mstefan@cs.toronto.edu | ------- Comment #2 from mstefan@cs.toronto.edu 2007-04-19 12:03 MST ------- Hi Daniel. Here is the output of "java -version": java version "1.5.0_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed mode) And here is the output of "rpm -qa | grep "java-" java-1_5_0-sun-src-1.5.0_update10-2.1 mysql-connector-java-3.1.12-35 java-1_4_2-gcj-compat-32bit-1.4.2.0-66 java-1_5_0-sun-devel-1.5.0_update10-2.1 java-1_5_0-sun-1.5.0_update10-2.1 One note I would like to make. This is a 64-bit machine, with a freshly installed SUSE Linux 10.2 (installed about 2 weeks ago). All the RPM-s installed are from the SUSE repositories. The only problem I ran into is that I initially installed the 64-bit version of Java. But my development environment (IntelliJ Idea) was crashing with an OutOfMemoryError, so I had to remove the 64-bit JDK and installed the 32-bit version (all done cleanly using YaST of course). This is the only 32-bit item I had to switch back to. I understand that there are still issues with 64-bit JVM-s, so I didn't bother posting this as a bug on SUSEs site. I don't know if any of this is relevant to this bug report, but who knows... Please tell me if you need more info, Stefan. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=265604 daniel bornkessel <dbornkessel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dbornkessel@novell.com |bnc-team-java@forge.provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=265604 User mvyskocil@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=265604#c3 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mvyskocil@novell.com Resolution| |WORKSFORME --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2009-02-09 08:03:59 MST --- Works well with current java-1_5_0-sun + tomcat5 from sles10 as well as openjdk6+tomcat6 from Factory. Marked as WORKSFORME. If you have any issue, feel free to reopen this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com