cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (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:00:50 GMT

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

Daniel Kulp commented on CXF-5132:
----------------------------------

If the WSDL has a policy fragment in it, you are using the policy based runtime and the policy
must be correct.   Please check the wsdl and any other policy fragments for the UsernameToken
assertion and make sure it's defined correctly.


                
> 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