WebCenter Portal & the web.xml

person Bijeshfolder_openJDeveloper, Oracle, WebCenteraccess_time April 30, 2013

Quite often, I have seen posts over at the Oracle Forums about deployment errors with a WebCenter Portal application. The error logs usually point at a missing listener or a missing factory. For e.g.

'weblogic.management.DeploymentException: '
weblogic.management.DeploymentException: 
at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:176)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:104)
at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: oracle.webcenter.lifecycle.listener.FeatureMetricApplicationListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

In most cases, this is caused by a corrupt web.xml. Ever so often JDeveloper adds mysterious entries to the web.xml – listener entries like FeatureMetricApplicationListener or servlet entries like PortalErrorServlet. I haven’t yet isolated what causes JDeveloper to add these entries.

However, the fix is a simple one if you haven’t explicitly added anything to your web.xml. You have two options

1) If you have source control, then revert to a web.xml that does not contain these entries

(or)

2) Create a new WebCenter Portal application in JDeveloper and copy over the web.xml from the new project.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>