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.