• Post Reply Bookmark Topic Watch Topic
  • New Topic

Faces Exception with Hello-world(ish) application  RSS feed

 
Cory Max
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I'm running in to the wierdest problem. I have a hello-world type application and am trying to run on ganymede, tomcat 6 java 6. When running the app, I get this output:

14-Dec-2008 5:19:46 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jsf-phases' did not find a matching property.
14-Dec-2008 5:19:46 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk16\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\System Center Operations Manager 2007\;C:\maven\bin
14-Dec-2008 5:19:46 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
14-Dec-2008 5:19:46 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 309 ms
14-Dec-2008 5:19:46 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
14-Dec-2008 5:19:46 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
14-Dec-2008 5:19:46 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Cory\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jsf-phases\WEB-INF\lib\servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1026: [/jsf-phases] Configuration option 'com.sun.faces.managedBeanFactoryDecoratorClass' not configured
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [/jsf-phases] Configuration option 'com.sun.faces.STATE_SAVING_METHOD' set to 'server'
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [/jsf-phases] Configuration option 'com.sun.faces.DEFAULT_SUFFIX' set to '.jsp'
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1026: [/jsf-phases] Configuration option 'com.sun.faces.CONFIG_FILES' not configured
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1026: [/jsf-phases] Configuration option 'com.sun.faces.LIFECYCLE_ID' not configured
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [/jsf-phases] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1018: [/jsf-phases] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.validateXml' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.disableVersionTracking' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.WebConfiguration <init>
INFO: JSF1021: [/jsf-phases] Configuration option 'com.sun.faces.compressViewState' - ENABLED
14-Dec-2008 5:19:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/jsf-phases'
14-Dec-2008 5:19:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/jsf-phases'
14-Dec-2008 5:19:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/jsf-phases'
14-Dec-2008 5:19:46 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/jsf-phases'
14-Dec-2008 5:19:46 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
14-Dec-2008 5:19:46 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
14-Dec-2008 5:19:46 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
14-Dec-2008 5:19:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 730 ms
14-Dec-2008 5:19:48 PM com.sun.faces.lifecycle.LifecycleImpl phase
WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1a8773c) threw exception
java.lang.NullPointerException
at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:206)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
14-Dec-2008 5:19:48 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:206)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:169)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:266)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:159)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

I have zipped up my project and put it on my server at http://www.maksymchuk.com/jsf/

Can someone please help... I've been stuck here for days :-(.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cory Max:
INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/jsf-phases'

That's a fairly early implementation of JSF 1.2.
At least get the latest at http://javaserverfaces.dev.java.net


SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:206)

There is either a bug in the old JSF implementation or you configured the stuff the wrong way. First upgrade your JSF implementation to the latest available at their homepage (currently 1.2_10) and see if it solves the problem. If it doesn't, then please paste the new stacktrace here along with your faces-config.xml.
[ December 14, 2008: Message edited by: Bauke Scholtz ]
 
Cory Max
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yuppers, that was it. Oddly enough, I was using the latest version in the maven repo... but downloaded from the jsf site and restarted my project... working like a dream. Thanks for your help.

Cory
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!