You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Song Haojie-a23023 <a2...@motorola.com> on 2006/11/27 07:40:05 UTC

Why I cannot run Tobago demo example

Hi all,
I copied tobago example demo 1.0.9-SNAPSHOT to my Tomcat 6.0, but I can
not run the examples successfully with the below error:

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: An exception occurred processing JSP
page /index.jsp at line 17
14:  * See the License for the specific language governing permissions
and
15:  * limitations under the License.
16: --%>
17: <jsp:forward page="faces/overview/intro.jsp"/>

	
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:554)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:413)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 
javax.servlet.ServletException: An exception occurred processing JSP
page /overview/intro.jsp at line 21
18: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
19: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
20: 
21: <layout:overview>
22:   <jsp:body>
23:     <tc:out escape="false" value="#{overviewBundle.intro_text}" />
24:   </jsp:body>

	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
	
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
:698)
	
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
69)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:56)
	
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:389)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 
javax.faces.FacesException: An exception occurred processing JSP page
/overview/intro.jsp at line 21
18: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
19: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
20: 
21: <layout:overview>
22:   <jsp:body>
23:     <tc:out escape="false" value="#{overviewBundle.intro_text}" />
24:   </jsp:body>

	
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
ervletExternalContextImpl.java:422)
	
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
HandlerImpl.java:234)
	
org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHan
dlerImpl.java:98)
	
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384
)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
	
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java
:698)
	
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:6
69)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:56)
	
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:389)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.0 logs.

________________________________


Apache Tomcat/6.0.0

 And  my web.xml is:
<?xml version="1.0" encoding="UTF-8"?>
 
<!--
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version
2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
 
<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>Tobago Demo Application</display-name>
 
  <filter>
    <filter-name>multipartFormdataFilter</filter-name>
 
<filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFi
lter</filter-class>
    <init-param>
      <description>Set the size limit for uploaded files. Default value
is 1 MB.
        Format: 10 = 10 bytes
        10k = 10 KB
        10m = 10 MB
        1g = 1 GB
      </description>
      <param-name>uploadMaxFileSize</param-name>
      <param-value>20m</param-value>
    </init-param>
    <!--<init-param>
      <description>Set the upload repository path for uploaded files.
Default value is java.io.tmpdir.</description>
      <param-name>uploadRepositoryPath</param-name>
      <param-value>/tmp</param-value>
    </init-param>-->
  </filter>
  <filter-mapping>
    <filter-name>multipartFormdataFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
  </filter-mapping>
 
  <listener>
 
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener<
/listener-class>
  </listener>
<!--  workaround (e.g. for Oracle AS 10.1.2.0.0)-->
  <listener>
 
<listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextLis
tener</listener-class>
  </listener>
  <!-- activate this for jetty -->
  
 
  <!-- servlet -->
<!-- no longer needed since Weblogic 8.1 SP 3
  <servlet>
    <servlet-name>WeblogicWorkaroundServlet</servlet-name>
 
<servlet-class>org.apache.myfaces.tobago.webapp.WeblogicWorkaroundServle
t</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
-->
 
  <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>3</load-on-startup>
  </servlet>
 
  <!-- servlet-mapping -->
 
  <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
 
  <!-- mime -->
  <mime-mapping>
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
  </mime-mapping>
 
  <mime-mapping>
    <extension>wbmp</extension>
    <mime-type>image/vnd.wap.wbmp</mime-type>
  </mime-mapping>
 
  <!-- The Usual Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
 
</web-app>

I didn't modify the other files.

Re: Why I cannot run Tobago demo example

Posted by Volker Weber <we...@googlemail.com>.
Please post the full stacktrace of the tomcat logs, and the content of
the tobago-examle-demo.log (located in $TOMCAT_HOME or
$TOMCAT_HOME/bin)

