Skip to Content
0
Former Member
Oct 04, 2006 at 07:09 AM

Problem with JSF

563 Views

Hello!

I have problem with my JSF project. The error is

<i>java.lang.IllegalStateException: org.apache.myfaces.webapp.webxml.WebXml.init must be called before!</i>

The problem is with SAP WAS SP17 with IBM JDK (XML Parser: Xeces).

It works OK on SAP WAS SP15-16 (Linux, Windows).

List of jars is

commons-beanutils.jar

jdom.jar

commons-codec.jar

jstl.jar

commons-collections-2.1.1.jar

junit.jar

commons-dbcp.jar

log4j-1.2.11.jar

commons-digester.jar

myfaces-api.jar

commons-el-1.0.jar

myfaces-impl.jar

commons-lang.jar

commons-logging-1.0.4.jar

commons-pool.jar

geronimo-spec-jsp-2.0-rc2.jar

tomahawk.jar

When I have deleted geronimo-spec-jsp-2.0-rc2.jar I see another error

<i>java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.

A typical config looks like this;

<listener>

<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>

</listener>

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)

at javax.faces.webapp.FacesServlet.init(FacesServlet.java:73)

at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java(Compiled Code))

</i>

The same error appears with <b>Crimson</b> parser.

Could you help me?