java - Getting NoClassDefFoundError for com.sun.xml.wss.XWSSecurityException -
i upgraded spring version 1.5.8 version 4.2.3.release , spring ws 1.5.8 2.2.0.release. project compiles fine when start tomcat following error.i using cxf 2.6.0. using xwssecurityinterceptor.
caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'annotationmapping' defined in class path resource [applicationcontext-ws.xml]: initialization of bean failed; nested exception java.lang.noclassdeffounderror: com/sun/xml/wss/xwssecurityexception @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:553) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbeansoftype(defaultlistablebeanfactory.java:534) @ org.springframework.context.support.abstractapplicationcontext.getbeansoftype(abstractapplicationcontext.java:1167) @ org.springframework.beans.factory.beanfactoryutils.beansoftypeincludingancestors(beanfactoryutils.java:310) @ org.springframework.ws.server.messagedispatcher.initendpointmappings(messagedispatcher.java:471) @ org.springframework.ws.server.messagedispatcher.setapplicationcontext(messagedispatcher.java:160) @ org.springframework.context.support.applicationcontextawareprocessor.invokeawareinterfaces(applicationcontextawareprocessor.java:119) @ org.springframework.context.support.applicationcontextawareprocessor.postprocessbeforeinitialization(applicationcontextawareprocessor.java:94) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1570) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:545) ... 24 more caused by: java.lang.noclassdeffounderror: com/sun/xml/wss/xwssecurityexception @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(class.java:2615) @ java.lang.class.getdeclaredmethods(class.java:1860) @ org.springframework.util.reflectionutils.getdeclaredmethods(reflectionutils.java:609) @ org.springframework.util.reflectionutils.dowithmethods(reflectionutils.java:521) @ org.springframework.util.reflectionutils.dowithmethods(reflectionutils.java:507) @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.determinecandidateconstructors(autowiredannotationbeanpostprocessor.java:241) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.determineconstructorsfrombeanpostprocessors(abstractautowirecapablebeanfactory.java:1069) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1042) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:510) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvereference(beandefinitionvalueresolver.java:351) @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:108) @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvemanagedlist(beandefinitionvalueresolver.java:382) @ org.springframework.beans.factory.support.beandefinitionvalueresolver.resolvevalueifnecessary(beandefinitionvalueresolver.java:157) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applypropertyvalues(abstractautowirecapablebeanfactory.java:1481) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1226) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:543) ... 39 more caused by: java.lang.classnotfoundexception: com.sun.xml.wss.xwssecurityexception @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1856) @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1705) ... 61 more
any appreciated.
<dependency> <groupid>com.sun.xml.wss</groupid> <artifactid>xws-security</artifactid> <version>3.0</version> <exclusions> <exclusion> <groupid>javax.xml.crypto</groupid> <artifactid>xmldsig</artifactid> </exclusion> </exclusions> </dependency>
dependency missing, add pom file.
Comments
Post a Comment