Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- http://java.sun.com/jsf/html cann

- http://java.sun.com/jsf/html cann

2007-06-13       - By Hattifnat

 Back
Hi!

I'm using JBoss AS 4.2.0 and deploying a WAR file consisting of JSP and JSF
pages. I use Apache MyFaces Tomahawk 1.1.6, which is in my WAR's WEB-INF/lib
directory. I do not use MyFaces Core - i want to use the JBoss's bundled JSF
libraries. The problem is: deployment of the WAR goes fine, the main index.jsp
page works fine, but when I want to enter a JSF page, a following exception is
thrown on the JBoss console and the page is blank.

org.apache.jasper.JasperException Source code of org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsf
/html cannot be resolved in either web.xml or the jar files deployed with this
application
 |         at org.apache.jasper.compiler.DefaultErrorHandler Source code of org.apache.jasper.compiler.DefaultErrorHandler
(DefaultErrorHandler.java:51)
 |         at org.apache.jasper.compiler.ErrorDispatcher Source code of org.apache.jasper.compiler.ErrorDispatcher
(ErrorDispatcher.java:409)
 |         at org.apache.jasper.compiler.ErrorDispatcher Source code of org.apache.jasper.compiler.ErrorDispatcher
(ErrorDispatcher.java:116)
 |         at org.apache.jasper.compiler.TagLibraryInfoImpl Source code of org.apache.jasper.compiler.TagLibraryInfoImpl
.generateTLDLocation(TagLibraryInfoImpl.java:315)
 |         at org.apache.jasper.compiler.TagLibraryInfoImpl Source code of org.apache.jasper.compiler.TagLibraryInfoImpl<init>
(TagLibraryInfoImpl.java:148)
 |         at org.apache.jasper.compiler.Parser Source code of org.apache.jasper.compiler.Parser(Parser
.java:420)
 |         at org.apache.jasper.compiler.Parser Source code of org.apache.jasper.compiler.Parser(Parser.java:476)
 |         at org.apache.jasper.compiler.Parser Source code of org.apache.jasper.compiler.Parser(Parser.java:1426)
 |         at org.apache.jasper.compiler.Parser Source code of org.apache.jasper.compiler.Parser(Parser.java:133)
 |         at org.apache.jasper.compiler.ParserController Source code of org.apache.jasper.compiler.ParserController
(ParserController.java:216)
 |         at org.apache.jasper.compiler.ParserController Source code of org.apache.jasper.compiler.ParserController
(ParserController.java:103)
 |         at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java
:167)
 |         at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:306)
 |         at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:286)
 |         at org.apache.jasper.compiler.Compiler Source code of org.apache.jasper.compiler.Compiler(Compiler.java:273)
 |         at org.apache.jasper.JspCompilationContext Source code of org.apache.jasper.JspCompilationContext
(JspCompilationContext.java:566)
 |         at org.apache.jasper.servlet.JspServletWrapper Source code of org.apache.jasper.servlet.JspServletWrapper
(JspServletWrapper.java:311)
 |         at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet
.java:320)
 |         at org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet(JspServlet.java:266)
 |         at javax.servlet.http.HttpServlet Source code of javax.servlet.http.HttpServlet(HttpServlet.java:803)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:290)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |         at org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher
(ApplicationDispatcher.java:687)
 |         at org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher
(ApplicationDispatcher.java:469)
 |         at org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher
(ApplicationDispatcher.java:403)
 |         at org.apache.catalina.core.ApplicationDispatcher Source code of org.apache.catalina.core.ApplicationDispatcher
(ApplicationDispatcher.java:301)
 |         at com.sun.faces.context.ExternalContextImpl.dispatch
(ExternalContextImpl.java:408)
 |         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView
(ViewHandlerImpl.java:439)
 |         at com.sun.faces.application.ViewHandlerImpl.renderView
(ViewHandlerImpl.java:114)
 |         at com.sun.faces.lifecycle.RenderResponsePhase.execute
(RenderResponsePhase.java:106)
 |         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java
:251)
 |         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java
:144)
 |         at javax.faces.webapp.FacesServlet Source code of javax.faces.webapp.FacesServlet(FacesServlet.java:245)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:290)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |         at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
(ExtensionsFilter.java:147)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:235)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:235)
 |         at org.apache.catalina.core.ApplicationFilterChain Source code of org.apache.catalina.core.ApplicationFilterChain
(ApplicationFilterChain.java:206)
 |         at org.apache.catalina.core.StandardWrapperValve Source code of org.apache.catalina.core.StandardWrapperValve
(StandardWrapperValve.java:230)
 |         at org.apache.catalina.core.StandardContextValve Source code of org.apache.catalina.core.StandardContextValve
(StandardContextValve.java:175)
 |         at org.jboss.web.tomcat.security.SecurityAssociationValve Source code of org.jboss.web.tomcat.security.SecurityAssociationValve
