xfire 启动异常

配置:




class="org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations" lazy-init="false"/>

class="org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping" lazy-init="false">













class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">











Query.aegis.xml:
 









异常:
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlerMapping' defined in ServletContext resource [/WEB-INF/xfiretest-servlet.xml]: Initialization of bean failed; nested exception is org.codehaus.xfire.XFireRuntimeException: Error initializing parameters for method public abstract com.test.api.test.query.Output (com.test.api.test.query.Input): Error evaluating xpath /mappings/mapping[@uri='http://api.test.com/test']. Nested exception is org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Text: org/jdom/Text
Caused by:
org.codehaus.xfire.XFireRuntimeException: Error initializing parameters for method public abstract com.test.api.test.query.Output(com.test.api.test.query.Input): Error evaluating xpath /mappings/mapping[@uri='http://api.test.com/test']. Nested exception is org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Text: org/jdom/Text
org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Text: org/jdom/Text
at org.jdom.xpath.XPath.newInstance(XPath.java:139)
at org.codehaus.xfire.aegis.XMLClassMetaInfoManager.getMatch(XMLClassMetaInfoManager.java:80)
at org.codehaus.xfire.aegis.XMLClassMetaInfoManager.findMapping(XMLClassMetaInfoManager.java:67)
at org.codehaus.xfire.aegis.type.XMLTypeCreator.findMapping(XMLTypeCreator.java:142)
at org.codehaus.xfire.aegis.type.XMLTypeCreator.createClassInfo(XMLTypeCreator.java:239)
at org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTypeCreator.java:353)
at org.codehaus.xfire.aegis.AegisBindingProvider.getParameterType(AegisBindingProvider.java:290)
at org.codehaus.xfire.aegis.AegisBindingProvider.initializeMessage(AegisBindingProvider.java:145)
at org.codehaus.xfire.service.binding.AbstractBindingProvider.initialize(AbstractBindingProvider.java:30)
at org.codehaus.xfire.aegis.AegisBindingProvider.initialize(AegisBindingProvider.java:133)
at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:469)
at org.codehaus.xfire.annotations.AnnotationServiceFactory.create(AnnotationServiceFactory.java:277)
at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:374)
at org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:355)
at org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.processBeans(Jsr181HandlerMapping.java:134)
at org.codehaus.xfire.spring.remoting.Jsr181HandlerMapping.initApplicationContext(Jsr181HandlerMapping.java:65)
at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:86)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization


项目中已经包含了,还有jaxen-1.1.jar,jaxb-api-2.0.jar,jdom-1.0.jar等包。

--------------------------------------
问题已经解决:
由于jboss里面有一个jaxen包,造成了冲突,同时在jboss里加入jdom包,一切正常了!

你可能感兴趣的:(java远程调用)