GeeCON Prague 2014*
The moose likes BEA/Weblogic and the fly likes getting ModuleException: [HTTP:101163]Could not load user defined listener - error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "getting ModuleException: [HTTP:101163]Could not load user defined listener - error" Watch "getting ModuleException: [HTTP:101163]Could not load user defined listener - error" New topic
Author

getting ModuleException: [HTTP:101163]Could not load user defined listener - error

Harinder Thind
Greenhorn

Joined: Jun 19, 2008
Posts: 5
Hi everyone,

I am creating a custom MBean in a web app. I have defined the interface for the custom MBean and implemented it, and also written the listener class which implements 'ApplicationLifecycleListener'. I have been using the following documentation for the majority of the project:

http://edocs.bea.com/wls/docs100/jmxinst/instmbeans.html

However, when I attempt to deploy the app I am getting the following error regarding the listener class:

Module named 'customMBeanProjEAR' failed to deploy.
Module named 'customMBeanProjEAR' failed to start.
weblogic.application.ModuleException: [HTTP:101163]Could not load user defined listener: Files.AppLifeCycleListenerImp
java.lang.ClassCastException: Files.AppLifeCycleListenerImp
at weblogic.servlet.internal.WebComponentContributor.createListenerInstance(WebComponentContributor.java:223)
at weblogic.servlet.internal.EventsManager.registerEventListener(EventsManager.java:354)
at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:112)
at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:66)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1719)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:136)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:139)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:816)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1223)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:434)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161)


here is my code for the listener class:





Does anyone have any idea what the problem may be? Thank you.

Harinder
 
GeeCON Prague 2014
 
subject: getting ModuleException: [HTTP:101163]Could not load user defined listener - error