wood burning stoves 2.0*
The moose likes JSF and the fly likes Startup problem with JSF1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Startup problem with JSF1.2" Watch "Startup problem with JSF1.2" New topic
Author

Startup problem with JSF1.2

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
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

Joined: Jun 16, 2004
Posts: 86
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?


Database Administrator/Application Developer
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Hi,

I am using eclipse 3.0.I am using Tomcat 5.0 to deploy my application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Startup problem with JSF1.2
 
Similar Threads
Problems in JSF running with MyEclipse
cannot forward to jsf page - unable to resolve jsf tag
JSF not working in Jboss
JSP Error when Struts simple login example
java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;