[jboss-user] [JBoss Seam] - Re: no page context active exception when use seam pdf
jiyuan_wang
do-not-reply at jboss.com
Thu Nov 1 13:00:27 EDT 2007
web.xml
(replace quote with \ and [] replace less than/great than, since they cause 404 error)
_________________________________________________
[?xml version=\1.0\ encoding=\UTF-8\?]
[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
More information about the jboss-user
mailing list