Also and sorry for the spam :-)

In my pax exam my test code above returns the following:

07-03-2017 23:27:39 [ERROR] - #### XOF INSTANCED #### 
07-03-2017 23:27:39 [ERROR] - #### XOF CLASSNAME:
com.sun.xml.internal.stream.XMLOutputFactoryImpl 

For paxexam I'm not installing all the bundles from the feature cxf_specs
(described at
http://repo.maven.apache.org/maven2/org/apache/cxf/karaf/apache-cxf/3.1.7/apache-cxf-3.1.7-features.xml)

I'm doing something like this:

        public static Option cxf_specs() {
                return composite(
                                systemPackages("javax.xml.stream; 
version=\"1.0.0\"",
"javax.xml.stream.events; version=\"1.0.0\"",
                                                "javax.xml.stream.util; 
version=\"1.0.0\""),
                        
mavenBundle().groupId("org.codehaus.woodstox").artifactId("stax2-api").version(versionResolver),
                        
mavenBundle().groupId("org.codehaus.woodstox").artifactId("woodstox-core-asl").version(versionResolver),
                                
mavenBundle().groupId("org.apache.servicemix.specs")
                                        
.artifactId("org.apache.servicemix.specs.jsr339-api-2.0.1").version(versionResolver));
        }

I'm not sure if the systemPackages configuration is the "why" this is
working in paxexam or it's the removal of the other bundles in the cxf_specs
feature (I've had a number of other problems and this was the winning
combination :-) for paxexam)



--
View this message in context: 
http://karaf.922171.n3.nabble.com/DOSGI-2-1-0-calling-soap-service-results-in-javax-xml-stream-XMLOutputFactory-cannot-be-created-tp4049778p4049780.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to