users@glassfish.java.net

Trying to get ADF Faces 11Gtp2 to work under glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 Jan 2008 07:57:31 PST

Our project is using the new Oracle ADF Faces RichClient controls and I would like to move from jdeveloper/oc4j to eclipse/glassfish, as the jdeveloper performance and memory footprint is terrible.

Right now I am trying a simple hello world and cannot get past the reading of the faces-config.xml that is shipped in the adf-richclient-impl-11.jar. It's like it cannot understand the xsd. I get the following stack dump:

[#|2008-01-18T09:41:26.765-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=29;_ThreadName=Thread-69;_RequestID=e6d3a43b-2e3e-4a50-8276-9e2b344775aa;|WebModule[/WebContent]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: Can't parse configuration file: jar:file:/C:/development/workspace/Playground/WebContent/WEB-INF/lib/adf-richclient-impl-11.jar!/META-INF/faces-config.xml: Error at line 1 column 52: jar:file:/C:/development/workspace/Playground/WebContent/WEB-INF/lib/adf-richclient-impl-11.jar!/META-INF/faces-config.xml<Line 1, Column 52>: XML-20149: (Error) Element 'faces-config' used but not declared.
        at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1438)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:348)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4523)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:973)
...

Looking at the file in the jar shows:

<?xml version="1.0" encoding="utf-8"?><faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" version="1.2">
   <application>
      <el-resolver>oracle.adfinternal.view.faces.el.RichELResolver</el-resolver>
   </application>
...

Does anyone have an idea what could be wrong?
[Message sent by forum member 'sbishopp' (sbishopp)]

http://forums.java.net/jive/thread.jspa?messageID=254701