资源文件配置问题,最后这么点分了
小弟初涉jsp的内容,下面这个问题请大家给点意见
我使用的是 tomcat5.5+eclipse3.2开发
项目是在windows下面做的,并且完全正常,然后移植到linux下面就出问题了
===========================================
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.handle
JspException(JspServletWrapper.java:476)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1238)
org.apache.struts.taglib.TagUtils.message(TagUtils.java:1101)
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:224)
org.apache.jsp.login_jsp._jspx_meth_bean_message_0(login_jsp.java:161)
org.apache.jsp.login_jsp._jspService(login_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
===========================================
这个好象是说在使用标签的时候,资源文件出了问题,下面是
web.xml------------------------------------------------
<?xml version= "1.0 " encoding= "ISO-8859-1 "?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN "
"http://java.sun.com/dtd/web-app_2_3.dtd ">
<web-app>
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name> actionServlet </servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet </servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>