Skip to Content
author's profile photo Former Member
Former Member

JSF - using Myfaces 1.1.4 - Exception from ELResolverInitPhaseListener

Hi,

We are using Myfaces 1.1.4 and tomahawk from 1.1.2-snapshot.

I can bring up this application in JBoss, welogic, websphere.

The .jar files are bundled in .ear file under WEB-INF/lib folder. Why am I seeing this exception.

Is this classpath issue? If so, how do I fix this.

Please let me know.

thanks

S

2008-01-28 13:05:55,268 ERROR [HTTP Worker [3]] - Exception in PhaseListener RESTORE_VIEW 1 beforePhase.

java.lang.NullPointerException

at com.sun.faces.lifecycle.ELResolverInitPhaseListener.beforePhase(ELResolverInitPhaseListener.java:100)

at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)

at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:103)

at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:163)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:82)

at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:74)

at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:74)

at com.callidus.core.jsf.common.RequestEncodingFilter.doFilter(RequestEncodingFilter.java:121)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:74)

at com.callidus.portal.api.webclient.filters.GZIPFilter.doFilterInternal(GZIPFilter.java:55)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:74)

at com.callidus.core.sso.consumer.web.SSOConsumerFilter.doFilter(SSOConsumerFilter.java:58)

at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:74)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:425)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:288)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)

at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:308)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:221)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:137)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:229)

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 11:32 PM

    I am using NetWeaver CE 7.1.

    Can someone tell me why NetWeaver is picking up Sun implemenation of JSF instead of the one specified in WEB-INF/lib.

    How do I fix this?

    thanks

    S

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2008 at 07:21 AM

    Hello,

    the JSF framework is now supplied by the platform as described in Java EE 5 specification, taking precedence over application supplied libraries. Therefore the app is picking up the classes of the RI. It is not possible or at least not trivial to replace the implementation of JSF framework, but it shouldn't be necessary as JSF 1.2 is fully backwards compatible. In additon, by effectivly replacing the engine supplied implementation a number of features such as resource injection are going to be lost.

    Best Regards

    Nikolai

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello,

      In the blog

      /people/community.user/blog/2007/05/21/using-hibernate-in-sap-netweaver-composition-environment

      They have written that the application is Java EE 5 version or higher.

      I have installed Netweaver CE 7.1 version and my jdk is 1.5.

      How do I verify this information? I generate .ear using ANT task.

      my application.xml looks like this -

      <?xml version="1.0" encoding="UTF-8"?>

      http://java.sun.com/dtd/application_1_3.dtd">

      <application id="Application_ID">

      <display-name>abcd-TPRO</display-name>

      <module id="TCAPIEjbModule">

      <ejb>lib/TCAPI.jar</ejb>

      </module>

      <module id="WebModule_1060806603084">

      <web>

      <web-uri>abcd.war</web-uri>

      <context-root>abcd-TPRO</context-root>

      </web>

      </module>

      </application>

      I am trying to get the application up, using myfaces implementation of JSF instead of the Sun implementation.

      I included application-service.xml under META-INF folder.

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE application-service SYSTEM "application-service.dtd" >

      <application-service>

      </application-service>

      Also, copied jar files to lib folder under .ear.

      I have set the option Define-Heavy-Resources to true and restarted the machine etc.,

      Any comments or suggestions.

      thanks

      S

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.