You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by mattmadhavan <ma...@yahoo.com> on 2007/10/25 22:53:13 UTC

HELP - org.apache.axis.soap.MessageFactoryImpl - Strange Exception

Hello,
I have configured my client beans(spring configuraiton) with the
org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor and 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.

When I run my client I am getting the following exception. Why is it looking
for Apache Axis' Message factory? I am using cxf 2.0.2.

Any help will be appreciated.

Thanks
Matt


Exception in thread "main" javax.xml.soap.SOAPException: Failed to create
MessageFactory: org.apache.axis.soap.MessageFactoryImpl
	at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:55)
	at
com.adobe.cairngorm.samples.store.service.ProductInfoServiceClient.main(ProductInfoServiceClient.java:57)
Caused by: java.lang.ClassNotFoundException:
org.apache.axis.soap.MessageFactoryImpl
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:50)
-- 
View this message in context: http://www.nabble.com/HELP---org.apache.axis.soap.MessageFactoryImpl---Strange-Exception-tf4693600.html#a13415791
Sent from the cxf-user mailing list archive at Nabble.com.


Re: HELP - org.apache.axis.soap.MessageFactoryImpl - Strange Exception

Posted by mattmadhavan <ma...@yahoo.com>.
Hi Christian,

Thanks, It worked!

I hope there is a better way then this!

Matt





Christian Vest Hansen wrote:
> 
> I don't know if there's a better way to fix this, but try to somehow call:
> 
> System.setProperty("javax.xml.soap.MessageFactory",
> 
> "com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
> 
> Before the saaj interceptor loads.
> 
> 
> 2007/10/25, mattmadhavan <ma...@yahoo.com>:
>>
>> Hello,
>> I have configured my client beans(spring configuraiton) with the
>> org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor and
>> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.
>>
>> When I run my client I am getting the following exception. Why is it
>> looking
>> for Apache Axis' Message factory? I am using cxf 2.0.2.
>>
>> Any help will be appreciated.
>>
>> Thanks
>> Matt
>>
>>
>> Exception in thread "main" javax.xml.soap.SOAPException: Failed to create
>> MessageFactory: org.apache.axis.soap.MessageFactoryImpl
>>         at
>> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:55)
>>         at
>> com.adobe.cairngorm.samples.store.service.ProductInfoServiceClient.main(ProductInfoServiceClient.java:57)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.axis.soap.MessageFactoryImpl
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at
>> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:50)
>> --
>> View this message in context:
>> http://www.nabble.com/HELP---org.apache.axis.soap.MessageFactoryImpl---Strange-Exception-tf4693600.html#a13415791
>> Sent from the cxf-user mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
> 
> 

-- 
View this message in context: http://www.nabble.com/HELP---org.apache.axis.soap.MessageFactoryImpl---Strange-Exception-tf4693600.html#a13417811
Sent from the cxf-user mailing list archive at Nabble.com.


Re: HELP - org.apache.axis.soap.MessageFactoryImpl - Strange Exception

Posted by Christian Vest Hansen <ka...@gmail.com>.
I don't know if there's a better way to fix this, but try to somehow call:

System.setProperty("javax.xml.soap.MessageFactory",

"com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");

Before the saaj interceptor loads.


2007/10/25, mattmadhavan <ma...@yahoo.com>:
>
> Hello,
> I have configured my client beans(spring configuraiton) with the
> org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor and
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.
>
> When I run my client I am getting the following exception. Why is it looking
> for Apache Axis' Message factory? I am using cxf 2.0.2.
>
> Any help will be appreciated.
>
> Thanks
> Matt
>
>
> Exception in thread "main" javax.xml.soap.SOAPException: Failed to create
> MessageFactory: org.apache.axis.soap.MessageFactoryImpl
>         at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:55)
>         at
> com.adobe.cairngorm.samples.store.service.ProductInfoServiceClient.main(ProductInfoServiceClient.java:57)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.axis.soap.MessageFactoryImpl
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:50)
> --
> View this message in context: http://www.nabble.com/HELP---org.apache.axis.soap.MessageFactoryImpl---Strange-Exception-tf4693600.html#a13415791
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>


-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.