You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jesper Söderlund <Je...@smarttrust.com> on 2002/05/27 14:03:02 UTC
Axis cannot find my Service class!
I'm currently developing a service for deployment in Tomcat.
It seems that when Axis is trying to find my service it cannot eventhough it's in the same webapp as my axis-servlet (I've embedded it in an already existing web application and I'm loading it through the deployment descriptor in that web app).
I searched the code and found that Axis tries to locate the class through the "Thread.currentThread().getClassLoader()" classloader.
This classloader is the basic classloader provided by the JVM, thus bypassing the Tomcat-classloaders (where my class is located).
I run Tomcat 4.0.2 and JDK 1.4.
Does anybody have an idea on what I'm doing wrong?
Thanks,
/Jesper
Retrieving data from a SOAP packet
Posted by Paul Johnston <pa...@tm-ltd.co.uk>.
I am implementing a SOAP interface to a client's software and am having a
problem serializing the data returned. The data is returned like this:
<?xml version="1.0"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<CreateSession2Response>
<sessionReference>http://test.blah.co.uk:85/digest/31383335333535373</sessio
nReference>
<launch>
<viewer>
<version>2.0</version>
<URL>http://test.blah.co.uk:85/digest/313833353335353734373335333535373</URL
>
<versionURL>http://www.blah.com/client-version</versionURL>
</viewer>
</launch>
</CreateSession2Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How can I get that into Java? Currently I'm a tad confused! I can get a
simple string into Java, but above and beyond that...
Paul
PS the packet will always be the same form
Re: Axis cannot find my Service class!
Posted by Heitzso <he...@bellsouth.net>.
I believe I've successfully done what you're trying to do ...
I have a webapp named "TheDataWeb_Services.war" and I have
the axis jars in that webapp's WEB-INF/lib along with my
application's jar files. In addition, as per java 1.4
necessity, I have a -Djava.endorsed.dirs pointing to the
axis/lib directory and the two jars associated with xerces 2
(or the equivalent of that).
I deploy to /TheDataWeb_Services/servlet/AxisServlet, and
run my services against same. It all works as advertised
just fine.
You need to be much more precise in your description of
what you've done. I'm guessing a lot with the above
assumptions. Don't dig into class loader stuff --
that's unnecessary. But do precisely locate the
trees for all of the axis jars and your apps jars, etc.
Heitzso
On Mon, 2002-05-27 at 08:03, Jesper Söderlund wrote:
> I'm currently developing a service for deployment in Tomcat.
>
> It seems that when Axis is trying to find my service it cannot eventhough it's in the same webapp as my axis-servlet (I've embedded it in an already existing web application and I'm loading it through the deployment descriptor in that web app).
>
> I searched the code and found that Axis tries to locate the class through the "Thread.currentThread().getClassLoader()" classloader.
>
> This classloader is the basic classloader provided by the JVM, thus bypassing the Tomcat-classloaders (where my class is located).
>
> I run Tomcat 4.0.2 and JDK 1.4.
>
> Does anybody have an idea on what I'm doing wrong?
>
> Thanks,
> /Jesper