Finally, below is the list of jars required to get the (dynamic) cxf client working, these are along with cxf distribution.
1. cxf-api 2. cxf-common-schemas 3. cxf-common-utilities 4. cxf-rt-core 5. cxf-tools-common and the third part jars 6. ant*, 7. jaxb-* 8. geronimo-ws-metadata* 9. stax-api-* 10. spring-core-* 11. spring-context-* 12. jaxws-api-* 13. wsdl4j-* 14. spring-beans* 15. commons-logging* 16. geronimo-annotation_1.0_spec-1.1.jar 17. XmlSchema-1.2.jar 18. xml-resolver-1.2.jar 19. neethi-2.0.jar 20. saaj-api-1.3.jar 21. geronimo-javamail_1.4_spec-1.0-M1.jar 22. geronimo-activation_1.1_spec-1.0-M1.jar velidandas wrote: > > Could not fix even after copying wstx-asl-*.jar. > > getting the below stack trace > ********************** > Exception in thread "main" javax.xml.stream.FactoryConfigurationError: > Provider com.bea.xml.stream.MXParserFactory not found > at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72) > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:120) > at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92) > at > javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136) > at org.apache.cxf.staxutils.StaxUtils.<clinit>(StaxUtils.java:64) > at > org.apache.cxf.interceptor.StaxOutInterceptor.getXMLOutputFactory(StaxOutInterceptor.java:123) > at > org.apache.cxf.interceptor.StaxOutInterceptor.handleMessage(StaxOutInterceptor.java:66) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:179) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:199) > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:185) > at test.ComplexClient.invokeLogon(ComplexClient.java:48) > at test.ComplexClient.main(ComplexClient.java:163) > ********************** > > Not sure about the problem here. > >> -----Original Message----- >> From: Willem Jiang [mailto:[EMAIL PROTECTED] >> Sent: 08 August 2007 13:07 >> To: [email protected] >> Subject: Re: CXF Dynamic Client -- Provider >> com.bea.xml.stream.MXParserFactory not found >> >> >> Hi , >> >> Sorry for missing so many jars here. >> >> That's the stax api implementation jar, we use the >> wstx-asl-*.jar in CXF. >> >> And you get more information for this URL[1] , which is >> WHICH_JARS that >> current CXF use. >> >> [1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/distri >> bution/src/main/release/lib/WHICH_JARS >> >> Willem. >> >> >> Velidanda Srinivas wrote: >> > I copied the below jars(other than what you specified) to >> get my client working. >> > >> > spring-beans* >> > commons-logging* >> > geronimo-annotation_1.0_spec-1.1.jar >> > XmlSchema-1.2.jar >> > xml-resolver-1.2.jar >> > neethi-2.0.jar >> > saaj-api-1.3.jar >> > geronimo-javamail_1.4_spec-1.0-M1.jar >> > geronimo-activation_1.1_spec-1.0-M1.jar >> > >> > Stuck up with the below error >> > >> > Exception in thread "main" >> javax.xml.stream.FactoryConfigurationError: Provider >> com.bea.xml.stream.MXParserFactory not found >> > >> > and not finding which jar file to be copied, to get rid of this. >> > >> > I have jsr173_api-1.0.jar in classpath, but still I am >> getting the error. >> > >> > Please let me know how to fix this. >> > >> > Here is the description of errors and jars copied as >> mentioned above. >> > >> > **********************Description of error and jar file >> copied to get rid of the error*************************************** >> > *********Error***** >> > java.lang.NoClassDefFoundError: javax/annotation/Resource >> > Caused by: java.lang.NoClassDefFoundError: javax/annotation/Resource >> > **********required jar >>>>>>>.geronimo-annotation_1.0_spec-1.1.jar >> > >> > *********Error*****Caused by: >> java.lang.NoClassDefFoundError: >> org/apache/ws/commons/schema/XmlSchemaAnnotated >> > **********required jar****XmlSchema-1.2.jar >> > >> > ********Error*****java.lang.NoClassDefFoundError: >> org/apache/xml/resolver/CatalogManager >> > **********required jar********xml-resolver-1.2.jar >> > >> > ********Error*****Caused by: >> org.springframework.beans.factory.BeanCreationException: >> Error creating bean with name >> 'org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder' defined >> in class path resource >> [META-INF/cxf/cxf-extension-policy.xml]: Instantiation of >> bean failed; nested exception is >> java.lang.NoClassDefFoundError: org/apache/neethi/Assertion >> > Caused by: java.lang.NoClassDefFoundError: >> org/apache/neethi/Assertion >> > **********required jar********neethi-2.0.jar >> > >> > ********Error***** >> > Caused by: >> org.springframework.beans.BeanInstantiationException: Could >> not instantiate bean class >> [org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider]: >> Constructor threw exception; nested exception is >> java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException >> > Caused by: java.lang.NoClassDefFoundError: >> javax/xml/soap/SOAPException >> > **********required jar********saaj-api-1.3.jar >> > >> > ********Error***** >> > Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/geronimo/mail/util/StringBufferOutputStream >> > **********required jar********geronimo-javamail_1.4_spec-1.0-M1.jar >> > >> > ********Error***** >> > Caused by: java.lang.NoClassDefFoundError: >> javax/activation/MimeTypeParseException >> > **********required >> jar********geronimo-activation_1.1_spec-1.0-M1.jar >> > >> > Exception in thread "main" >> javax.xml.stream.FactoryConfigurationError: Provider >> com.bea.xml.stream.MXParserFactory not found >> > ???????????????????? >> > >> > Thanks, >> > Srinivas >> > >> > >> >> -----Original Message----- >> >> From: Willem Jiang [mailto:[EMAIL PROTECTED] >> >> Sent: 08 August 2007 11:08 >> >> To: [email protected] >> >> Subject: Re: Dynamic Client >> >> >> >> >> >> Hi, >> >> >> >> If you use maven that could much easy , you just need add the >> >> dependency >> >> artifact >> >> >> >> < <dependency> >> >> <groupId>org.apache.cxf</groupId> >> >> <artifactId>cxf-rt-databinding-jaxb</artifactId> >> >> <version>${cxf.version}</version> >> >> </dependency> >> >> >> >> CXF relate jars >> >> If you use the bundler jar, there only one cxf-***-incubator.jar >> >> If you just want include related models' jar, they are >> >> cxf-api >> >> cxf-common-schemas >> >> cxf-common-utilities >> >> cxf-rt-core >> >> cxf-tools-common >> >> >> >> The third part jars >> >> ant*, >> >> jaxb-* >> >> geronimo-ws-metadata* >> >> stax-api-* >> >> spring-core-* >> >> spring-context-* >> >> jaxws-api-* >> >> wsdl4j-* >> >> >> >> Willem. >> >> >> >> >> >> Velidanda Srinivas wrote: >> >> >> >>> Hi, >> >>> >> >>> Could someone list the jar files required to run Dynamic >> >>> >> >> Client application >> >> >> >>> using DynamicClientFactory. >> >>> >> >>> Srinivas. >> >>> >> >>> >> >>> >> >> ______________________________________________________________ >> >> __________ >> >> >> >>> This e-mail has been scanned for all viruses by MessageLabs. >> >>> >> >>> To learn more about Singularity's business process >> >>> >> >> management solutions and services please visit: >> >> >> >>> www.singularity.co.uk >> >>> www.singularity.us.com >> >>> Singularity operates globally through its offices in New >> >>> >> >> York, London, Singapore, Ireland and India. Singularity >> >> Limited is incorporated in the United Kingdom with >> >> Registration Number NI 31519 and its Registered Office at 100 >> >> Patrick Street, Derry, BT48 7EL, United Kingdom. >> >> >> >>> >> >>> >> >> ______________________________________________________________ >> >> __________ >> >> This e-mail has been scanned for all viruses by MessageLabs. >> >> ______________________________________________________________ >> >> __________ >> >> >> >> >> > >> > >> ______________________________________________________________ >> __________ >> > This e-mail has been scanned for all viruses by MessageLabs. >> > >> > To learn more about Singularity's business process >> management solutions and services please visit: >> > www.singularity.co.uk >> > www.singularity.us.com >> > Singularity operates globally through its offices in New >> York, London, Singapore, Ireland and India. Singularity >> Limited is incorporated in the United Kingdom with >> Registration Number NI 31519 and its Registered Office at 100 >> Patrick Street, Derry, BT48 7EL, United Kingdom. >> > >> > >> >> ______________________________________________________________ >> __________ >> This e-mail has been scanned for all viruses by MessageLabs. >> ______________________________________________________________ >> __________ >> > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by MessageLabs. > > To learn more about Singularity's business process management solutions > and services please visit: > www.singularity.co.uk > www.singularity.us.com > Singularity operates globally through its offices in New York, London, > Singapore, Ireland and India. Singularity Limited is incorporated in the > United Kingdom with Registration Number NI 31519 and its Registered Office > at 100 Patrick Street, Derry, BT48 7EL, United Kingdom. > > -- View this message in context: http://www.nabble.com/Dynamic-Client-tf4223096.html#a12249197 Sent from the cxf-user mailing list archive at Nabble.com.
