cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balaji Sengeni (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5132) Getting java.lang.NoSuchMethodError: org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
Date Tue, 16 Jul 2013 16:18:49 GMT

    [ https://issues.apache.org/jira/browse/CXF-5132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709884#comment-13709884
] 

Balaji Sengeni commented on CXF-5132:
-------------------------------------

Hi Daniel,

 Below is the WSDL fragment from owned by 3rd party, I have to use consume the service [CXF
client]

    <wsdl:binding name="binder" type="tns:servicePortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsp:PolicyReference xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" URI="#Username"/>
        <wsdl:operation name="handleRequest">
            <soap:operation soapAction="binder_handleRequest" style="document"/>
            <wsdl:input>
                <soap:body parts="parameters" use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body parts="parameters" use="literal"/>
            </wsdl:output>
            <wsdl:fault name="Fault">
                <soap:fault name="Fault" use="literal"/>
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>
    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
Name="Username" wsu:Id="Username">
        <wsp:ExactlyOne>
            <wsp:All>
                <sp:SupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
                    <wsp:Policy>
                        <sp:UsernameToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient"/>
                    </wsp:Policy>
                </sp:SupportingTokens>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>

 any this wrong here?

Regards,
 Balaji

                
> Getting java.lang.NoSuchMethodError: org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5132
>                 URL: https://issues.apache.org/jira/browse/CXF-5132
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.6
>            Reporter: Balaji Sengeni
>
> We have CXF web service running in tomcat, but when we try connecting the web service
using cxf client thrown below exception:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:657)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:633)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:424)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:534)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90)
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155)
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156)
> 	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:465)
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332)
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319)
> 	at javax.xml.ws.Service.getPort(Service.java:119)
> java.lang.NoSuchMethodError: org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:657)
~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:633)
~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:424)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:534)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
~[cxf-rt-core-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
~[cxf-rt-frontend-simple-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) ~[cxf-rt-frontend-simple-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155)
~[cxf-rt-frontend-simple-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156)
~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:465) ~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332) ~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319) ~[cxf-rt-frontend-jaxws-2.6.0.jar:2.6.0]
> 	at javax.xml.ws.Service.getPort(Service.java:119) ~[na:1.7.0_04]
>   
> And the environment details are as below:
> web service deployed in tomcat and client is spring bean which is run as a  java standalone
program & details are as below:
>     <http:conduit name="*.http-conduit">
>         <http:tlsClientParameters secureSocketProtocol="SSL">
>             <sec:trustManagers>
>                 <sec:keyStore resource="key-store.jks" password="password" type="JKS"/>
>             </sec:trustManagers>
>             <sec:cipherSuitesFilter>
>                 <sec:include>.*_EXPORT_.*</sec:include>
>                 <sec:include>.*_EXPORT1024_.*</sec:include>
>                 <sec:include>.*_WITH_3DES_.*</sec:include>
>                 <sec:include>.*_WITH_DES_.*</sec:include>
>                 <sec:include>.*_WITH_AES_.*</sec:include>
>                 <sec:include>.*_WITH_NULL_.*</sec:include>
>                 <sec:exclude>.*_DH_anon_.*</sec:exclude>
>             </sec:cipherSuitesFilter>
>         </http:tlsClientParameters>
>         <http:client AutoRedirect="true" Connection="Keep-Alive"/>
>     </http:conduit>
> Maven dependencies:
> ------------------
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-frontend-jaxws</artifactId>
>             <version>2.6.0</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-transports-http</artifactId>
>             <version>2.6.0</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-ws-security</artifactId>
>             <version>2.5.2</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.ws.security</groupId>
>             <artifactId>wss4j</artifactId>
>             <version>1.6.5</version>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.cxf</groupId>
>             <artifactId>cxf-rt-transports-http-jetty</artifactId>
>             <version>2.5.2</version>
>             <scope>provided</scope>
>         </dependency>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message