[JBoss Seam] - Seam PDF creation
by pdhaigh
Hi all,
I'm just investigating the Seam PDF generation features.. and have some difficulties:
#1. In FireFox I get:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
|
| ?
| <html>
| ?
| <head>
| <meta http-equiv="Refresh" content="0; URL=seam-doc.seam?docId=1&conversationId=1"/>
| </head>
| <body/>
| </html>
If I cut and paste the URL part (seam-doc.seam?docId=1&conversationId=1), then it displays the Pdf fine.
#2. In I.E the redirect happens fine, but then I get "IE cannot display the webpage" and the following in the log:
12:25:24,760 WARN [lifecycle] phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@ab17f8) threw exception: java.lang.NullPointerException:
| org.jboss.seam.pdf.DocumentStorePhaseListener.sendContent(DocumentStorePhaseListener.java:46)
| org.jboss.seam.pdf.DocumentStorePhaseListener.beforePhase(DocumentStorePhaseListener.java:38)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
|
any advice greatly appreciated!
cheers
phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052789#4052789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052789
18Â years, 10Â months
[Installation, Configuration & Deployment] - log4j with jboss issue ?
by jsbhangra
I tried to use log4j with my web application deployed on JBoss..
but JBoss did not permit it . so i configured JBoss logging in my application as in this link :http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigureLogging...
Every thing worked fine , but now i want to use MDC( mapped diagnostic context ) technique of log4j in my application .. which is not permitted in JBoss logging..
So to configure log4j loging support i did following :
1.Renamed log4j.xml in JBOSS_HOME/server/default/conf to jboss-log4j.xml
2.Changed jboss-service.xml in JBOSS_HOME/server/default/conf accordingly to tell JBoss to use jboss-log4j.xml
3. Added following code jboss-web.xml
<class-loading java2ClassLoadingCompliance="false">
| <loader-repository>
| testlogapp:loader=testlogappwar
| <loader-repository-config>java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| </class-loading>
|
4. added my own log4j.xml in WEB-INF directory for my application...
Every thing else works fine but is not my application logs are not being generated ...
The following exception is generated :
|
| 13:26:43,234 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
| 13:26:43,235 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
| 13:26:43,235 ERROR [STDERR] log4j:ERROR [WebappClassLoader
| delegate: false
| repositories:
| /WEB-INF/classes/
| ----------> Parent Classloader:
| java.net.FactoryURLClassLoader@fe7f80
| ] whereas object of type
| 13:26:43,236 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@c2a132].
| 13:26:43,236 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
Please help me out ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052778#4052778
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052778
18Â years, 10Â months