[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Struts Showcase Application

Posted on 2011-10-31
2
Medium Priority
?
293 Views
Last Modified: 2012-05-12
Hi - I deployed an application to JBoss called struts showcase application and tried to access the JSF pages link - I keep on getting the following error - tried several changes to the configuration file but still get the error - please let me know if anyone knows a way around it.

Cannot find FacesContext
java.lang.RuntimeException: Cannot find FacesContext
java.lang.RuntimeException: Cannot find FacesContext
 
File: javax/faces/webapp/UIComponentClassicTagBase.java
Line number: 1,796


--------------------------------------------------------------------------------

Stacktraces
javax.faces.FacesException: java.lang.RuntimeException: Cannot find FacesContext
    org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
    org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
    org.apache.struts2.jsf.FacesRender.render(FacesRender.java:64)
    org.apache.struts2.jsf.FacesResult.doExecute(FacesResult.java:57)
0
Comment
Question by:abuyusuf35
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 2000 total points
ID: 37060319


looks like this is a known issue - JSF integration in the Struts 2 Showcase application does not work with JBoss
see here:
https://issues.jboss.org/browse/JBWFK-90?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#issue-tabs

It works with Tomcat 5 and 6 but not with JBoss

0
 

Author Comment

by:abuyusuf35
ID: 37093653
I have noticed this - is there any workaround to get it to work on JBoss AS ? I saw a few listed on the web but none of them see to work. Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question