0 Replies Latest reply on May 12, 2008 3:46 PM by Vijaya Sri

    ADF Oracle components are failing while deploying JSF Applic

    Vijaya Sri Newbie

      Jboss Developer Studio works fine with the just JSF but not with the Oracle ADF Components.

      Trying to deploy ADF Oracle components on Jboss developer studio which comes with Jboss 4.2 server version fails.

      http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtAnchor.CIHJFAIA/vtTopicFile.adfdevguide%7Cdeployment_topics%7Ehtm/

      They are specific to JDeveloper Studio. But i am looking for Jboss Developer Studio.

      I am trying to follow the steps
      Can anybody suggest the detail steps to follows to make it work in jboss develoer studio.

      Want to know what jars file i have to use and what jars jboss is using by default.

      I keep getting exception java.lang.ClassCastException:
      oracle.adfinternal.view.faces.context.AdfFacesPhaseListener
      14:41:02,751 ERROR [STDERR]

      ==my web.xml is
      <?xml version="1.0"?>
      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      testADF
      <display-name>test</display-name>
      <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
      </context-param>
      <context-param>
      <param-name>
      oracle.adf.view.faces.CLIENT_STATE_MAX_TOKENS
      </param-name>
      <param-value>20</param-value>
      </context-param>
      <context-param>
      <param-name>
      oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE
      </param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>oracle.adf.view.faces.DEBUG_JAVASCRIPT</param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>
      oracle.adf.view.faces.CHECK_FILE_MODIFICATION
      </param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
      <param-value>true</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
      <param-value>false</param-value>
      </context-param>
      <context-param>
      <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
      <param-value>
      org.apache.myfaces.renderkit.html.util.DefaultAddResource
      </param-value>
      </context-param>
      <context-param>
      <param-name>
      org.apache.myfaces.CHECK_EXTENSIONS_FILTER
      </param-name>
      <param-value>true</param-value>
      </context-param>

      <filter-name>adfFaces</filter-name>
      <filter-class>
      oracle.adf.view.faces.webapp.AdfFacesFilter
      </filter-class>


      <filter-name>myFacesExtensions</filter-name>
      <filter-class>
      org.apache.myfaces.webapp.filter.ExtensionsFilter
      </filter-class>
      <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>20m</param-value>
      </init-param>

      <filter-mapping>
      <filter-name>adfFaces</filter-name>
      <servlet-name>faces</servlet-name>
      </filter-mapping>
      <filter-mapping>
      <filter-name>myFacesExtensions</filter-name>
      <servlet-name>faces</servlet-name>
      </filter-mapping>
      <filter-mapping>
      <filter-name>myFacesExtensions</filter-name>
      <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
      </filter-mapping>

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


      <servlet-name>faces</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-name>resources</servlet-name>
      <servlet-class>
      oracle.adf.view.faces.webapp.ResourceServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-name>ImageServlet</servlet-name>
      <servlet-class>
      net.sf.jasperreports.j2ee.servlets.ImageServlet
      </servlet-class>

      <servlet-mapping>
      <servlet-name>faces</servlet-name>
      <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>resources</servlet-name>
      <url-pattern>/adf/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
      <servlet-name>ImageServlet</servlet-name>
      <url-pattern>/servlets/image</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.jspx</welcome-file>
      </welcome-file-list>
      <jsp-config>

      <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
      <taglib-location>/WEB-INF/tld/c.tld</taglib-location>


      <taglib-uri>http://xmlns.oracle.com/adf/faces</taglib-uri>
      <taglib-location>/WEB-INF/tld/af.tld</taglib-location>


      <taglib-uri>
      http://xmlns.oracle.com/adf/faces/html
      </taglib-uri>
      <taglib-location>/WEB-INF/tld/afh.tld</taglib-location>

      </jsp-config>
      <login-config>
      <auth-method>BASIC</auth-method>
      </login-config>
      </web-app>

      ===my - faces-config.xml
      <?xml version="1.0"?>
      <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

      <faces-config>

      <default-render-kit-id>oracle.adf.core</default-render-kit-id>
      <locale-config>
      <default-locale>en</default-locale>
      </locale-config>


      <managed-bean>
      <managed-bean-name>loginBean</managed-bean-name>
      <managed-bean-class>Beans.LoginBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      <managed-property>
      <property-name>name</property-name>
      <property-class>java.lang.String</property-class>

      </managed-property>
      <managed-property>
      <property-name>password</property-name>
      <property-class>java.lang.String</property-class>

      </managed-property>
      </managed-bean>

      <managed-bean>
      <managed-bean-name>bean</managed-bean-name>
      <managed-bean-class>Beans.Bean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      <managed-property>
      <property-name>rangeSize</property-name>
      3
      </managed-property>
      </managed-bean>
      </faces-config>