tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Wang <pipa...@yahoo.com>
Subject Tomcat 5.5.17 500 error
Date Mon, 24 Apr 2006 06:15:58 GMT
    I hava a web app running well in tomcat 5.5.16 yesterday, but when I copy the app in another
machine, I met following error. 

"org.apache.jasper.JasperException: File "/webwork" not found" when I use webwork in jsp.
"org.apache.jasper.JasperException: /index.jsp(22,4) File "/common/cn/myMenu.jsp" not found"
when
I use <%@ include ...%> tag in jsp.

This is the error message
--------------------------
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: File "/webwork" not found
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
org.apache.jasper.JasperException: File "/webwork" not found
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17

And this is web.xml
----------------------
<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    
    <display-name>Newsystem application wj 2005-2006 (Spring WebWork Hibernate App)</display-name>
    
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/classes/com/exbizex/applicationContext/applicationContext.xml,
            /WEB-INF/classes/com/exbizex/applicationContext/applicationTestContext.xml,
            /WEB-INF/classes/com/exbizex/applicationContext/standardJspApplicationContext.xml,
            /WEB-INF/classes/com/exbizex/applicationContext/applicationValueListContext.xml
        </param-value>
    </context-param>
    
	<context-param>
		<param-name>log4jConfigLocation</param-name>
		<param-value>/WEB-INF/classes/log4j.properties</param-value>
	</context-param>

   <context-param>
    	<param-name>webAppRootKey</param-name>
    	<param-value>centerApplication</param-value>
  	</context-param>

	<listener>
		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
	</listener>
	
	<listener>
		<listener-class>com.atlassian.xwork.ext.ResolverSetupServletContextListener</listener-class>
	</listener>

    <listener>
        <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>
    </listener>
    
    <filter>
        <filter-name>cEncoding</filter-name>
        <filter-class>com.exbizex.center.filter.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>GBK</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>jEncoding</filter-name>
        <filter-class>com.exbizex.center.filter.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>shift_jis</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>centerAdminFilter</filter-name>
        <filter-class>com.exbizex.center.filter.CenterAdminFilter</filter-class>
    </filter>        
    
    <filter>
        <filter-name>OpenSessionInViewFilter</filter-name>
       
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    </filter>
    <filter>
        <filter-name>jstlfilter</filter-name>
        <filter-class>com.exbizex.center.filter.JSTLFilter</filter-class>
    </filter>
        
    <filter-mapping>
        <filter-name>jstlfilter</filter-name>
        <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    
    <filter-mapping>
        <filter-name>jstlfilter</filter-name>
        <url-pattern>*.action</url-pattern>
    </filter-mapping>
    
    <filter-mapping>
        <filter-name>OpenSessionInViewFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>centerAdminFilter</filter-name>
        <url-pattern>/centerAdmin/cn/index.htm</url-pattern>
    </filter-mapping>

	<!-- login -->
    <filter-mapping>
        <filter-name>centerAdminFilter</filter-name>
        <url-pattern>/centerAdmin/cn/index.jsp</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>cEncoding</filter-name>
        <url-pattern>/tttt.do</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>cEncoding</filter-name>
        <url-pattern>/localeSearch.do</url-pattern>
    </filter-mapping>
    
  	<servlet>
    	<servlet-name>springapp</servlet-name>
    	<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    	<load-on-startup>1</load-on-startup>
  	</servlet>

    <servlet>
        <servlet-name>webwork</servlet-name>
        <servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>velocity</servlet-name>
       
