Hi,

Did someone (Remy, Craig) has an idea about the problem 
at startup with a TC 4.0 compiled with jikes 1.3 ?

====>

>> Hi,
>>
>> Just trying a clean rebuilt of TC 4.0b2 and got :
>>
>> Using CLASSPATH:
>> /var/tomcat4/bin/bootstrap.jar:/opt/IBMJava2-13/lib/tools.jar
>> Using CATALINA_HOME: /var/tomcat4
>> Starting service Tomcat-Standalone
>> Apache Tomcat/4.0-b2
>> Exception during startup processing
>> java.lang.reflect.InvocationTargetException:
>java.lang.NoClassDefFoundError:
>> org/apache/naming/factory/Constants
>> at org.apache.naming.ResourceRef.<clinit>(ResourceRef.java)
>> at
>>
>org.apache.catalina.core.StandardContext.createNamingContext(St
>andardContext
>> .java:3447)
>> at
>> 
>org.apache.catalina.core.StandardContext.start(StandardContext.
>java:3098)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1059)
>> at
>> 
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253)
>> at
>> 
>org.apache.catalina.core.StandardService.start(StandardService.
>java:353)
>> at
>> 
>org.apache.catalina.core.StandardServer.start(StandardServer.java:454)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:707)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java:627)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
>> at java.lang.reflect.Method.invoke(Native Method)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177)
>>
>>
>> Here is my TC4 jars layout :
>>
>> /var/tomcat4/bin/bootstrap.jar
>> /var/tomcat4/common/lib/jndi.jar
>> /var/tomcat4/common/lib/naming.jar
>> /var/tomcat4/common/lib/servlet.jar
>> /var/tomcat4/jasper/jasper-compiler.jar
>> /var/tomcat4/jasper/xerces.jar
>> /var/tomcat4/lib/jasper-runtime.jar
>> /var/tomcat4/lib/namingfactory.jar
>> /var/tomcat4/server/lib/catalina.jar
>> /var/tomcat4/server/lib/jmxri.jar
>> /var/tomcat4/server/lib/regexp.jar
>> /var/tomcat4/server/lib/warp.jar
>> /var/tomcat4/server/lib/xerces.jar
>>
>> I use the original server.xml.

>I checked and the Constants class which fails to load is in
>namingfactory.jar. ResourceRef is in naming.jar.
>So something is wrong with the packaging. Moving 
>namingfactory.jar over to
>common/lib will probably fix the problem. I can't figure out 
>why my setup is
>working fine, though ...

I moved and it works now.

I redo the test, with tc 4.02 binary, with :

/var/tomcat4b/bin/bootstrap.jar
/var/tomcat4b/common/lib/jndi.jar
/var/tomcat4b/common/lib/naming.jar
/var/tomcat4b/common/lib/servlet.jar
/var/tomcat4b/jasper/jasper-compiler.jar
/var/tomcat4b/jasper/jaxp.jar
/var/tomcat4b/jasper/crimson.jar
/var/tomcat4b/lib/jasper-runtime.jar
/var/tomcat4b/lib/namingfactory.jar
/var/tomcat4b/server/lib/catalina.jar
/var/tomcat4b/server/lib/jmxri.jar
/var/tomcat4b/server/lib/jakarta-regexp-1.2.jar
/var/tomcat4b/server/lib/warp.jar
/var/tomcat4b/server/lib/crimson.jar
/var/tomcat4b/server/lib/jaxp.jar

It works fine with namingfactory.jar in /var/tomcat4b/lib/.
Since I also use jakarta-regexp-1.2.jar, the only difference
since to be I used xerces-j instead of jaxp/crimson.

I replaced xerces.jar by jaxp.jar/crimson.jar and moved namingfactory.jar
back to /var/tomcat4/server/lib/ :

/var/tomcat4/bin/bootstrap.jar
/var/tomcat4/common/lib/jndi.jar
/var/tomcat4/common/lib/naming.jar
/var/tomcat4/common/lib/servlet.jar
/var/tomcat4/jasper/jasper-compiler.jar
/var/tomcat4/jasper/jaxp.jar
/var/tomcat4/jasper/crimson.jar
/var/tomcat4/lib/jasper-runtime.jar
/var/tomcat4/lib/namingfactory.jar
/var/tomcat4/server/lib/catalina.jar
/var/tomcat4/server/lib/jmxri.jar
/var/tomcat4/server/lib/jakarta-regexp-1.2.jar
/var/tomcat4/server/lib/warp.jar
/var/tomcat4/server/lib/crimson.jar
/var/tomcat4/server/lib/jaxp.jar

I've got the same problem !

The problem since to be with jikes 1.3.
When I used javac from my IBM SDK 1.3 (latest)
or jikes 1.2, everything is fine.

But when compiled with jikes 1.3, there is something
broken ....

Reply via email to