We hit the following problem when trying to run tomcat 4.1.29
and Iona Orbix ASP 6.0 in the same jvm.
When the orbix jar file, asp-corba.jar, is included in the
classpath that tomcat is started with this causes the tomcat jvm to throw the
following exception and terminate at startup
ERROR reading /opt/hpws/tomcat/conf/server.xml
At Line 18 /Server/Listener/
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
Catalina.start: java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
java.lang.ClassNotFoundException:
org.apache.catalina.mbeans.ServerLifecycleListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
This turned out to be due to the iona versions of some tomcat jars
under /opt/iona/lib/tomcat being loaded in favour of the installed
version of tomcat. This occurred because of the asp-corba.jar
internally references all other jars (in excess of 500)
in the iona installation area.
The structuring of the jars in this way has the highly undesirable side-effect
that the inclusion of the asp-corba.jar may replace the versions that a user
requires for other third-party software without the user even being aware of it!
To resolve this problem we have renamed the /opt/iona/lib/tomcat
to avoid these jars being picked up.
Note this relates to the following problem raised last year
> Manifest, Class-Path attribute, NoClassDefFoundError
>
> Oliver Wulff Tomcat Users List" <[EMAIL PROTECTED]
> Tue May 20 08:05:02 2003
>
> Previous message: How to use Custom Beans with Tomcat
> Next message: Session management capabilities
> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
>
>
>
>
> Hi all
>
> I've created a jar file and deployed to the lib directory of the web
> application. The manifest of the jar file contains the attribute
> Class-Path:
> Manifest-Version: 1.0
> Created-By: Apache Ant 1.5.1
> Class-Path: ./../../../iona/asp60/asp/6.0/lib/asp-corba.jar
>
> Unfortunately, Tomcat can't resolve the classes (NoClassDefFoundError)
> which will be referenced in the asp-corba.jar (JDK 1.3.1). This jar its=
> elf
> references a lot of jars. If I run the code outside of Tomcat, the clas=
> ses
> in the references jar can be found.
>
> Oliver
>
> ******************************************************************
> Oliver Wulff
> Z=FCrich Versicherungs-Gesellschaft
> IA4, CoC Middleware
> Postfach, 8085 Z=FCrich
> Telefon: +41- 1 628 58 07
> Fax: +41 - 1 623 58 07
> E-Mail: mailto:[EMAIL PROTECTED]
>
>
Regards
Carolyn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]