I had errors running my cxf client from eclipse. This was my first CXF
client using Spring and Tomcat I wrote.  I have added all jars in class path
(run configuration in eclipse) and errors are gone (my Maven is still not
working, and I did not have all dependencies resolved, so I needed manually
to add jars).



-Aurelije


On 9/26/07, mule1 <[EMAIL PROTECTED]> wrote:

>
> Hello Aurelije,
>
> Were you having this problem before? And after adding some jars the
> problem
> went away? Or you tried with all jars first with no problems?
>
> I verified again that I do have all the necessary exact jars from the cxf
> 2.0.2 lib directory and I still have the same problem. So, not sure what I
> am missing.
>
>
> Aurelije wrote:
> >
> > Hi,
> >
> > I have included all jars from cxf 2.0.2 lib directory when running
> client
> > and I did not have any problems after that.
> >
> > Regards,
> > Aurelije
> >
> >
> > On 9/26/07, mule1 <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Hello,
> >>
> >> I am learning to use cxf (migrated from xfire) and in previous cxf 2.0
> >> release, I had no problem running the following client creating by
> using
> >> some of the sample code for cxf with spring.
> >> JaxWsProxyFactoryBean jf = new JaxWsProxyFactoryBean();
> >>      jf.setAddress("http://localhost:8080/comp/cxf-services/serviceurl
> ");
> >>      jf.setServiceClass(MyCxfWebService.class);
> >>      MyCxfWebService service1 = (MyCxfWebService) jf.create();
> >>      service1.showData("This is a test");
> >>
> >> I have the application server deployed with the server service
> configured
> >> for http://localhost:8080/comp/cxf-services/serviceurl
> >>
> >>
> >> Now with cxf 2.0.1, it was giving me error for missing jar for
> >> org.apache.geronimo.mail.util. So, I upgraded to cxf 2.0.2 - and I keep
> >> getting the following error. I am really not sure where the issue is.
> >>
> >> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
> >>        at
> >>
> >>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> >> (ReadHeadersInterceptor.java:187)
> >>        at
> >>
> >>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> >> (ReadHeadersInterceptor.java:1)
> >>        at
> >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> >> PhaseInterceptorChain.java:207)
> >>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java
> >> :395)
> >>        at
> >>
> >>
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse
> >> (HTTPConduit.java:1943)
> >>        at
> >> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(
> >> HTTPConduit.java:1790)
> >>        at org.apache.cxf.transport.AbstractConduit.close(
> >> AbstractConduit.java:66)
> >>        at
> >> org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java
> >> :576)
> >>        at
> >>
> >>
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage
> >> (MessageSenderInterceptor.java:62)
> >>        at
> >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> >> PhaseInterceptorChain.java:207)
> >>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java
> :254)
> >>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java
> :205)
> >>        at org.apache.cxf.frontend.ClientProxy.invokeSync(
> ClientProxy.java
> >> :73)
> >>        at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java
> :68)
> >>        at $Proxy44.findData(Unknown Source)
> >>        at com.comp.TestCxfWebService.test1(TestCxfWebService.java:74)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> >> :39)
> >>        at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:25)
> >>        at java.lang.reflect.Method.invoke(Method.java:597)
> >>        at junit.framework.TestCase.runTest(TestCase.java:154)
> >>        at junit.framework.TestCase.runBare(TestCase.java:127)
> >>        at
> >> org.springframework.test.ConditionalTestCase.runBare(
> >> ConditionalTestCase.java:69)
> >>        at junit.framework.TestResult$1.protect(TestResult.java:106)
> >>        at junit.framework.TestResult.runProtected(TestResult.java:124)
> >>        at junit.framework.TestResult.run(TestResult.java:109)
> >>        at junit.framework.TestCase.run(TestCase.java:118)
> >>        at junit.framework.TestSuite.runTest(TestSuite.java:208)
> >>        at junit.framework.TestSuite.run(TestSuite.java:203)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
> >> JUnit3TestReference.java:130)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java
> >> :38)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> >> RemoteTestRunner.java:460)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> >> RemoteTestRunner.java:673)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> >> RemoteTestRunner.java:386)
> >>        at
> >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> >> RemoteTestRunner.java:196)
> >> Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
> >> at [row,col {unknown-source}]: [1,0]
> >>        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(
> >> StreamScanner.java:661)
> >>        at com.ctc.wstx.sr.BasicStreamReader.handleEOF(
> >> BasicStreamReader.java:2134)
> >>        at
> >> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java
> >> :2040)
> >>        at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java
> >> :1069)
> >>        at
> >> com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java
> >> :1095)
> >>        at
> >>
> >>
> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage
> >> (ReadHeadersInterceptor.java:85)
> >>        ... 34 more
> >>
> >> Please help.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/having-problem-with-cxf-2.0.2-using-client-webservice-tf4524946.html#a12910018
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/having-problem-with-cxf-2.0.2-using-client-webservice-tf4524946.html#a12913104
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to