[opencms-dev] Java Server Faces

Jon Sharp jon.sharp at j2ssolutions.com
Mon Jul 18 17:32:17 CEST 2005


Hi
I've integated struts into OpenCms 6rc2. and all works fine.

I'd like to try out JSF, and I've installed a small app that runs fine 
standalone. So I've copied over the libraries, classes, faces-config.xml, 
updated OpenCms web.xml with a URL-mapping of /faces/*and created the JSPs 
in OpenCms.   Restart.

The JSPs need to be processed by FacesServlet, so in my standalone I use
http://myhost:8080/myjsfwarname/faces/greeting.jsp
which works fine.

Doing this through OpenCms to a copy of greeting.jsp in OpenCms, I use the URL:
http://myhost:8080/myocmswarname/faces/opencms/test/greeting.jsp
However I get:
java.lang.NullPointerException
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         java.lang.Thread.run(Thread.java:534)

Obviously FacesServlet has seen a problem, but is OpenCms sending it 
something funny?
Has anyone a working setup of JSF?
Jon

Jon Sharp    tel: +44 1273 504004    mobile: +44 7739 430793
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050718/fb56aceb/attachment.htm>


More information about the opencms-dev mailing list