RE: Apache - tomcat connection on Suse Lnux
locate servlet-api gives: /usr/lib/java/common/lib/servlet-api.jar /usr/share /tomcat5/common/lib/servlet-api.jar Larry Isaacs wrote: Yes, I have installed a packaged version (RPM via Suse Yast). While mod_jk has been downloaded and moved to its modules directory. What should I do, now? I have followed an HOW-TO, and unfortunately am not expertised about Tomcat. Thank you. The presence of /usr/share/tomcat5 in the servlet-api.jar path suggests you are using a packaged install of Tomcat. While doing some Eclipse Web Tools testing on SUSE 10.x (I think 10.1), the servlet-api.jar it was installed as a dependency of the Tomcat install and was symlinked as [servletapi5].jar. It worked fine as a symlink, but for this install, you won't be able to use standard (i.e. Apache Tomcat download equivalent) batch scripts or names which aren't compatible with alterations made to create the packaged Tomcat install. There isn't enough info to tell why startup is looking for a jar named servlet-api.jar. The packaged install wouldn't normally do that. Cheers, Larry -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 1:56 PM To: Tomcat Users List Subject: Re: Apache - tomcat connection on Suse Lnux Looks like the error says it all. Tomcat can't find servlet-api.jar in common/lib. Check that it really exists there and isn't a symlink. Tomcat isn't known for tolerating symlinks all that well. --David dianelane wrote: On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 (coonector with Apache2) to run web applicatons. I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors. Java and Tomcat installed from Suse repository via YAst. mod_jk.so downloaded and stored in /usr/lib/apache2 /etc/tomcat5/base/workers.properties modified as follows ... #workers.tomcat_home=/var/tomcat3 workers.tomcat_home=/usr/share/tomcat5 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # #workers.java_home=/opt/IBMJava2-13 workers.java_home=/usr/lib/java ... in /etc/apache2/httpd.con file added last line Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto /ets/tomcat5/base/server.xml modified as follows: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycle Listener debug=0/ Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/lib/apache2/mod_jk.so / tomcat restarted with error 7 and log files start.log: Using CATALINA_BASE: /srv/www/tomcat5/base/ Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp Using JAVA_HOME: /usr/lib/jvm/java catalina.out: Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar' at org.apache.catalina.loader.StandardClassLoader.addRepositoryIn ternal(StandardClassLoader.java:957) at org.apache.catalina.loader.StandardClassLoader.init(Standard ClassLoader.java:153) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoad er(ClassLoaderFactory.java:207) at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootst rap.java:163) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstr ap.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.addRepositoryIn ternal(StandardClassLoader.java:944) ... 6 more Could you help me? thank you - 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] -- View this message in context: http://www.nabble.com/Apache---tomcat-connection-on-Suse-Lnux-tf3397240.html#a9470749 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org
Re: Apache - tomcat connection on Suse Lnux
Looks like the error says it all. Tomcat can't find servlet-api.jar in common/lib. Check that it really exists there and isn't a symlink. Tomcat isn't known for tolerating symlinks all that well. --David dianelane wrote: On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 (coonector with Apache2) to run web applicatons. I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors. Java and Tomcat installed from Suse repository via YAst. mod_jk.so downloaded and stored in /usr/lib/apache2 /etc/tomcat5/base/workers.properties modified as follows ... #workers.tomcat_home=/var/tomcat3 workers.tomcat_home=/usr/share/tomcat5 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # #workers.java_home=/opt/IBMJava2-13 workers.java_home=/usr/lib/java ... in /etc/apache2/httpd.con file added last line Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto /ets/tomcat5/base/server.xml modified as follows: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/lib/apache2/mod_jk.so / tomcat restarted with error 7 and log files start.log: Using CATALINA_BASE: /srv/www/tomcat5/base/ Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp Using JAVA_HOME: /usr/lib/jvm/java catalina.out: Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/servlet-api.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 Could you help me? thank you - 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: Apache - tomcat connection on Suse Lnux
The presence of /usr/share/tomcat5 in the servlet-api.jar path suggests you are using a packaged install of Tomcat. While doing some Eclipse Web Tools testing on SUSE 10.x (I think 10.1), the servlet-api.jar it was installed as a dependency of the Tomcat install and was symlinked as [servletapi5].jar. It worked fine as a symlink, but for this install, you won't be able to use standard (i.e. Apache Tomcat download equivalent) batch scripts or names which aren't compatible with alterations made to create the packaged Tomcat install. There isn't enough info to tell why startup is looking for a jar named servlet-api.jar. The packaged install wouldn't normally do that. Cheers, Larry -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 1:56 PM To: Tomcat Users List Subject: Re: Apache - tomcat connection on Suse Lnux Looks like the error says it all. Tomcat can't find servlet-api.jar in common/lib. Check that it really exists there and isn't a symlink. Tomcat isn't known for tolerating symlinks all that well. --David dianelane wrote: On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 (coonector with Apache2) to run web applicatons. I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors. Java and Tomcat installed from Suse repository via YAst. mod_jk.so downloaded and stored in /usr/lib/apache2 /etc/tomcat5/base/workers.properties modified as follows ... #workers.tomcat_home=/var/tomcat3 workers.tomcat_home=/usr/share/tomcat5 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # #workers.java_home=/opt/IBMJava2-13 workers.java_home=/usr/lib/java ... in /etc/apache2/httpd.con file added last line Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto /ets/tomcat5/base/server.xml modified as follows: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycle Listener debug=0/ Listener className=org.apache.jk.config.ApacheConfig modJk=/usr/lib/apache2/mod_jk.so / tomcat restarted with error 7 and log files start.log: Using CATALINA_BASE: /srv/www/tomcat5/base/ Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp Using JAVA_HOME: /usr/lib/jvm/java catalina.out: Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar' at org.apache.catalina.loader.StandardClassLoader.addRepositoryIn ternal(StandardClassLoader.java:957) at org.apache.catalina.loader.StandardClassLoader.init(Standard ClassLoader.java:153) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoad er(ClassLoaderFactory.java:207) at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootst rap.java:163) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstr ap.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.addRepositoryIn ternal(StandardClassLoader.java:944) ... 6 more Could you help me? thank you - 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]