这是我的application.XML的配置
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<bean id="CreateStudents"
class="org.codehaus.xfire.spring.remoting.XFireExporter"> <property name="serviceFactory" ref="xfire.serviceFactory"></property> <property name="xfire" ref="xfire"></property> <property name="serviceBean" ref="createStudentsImpl"></property> <property name="serviceClass" value="com.webservice.student.CreateStudent">
</property> <property name="name" value="CreateStudentsService"></property> </bean> <bean id="createStudentsImpl"
class="com.webservice.studentImp.CreateStudentImpl">
</bean>
这个是我的WEB.xml的配置
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
<servlet-name>xfireServlet</servlet-name>
<servlet-class>
org.codehaus.xfire.spring.XFireSpringServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xfireServlet</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping> <servlet>
<servlet-name>SpringContextServlet</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>SpringLog4jConfigServlet</servlet-name>
<servlet-class>
org.springframework.web.util.Log4jConfigServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
</servlet>我用到了WSDL4J.JAR 和xfire-all-1[1].2.6.jar 我自认为我的配置没什么问题了,但还是报这个错误折腾了几天希望哪位大侠能帮我找找错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.customEditorConfigurer' defined in class path resource [org/codehaus/xfire/spring/customEditors.xml]: Cannot create inner bean 'org.codehaus.xfire.spring.editors.ServiceFactoryEditor#2bccb2' of type [org.codehaus.xfire.spring.editors.ServiceFactoryEditor] while setting bean property 'customEditors' with key [TypedStringValue: value [org.codehaus.xfire.service.ServiceFactory], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.editors.ServiceFactoryEditor#2bccb2' defined in class path resource [org/codehaus/xfire/spring/customEditors.xml]: Cannot resolve reference to bean 'xfire.transportManager' while setting bean property 'transportManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.transportManager' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamReader
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>
<bean id="CreateStudents"
class="org.codehaus.xfire.spring.remoting.XFireExporter"> <property name="serviceFactory" ref="xfire.serviceFactory"></property> <property name="xfire" ref="xfire"></property> <property name="serviceBean" ref="createStudentsImpl"></property> <property name="serviceClass" value="com.webservice.student.CreateStudent">
</property> <property name="name" value="CreateStudentsService"></property> </bean> <bean id="createStudentsImpl"
class="com.webservice.studentImp.CreateStudentImpl">
</bean>
这个是我的WEB.xml的配置
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
<servlet-name>xfireServlet</servlet-name>
<servlet-class>
org.codehaus.xfire.spring.XFireSpringServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xfireServlet</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping> <servlet>
<servlet-name>SpringContextServlet</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>SpringLog4jConfigServlet</servlet-name>
<servlet-class>
org.springframework.web.util.Log4jConfigServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>web</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
</servlet>我用到了WSDL4J.JAR 和xfire-all-1[1].2.6.jar 我自认为我的配置没什么问题了,但还是报这个错误折腾了几天希望哪位大侠能帮我找找错误
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.customEditorConfigurer' defined in class path resource [org/codehaus/xfire/spring/customEditors.xml]: Cannot create inner bean 'org.codehaus.xfire.spring.editors.ServiceFactoryEditor#2bccb2' of type [org.codehaus.xfire.spring.editors.ServiceFactoryEditor] while setting bean property 'customEditors' with key [TypedStringValue: value [org.codehaus.xfire.service.ServiceFactory], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.codehaus.xfire.spring.editors.ServiceFactoryEditor#2bccb2' defined in class path resource [org/codehaus/xfire/spring/customEditors.xml]: Cannot resolve reference to bean 'xfire.transportManager' while setting bean property 'transportManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.transportManager' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamReader
解决方案 »
- Struts2中的Action类实现ModelDriven接口的问题!
- java单表维护如何实现逻辑删除啊?新手求帮忙!
- webservic问题:The service cannot be found for the endpoint reference (EPR)
- J2EE哪部分比较重要
- 导入同级目录的外部css。没反映..
- 项目风险评估系统怎么实现啊?
- Tomcat5.0中的localhost配置问题?
- CMP的ejb,它怎么调用remove? (回答满意即刻给分!!!)
- 急!!文件上传到web服务器同时提交记录该记录有一个字段保存上传文件的文件名
- 怎样在xerces 的 DOMParser之后输出XML的字符串形式??
- 开发时javaw.exe占用资源很高的问题
- 一个比较变态的问题 java
”不知道什么东西,查一下
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xfire.typeMappingRegistry' defined in class path resource [org/codehaus/xfire/spring/xfire.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1170)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:82)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.startup.HostConfig.restartContext(HostConfig.java:873)
org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:759)
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
java.lang.Thread.run(Thread.java:595)
root cause java.lang.NoClassDefFoundError
org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.class$(DefaultTypeMappingRegistry.java:64)