[JBoss-dev] Problems with Class Loading

Rajarshi rajarshi_basak at mindtree.com
Mon Feb 2 04:58:20 EST 2009


Hi,

I am facing some conflicts in my application, when it's trying to process a
request. My application is getting deployed as a sar and is bundled with
saaj-impl.jar and saaj-api.jar. I have defined a separate classloader
configuration for my application in jboss-service.xml like below
<loader-repository>
      application:archive=test-application.sar
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
The deployment goes fine for the application, but when I send a request, it
gives the following exception in the log files.
Caused by: javax.xml.soap.SOAPException: Unable to create message factory
for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl
	at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
	at
test.sample.util.MessageTransformerUtil.transformToSOAPMessage(MessageTransformerUtil.java:85)
	... 20 more

Inside my MessageTransformerUtil.java I am trying to create a
javax.xml.soap.MessageFactory instance like
final MessageFactory factory = MessageFactory.newInstance ( );

If I remove the jbossws.sar from jboss/deploy the request goes through fine.
Any help in this regards will be of great help

Regards
Rajarshi
-- 
View this message in context: http://www.nabble.com/Problems-with-Class-Loading-tp21681881p21681881.html
Sent from the JBoss - Dev mailing list archive at Nabble.com.




More information about the jboss-development mailing list