This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Startup problem with JSF1.2

 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am new to JSF.I am trying to create and run a sample JSF application using JSF1.2.

I have following dir structure for my web-app

jsf-guessNumber
������������WEB-INF <= contains faces-config.xml and web.xml
������������classes
��� ������������guessNumber
��� ������������META-INF
��� ������������services <= contains **
������������lib <== conatins ***

** Contains following files
javax.faces.application.ApplicationFactory
javax.faces.context.FacesContextFactory
javax.faces.lifecycle.LifecycleFactory
javax.faces.render.RenderKitFactory

***
cglib-2.1.1.jar
common-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
datatypes.dtd
el-api.jar
el-ri.jar
html_basic.tld
jboss-serialization.jar
jsf-api.jar
jsf-impl.jar
jsf_core.tld
jsp-api.jar
myfaces-all.jar
portlet.jar
web-facesconfig_1_0.dtd
web-facesconfig_1_1.dtd
XMLSchema.dtd

Now when I try to access the application like
http://localhost:8080/jsf-guessNumber/
I am getting following error..
java.lang.NullPointerException
com.sun.faces.lifecycle.LifecycleImpl.populateFacesELResolverForJsp(LifecycleImpl.java:385)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:123)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:712)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:682)
org.apache.jsp.index_jsp._jspService(index_jsp.java:43)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Any Idea why this exception might be coming ?

Ajit
 
Josh Juneau
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What development environment (IDE) are you using? Most IDEs nowdays will automatically set up your JSF application for you. Also, which application server are you deploying to?
 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using eclipse 3.0.I am using Tomcat 5.0 to deploy my application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic