javax.servlet.ServletException: Error initializing XFireServlet.

javax.servlet.ServletException: Error initializing XFireServlet.
	org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:52)
	javax.servlet.GenericServlet.init(GenericServlet.java:212)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	java.lang.Thread.run(Thread.java:662)

出现这样的原因有两种:

1. services.xml配置路径不对。默认路径"META-INF/xfire/services.xml"

2. Spring多余jar包冲突。

<dependency>

<groupId>org.codehaus.xfire</groupId>

<artifactId>xfire-all</artifactId>

<version>1.2.6</version>

</dependency>

默认情况下,xfire包含Spring 1.2.6版本,如果加入新的spring jar包,会引起冲突。

时间: 2024-12-28 21:30:29

javax.servlet.ServletException: Error initializing XFireServlet.的相关文章

HTTP Status 500 - javax.servlet.ServletException: File [/head.jsp] not found

完整错误信息 type Exception report message javax.servlet.ServletException: File [/head.jsp] not found description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: javax.se

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ELResolver错误解决办法

今天不用eclipse.myeclipse等开发工具,纯手写JSP页面(有点作死)时突然出现以前从来没遇到过的问题,报错如下: HTTP Status 500 - java.lang.NoClassDefFoundError: javax/el/ELResolver type Exception report message java.lang.NoClassDefFoundError: javax/el/ELResolver description The server encountered

HTTP Status 500 - javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space

详细错误信息 HTTP Status 500 - javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space type Exception report message javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space description The server encountered an internal

使用Maven创建Web项目后,jsp引入静态文件提示报错。JSP 报错:javax.servlet.ServletException cannot be resolved to a type

使用Maven创建Web项目后,jsp引入静态文件提示报错. 错误提示:javax.servlet.ServletException cannot be resolved to a type 错误如下图: 解决方案: 在Maven的pom文件中引发如下依赖即可: <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <versio

Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File &amp;quot;/pageFoo

1.错误描述 Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File "/pageFoot.jsp "not found 2.错误原因 <jsp:include page="../../pageFoot.jsp"></jsp:include> 3.解决办法 利用<jsp:include></jsp:includ

tomcat6.0发布项目打开jsp页面报错:HTTP Status 500 - javax.servlet.ServletException

今天遇到一个tomcat的部署的问题,问题根源在于server.xml 的配置里. 错误如标题,说HTTP Status 500 - javax.servlet.ServletException:XXX文件找不到,几经查找测试,程序并没有错误,有人说是jsp-api.jar和serlet-api.jar包冲突,调试发现并不能解决问题,后来才发现问题的所在: 开始的server.xml 配置对Host 以及其内的Context 是如下配置的: <Host name="localhost&qu

import javax.servlet.ServletException出错

import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; 出错的问题大概就是缺少servlet的jar包 网上搜素servlet.jar下

javax.servlet.ServletException cannot be resolved to a type错误解决方法

在页面中使用全局路径时${pageContext.request.contextPath}出现javax.servlet.ServletException cannot be resolved to a type错误,解决方法如下: 这个错误主要是因为缺少jsp-api.jar 和  servlet-api.jar这两个Jar包. 第一种解决方法: 直接把 Tomcat7.0 下lib目录中的 jsp-api.jar 添加  Build path 中. 第二种解决方法:使用 Maven 将 js

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation:

javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(Ljavax/servlet/ServletConfig;)Lorg/apache/tomcat/InstanceManager;" th