cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Coiffe" <bcoi...@inforsense.com>
Subject RE: Dynamic Client byte[]
Date Fri, 02 Nov 2007 12:07:52 GMT
Sorry I forgot the wsdl and stacktrace in my previous email.
I appended them both in this email.

Thanks,

Benjamin


<?xml version="1.0" encoding="utf-8"?><wsdl:definitions
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://rpc.data.webservicestudio.inforsense.com/"
xmlns:ns2="http://schemas.xmlsoap.org/soap/http"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DataTestService"
targetNamespace="http://rpc.data.webservicestudio.inforsense.com/">
  <wsdl:types>
<xsd:schema xmlns="http://rpc.data.webservicestudio.inforsense.com/"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://rpc.data.webservicestudio.inforsense.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="UnsupportedEncodingException"
type="UnsupportedEncodingException"/>
<xsd:complexType name="UnsupportedEncodingException">
<xsd:sequence>
<xsd:element name="message" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
  </wsdl:types>
  <wsdl:message name="getStringResponse">
    <wsdl:part name="return" type="xsd:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="getString">
    <wsdl:part name="arg0" type="xsd:base64Binary">
    </wsdl:part>
    <wsdl:part name="arg1" type="xsd:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="UnsupportedEncodingException">
    <wsdl:part element="ns1:UnsupportedEncodingException" name="fault">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="TestService">
    <wsdl:operation name="getString">
      <wsdl:input message="ns1:getString" name="getString">
    </wsdl:input>
      <wsdl:output message="ns1:getStringResponse"
name="getStringResponse">
    </wsdl:output>
      <wsdl:fault message="ns1:UnsupportedEncodingException"
name="UnsupportedEncodingException">
    </wsdl:fault>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="DataTestServiceSoapBinding"
type="ns1:TestService">
    <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getString">
      <soap:operation soapAction="" style="rpc"/>
      <wsdl:input name="getString">
        <soap:body
namespace="http://rpc.data.webservicestudio.inforsense.com/"
use="literal"/>
      </wsdl:input>
      <wsdl:output name="getStringResponse">
        <soap:body
namespace="http://rpc.data.webservicestudio.inforsense.com/"
use="literal"/>
      </wsdl:output>
      <wsdl:fault name="UnsupportedEncodingException">
        <soap:fault name="UnsupportedEncodingException" use="literal"/>
      </wsdl:fault>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="DataTestService">
    <wsdl:port binding="ns1:DataTestServiceSoapBinding"
name="TestServiceImplPort">
      <soap:address location="http://localhost:9004/data"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>




7 ERROR [STDERR]
org.apache.cxf.service.factory.ServiceConstructionException
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.endpoint.dynamic.TypeClassInitializer.begin(TypeClassInit
ializer.java:93)
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVi
sitor.java:62)
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java
:48)
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:249)
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:145)
12:04:26,837 ERROR [STDERR] 	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:124)
12:04:26,837 ERROR [STDERR] 	at
com.inforsense.webservicestudio.server.cache.ClientFactory.getClient(Cli
entFactory.java:53)
12:04:26,837 ERROR [STDERR] 	at
com.inforsense.webservicestudio.server.HttpCxfImpl.getOperations(HttpCxf
Impl.java:44)
12:04:26,837 ERROR [STDERR] 	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:04:26,837 ERROR [STDERR] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
12:04:26,837 ERROR [STDERR] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
12:04:26,837 ERROR [STDERR] 	at
java.lang.reflect.Method.invoke(Method.java:585)
12:04:26,837 ERROR [STDERR] 	at
com.inforsense.servlet.ServiceServlet.doPost(ServiceServlet.java:79)
12:04:26,837 ERROR [STDERR] 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
12:04:26,837 ERROR [STDERR] 	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
12:04:26,837 ERROR [STDERR] 	at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
12:04:26,837 ERROR [STDERR] 	at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:175)
12:04:26,837 ERROR [STDERR] 	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:524)
12:04:26,837 ERROR [STDERR] 	at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:74)
12:04:26,852 ERROR [STDERR] 	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
12:04:26,852 ERROR [STDERR] 	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
12:04:26,852 ERROR [STDERR] 	at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
392)
12:04:26,852 ERROR [STDERR] 	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
12:04:26,852 ERROR [STDERR] 	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
12:04:26,852 ERROR [STDERR] 	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
12:04:26,852 ERROR [STDERR] 	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
12:04:26,852 ERROR [STDERR] 	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
12:04:26,852 ERROR [STDERR] 	at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
12:04:26,852 ERROR [STDERR] 	at java.lang.Thread.run(Thread.java:595)
12:04:26,852 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException:
No ClassLoaders found for: byte[]
12:04:26,852 ERROR [STDERR] 	at
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
12:04:26,852 ERROR [STDERR] 	at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClass
Loader.java:511)
12:04:26,852 ERROR [STDERR] 	at
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoad
er.java:405)
12:04:26,852 ERROR [STDERR] 	at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
12:04:26,852 ERROR [STDERR] 	at
org.java.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:290)
12:04:26,852 ERROR [STDERR] 	at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
12:04:26,852 ERROR [STDERR] 	at
org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass2(ClassLoade
rUtils.java:127)
12:04:26,852 ERROR [STDERR] 	at
org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoader
Utils.java:116)
12:04:26,852 ERROR [STDERR] 	at
org.apache.cxf.endpoint.dynamic.TypeClassInitializer.begin(TypeClassInit
ializer.java:88)
12:04:26,852 ERROR [STDERR] 	... 34 more


-----Original Message-----
From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com] 
Sent: 02 November 2007 11:31
To: cxf-user@incubator.apache.org
Subject: Dynamic Client byte[]

Hi,

 

I am trying to create a Dynamic Client from a wsdl that contains an
operation returning a base64binary (byte[]). The method
DynamicClient.createClient("http://mywsdl") throws a
ServiceConstructionException because it is trying to initialise in the
service model a "byte[]" and can't find it in the ClassLoader.

Did anybody come across this problem? I could not find anything related
in the mailing list or in jira although it seems to be a basic(?) issue?

Any help appreciated...  

 

Ben

 


Mime
View raw message