You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benjamin Coiffe <bc...@inforsense.com> on 2007/11/02 12:30:58 UTC
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
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
Could you post the WSDL?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 7:31 AM
> 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
>
>
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
Dan has indeed merged to the 2.0.3 branch. If I were you, I'd nab it
from there.
incubator/cxf/branches/2.0.x-fixes/rt/databinding/jaxb/src/main/java/org
/apache/cxf/endpoint/dynamic/TypeClassInitializer.java
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 9:44 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Thanks,
>
> If you tell me which file I need to check out, I could path my CXF
2.0.2
> and give it a go.
> Don't bother if that sounds painful.
> Thanks anyway.
>
> Ben
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 13:33
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I committed the fix to the trunk. I can't offer a workaround,
> unfortunately, but perhaps someone else will.
>
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Friday, November 02, 2007 9:26 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > You have found a bug. I'm just trying to figure out if there are
> > interesting variations on the bug that I shold worry about.
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 9:09 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Hum, sorry but I'm not following.
> > >
> > > Yet, I have tried using the dynamic client with xxx[][] where xxx
is
> a
> > > primitive type and it worked well. The factory creates an
> > xxxArrayArray
> > > object that contains a list of xxxArray that contains a list of
xxx.
> > The
> > > whole thing is right and works well. This only works in
RPC/literal.
> > >
> > > When the wsdl is a Document/literal, it is completely wrong...but
I
> > have
> > > read somewhere that it is not yet supported in CXF. The unwrapped
> > > operation contains only the primitive type: xxx instead of
xxxArray
> or
> > > anything else.
> > >
> > > Ben
> > >
> > >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:56
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > I'm coding your fix. Can you think of a WSDL construct that would
> > amount
> > > to foo[][]?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:39 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > My cxf version is 2.0.1. I will give it a go later today with
> 2.0.2.
> > > >
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: 02 November 2007 12:31
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > Hmm, I see. My test runs aground because I don't have enough
> > > > infrastructure where I put it.
> > > >
> > > > > -----Original Message-----
> > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > Sent: Friday, November 02, 2007 8:28 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > I set up a test case with the current development trunk, and
it
> > > fails
> > > > > for lack of an endpoint, not for your reason. I should have
> > started
> > > by
> > > > > asking: what version of CXF have you got there?
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > You are right. See by yourself:
> > > > > >
> > > > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > > > Bus bus = busFactory.createBus();
> > > > > > DynamicClientFactory dynamicClientFactory =
> > > > > > DynamicClientFactory.newInstance(bus);
> > > > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Ben
> > > > > > -----Original Message-----
> > > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > > Sent: 02 November 2007 12:11
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > Are you sure you mean DynamicClient.create and not
> > > > > > DynamicClientFactory.create?
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > > > To: cxf-user@incubator.apache.org
> > > > > > > Subject: RE: Dynamic Client byte[]
> > > > > > >
> > > > > > > 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
> > > > > > >
> > > > > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
It's one file, and it might not be too hard to backport.
It is
rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/TypeCl
assInitializer.java.
Dan is likely to backport to the 2.0.3 branch at some point.
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 9:44 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Thanks,
>
> If you tell me which file I need to check out, I could path my CXF
2.0.2
> and give it a go.
> Don't bother if that sounds painful.
> Thanks anyway.
>
> Ben
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 13:33
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I committed the fix to the trunk. I can't offer a workaround,
> unfortunately, but perhaps someone else will.
>
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Friday, November 02, 2007 9:26 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > You have found a bug. I'm just trying to figure out if there are
> > interesting variations on the bug that I shold worry about.
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 9:09 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Hum, sorry but I'm not following.
> > >
> > > Yet, I have tried using the dynamic client with xxx[][] where xxx
is
> a
> > > primitive type and it worked well. The factory creates an
> > xxxArrayArray
> > > object that contains a list of xxxArray that contains a list of
xxx.
> > The
> > > whole thing is right and works well. This only works in
RPC/literal.
> > >
> > > When the wsdl is a Document/literal, it is completely wrong...but
I
> > have
> > > read somewhere that it is not yet supported in CXF. The unwrapped
> > > operation contains only the primitive type: xxx instead of
xxxArray
> or
> > > anything else.
> > >
> > > Ben
> > >
> > >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:56
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > I'm coding your fix. Can you think of a WSDL construct that would
> > amount
> > > to foo[][]?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:39 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > My cxf version is 2.0.1. I will give it a go later today with
> 2.0.2.
> > > >
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: 02 November 2007 12:31
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > Hmm, I see. My test runs aground because I don't have enough
> > > > infrastructure where I put it.
> > > >
> > > > > -----Original Message-----
> > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > Sent: Friday, November 02, 2007 8:28 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > I set up a test case with the current development trunk, and
it
> > > fails
> > > > > for lack of an endpoint, not for your reason. I should have
> > started
> > > by
> > > > > asking: what version of CXF have you got there?
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > You are right. See by yourself:
> > > > > >
> > > > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > > > Bus bus = busFactory.createBus();
> > > > > > DynamicClientFactory dynamicClientFactory =
> > > > > > DynamicClientFactory.newInstance(bus);
> > > > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Ben
> > > > > > -----Original Message-----
> > > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > > Sent: 02 November 2007 12:11
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > Are you sure you mean DynamicClient.create and not
> > > > > > DynamicClientFactory.create?
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > > > To: cxf-user@incubator.apache.org
> > > > > > > Subject: RE: Dynamic Client byte[]
> > > > > > >
> > > > > > > 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
> > > > > > >
> > > > > > >
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
Thanks,
If you tell me which file I need to check out, I could path my CXF 2.0.2
and give it a go.
Don't bother if that sounds painful.
Thanks anyway.
Ben
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: 02 November 2007 13:33
To: cxf-user@incubator.apache.org
Subject: RE: Dynamic Client byte[]
I committed the fix to the trunk. I can't offer a workaround,
unfortunately, but perhaps someone else will.
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 9:26 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> You have found a bug. I'm just trying to figure out if there are
> interesting variations on the bug that I shold worry about.
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 9:09 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Hum, sorry but I'm not following.
> >
> > Yet, I have tried using the dynamic client with xxx[][] where xxx is
a
> > primitive type and it worked well. The factory creates an
> xxxArrayArray
> > object that contains a list of xxxArray that contains a list of xxx.
> The
> > whole thing is right and works well. This only works in RPC/literal.
> >
> > When the wsdl is a Document/literal, it is completely wrong...but I
> have
> > read somewhere that it is not yet supported in CXF. The unwrapped
> > operation contains only the primitive type: xxx instead of xxxArray
or
> > anything else.
> >
> > Ben
> >
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:56
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > I'm coding your fix. Can you think of a WSDL construct that would
> amount
> > to foo[][]?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:39 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > My cxf version is 2.0.1. I will give it a go later today with
2.0.2.
> > >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:31
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Hmm, I see. My test runs aground because I don't have enough
> > > infrastructure where I put it.
> > >
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: Friday, November 02, 2007 8:28 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > I set up a test case with the current development trunk, and it
> > fails
> > > > for lack of an endpoint, not for your reason. I should have
> started
> > by
> > > > asking: what version of CXF have you got there?
> > > >
> > > > > -----Original Message-----
> > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > You are right. See by yourself:
> > > > >
> > > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > > Bus bus = busFactory.createBus();
> > > > > DynamicClientFactory dynamicClientFactory =
> > > > > DynamicClientFactory.newInstance(bus);
> > > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Ben
> > > > > -----Original Message-----
> > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > Sent: 02 November 2007 12:11
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > Are you sure you mean DynamicClient.create and not
> > > > > DynamicClientFactory.create?
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > 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
> > > > > >
> > > > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
I committed the fix to the trunk. I can't offer a workaround,
unfortunately, but perhaps someone else will.
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 9:26 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> You have found a bug. I'm just trying to figure out if there are
> interesting variations on the bug that I shold worry about.
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 9:09 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Hum, sorry but I'm not following.
> >
> > Yet, I have tried using the dynamic client with xxx[][] where xxx is
a
> > primitive type and it worked well. The factory creates an
> xxxArrayArray
> > object that contains a list of xxxArray that contains a list of xxx.
> The
> > whole thing is right and works well. This only works in RPC/literal.
> >
> > When the wsdl is a Document/literal, it is completely wrong...but I
> have
> > read somewhere that it is not yet supported in CXF. The unwrapped
> > operation contains only the primitive type: xxx instead of xxxArray
or
> > anything else.
> >
> > Ben
> >
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:56
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > I'm coding your fix. Can you think of a WSDL construct that would
> amount
> > to foo[][]?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:39 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > My cxf version is 2.0.1. I will give it a go later today with
2.0.2.
> > >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:31
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Hmm, I see. My test runs aground because I don't have enough
> > > infrastructure where I put it.
> > >
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: Friday, November 02, 2007 8:28 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > I set up a test case with the current development trunk, and it
> > fails
> > > > for lack of an endpoint, not for your reason. I should have
> started
> > by
> > > > asking: what version of CXF have you got there?
> > > >
> > > > > -----Original Message-----
> > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > You are right. See by yourself:
> > > > >
> > > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > > Bus bus = busFactory.createBus();
> > > > > DynamicClientFactory dynamicClientFactory =
> > > > > DynamicClientFactory.newInstance(bus);
> > > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Ben
> > > > > -----Original Message-----
> > > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > > Sent: 02 November 2007 12:11
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > Are you sure you mean DynamicClient.create and not
> > > > > DynamicClientFactory.create?
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > > To: cxf-user@incubator.apache.org
> > > > > > Subject: RE: Dynamic Client byte[]
> > > > > >
> > > > > > 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
> > > > > >
> > > > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
You have found a bug. I'm just trying to figure out if there are
interesting variations on the bug that I shold worry about.
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 9:09 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Hum, sorry but I'm not following.
>
> Yet, I have tried using the dynamic client with xxx[][] where xxx is a
> primitive type and it worked well. The factory creates an
xxxArrayArray
> object that contains a list of xxxArray that contains a list of xxx.
The
> whole thing is right and works well. This only works in RPC/literal.
>
> When the wsdl is a Document/literal, it is completely wrong...but I
have
> read somewhere that it is not yet supported in CXF. The unwrapped
> operation contains only the primitive type: xxx instead of xxxArray or
> anything else.
>
> Ben
>
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 12:56
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I'm coding your fix. Can you think of a WSDL construct that would
amount
> to foo[][]?
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:39 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:31
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Hmm, I see. My test runs aground because I don't have enough
> > infrastructure where I put it.
> >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: Friday, November 02, 2007 8:28 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > I set up a test case with the current development trunk, and it
> fails
> > > for lack of an endpoint, not for your reason. I should have
started
> by
> > > asking: what version of CXF have you got there?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > You are right. See by yourself:
> > > >
> > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > Bus bus = busFactory.createBus();
> > > > DynamicClientFactory dynamicClientFactory =
> > > > DynamicClientFactory.newInstance(bus);
> > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > >
> > > > Thanks,
> > > >
> > > > Ben
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: 02 November 2007 12:11
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > Are you sure you mean DynamicClient.create and not
> > > > DynamicClientFactory.create?
> > > >
> > > > > -----Original Message-----
> > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > 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
> > > > >
> > > > >
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
Hum, sorry but I'm not following.
Yet, I have tried using the dynamic client with xxx[][] where xxx is a
primitive type and it worked well. The factory creates an xxxArrayArray
object that contains a list of xxxArray that contains a list of xxx. The
whole thing is right and works well. This only works in RPC/literal.
When the wsdl is a Document/literal, it is completely wrong...but I have
read somewhere that it is not yet supported in CXF. The unwrapped
operation contains only the primitive type: xxx instead of xxxArray or
anything else.
Ben
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: 02 November 2007 12:56
To: cxf-user@incubator.apache.org
Subject: RE: Dynamic Client byte[]
I'm coding your fix. Can you think of a WSDL construct that would amount
to foo[][]?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:39 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 12:31
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Hmm, I see. My test runs aground because I don't have enough
> infrastructure where I put it.
>
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Friday, November 02, 2007 8:28 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > I set up a test case with the current development trunk, and it
fails
> > for lack of an endpoint, not for your reason. I should have started
by
> > asking: what version of CXF have you got there?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:24 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > You are right. See by yourself:
> > >
> > > CXFBusFactory busFactory = new CXFBusFactory();
> > > Bus bus = busFactory.createBus();
> > > DynamicClientFactory dynamicClientFactory =
> > > DynamicClientFactory.newInstance(bus);
> > > Client client = dynamicClientFactory.createClient(wsdl);
> > >
> > > Thanks,
> > >
> > > Ben
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:11
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Are you sure you mean DynamicClient.create and not
> > > DynamicClientFactory.create?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > 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
> > > >
> > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
I'm coding your fix. Can you think of a WSDL construct that would amount
to foo[][]?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:39 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 12:31
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Hmm, I see. My test runs aground because I don't have enough
> infrastructure where I put it.
>
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Friday, November 02, 2007 8:28 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > I set up a test case with the current development trunk, and it
fails
> > for lack of an endpoint, not for your reason. I should have started
by
> > asking: what version of CXF have you got there?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:24 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > You are right. See by yourself:
> > >
> > > CXFBusFactory busFactory = new CXFBusFactory();
> > > Bus bus = busFactory.createBus();
> > > DynamicClientFactory dynamicClientFactory =
> > > DynamicClientFactory.newInstance(bus);
> > > Client client = dynamicClientFactory.createClient(wsdl);
> > >
> > > Thanks,
> > >
> > > Ben
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:11
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Are you sure you mean DynamicClient.create and not
> > > DynamicClientFactory.create?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > 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
> > > >
> > > >
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
Thank you
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: 02 November 2007 12:45
To: cxf-user@incubator.apache.org
Subject: RE: Dynamic Client byte[]
CXF-1168
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 8:42 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I've got your failure reproed on the trunk. Don't Bother. JIRA to
> follow, then debugging.
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:39 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:31
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Hmm, I see. My test runs aground because I don't have enough
> > infrastructure where I put it.
> >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: Friday, November 02, 2007 8:28 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > I set up a test case with the current development trunk, and it
> fails
> > > for lack of an endpoint, not for your reason. I should have
started
> by
> > > asking: what version of CXF have you got there?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > You are right. See by yourself:
> > > >
> > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > Bus bus = busFactory.createBus();
> > > > DynamicClientFactory dynamicClientFactory =
> > > > DynamicClientFactory.newInstance(bus);
> > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > >
> > > > Thanks,
> > > >
> > > > Ben
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: 02 November 2007 12:11
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > Are you sure you mean DynamicClient.create and not
> > > > DynamicClientFactory.create?
> > > >
> > > > > -----Original Message-----
> > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > 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
> > > > >
> > > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
CXF-1168
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 8:42 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I've got your failure reproed on the trunk. Don't Bother. JIRA to
> follow, then debugging.
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:39 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:31
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Hmm, I see. My test runs aground because I don't have enough
> > infrastructure where I put it.
> >
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: Friday, November 02, 2007 8:28 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > I set up a test case with the current development trunk, and it
> fails
> > > for lack of an endpoint, not for your reason. I should have
started
> by
> > > asking: what version of CXF have you got there?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:24 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > You are right. See by yourself:
> > > >
> > > > CXFBusFactory busFactory = new CXFBusFactory();
> > > > Bus bus = busFactory.createBus();
> > > > DynamicClientFactory dynamicClientFactory =
> > > > DynamicClientFactory.newInstance(bus);
> > > > Client client = dynamicClientFactory.createClient(wsdl);
> > > >
> > > > Thanks,
> > > >
> > > > Ben
> > > > -----Original Message-----
> > > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > > Sent: 02 November 2007 12:11
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > Are you sure you mean DynamicClient.create and not
> > > > DynamicClientFactory.create?
> > > >
> > > > > -----Original Message-----
> > > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > > To: cxf-user@incubator.apache.org
> > > > > Subject: RE: Dynamic Client byte[]
> > > > >
> > > > > 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
> > > > >
> > > > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
I've got your failure reproed on the trunk. Don't Bother. JIRA to
follow, then debugging.
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:39 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 12:31
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Hmm, I see. My test runs aground because I don't have enough
> infrastructure where I put it.
>
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Friday, November 02, 2007 8:28 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > I set up a test case with the current development trunk, and it
fails
> > for lack of an endpoint, not for your reason. I should have started
by
> > asking: what version of CXF have you got there?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:24 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > You are right. See by yourself:
> > >
> > > CXFBusFactory busFactory = new CXFBusFactory();
> > > Bus bus = busFactory.createBus();
> > > DynamicClientFactory dynamicClientFactory =
> > > DynamicClientFactory.newInstance(bus);
> > > Client client = dynamicClientFactory.createClient(wsdl);
> > >
> > > Thanks,
> > >
> > > Ben
> > > -----Original Message-----
> > > From: Benson Margulies [mailto:bim2007@basistech.com]
> > > Sent: 02 November 2007 12:11
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > Are you sure you mean DynamicClient.create and not
> > > DynamicClientFactory.create?
> > >
> > > > -----Original Message-----
> > > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > > Sent: Friday, November 02, 2007 8:08 AM
> > > > To: cxf-user@incubator.apache.org
> > > > Subject: RE: Dynamic Client byte[]
> > > >
> > > > 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
> > > >
> > > >
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
My cxf version is 2.0.1. I will give it a go later today with 2.0.2.
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: 02 November 2007 12:31
To: cxf-user@incubator.apache.org
Subject: RE: Dynamic Client byte[]
Hmm, I see. My test runs aground because I don't have enough
infrastructure where I put it.
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 8:28 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I set up a test case with the current development trunk, and it fails
> for lack of an endpoint, not for your reason. I should have started by
> asking: what version of CXF have you got there?
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:24 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > You are right. See by yourself:
> >
> > CXFBusFactory busFactory = new CXFBusFactory();
> > Bus bus = busFactory.createBus();
> > DynamicClientFactory dynamicClientFactory =
> > DynamicClientFactory.newInstance(bus);
> > Client client = dynamicClientFactory.createClient(wsdl);
> >
> > Thanks,
> >
> > Ben
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:11
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Are you sure you mean DynamicClient.create and not
> > DynamicClientFactory.create?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:08 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > 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
> > >
> > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
Hmm, I see. My test runs aground because I don't have enough
infrastructure where I put it.
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Friday, November 02, 2007 8:28 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> I set up a test case with the current development trunk, and it fails
> for lack of an endpoint, not for your reason. I should have started by
> asking: what version of CXF have you got there?
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:24 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > You are right. See by yourself:
> >
> > CXFBusFactory busFactory = new CXFBusFactory();
> > Bus bus = busFactory.createBus();
> > DynamicClientFactory dynamicClientFactory =
> > DynamicClientFactory.newInstance(bus);
> > Client client = dynamicClientFactory.createClient(wsdl);
> >
> > Thanks,
> >
> > Ben
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: 02 November 2007 12:11
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > Are you sure you mean DynamicClient.create and not
> > DynamicClientFactory.create?
> >
> > > -----Original Message-----
> > > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > > Sent: Friday, November 02, 2007 8:08 AM
> > > To: cxf-user@incubator.apache.org
> > > Subject: RE: Dynamic Client byte[]
> > >
> > > 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
> > >
> > >
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
I set up a test case with the current development trunk, and it fails
for lack of an endpoint, not for your reason. I should have started by
asking: what version of CXF have you got there?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:24 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> You are right. See by yourself:
>
> CXFBusFactory busFactory = new CXFBusFactory();
> Bus bus = busFactory.createBus();
> DynamicClientFactory dynamicClientFactory =
> DynamicClientFactory.newInstance(bus);
> Client client = dynamicClientFactory.createClient(wsdl);
>
> Thanks,
>
> Ben
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: 02 November 2007 12:11
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> Are you sure you mean DynamicClient.create and not
> DynamicClientFactory.create?
>
> > -----Original Message-----
> > From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> > Sent: Friday, November 02, 2007 8:08 AM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Dynamic Client byte[]
> >
> > 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
> >
> >
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
You are right. See by yourself:
CXFBusFactory busFactory = new CXFBusFactory();
Bus bus = busFactory.createBus();
DynamicClientFactory dynamicClientFactory =
DynamicClientFactory.newInstance(bus);
Client client = dynamicClientFactory.createClient(wsdl);
Thanks,
Ben
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: 02 November 2007 12:11
To: cxf-user@incubator.apache.org
Subject: RE: Dynamic Client byte[]
Are you sure you mean DynamicClient.create and not
DynamicClientFactory.create?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:08 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> 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
>
>
RE: Dynamic Client byte[]
Posted by Benson Margulies <bi...@basistech.com>.
Are you sure you mean DynamicClient.create and not
DynamicClientFactory.create?
> -----Original Message-----
> From: Benjamin Coiffe [mailto:bcoiffe@inforsense.com]
> Sent: Friday, November 02, 2007 8:08 AM
> To: cxf-user@incubator.apache.org
> Subject: RE: Dynamic Client byte[]
>
> 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
>
>
RE: Dynamic Client byte[]
Posted by Benjamin Coiffe <bc...@inforsense.com>.
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