Re: Weblogic prettyfaces deployment problem

Splash Forums PrettyFaces Users Weblogic prettyfaces deployment problem Re: Weblogic prettyfaces deployment problem

#21895

I tried to deploy the application to WebLogic Server 12c (12.1.1) and got the following exception printed to the console:

21.12.2011 10:26:59 org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.0.M4-SNAPSHOT
21.12.2011 10:26:59 com.ocpsoft.pretty.PrettyFilter init
INFO: PrettyFilter starting up...
<21.12.2011 10:26 Uhr MEZ> <Error> <HTTP> <BEA-101388> <The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.>
<21.12.2011 10:26 Uhr MEZ> <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:316)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:576)
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: com.ocpsoft.pretty.PrettyException: Could not retrieve DynaViewId.
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.getFacesDynaViewId(PrettyConfigurator.java:103)
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:67)
at com.ocpsoft.pretty.PrettyFilter.init(PrettyFilter.java:316)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:576)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Truncated. see log file for complete stacktrace
Caused By: java.lang.UnsupportedOperationException: [HTTP:101388]The ServletContext was passed to the ServletContextListener.contextInitialized method of a ServletContextListener that was neither declared in web.xml or web-fragment.xml, nor annotated with javax.servlet.annotation.WebListener.
at weblogic.servlet.internal.WebAppServletContext.checkNotifyDynamicContext(WebAppServletContext.java:3834)
at weblogic.servlet.internal.WebAppServletContext.getServletRegistrations(WebAppServletContext.java:3727)
at com.ocpsoft.pretty.faces.config.servlet.WebXmlParser.parse(WebXmlParser.java:54)
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.getFacesDynaViewId(PrettyConfigurator.java:98)
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:67)
Truncated. see log file for complete stacktrace