Dear all,
this has been resolved and was caused by my having an uppercase letter
in a directory name. This in turn appeared in class package names.
However, wsdl2java created a new directory using only lowercase
directory names. This difference permeated to SOAP messages, etc and
caused the error,
Peter
Peter Lavin wrote:
Dear Users,
I am running client code generated using the wsdl2Java tool. When
running the client generated, I am getting the following error. This
error has been present in previous versions (see...
http://cxf.547215.n5.nabble.com/Help-using-wsdl2java-script-td3284997.html)
However, I am using a CXF installation and Java version which are later
than the versions mentioned in the URL above).
Has anyone else come across this problem? and have a straightforward
solution?
Peter
================ Error message & details ==============
$ ant runClient
Buildfile: /home/lavinp/workspace/cxf-Ch2/build.xml
runClient:
[java] Aug 24, 2011 9:27:37 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
[java] INFO: Creating Service
{http://myApp.learn.own/}ApplicationImplService from WSDL:
http://localhost:8080/myMachine/Application?wsdl
[java] Invoking runMachine...
[java] Exception in thread "main"
javax.xml.ws.soap.SOAPFaultException: Fault occurred while processing.
[java] at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
[java] at $Proxy25.runMachine(Unknown Source)
[java] at
own.learn.myapp.Application_ApplicationImplPort_Client.main(Application_ApplicationImplPort_Client.java:55)
[java] Caused by: org.apache.cxf.binding.soap.SoapFault: Fault
occurred while processing.
[java] at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
[java] at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
[java] at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
[java] at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
[java] at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:104)
[java] at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
[java] at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
[java] at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
[java] at
org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:736)
[java] at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1563)
[java] at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1448)
[java] at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1356)
[java] at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
[java] at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:614)
[java] at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
[java] at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
[java] at
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:484)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:414)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:269)
[java] at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
[java] at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
[java] ... 2 more
[java] Java Result: 1
==============================================================
Set up...
apache-cxf-2.4.0
$ pwd && ls -l | grep jaxb
/opt/apache-cxf/apache-cxf-2.4.0/lib
-rw-r--r-- 1 2345 users 104554 Apr 1 14:31 jaxb-api-2.2.1.jar
-rw-r--r-- 1 2345 users 877973 Apr 1 17:30 jaxb-impl-2.2.1.1.jar
-rw-r--r-- 1 2345 users 3112544 Apr 1 17:30 jaxb-xjc-2.2.1.1.jar
$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.10) (rhel-1.21.b17.el5-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
$ uname -a
Linux shiraz.cs.tcd.ie 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT
2011 x86_64 x86_64 x86_64 GNU/Linux
--
with best regards,
Peter Lavin,
PhD Candidate,
Computer Architecture & Grid Research Group,
Lloyd Institute, 005,
Trinity College Dublin, Ireland.
+353 1 8961536