[JBoss-dev] Problems with Class Loading

Dimitris Andreadis dandread at redhat.com
Mon Feb 2 05:48:39 EST 2009


Please use the User Forums to ask for help, thanks.

Rajarshi wrote:
> 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



More information about the jboss-development mailing list