我正在关注
的教程http://examples.javacodegeeks.com/enterprise-java/jws/jax-ws-spring-integration-example/
但是,当我尝试部署WAR时,它会给我以下错误 -
ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 51) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.sun.xml.ws.transport.http.servlet.SpringBinding#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean '(inner bean)' of type [org.jvnet.jax_ws_commons.spring.SpringService] while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager
答案 0 :(得分:1)
该课程在JDK中。你应该在$ JAVA_HOME / jre / lib / rt.jar
中找到它检查您是否使用了正确的jdk(Oracle Jdk7或更高版本)。
答案 1 :(得分:0)
看起来您必须将jaxb-xjc.jar
jar添加到类路径中。这个jar包含缺少的类:com/sun/org/apache/xml/internal/resolver/CatalogManager