Well, no dice moving to 4.0.4 beta3 or to 4.1.3 beta.
I've tested all of these, the classloader problem
still exists. (Note, I was able to get 4.0.4 beta3
Windows install to work but, as I deploy on Linux,
this isn't an option)
I did finally manage to figure out a spread of Jars
and classes to get it to work on any of them. But,
bottom line, it would be a lot easier with consistent
logging! It didn�t help that Tomcat doesn�t reliably
log errors either. The very first that is need is a
try catch on the doGet and doPost that wraps the
entire method block, catches Throwable, logs it at
Error or Fatal levels and re-throws it.
Details I used to get it to work.
1) Move the jaxrpc.jar to a higher level in the
classloaders such as common/lib or shared/lib. This
is to get around the ClassNotFoundException on class
javax.xml.soap.SoapBody
2) Extract all the files from tt-bytecode.jar and
rebuild the jar. This is to get around a
SecurityException package com.techtrader (Funny, I�m
not even running a SecurityManager)
3) Extract the classes from jaxrpc.jar and put the
classes under WEB-INF/classes. This is to get around
the NoSuchMethodError (Yes, Error not Exception) on
the call in
org.apache.axis.deployment.wsdd.WSDDDeployment to
tm.setSupportedEncodings(new String[]
{encodingStyle}); tm is of type interface
org.apache.axis.encoding.TypeMapping which extends
javax.xml.rpc.encoding.TypeMapping. The requirement
for the method setSupportedEncodings is in javax
version and Tomcat doesn�t see it for some reason.
Note, extracting these still requires the jaxrpc.jar
to be in a higher classloader, if you remove it the
Exception described in 1 reoccurs.
After I did this, it successfully ran on Tomcat 4.0.3
on Linux, 4.0.3 on Win2K, 4.0.4b3 on Win2k and 4.1.3b
on Win2k
--- Aleksander Slominski <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have experienced similar problems with tomcat
> 4.0.3
> and reverting to 4.0.1 or moving to 4.0.4 b3 seems
> to fix them - it may be also related to this bug:
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6884
>
> thanks.
>
> alek
>
> Carl Trusiak wrote:
>
> > Has anyone tested Axis on Tomcat 4.0.3
> successfully.
> > I've tried for days and haven't been able to get
> it to
> > work. I think the root cause may be a classloader
> > problem with Tomcat. But, it is extremely hard to
> > track down there are just too many places where
> > exceptions are caught and nothing is done. The
> > execption isn't re-Thrown, wrapped in another
> thrown
> > exception or even just logged. You see a lot of
> > }catch(MethodNotFoundException){}
> >
> > When I finally got logging to work, the only
> messages
> > coming out of Axis are scattered DEBUG statements
> that
> > don't show the problems going on.
> >
> > An upgrade needs done to get effective consistant
> > logging.
> >
> > Carl Trusiak, SCJP2, SCWCD
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com