File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Startup problem with JSF1.2

 
Ajit Kanada
Ranch Hand
Posts: 95
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic