[JBoss Seam] - Re: PDF Font Colour (Color for some...)
by damianharvey
Thanks for that. The good news is that colors now work. The bad news is that <p:image> is broken. It gives a NPE.
SEVERE: Error Rendering View[/public/TestPDF.xhtml]
| java.lang.NullPointerException
| at java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
| at com.lowagie.text.Image.getInstance(Image.java:460)
| at org.jboss.seam.pdf.ui.UIImage.createITextObject(UIImage.java:145)
| at org.jboss.seam.pdf.ui.ITextComponent.encodeBegin(ITextComponent.java:169)
| at org.jboss.seam.pdf.ui.ITextComponent.encode(ITextComponent.java:232)
| at org.jboss.seam.pdf.ui.ITextComponent.encodeChildren(ITextComponent.java:201)
Replacing the jboss-seam-pdf.jar with the one from 1.2.1 lets image work again, but of course not color.
Cheers,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034437#4034437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034437
19 years
[Beginners Corner] - JBoss 4.0.5 and JSF Faces context not found
by pKraemer
Hello,
first let me say, I have red the wiki page about how to use JSF with JBoss.
I use:
JBoss 4.0.5
MyFaces Tomahawk
EJB 3.0
I've deployed the application as an *.ear file including the ejb.jar and web.war file. There are no JSF libs within /WEB-INF/lib.
anonymous wrote : When I start JBoss the ear file is deployed with
| out any error, but when I try to start the webapplication I get the error:
| [STDOUT] 10:32:57,814 ERROR [UIComponentTag] Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml.
|
This is a part of the application structure:
| +TestEJB
| +serverEJB
| - TestBean
| - TestRemote
| +META-INF
| - ejb-jar.xml
| +TestWeb
| +clientSrc
| - TestMBean
| +web
| +WEB-INF
| - web.xml
| - faces-config.xml
| -index.jsp
|
And this is a part of the web.xml File:
| <?xml version="1.0" encoding="UTF-8"?>
| <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">
|
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>/WEB-INF/faces-config.xml</param-value>
| </context-param>
|
| <filter>
| <filter-name>extensionsFilter</filter-name>
| <filter-class>
| org.apache.myfaces.webapp.filter.ExtensionsFilter
| </filter-class>
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>100m</param-value>
| </init-param>
| <init-param>
| <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-name>
| <servlet-class>
| javax.faces.webapp.FacesServlet
| </servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>faces</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
|
| <listener>
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
| </web-app>
|
|
Please, can any one help me. Did I forget something to add?
Thx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034433#4034433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034433
19 years