(SecurityAssociationValve.java:179)
 |         at org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:84)
 |         at org.apache.catalina.core.StandardHostValve Source code of org.apache.catalina.core.StandardHostValve
(StandardHostValve.java:128)
 |         at org.apache.catalina.valves.ErrorReportValve Source code of org.apache.catalina.valves.ErrorReportValve
(ErrorReportValve.java:104)
 |         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke
(CachedConnectionValve.java:156)
 |         at org.apache.catalina.core.StandardEngineValve Source code of org.apache.catalina.core.StandardEngineValve
(StandardEngineValve.java:109)
 |         at org.apache.catalina.connector.CoyoteAdapter Source code of org.apache.catalina.connector.CoyoteAdapter
(CoyoteAdapter.java:241)
 |         at org.apache.coyote.http11.Http11Processor Source code of org.apache.coyote.http11.Http11Processor(Http11Processor
.java:844)
 |         at org.apache.coyote.http11.Http11Protocol Source code of org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
.process(Http11Protocol.java:580)
 |         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint
.java:447)
 |         at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)

My web.xml file is such:

<?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
 | <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">
 |
 |   <servlet>
 |     <servlet-name>jsp</servlet-name>
 |     <servlet-class>org.apache.jasper.servlet.JspServlet Source code of org.apache.jasper.servlet.JspServlet</servlet-class>
 |     <init-param>
 |      <param-name>compilerTargetVM</param-name>
 |      <param-value>1.5</param-value>
 |     </init-param>
 |     <init-param>
 |      <param-name>compilerSourceVM</param-name>
 |      <param-value>1.5</param-value>
 |     </init-param>
 |   </servlet>
 |
 |   <filter>
 |     <filter-name>extensionsFilter</filter-name>
 |     <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter
-class>
 |     <init-param>
 |       <description>Set the size limit for uploaded files.
 |                 Format: 10 - 10 bytes
 |                         10k - 10 KB
 |                         10m - 10 MB
 |                         1g - 1 GB</description>
 |       <param-name>uploadMaxFileSize</param-name>
 |       <param-value>2m</param-value>
 |     </init-param>
 |     <init-param>
 |       <description>Set the threshold size - files
 |                     below this limit are stored in memory, files above
 |                     this limit are stored on disk.
 |
 |                 Format: 10 - 10 bytes
 |                         10k - 10 KB
 |                         10m - 10 MB
 |                         1g - 1 GB</description>
 |       <param-name>uploadThresholdSize</param-name>
 |       <param-value>100k</param-value>
 |     </init-param>
 |   </filter>
 |   <filter-mapping>
 |     <filter-name>extensionsFilter</filter-name>
 |     <url-pattern>*.jsf</url-pattern>
 |   </filter-mapping>
 |   <filter-mapping>
 |     <filter-name>extensionsFilter</filter-name>
 |     <url-pattern>/faces/*</url-pattern>
 |   </filter-mapping>
 |
 |   <servlet>
 |     <servlet-name>Faces Servlet</servlet-name>
 |     <servlet-class>javax.faces.webapp.FacesServlet Source code of javax.faces.webapp.FacesServlet</servlet-class>
 |     <load-on-startup>1</load-on-startup>
 |   </servlet>
 |
 |   <servlet-mapping>
 |     <servlet-name>Faces Servlet</servlet-name>
 |     <url-pattern>*.jsf</url-pattern>
 |   </servlet-mapping>
 |
 |   <welcome-file-list>
 |     <welcome-file>index.jsp</welcome-file>
 |   </welcome-file-list>
 | </web-app>

My JSF page (called "page.jsp" but accessed as "page.jsf")
<%@ page language="java" contentType="text/html; charset=UTF-8 (See http://UTF-8.ora-code.com)" pageEncoding=
"UTF-8 (See http://UTF-8.ora-code.com)"%>
 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
.w3.org/TR/html4/loose.dtd">
 | <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
 | <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
 |
 | <html>
 | <head>
 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8 (See http://UTF-8.ora-code.com)">
 | <link rel="stylesheet" href="styles.css" type="text/css">
 | <title></title>
 | </head>
 | <body>
 | <table>
 |   <tr>
 |     <td id="menu">
 |       <%@(protected) file="menu.html" %>
 |     </td>
 |     <td id="main">
 |       <f:view>
 |
 |       <h:form id="some_id">
 |   HELLO
 |       </h:form>
 |       </f:view>
 |     </td>
 |   </tr>
 | </table>
 | </body>
 | </html>"

The same WAR, but with MyFaces included in WEB-INF/lib (MyFaces API and Impl)
works fine on Tomcat 5.5.23. Can anybody help me?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4053927#4053927

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4053927
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.