*
The moose likes JSF and the fly likes JSF not working in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF not working in Jboss" Watch "JSF not working in Jboss" New topic
Author

JSF not working in Jboss

Carl Jenkins
Ranch Hand

Joined: Feb 19, 2006
Posts: 39
I am attempting to get JSF running (for the first time) in jboss and running into some problems

I am just trying to run a simple example from JSF The complete Reference (Chap 2)

So far I have the following

/JSFContext
META-INF
WEB-INF
-classes
-lib
commons jars
jstl jars
jsf-impl & jsf-core
tlds
web.xml
faces-config.xml
index.jsp
main.jsp
blah blah

I can get to the index.jsp page which is just a simple html page. The problem happens when I click the first link to go to a jsf page. i get the following.
I could swear i have this set up correctly (but my errors are telling me differently ;) )

Thanks for any help!

Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
Have you setup the web.xml correctly?
L zhong
Greenhorn

Joined: Oct 31, 2006
Posts: 4
it looks like the objects used in the main.jsp has some issues, which caused the nullpointer exception.

Try to identity the problem:
copy the index.jsp contect to main.jsp, if it works,which means the problem is the content of the main.jsp, then added the content little by little.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF not working in Jboss