File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF not working in Jboss

 
Carl Jenkins
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 572
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you setup the web.xml correctly?
 
L zhong
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic