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
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
- Re: no page context active exception when use seam p

- Re: no page context active exception when use seam p

2007-11-01       - By jiyuan_wang

 Back
Reply:     1     2     3  

web.xml
(replace quote with \ and [] replace less than/great than, since they cause 404
error)
__ ____ ____ ____ ____ ____ ____ ____ ____ ______
[?xml version=\1.0\ encoding=\UTF-8 (See http://UTF-8.ora-code.com)\?]
[web-app version=\2.4\
   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\]

   [!-- This is the original that was working with richFaces --]

   [!-- Ajax4jsf (must come first!) --]
       
  [context-param]
    [param-name]org.ajax4jsf.SKIN[/param-name]
    [param-value]blueSky[/param-value]
  [/context-param]

   [filter]
       [display-name]Ajax4jsf Filter[/display-name]
       [filter-name]ajax4jsf[/filter-name]
       [filter-class]org.ajax4jsf.Filter[/filter-class]
   [/filter]

   [filter-mapping]
       [filter-name]ajax4jsf[/filter-name]
       [url-pattern]*.faces[/url-pattern]
   [/filter-mapping]
   

   [!-- Seam --]
   [listener]
       [listener-class]org.jboss.seam.servlet.SeamListener[/listener-class]
   [/listener]

   [!-- Propagate conversations across redirects --]
   [filter]
       [filter-name]Seam Redirect Filter[/filter-name]
       [filter-class]org.jboss.seam.servlet.SeamRedirectFilter[/filter-class]
   [/filter]

   [filter-mapping]
       [filter-name]Seam Redirect Filter[/filter-name]
       [url-pattern]*.faces[/url-pattern]
   [/filter-mapping]

       
   [filter]
       [filter-name]Seam Exception Filter[/filter-name]
       [filter-class]org.jboss.seam.servlet.SeamExceptionFilter[/filter-class]
   [/filter]

   [filter-mapping]
       [filter-name]Seam Exception Filter[/filter-name]
       [url-pattern]*.faces[/url-pattern]
   [/filter-mapping]

   [filter]
       [filter-name]Seam Multipart Filter[/filter-name]
       [filter-class]org.jboss.seam.web.MultipartFilter[/filter-class]
       [init-param]
         [param-name]createTempFiles[/param-name]
         [param-value]true[/param-value]
       [/init-param]
   [/filter]
       
   [filter-mapping]
       [filter-name]Seam Multipart Filter[/filter-name]
       [url-pattern]*.seam[/url-pattern]
   [/filter-mapping]
   
   [!--
   [filter]
       [filter-name]Seam Servlet Filter[/filter-name]
       [filter-class]org.jboss.seam.servlet.SeamServletFilter[/filter-class]
   [/filter]
   
   [filter-mapping]
       [filter-name]Seam Servlet Filter[/filter-name]
       [url-pattern]*.pdf[/url-pattern]
   [/filter-mapping]
   
   [servlet]
       [servlet-name]Document Store Servlet[/servlet-name]
       [servlet-class]org.jboss.seam.pdf.DocumentStoreServlet[/servlet-class]
     
   [/servlet]
   
   [servlet-mapping]
       [servlet-name]Document Store Servlet[/servlet-name]
       [url-pattern]*.pdf[/url-pattern]
   [/servlet-mapping]
   --]
 
  [session-config]
      [session-timeout]
          120
     [/session-timeout]
  [/session-config]

   [welcome-file-list]
    [welcome-file]
           index.html
       [/welcome-file]
   [/welcome-file-list]

   [!-- JSF --]

   [context-param]
       [param-name]javax.faces.STATE_SAVING_METHOD[/param-name]
       [param-value]client[/param-value]
   [/context-param]

   [context-param]
       [param-name]javax.faces.DEFAULT_SUFFIX[/param-name]
       [param-value].xhtml[/param-value]
   [/context-param]
   
   [context-param]
       [param-name]facelets.DEVELOPMENT[/param-name]
       [param-value]true[/param-value]
   [/context-param]

[!--
    [context-param]
     [param-name]com.sun.faces.validateXml[/param-name]
      [param-value]true[/param-value]
    [/context-param]

    [context-param]
      [param-name]com.sun.faces.verifyObjects[/param-name]
      [param-value]true[/param-value]
    [/context-param]

    [context-param]
      [param-name]org.ajax4jsf.SKIN[/param-name]
      [param-value]DEFAULT[/param-value]
    [/context-param]
--]
   
[filter]
  [filter-name]MyFacesExtensionsFilter[/filter-name]
  [filter-class]org.apache.myfaces.webapp.filter.ExtensionsFilter[/filter-class]
   [init-param]
       [param-name]maxFileSize[/param-name]
       [param-value]50m[/param-value]
       [description]Set the size limit for uploaded files.
           Format: 10 - 10 bytes
                   10k - 10 KB
                   10m - 10 MB
                   1g - 1 GB
       [/description]
   [/init-param]
[/filter]

[!-- extension mapping for adding [script/], [link/], and other resource tags
to JSF-pages  --]
[filter-mapping]
   [filter-name]MyFacesExtensionsFilter[/filter-name]
   [!-- servlet-name must match the name of your javax.faces.webapp
.FacesServlet entry --]
   [servlet-name]Faces Servlet[/servlet-name]
[/filter-mapping]

[!-- extension mapping for serving page-independent resources (javascript,
stylesheets, images, etc.)  --]
[filter-mapping]
   [filter-name]MyFacesExtensionsFilter[/filter-name]
   [url-pattern]/faces/myFacesExtensionResource/*[/url-pattern]
[/filter-mapping]
         
         
   [!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) --]
   [context-param]
       [param-name]org.jboss.seam.core.init.jndiPattern[/param-name]
       [param-value]acctrecv/#{ejbName}/local[/param-value]
   [/context-param]
   
   [!-- Add more libraries by providing a semi-colon delimited list --]
   [context-param]
       [param-name]facelets.LIBRARIES[/param-name]
       [param-value]/WEB-INF/tomahawk.taglib.xml[/param-value]
   [/context-param]


  [context-param]
    [param-name]facelets.SKIP_COMMENTS[/param-name]
    [param-value]true[/param-value]
  [/context-param]  
 
   [servlet]
       [servlet-name]Faces Servlet[/servlet-name]
       [servlet-class]javax.faces.webapp.FacesServlet[/servlet-class]
       [load-on-startup]1[/load-on-startup]
   [/servlet]

       [servlet]
           [servlet-name]SourceCodeServlet[/servlet-name]
           [servlet-class]org.apache.myfaces.shared_tomahawk.util.servlet
.SourceCodeServlet[/servlet-class]
       [/servlet]

   [!-- Faces Servlet Mapping --]
   [servlet-mapping]
       [servlet-name]Faces Servlet[/servlet-name]
       [url-pattern]*.faces[/url-pattern]
   [/servlet-mapping]
   
   [servlet-mapping]
       [servlet-name]Faces Servlet[/servlet-name]
       [url-pattern]*.seam[/url-pattern]
   [/servlet-mapping]

   [!-- MyFaces --]
   [listener]
       [listener-class]org.apache.myfaces.webapp.StartupServletContextListener
[/listener-class]
   [/listener]

[/web-app]


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

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

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