<servlet-class>com.opensymphony.webwork.views.velocity.WebWorkVelocityServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

	<servlet>
		<servlet-name>freemarker</servlet-name>
		<servlet-class>com.opensymphony.webwork.views.freemarker.FreemarkerServlet</servlet-class>
		<load-on-startup>10</load-on-startup>
	</servlet>

    <servlet> 
        <servlet-name>action</servlet-name> 
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

        <init-param> 
            <param-name>config</param-name> 
            <param-value>/WEB-INF/struts-config.xml</param-value> 
        </init-param> 
        <init-param> 
            <param-name>debug</param-name> 
            <param-value>2</param-value> 
        </init-param> 
        <init-param> 
            <param-name>detail</param-name> 
            <param-value>2</param-value> 
        </init-param> 
        <init-param> 
            <param-name>validate</param-name> 
            <param-value>true</param-value> 
        </init-param> 
        <load-on-startup>2</load-on-startup> 
    </servlet> 
    
  	<servlet>
    	<servlet-name>xTreeTest</servlet-name>
    	<servlet-class>tests.XTreeServlet</servlet-class>
  	</servlet>
  	<servlet>
    	<servlet-name>genAXml</servlet-name>
    	<servlet-class>tests.GenAXmlServlet</servlet-class>
  	</servlet>

  	<servlet>
    	<servlet-name>genXmlA</servlet-name>
    	<servlet-class>tests.GenXmlServletA</servlet-class>
  	</servlet>
  	<servlet>
    	<servlet-name>genXmlAB</servlet-name>
    	<servlet-class>tests.GenXmlServletAB</servlet-class>
  	</servlet>
  	<servlet>
    	<servlet-name>genXmlABC</servlet-name>
    	<servlet-class>tests.GenXmlServletABC</servlet-class>
  	</servlet>
  	<servlet>
    	<servlet-name>TestJDom</servlet-name>
    	<servlet-class>tests.TestJDom</servlet-class>
  	</servlet>
	
	<servlet>
		<servlet-name>source</servlet-name>
		<servlet-class>net.sf.navigator.example.DisplaySourceServlet</servlet-class>
	</servlet>
	
	<servlet>
	  	<servlet-name>dwr-invoker</servlet-name>
	  	<display-name>DWR Servlet</display-name>
	  	<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
	  	<init-param>
	     	<param-name>debug</param-name>
	     	<param-value>true</param-value>
	  	</init-param>
	</servlet>

	  <servlet>
	    <servlet-name>AxisServlet</servlet-name>
	    <display-name>Apache-Axis Servlet</display-name>
	    <servlet-class>
	        org.apache.axis.transport.http.AxisServlet
	    </servlet-class>
	  </servlet>
	
	  <servlet>
	    <servlet-name>AdminServlet</servlet-name>
	    <display-name>Axis Admin Servlet</display-name>
	    <servlet-class>
	        org.apache.axis.transport.http.AdminServlet
	    </servlet-class>
	    <load-on-startup>100</load-on-startup>
	  </servlet>
	
	  <servlet>
	    <servlet-name>SOAPMonitorService</servlet-name>
	    <display-name>SOAPMonitorService</display-name>
	    <servlet-class>
	        org.apache.axis.monitor.SOAPMonitorService
	    </servlet-class>
	    <init-param>
	      <param-name>SOAPMonitorPort</param-name>
	      <param-value>5001</param-value>
	    </init-param>
	    <load-on-startup>100</load-on-startup>
	  </servlet>

	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>/servlet/AxisServlet</url-pattern>
	  </servlet-mapping>
	
	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>*.jws</url-pattern>
	  </servlet-mapping>
	
	  <servlet-mapping>
	    <servlet-name>AxisServlet</servlet-name>
	    <url-pattern>/services/*</url-pattern>
	  </servlet-mapping>
	
	  <servlet-mapping>
	    <servlet-name>SOAPMonitorService</servlet-name>
	    <url-pattern>/SOAPMonitor</url-pattern>
	  </servlet-mapping>	

	 <!-- uncomment this if you want the admin servlet -->
	 <!---->
	  <servlet-mapping>
	    <servlet-name>AdminServlet</servlet-name>
	    <url-pattern>/servlet/AdminServlet</url-pattern>
	  </servlet-mapping>

  	<servlet-mapping>
    	<servlet-name>springapp</servlet-name>
    	<url-pattern>*.ccccccc</url-pattern>
  	</servlet-mapping>

    <servlet-mapping>
        <servlet-name>webwork</servlet-name>
        <url-pattern>*.action</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>velocity</servlet-name>
        <url-pattern>*.vm</url-pattern>
        <!--url-pattern>*.vm</url-pattern-->
    </servlet-mapping>

	<servlet-mapping>
		<servlet-name>freemarker</servlet-name>
		<url-pattern>*.ftl</url-pattern>
	</servlet-mapping>
	        
    <servlet-mapping> 
        <servlet-name>action</servlet-name> 
        <url-pattern>*.do</url-pattern> 
    </servlet-mapping>

	<servlet-mapping>
		<servlet-name>xTreeTest</servlet-name>
		<url-pattern>/xTreeTest</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>genXmlA</servlet-name>
		<url-pattern>/xmlA</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>genXmlAB</servlet-name>
		<url-pattern>/xmlAB</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>genXmlABC</servlet-name>
		<url-pattern>/xmlABC</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>genAXml</servlet-name>
		<url-pattern>/aXml</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>TestJDom</servlet-name>
		<url-pattern>/TestJDom</url-pattern>
	</servlet-mapping>

	<!-- tree -->
	<servlet-mapping>
		<servlet-name>country</servlet-name>
		<url-pattern>/country</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>province</servlet-name>
		<url-pattern>/province</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>city</servlet-name>
		<url-pattern>/city</url-pattern>
	</servlet-mapping>
	<!-- tree -->
	
	<servlet-mapping>
		<servlet-name>center/hCatalog</servlet-name>
		<url-pattern>/center/hCatalog</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>center/vCatalog</servlet-name>
		<url-pattern>/center/vCatalog</url-pattern>
	</servlet-mapping>
	
	<servlet-mapping>
		<servlet-name>source</servlet-name>
		<url-pattern>*.src</url-pattern>
	</servlet-mapping>

    <session-config>
        <!-- Default to 5 minute session timeouts -->
        <session-timeout>5</session-timeout>
    </session-config>
    
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>index.jws</welcome-file>
  </welcome-file-list>

  
<jsp-config>
  	<taglib>
    	<taglib-uri>/spring</taglib-uri>
    	<taglib-location>/WEB-INF/taglib/spring.tld</taglib-location>
  	</taglib>

    <taglib>
        <taglib-uri>webwork</taglib-uri>
        <taglib-location>/WEB-INF/taglib/webwork.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/fmt</taglib-uri>
        <taglib-location>/WEB-INF/taglib/fmt.tld</taglib-location>
    </taglib>
    <taglib>
        <taglib-uri>/c</taglib-uri>
        <taglib-location>/WEB-INF/taglib/c.tld</taglib-location>
    </taglib>

    <taglib>
      <taglib-uri>/datagrid</taglib-uri>
      <taglib-location>/WEB-INF/taglib/taglibs-datagrid.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/vlh</taglib-uri>
        <taglib-location>/WEB-INF/taglib/valuelist.tld</taglib-location>
    </taglib>
  
  
    <taglib> 
    <taglib-uri>/struts-bean</taglib-uri> 
    <taglib-location>/WEB-INF/taglib/struts-bean.tld</taglib-location> 
    </taglib> 

    <taglib> 
    <taglib-uri>/struts-html</taglib-uri> 
    <taglib-location>/WEB-INF/taglib/struts-html.tld</taglib-location> 
    </taglib> 

    <taglib> 
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> 
    <taglib-location>/WEB-INF/taglib/struts-logic.tld</taglib-location> 
    </taglib> 

    <taglib> 
        <taglib-uri>/struts-menu</taglib-uri> 
        <taglib-location>/WEB-INF/taglib/struts-menu.tld</taglib-location> 
    </taglib> 

  	<taglib>
    	<taglib-uri>/vlh</taglib-uri>
    	<taglib-location>/WEB-INF/taglib/valuelist.tld</taglib-location>
  	</taglib>

  	<taglib>
    	<taglib-uri>/wj</taglib-uri>
    	<taglib-location>/WEB-INF/taglib/wj.tld</taglib-location>
  	</taglib>
  	
</jsp-config>  
                  
</web-app>









		
___________________________________________________________ 
无限容量雅虎相册,原图等大下载,超快速度,赶快抢注! 
http://cn.photos.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message