2006/11/27, Song Haojie-a23023 <a2...@motorola.com>:
>
>
>
>
>
> Hi all,
> I copied tobago example demo 1.0.9-SNAPSHOT to my Tomcat 6.0, but I can not
> run the examples successfully with the below error:
> 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: An exception occurred
> processing JSP page /index.jsp at line 17
> 14: * See the License for the specific language governing permissions and
> 15: * limitations under the License.
> 16: --%>
> 17: <jsp:forward page="faces/overview/intro.jsp"/>
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:554)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:413)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> root cause
> javax.servlet.ServletException: An exception occurred processing JSP page
> /overview/intro.jsp at line 21
> 18: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> 19: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
> 20:
> 21: <layout:overview>
> 22: <jsp:body>
> 23: <tc:out escape="false" value="#{overviewBundle.intro_text}" />
> 24: </jsp:body>
>
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:698)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:669)
>  org.apache.jsp.index_jsp._jspService(index_jsp.java:56)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> root cause
> javax.faces.FacesException: An exception occurred processing JSP page
> /overview/intro.jsp at line 21
> 18: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> 19: <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
> 20:
> 21: <layout:overview>
> 22: <jsp:body>
> 23: <tc:out escape="false" value="#{overviewBundle.intro_text}" />
> 24: </jsp:body>
>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
> org.apache.myfaces.tobago.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:98)
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:698)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:669)
>  org.apache.jsp.index_jsp._jspService(index_jsp.java:56)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> note The full stack trace of the root cause is available in the Apache
> Tomcat/6.0.0 logs.
>  ________________________________
>
> Apache Tomcat/6.0.0
>  And  my web.xml is:
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!--
>  * Licensed to the Apache Software Foundation (ASF) under one or more
>  * contributor license agreements.  See the NOTICE file distributed with
>  * this work for additional information regarding copyright ownership.
>  * The ASF licenses this file to You under the Apache License, Version 2.0
>  * (the "License"); you may not use this file except in compliance with
>  * the License.  You may obtain a copy of the License at
>  *
>  *      http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing, software
>  * distributed under the License is distributed on an "AS IS" BASIS,
>  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>  * See the License for the specific language governing permissions and
>  * limitations under the License.
> -->
>
> <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>Tobago Demo Application</display-name>
>
>   <filter>
>     <filter-name>multipartFormdataFilter</filter-name>
>
> <filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter</filter-class>
>     <init-param>
>       <description>Set the size limit for uploaded files. Default value is 1
> MB.
>         Format: 10 = 10 bytes
>         10k = 10 KB
>         10m = 10 MB
>         1g = 1 GB
>       </description>
>       <param-name>uploadMaxFileSize</param-name>
>       <param-value>20m</param-value>
>     </init-param>
>     <!--<init-param>
>       <description>Set the upload repository path for uploaded files.
> Default value is java.io.tmpdir.</description>
>       <param-name>uploadRepositoryPath</param-name>
>       <param-value>/tmp</param-value>
>     </init-param>-->
>   </filter>
>   <filter-mapping>
>     <filter-name>multipartFormdataFilter</filter-name>
>     <url-pattern>/faces/*</url-pattern>
>   </filter-mapping>
>
>   <listener>
>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>   </listener>
> <!--  workaround (e.g. for Oracle AS 10.1.2.0.0)-->
>   <listener>
>
> <listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
>   </listener>
>   <!-- activate this for jetty -->
>
>
>   <!-- servlet -->
> <!-- no longer needed since Weblogic 8.1 SP 3
>   <servlet>
>     <servlet-name>WeblogicWorkaroundServlet</servlet-name>
>
> <servlet-class>org.apache.myfaces.tobago.webapp.WeblogicWorkaroundServlet</servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
> -->
>
>   <servlet>
>     <servlet-name>FacesServlet</servlet-name>
>     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     <load-on-startup>3</load-on-startup>
>   </servlet>
>
>   <!-- servlet-mapping -->
>
>   <servlet-mapping>
>     <servlet-name>FacesServlet</servlet-name>
>     <url-pattern>/faces/*</url-pattern>
>   </servlet-mapping>
>
>   <!-- mime -->
>   <mime-mapping>
>     <extension>wml</extension>
>     <mime-type>text/vnd.wap.wml</mime-type>
>   </mime-mapping>
>
>   <mime-mapping>
>     <extension>wbmp</extension>
>     <mime-type>image/vnd.wap.wbmp</mime-type>
>   </mime-mapping>
>
>   <!-- The Usual Welcome File List -->
>   <welcome-file-list>
>     <welcome-file>index.jsp</welcome-file>
>   </welcome-file-list>
>
> </web-app>
>
> I didn't modify the other files.
>
>
>
>
>
>