cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sabbir <sabbir.ash...@gmail.com>
Subject Re: NoClassDefFoundError: javax/xml/rpc/handler/Handler
Date Sun, 25 Apr 2010 04:26:34 GMT

Thanks Daniel, I over looked that.  :jumping::jumping:


dkulp wrote:
> 
> 
> You are using the old JAX-RPC handler provided by wss4j, not the CXF 
> interceptor.   Change the class name to:
> 
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor
> 
> Dan
> 
> On Friday 23 April 2010 2:54:22 pm sabbir wrote:
>> My CXF WS client was running fine.
>> 
>> But when i add the security to Service , its showing an rpc error :( ??
>> 
>> 
>>                 <jaxws:inInterceptors>
>> 			<bean
>> 				
> class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
>> 			<bean class="org.apache.ws.security.handler.WSS4JHandler">
>> 				<constructor-arg>
>> 					<map>
>> 						<entry key="action" value="UsernameToken" 
> />
>> 						<entry key="passwordType" 
> value="PasswordText" />
>> 						<entry key="passwordCallbackClass"
>> 							value="com....ws.security.WSSecurity" 
> />
>> 					</map>
>> 				</constructor-arg>
>> 			</bean>
>> 
>> 
>> 		</jaxws:inInterceptors>
>> 
>> 
>> 
>> org.springframework.beans.factory.CannotLoadBeanClassException: Error
>> loading class [org.apache.ws.security.handler.WSS4JHandler] for bean with
>> name  'org.apache.ws.security.handler.WSS4JHandler#143073a' defined in
>> ServletContext resource [/WEB-INF/applicationContext.xml]: problem with
>> class file or dependent class; nested exception is
>> java.lang.NoClassDefFoundError: javax/xml/rpc/handler/Handler
>> 	at
>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanCl
>> ass(AbstractBeanFactory.java:1144) at
>> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanCl
>> ass(AbstractBeanFactory.java:1105) at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y$1.run(AbstractAutowireCapableBeanFactory.java:386) at
>> java.security.AccessController.doPrivileged(Native Method)
>> 	at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y.createBean(AbstractAutowireCapableBeanFactory.java:380) at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resol
>> veInnerBean(BeanDefinitionValueResolver.java:219) ... 44 more
>> Caused by: java.lang.NoClassDefFoundError: javax/xml/rpc/handler/Handler
>> 	at java.lang.ClassLoader.defineClass1(Native Method)
>> 
>> 
>> 
>> Pom.xml
>> ----------
>> 
>> 
>> 
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-frontend-jaxws</artifactId>
>> 			<version>2.2.6</version>
>> 		</dependency>
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-transports-http</artifactId>
>> 			<version>2.2.6</version>
>> 		</dependency>
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-transports-http-jetty</artifactId>
>> 			<version>2.2.6</version>
>> 		</dependency>
>> 
>> 		<!-- Security -->
>> 		<dependency>
>> 			<groupId>org.apache.cxf</groupId>
>> 			<artifactId>cxf-rt-ws-security</artifactId>
>> 			<version>2.2.6</version>
>> 		</dependency>
>> 		<dependency>
>> 			<groupId>org.apache.ws.security</groupId>
>> 			<artifactId>wss4j</artifactId>
>> 			<version>1.5.8</version>
>> 		</dependency>
>> 
>> 
>> Please let me know what is the problem here :( .
> 
> -- 
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> 
> 

-- 
View this message in context: http://old.nabble.com/NoClassDefFoundError%3A-javax-xml-rpc-handler-Handler-tp28345107p28354298.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message