Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Classloader problem?
Classloader problem? [message #91089] Fri, 08 April 2005 12:10 Go to next message
Eclipse UserFriend
Hello list, I'm working on an RCP application but this list's topic
might be pertinent with the problem I'm facing.

I've written small test commandline programs that connect to a SOAP
server correctly. The necessary libraries to run the wsdl generated code
were specified either as User Libraries or as classpath user defined
entries in the laucher configuration (the endorsed xml parser impls) and
everything ran fine.

In the next step I tried to tie the code into an Eclipse RCP
application, copied the jars into the plugin META-INF and added them to
the MANIFEST file in the Bundle-ClassPath: property. It doesn't work and
the exception is:
Couldn't create SOAP message factory due to exception:
javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1 Impl
anyone has a clue to what's happening?

tnx,
e
Re: Classloader problem? [message #91220 is a reply to message #91089] Sat, 09 April 2005 00:18 Go to previous message
Eclipse UserFriend
Originally posted by: ifedorenko.rogers.com

Welcome to the wonderful world of Eclipse classloading ;-) Few things
you can try.

Try setting context classloader as described in
http://www.eclipsefaq.org/chris/faq/html/faq107.html . There are other
tricks that you might need to do, but from my experience this is the
most common source of classnotfound(exception|error) when it comes to
integration with non-plugin libraries.

Edoardo Causarano wrote:
> Hello list, I'm working on an RCP application but this list's topic
> might be pertinent with the problem I'm facing.
>
> I've written small test commandline programs that connect to a SOAP
> server correctly. The necessary libraries to run the wsdl generated code
> were specified either as User Libraries or as classpath user defined
> entries in the laucher configuration (the endorsed xml parser impls) and
> everything ran fine.
>
> In the next step I tried to tie the code into an Eclipse RCP
> application, copied the jars into the plugin META-INF and added them to
> the MANIFEST file in the Bundle-ClassPath: property. It doesn't work and
> the exception is:
> Couldn't create SOAP message factory due to exception:
> javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
> Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1 Impl
> anyone has a clue to what's happening?
>
> tnx,
> e
Previous Topic:Modules, Runtimes and Servers
Next Topic:compile servlets when "Run on Server"
Goto Forum:
  


Current Time: Tue Jun 03 06:15:07 EDT 2025

Powered by FUDForum. Page generated in 0.03158 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top