ADF and PrettyFaces – PrettyException: Failed to load configuration

Splash Forums PrettyFaces Users ADF and PrettyFaces – PrettyException: Failed to load configuration

This topic contains 8 replies, has 3 voices, and was last updated by  clemmonsm 10 years, 3 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18041

    clemmonsm
    Participant

    Hello everyone,

    I am attempting to use PrettyFaces with an existing JSF 1.2, ADF 11.1.1.5 web application. Unfortunately, my PrettyFaces config does not load successfully when I fire up the app. With a vanilla JSF 1.2 web app, I have no problem getting PrettyFaces to work. Below you will find details of my setup as well as the console output when running the JSF/ADF app. Any help would be greatly appreciated. Thanks.

    1) Versions of servers and relevant libraries: JSF1.2, ADF 11.1.1.5, PrettyFaces 3.3.0

    2) Web.xml

    <?xml version = ‘1.0’ encoding = ‘UTF-8’?>

    <web-app 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-app_2_5.xsd

    version=”2.5″ xmlns=”http://java.sun.com/xml/ns/javaee”>

    <context-param>

    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

    <param-value>client</param-value>

    </context-param>

    <context-param>

    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP’s change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>

    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>

    <param-value>false</param-value>

    </context-param>

    <context-param>

    <description>Whether the ‘Generated by…’ comment at the bottom of ADF Faces HTML pages should contain version number information.</description>

    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>

    <param-value>false</param-value>

    </context-param>

    <context-param>

    <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS</param-name>

    <param-value>3</param-value>

    </context-param>

    <context-param>

    <param-name>oracle.adf.jsp.provider.0</param-name>

    <param-value>oracle.mds.jsp.MDSJSPProviderHelper</param-value>

    </context-param>

    <context-param>

    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>

    <param-value>oracle.adf.view.rich.change.MDSDocumentChangeManager</param-value>

    </context-param>

    <context-param>

    <description>No obfuscation of CSS.</description>

    <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>

    <param-value>true</param-value>

    </context-param>

    <filter>

    <filter-name>Pretty Filter</filter-name>

    <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>

    </filter>

    <filter>

    <filter-name>trinidad</filter-name>

    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>

    </filter>

    <filter>

    <filter-name>adfBindings</filter-name>

    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>

    </filter>

    <filter>

    <filter-name>WebCenterEventDispatcherFilter</filter-name>

    <filter-class>oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter</filter-class>

    </filter>

    <filter>

    <filter-name>ADFLibraryFilter</filter-name>

    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>

    <init-param>

    <param-name>provider-lazy-inited</param-name>

    <param-value>true</param-value>

    </init-param>

    </filter>

    <filter>

    <filter-name>JpsFilter</filter-name>

    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>

    <init-param>

    <param-name>enable.anonymous</param-name>

    <param-value>true</param-value>

    </init-param>

    </filter>

    <filter>

    <filter-name>ADFPortletFilter</filter-name>

    <filter-class>oracle.portlet.client.adapter.adf.ADFPortletFilter</filter-class>

    </filter>

    <filter>

    <filter-name>lifecycleLockFilter</filter-name>

    <filter-class>oracle.webcenter.lifecycle.filter.LifecycleLockFilter</filter-class>

    </filter>

    <filter-mapping>

    <filter-name>Pretty Filter</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>ERROR</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    <dispatcher>INCLUDE</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>trinidad</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>adfBindings</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>WebCenterEventDispatcherFilter</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>ADFLibraryFilter</filter-name>

    <url-pattern>/*</url-pattern>

    <dispatcher>FORWARD</dispatcher>

    <dispatcher>REQUEST</dispatcher>

    </filter-mapping>

    <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <servlet-name>ProfilePhotoServlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>adfBindings</filter-name>

    <servlet-name>adfextapplogin</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <servlet-name>adfextapplogin</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>adfBindings</filter-name>

    <servlet-name>resourceproxy</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>adfBindings</filter-name>

    <servlet-name>adfportlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>ADFPortletFilter</filter-name>

    <servlet-name>adfportlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>ADFPortletFilter</filter-name>

    <servlet-name>resourceproxy</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>ADFPortletFilter</filter-name>

    <servlet-name>Faces Servlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>lifecycleLockFilter</filter-name>

    <url-pattern>/faces/*</url-pattern>

    </filter-mapping>

    <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <servlet-name>adfportlet</servlet-name>

    </filter-mapping>

    <filter-mapping>

    <filter-name>JpsFilter</filter-name>

    <servlet-name>resourceproxy</servlet-name>

    </filter-mapping>

    <listener>

    <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>

    </listener>

    <listener>

    <description>WebCenter Lifecycle Context Listener</description>

    <display-name>WebCenterLifecycleContextListener</display-name>

    <listener-class>oracle.webcenter.lifecycle.listener.LifecycleServletContextListener</listener-class>

    </listener>

    <listener>

    <description>WebCenter Framework Context Listener</description>

    <display-name>WCFrameworkContextListener</display-name>

    <listener-class>oracle.webcenter.framework.internal.view.WCFrameworkContextListener</listener-class>

    </listener>

    <listener>

    <description>WebCenter Framework Executor Listener</description>

    <display-name>WebCenterExecutorContextListener</display-name>

    <listener-class>oracle.webcenter.concurrent.WebCenterExecutorContextListener</listener-class>

    </listener>

    <listener>

    <description>ADF Connection MBeans</description>

    <display-name>ADF Connection MBeans</display-name>

    <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>

    </listener>

    <listener>

    <description>WebCenter Portlet Context Listener</description>

    <display-name>PortletServletContextListener</display-name>

    <listener-class>oracle.webcenter.portlet.listener.PortletServletContextListener</listener-class>

    </listener>

    <listener>

    <description>Portlet Client Context Listener</description>

    <display-name>ADFPortletContextListener</display-name>

    <listener-class>oracle.portlet.client.adapter.adf.ADFPortletContextListener</listener-class>

    </listener>

    <listener>

    <description>Portlet Client Session Listener</description>

    <display-name>ADFPortletSessionListener</display-name>

    <listener-class>oracle.portlet.client.adapter.adf.ADFPortletSessionListener</listener-class>

    </listener>

    <listener>

    <listener-class>oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack</listener-class>

    </listener>

    <servlet>

    <servlet-name>Faces Servlet</servlet-name>

    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

    <load-on-startup>1</load-on-startup>

    </servlet>

    <servlet>

    <servlet-name>resources</servlet-name>

    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>BIGRAPHSERVLET</servlet-name>

    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>BIGAUGESERVLET</servlet-name>

    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>MapProxyServlet</servlet-name>

    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>GatewayServlet</servlet-name>

    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>ojsp</servlet-name>

    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>

    <init-param>

    <param-name>generic_servlet_mode</param-name>

    <param-value>single</param-value>

    </init-param>

    <init-param>

    <param-name>page_provider</param-name>

    <param-value>oracle.adf.library.webapp.ADFJspResourceProvider</param-value>

    </init-param>

    <init-param>

    <param-name>jsp_timeout</param-name>

    <param-value>600</param-value>

    </init-param>

    <init-param>

    <param-name>debug_mode</param-name>

    <param-value>false</param-value>

    </init-param>

    <init-param>

    <param-name>el_expression_factory</param-name>

    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>

    </init-param>

    <load-on-startup>1</load-on-startup>

    </servlet>

    <servlet>

    <servlet-name>adflibResources</servlet-name>

    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>ProfilePhotoServlet</servlet-name>

    <servlet-class>oracle.webcenter.peopleconnections.profile.internal.view.webapp.ProfilePhotoServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>adfextapplogin</servlet-name>

    <servlet-class>oracle.adf.extapp.ExtAppLoginController</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>adfportlet</servlet-name>

    <servlet-class>oracle.adfinternal.view.faces.renderkit.html.portlet.ADFPortletServlet</servlet-class>

    </servlet>

    <servlet>

    <servlet-name>resourceproxy</servlet-name>

    <servlet-class>oracle.portlet.client.resourceproxy.adf.ADFPortletResourceServlet</servlet-class>

    </servlet>

    <servlet-mapping>

    <servlet-name>Faces Servlet</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>resources</servlet-name>

    <url-pattern>/afr/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>BIGRAPHSERVLET</servlet-name>

    <url-pattern>/servlet/GraphServlet/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>BIGAUGESERVLET</servlet-name>

    <url-pattern>/servlet/GaugeServlet/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>MapProxyServlet</servlet-name>

    <url-pattern>/mapproxy/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/bi/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>GatewayServlet</servlet-name>

    <url-pattern>/flashbridge/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/webcenter-resources/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>resources</servlet-name>

    <url-pattern>/webcenter-framework-resources/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>ojsp</servlet-name>

    <url-pattern>*.jsff</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>ojsp</servlet-name>

    <url-pattern>*.jspx</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>adflibResources</servlet-name>

    <url-pattern>/adflib/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>ProfilePhotoServlet</servlet-name>

    <url-pattern>/profilephoto/*</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>adfextapplogin</servlet-name>

    <url-pattern>/adfextapplogin</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>adfportlet</servlet-name>

    <url-pattern>/adfportlet</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>adfportlet</servlet-name>

    <url-pattern>/adfportletfullpage</url-pattern>

    </servlet-mapping>

    <servlet-mapping>

    <servlet-name>resourceproxy</servlet-name>

    <url-pattern>/resourceproxy/*</url-pattern>

    </servlet-mapping>

    <mime-mapping>

    <extension>swf</extension>

    <mime-type>application/x-shockwave-flash</mime-type>

    </mime-mapping>

    <mime-mapping>

    <extension>xml</extension>

    <mime-type>application/xml</mime-type>

    </mime-mapping>

    <jsp-config>

    <jsp-property-group>

    <url-pattern>*.jsff</url-pattern>

    <is-xml>true</is-xml>

    </jsp-property-group>

    </jsp-config>

    <resource-ref>

    <res-ref-name>jdbc/WebCenterDS</res-ref-name>

    <res-type>javax.sql.DataSource</res-type>

    <res-auth>Container</res-auth>

    </resource-ref>

    <resource-ref>

    <res-ref-name>jdbc/ActivitiesDS</res-ref-name>

    <res-type>javax.sql.DataSource</res-type>

    <res-auth>Container</res-auth>

    </resource-ref>

    </web-app>

    3) pretty-config.xml

    <?xml version=”1.0″ encoding=”ISO-8859-1″ ?>

    <pretty-config xmlns=”http://ocpsoft.com/prettyfaces/3.3.0″

    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

    xsi:schemaLocation=”http://ocpsoft.com/prettyfaces/3.3.0

    http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.0.xsd“>

    <url-mapping id=”home”>

    <pattern value=”/” />

    <view-id value=”/faces/pages/index.jspx” />

    </url-mapping>

    </pretty-config>

    4) The expected behavior: app loads w/o errors

    5) The actual behavior: app loads w/ errors. Stack trace:

    <MBeanAttributeInfoMappingMetaData> <<init>> No annotation should be put on attribute mutator parameter “public abstract void oracle.adf.mbean.share.connection.url.URLConnectionMXBean.setConnectionClassName(java.lang.String)”.

    <MBeanAttributeInfoMappingMetaData> <<init>> No annotation should be put on attribute mutator parameter “public abstract void oracle.adf.mbean.share.connection.url.URLConnectionMXBean.setChallengeAuthenticationType(java.lang.String)”.

    <Digester> <getParser> Digester.getParser:

    java.lang.UnsupportedOperationException: This parser does not support specification “null” version “null”

    at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)

    at weblogic.xml.jaxp.RegistrySAXParserFactory.setXIncludeAware(RegistrySAXParserFactory.java:203)

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.getFactory(Digester.java:534)

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.getParser(Digester.java:786)

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.parse(Digester.java:1887)

    at com.ocpsoft.pretty.faces.el.resolver.FacesConfigBeanNameResolver.processFacesConfig(FacesConfigBeanNameResolver.java:275)

    at com.ocpsoft.pretty.faces.el.resolver.FacesConfigBeanNameResolver.init(FacesConfigBeanNameResolver.java:98)

    at com.ocpsoft.pretty.faces.el.LazyBeanNameFinder.<init>(LazyBeanNameFinder.java:90)

    at com.ocpsoft.pretty.faces.config.spi.AnnotationConfigurationProvider.loadConfiguration(AnnotationConfigurationProvider.java:59)

    at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:63)

    at com.ocpsoft.pretty.PrettyFilter.init(PrettyFilter.java:305)

    at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:332)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:98)

    at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:59)

    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1876)

    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)

    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)

    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)

    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)

    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)

    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)

    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)

    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)

    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)

    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)

    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)

    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)

    at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)

    at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)

    at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

    at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

    at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

    at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)

    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

    at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    <Oct 10, 2011 12:47:23 AM EDT> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: com.ocpsoft.pretty.PrettyFilter.

    com.ocpsoft.pretty.PrettyException: Failed to load configuration.

    at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:90)

    at com.ocpsoft.pretty.PrettyFilter.init(PrettyFilter.java:305)

    at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:332)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    Truncated. see log file for complete stacktrace

    Caused By: java.lang.NullPointerException

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)

    at com.ocpsoft.shade.org.apache.commons.digester.Digester.parse(Digester.java:1887)

    at com.ocpsoft.pretty.faces.el.resolver.FacesConfigBeanNameResolver.processFacesConfig(FacesConfigBeanNameResolver.java:275)

    at com.ocpsoft.pretty.faces.el.resolver.FacesConfigBeanNameResolver.init(FacesConfigBeanNameResolver.java:98)

    at com.ocpsoft.pretty.faces.el.LazyBeanNameFinder.<init>(LazyBeanNameFinder.java:90)

    Truncated. see log file for complete stacktrace

    >

    [12:47:28 AM] Application Deployed Successfully.

    [12:47:28 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:

    [12:47:28 AM] http://192.168.1.188:7101/testapp

    [12:47:28 AM] Elapsed time for deployment: 30 seconds

    [12:47:28 AM] —- Deployment finished. —-

    Run startup time: 29665 ms.

    [Application testapp deployed to Server Instance IntegratedWebLogicServer]

    #21459

    This seems to be the problem:

    java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
    at javax.xml.parsers.SAXParserFactory.setXIncludeAware(SAXParserFactory.java:448)
    at weblogic.xml.jaxp.RegistrySAXParserFactory.setXIncludeAware(RegistrySAXParserFactory.java:203)
    [....]

    So there seems to be some problem with the XML parser! I searched for this error message and quickly found this:

    http://www.jroller.com/navanee/entry/unsupportedoperationexception_this_parser_does_not

    Perhaps you have the same problem as the author of this blog post. You should check for old XML parses on the classpath. Perhaps removing/replacing them helps?

    Christian

    #21460

    clemmonsm
    Participant

    Found a workaround for all of you JDeveloper, ADF PrettyFaces developers that may stumble across this issue.

    Using Christian’s guidance, I found this post:

    https://forums.oracle.com/forums/thread.jspa?threadID=911954

    The details of the bug referenced in this post can be found here:

    http://www.bea-weblogic.com/fixed-bugs-list-oracle-weblogic-server-10-3-4.html

    I am using Integrated WebLogicServer 10.3.5 and this bug fix obviously did not alleviate the issue I was having. However, implementing angest’s solution of setting the following JAVA_OPTIONS did work:

    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

    I set this option in my Run Configuration, not directly on the setDomainEnv file of my dev machine.

    In addition, I removed conflicting commons jars (digester, beanutils, collections and logging) included by default in the project classpath to ensure the PrettyFaces jars added to WEB-INF/libs were the ones that were referenced (the default jars were of versions older than that required by PrettyFaces).

    #21461

    Hi @clemmonsm,

    PrettyFaces 3.3.0 should no longer require the commons JARs at all. You should be safe to remove them from your classpath.

    Hope this also helps,

    ~Lincoln

    #21462

    @clemmonsm: Thanks for sharing the solution with us! I think this will definitively help other who run into this issue.

    #21463

    clemmonsm
    Participant

    Hi Lincoln

    Section 2.1 in the 3.3.0 documentation states “Non-Maven Users must also include the following required JAR dependencies (downloaded separately) in addition to the PrettyFaces JAR file.”

    http://ocpsoft.com/docs/prettyfaces/3.3.0/en-US/html/GettingStarted.html

    Is the documentation incorrect?

    Thanks,

    Matt

    #21464

    Hey Matt,

    yes, the documentation is incorrect here. Since version 3.3.0 we shade all required 3rd party libraries into our JAR and we forgot to mention this in the documentation. So now there is actually no need for you to add any other dependencies than the PrettyFaces JAR to your project.

    I’ll update the documentation so that the section will be correct for the next version.

    Thank you

    Christian

    #21465

    Well Christian beat me to it, but yep :) that’s right. No more dependencies needed! We will make sure to update the docs. Thanks for pointing this out!

    #21466

    clemmonsm
    Participant

    Great, thanks for the clarification.

Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.