Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

JSF not working in Jboss

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you setup the web.xml correctly?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic