Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

Apache SOAP on Tomcat complaining about serializer

Thread view: 
codehead - 13 Jun 2005 06:15 GMT
I'm running Tomcat 4.1.31 and Apache SOAP 2.3.1 on OS X 10.3.9 and I'm
getting a strange error. When reading the deployment descriptor, SOAP
on the server throws a "could not be resolved as a serializer"
exception.
The class it complains about is in the Tomcat CLASSPATH because I've
tried specifying it as the javaType and it does not complain there.
I even looked at the SOAP source code. The only thing is does besides
load the class is cast it to a Serializer, but my class implements
Serializer.

I ran the SOAP interop example and it worked...

Any ideas?
JScoobyCed - 13 Jun 2005 07:03 GMT
> I'm running Tomcat 4.1.31 and Apache SOAP 2.3.1 on OS X 10.3.9 and I'm
> getting a strange error. When reading the deployment descriptor, SOAP
[quoted text clipped - 9 lines]
>
> Any ideas?

Just a quick thought:

is the Serializer interface you implement the one from your web-service
package?

--
JSC
codehead - 13 Jun 2005 07:17 GMT
I'm using org.apache.soap.util.xml.Serializer.
I've been messing with the SOAP code and it's getting a
ClassCastException but it shouldn't. It loads the class just find,
creates an instance, but fails to cast that instance to a Serializer.
I also printed the implemented interfaces on the server side and
Serializer is the first in the array.

could this be a JVM error?
codehead - 13 Jun 2005 08:28 GMT
Looks like it was because there are two ClassLoaders working in Tomcat,
The webapps loader and the Standard loader. The Serializer Class was
loaded twice, once by each loader...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.