Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Faces Context Not Found - Portal(Get a faces error after deploying a project to the server and trying to access the portal. )
Faces Context Not Found - Portal [message #1607452] Sun, 08 February 2015 22:54 Go to next message
Tony Harrison is currently offline Tony HarrisonFriend
Messages: 3
Registered: February 2015
Junior Member
I created a Dynamic Project with Process Server Facets. Then tried to run on Tomcat server. When you try to access the portal you get the following error. This happens on Mac Yosemite and Windows 7.

Error:
SEVERE: Servlet.service() for servlet [jsp] in context with path [/demo-startdust] threw exception [javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the <servlet-mapping>-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message.] with root cause
javax.faces.FacesException: Faces context not found. getResponseWriter will fail. Check if the FacesServlet has been initialized at all in your web.xml configuration fileand if you are accessing your jsf-pages through the correct mapping. E.g.: if your FacesServlet is mapped to *.jsf (with the <servlet-mapping>-element), you need to access your pages as 'sample.jsf'. If you tried to access 'sample.jsp', you'd get this error-message.
at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:926)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)
at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:73)
at org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:101)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:76)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.eclipse.stardust.ui.web.html5.EnhancedJarResourceFilter.doFilter(EnhancedJarResourceFilter.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Re: Faces Context Not Found - Portal [message #1610061 is a reply to message #1607452] Tue, 10 February 2015 14:26 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

Hi Tony,

the error suggest a fundamental problem in the JSF-related setup in the web.xml. Which version exactly are you using?

Thanks,

Jan
Re: Faces Context Not Found - Portal [message #1610684 is a reply to message #1610061] Tue, 10 February 2015 23:52 Go to previous messageGo to next message
Tony Harrison is currently offline Tony HarrisonFriend
Messages: 3
Registered: February 2015
Junior Member
Hi Jan,

I am using Eclipse Luna 4.4.1 with Eclipse Process Server 2.1.0.

Cheers,
Tony
Re: Faces Context Not Found - Portal [message #1618802 is a reply to message #1610684] Mon, 16 February 2015 06:15 Go to previous messageGo to next message
Vishal Chaudhari is currently offline Vishal ChaudhariFriend
Messages: 9
Registered: October 2013
Junior Member
Hi Tony,

Can you please let us know what is the mapping of your Faces servlet in the web.xml of your demo project?

Regards,
Vishal.
Re: Faces Context Not Found - Portal [message #1691945 is a reply to message #1618802] Fri, 10 April 2015 16:33 Go to previous messageGo to next message
Tony Harrison is currently offline Tony HarrisonFriend
Messages: 3
Registered: February 2015
Junior Member
Hi Jan and Vishal,

I should have posted this sometime back, since I managed to solve the problem.

It appears that the culprit is JBoss Tools / Studio. If you have these plugins installed you get a Index.jsp page added to the your WebContent directory. This is the source of the problem. Simply deleting the file solves the problem and the portal is accessible once again.

Cheers,
Tony

[Updated on: Fri, 10 April 2015 16:34]

Report message to a moderator

Re: Faces Context Not Found - Portal [message #1692072 is a reply to message #1691945] Mon, 13 April 2015 07:45 Go to previous message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 186
Registered: October 2011
Location: Singapore
Senior Member

Thanks for sharing the solution, Tony!

Rob
Previous Topic:emergency problem with WorklistQuery.findCompleteWorklist()
Next Topic:Calculate Criticality based on user input
Goto Forum:
  


Current Time: Fri Nov 16 11:20:42 GMT 2018

Powered by FUDForum. Page generated in 0.02113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top