I modified the jre-1.5.properties file. I have the System bundle exporting the two packages below. The saaj-impl bundle indicates its importing those packages. But, I still got the NoClassDefFoundError. So I tried adding it to sling bootdelegation, but no luck. Same exception.
[3/3/10 11:44:01:121 CST] 00000037 WebApp E [Servlet Error]-[sling]: java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl at java.lang.ClassLoader.defineClassImpl(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:222) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1793) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:688) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656) at java.lang.ClassLoader.loadClass(ClassLoader.java:561) at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119) at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109) at com.sun.xml.messaging.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:1287) -----Original Message----- From: Freeman Fang [mailto:[email protected]] Sent: Tuesday, March 02, 2010 9:44 AM To: [email protected] Subject: Re: problems with SAAJ in Felix Hi, Ensure you have com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp, \ in your config.properties jre-1.5 property settings. Freeman On 2010-3-2, at 下午10:34, Pruitt, Byron S wrote: > Thanks, this has gotten me closer. There were some unresolved > references that I handled by loading a few more servicemix bundles. > But, I have one more remaining unresolved reference in the saaj-impl > bundle. A strange package name of sorts, not sure what bundle > contains these classes. They are not in "Apache ServiceMix Bundles > - xercesImpl-2.9.1. > > !! com.sun.org.apache.xerces.internal.dom,version=0.0.0 -- Cannot be > resolved > !! com.sun.org.apache.xerces.internal.jaxp,version=0.0.0 -- Cannot > be resolved > > > > -S > > > > -----Original Message----- > From: Freeman Fang [mailto:[email protected]] > Sent: Friday, February 26, 2010 1:48 AM > To: [email protected] > Subject: Re: problems with SAAJ in Felix > > Hi, > Do you already use saaj-api bundle [1] and saaj-impl bundle [2] both > from servicemix? > If not, please use both of them. > > [1]http://repo2.maven.org/maven2/org/apache/servicemix/specs/org.apache.servicemix.specs.saaj-api-1.3/1.4.0/ > [2]http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1/ > > Freeman > On 2010-2-26, at 上午12:05, Pruitt, Byron S wrote: > >> Looks like I need the Apache Axis2 implementation. Is it been made >> a bundle too? >> >> [2/25/10 9:59:54:150 CST] 00000028 SystemErr R >> javax.xml.soap.SOAPException: Unable to create message factory for >> SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found >> >> >> -S >> >> >> -----Original Message----- >> From: Pruitt, Byron S >> Sent: Thursday, February 25, 2010 10:54 AM >> To: [email protected]; [email protected] >> Subject: RE: problems with SAAJ in Felix >> >> I downloaded both from SpringSource bundle repository. I will try >> the ones you listed. >> >> >> -S >> >> -----Original Message----- >> From: Justin Edelson [mailto:[email protected]] >> Sent: Thursday, February 25, 2010 10:34 AM >> To: [email protected] >> Subject: Re: problems with SAAJ in Felix >> >> Where did you get the javax.xml.soap bundle? >> >> Try using the servicemix one: >> http://repo2.maven.org/maven2/org/apache/servicemix/specs/org.apache.servicemix.specs.saaj-api-1.3/1.4.0/org.apache.servicemix.specs.saaj-api-1.3-1.4.0.jar >> >> HTH, >> Justin >> >> On 2/25/10 10:27 AM, Pruitt, Byron S wrote: >>> I have an issue trying use SAAJ in a relatively complicated >>> environment. I am running Felix loaded in Websphere 6.1, with Java >>> 1.5. I am using Apache Sling as the OSGi bootstrap. >>> >>> I have loaded the javax.xml.soap-1.3 bundle and a bundle with Sun's >>> SAAJ-Impl 1.3. But when I go to instantiate a MessageFactory, I >>> get the following exception: >>> >>> [2/25/10 9:04:25:608 CST] 00000028 SystemErr R >>> javax.xml.soap.SOAPException: Unable to create message factory for >>> SOAP: Unable to create SAAJ meta-factoryProvider >>> com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl not found >>> [2/25/10 9:04:25:608 CST] 00000028 SystemErr R at >>> javax.xml.soap.MessageFactory.newInstance(Unknown Source) >>> >>> It doesn't appear to be a class not found problem. I can't really >>> tell what the is the issue. >>> >>> Any help or clarification is greatly appreciated. >>> >>> >>> -Steve Pruitt >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > -- > Freeman Fang > ------------------------ > Open Source SOA: http://fusesource.com > -- Freeman Fang ------------------------ Open Source SOA: http://fusesource.com

