websphere - Migrating JSF 1.1 app to WAS7.0 results in java.lang.NullPointerException at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144) -
i have jsf 1.1 app working fine in 6.0 , needs migrated 7.0, results in following exception, though have set parent_last in deployment.xml:
uncaught init() exception created servlet faces servlet in application: java.lang.nullpointerexception @ javax.faces.webapp.facesservlet.init(facesservlet.java:144) @ com.ibm.ws.webcontainer.servlet.servletwrapper.init(servletwrapper.java:325)** how caused , how can solve it?
you exception in jsf 1.1 when application factory cannot found. has in turn among others possible cause configurelistener hasn't run reason. automatically invoked based on .tld file in jsf library. can try force webapp run adding following entry webapp's web.xml:
<listener> <listener-class>com.sun.faces.config.configurelistener</listener-class> </listener> however, don't guarantee fix problem altogether. may different exception needs investigated , fixed separately.
was 7.0 ships jsf 1.2 bundled , (well-designed) jsf 1.1 code technically 100% compatible jsf 1.2, i'd rather recommend rid of jsf 1.1 libraries in webapp , change faces-config.xml jsf 1.2 compatible one.
Comments
Post a Comment