glassfish下错误两个

1、在配置文件中开启jsp预编译:

 <!--   usePrecompiled      If true, it is assumed that JSPs have been     -->
  <!--                       precompiled, and their corresponding servlet   -->
  <!--                       classes have been bundled in the web           -->
  <!--                       application's WEB-INF/lib or WEB-INF/classes,  -->
  <!--                       so that when a JSP is accessed, it is not      -->
  <!--                       compiled, and instead, its precompiled servlet -->
  <!--                       class is used. [false]                         -->
  <!--                                                                      -->
  <!--   use-precompiled     Same as usePrecompiled. If both are specified, -->
  <!--                       usePrecompiled takes precedence                -->

 

抛出:

[#|2009-06-07T22:06:31.671+0800|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=e759fe67-ad2a-435f-8bd8-0f08b06c2d6d;|ApplicationDispatcher[/sea] PWC1231:Servlet jsp 的 Servlet.service() 抛出异常
java.lang.ClassNotFoundException: org.apache.jsp.WEB_002dINF.jsp.viewProjects_jsp

 

2、使用spring的字符编码过滤器:

[#|2009-06-07T19:50:38.046+0800|WARNING|sun-appserver2.1|org.apache.coyote.tomcat5.CoyoteRequest|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=eb3d9070-576d-443d-b552-a7ab83ed89d1;|PWC4011:由于已读取请求参数或已调用 ServletRequest.getReader(),因此无法将请求字符编码从上下文 /sea 设置为 UTF-8|#]

 

引发了sitemesh中的错误:

[#|2009-06-07T19:50:38.468+0800|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=eb3d9070-576d-443d-b552-a7ab83ed89d1;|StandardWrapperValve[jsp]: PWC1406:Servlet jsp 的 Servlet.service() 抛出异常
java.lang.AbstractMethodError: org.apache.crimson.tree.XmlDocument.setDocumentURI(Ljava/lang/String;)V

 

 

你可能感兴趣的:(apache,Web,jsp,servlet,Glassfish)