Harinder Thind

Greenhorn
+ Follow
since Jun 19, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Harinder Thind

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
15 years ago
Thanks you for the suggestion.
15 years ago
sorry I tried to be clear, let me try again. I am simply trying to add a resource to the WebLogic Server. For example, weblogic has a standard JMS queue object which can be added to the server resources. The queue object has a number of attributes like MessagesCurrentCount, MessagesHighCount, or MessagesReceivedCount. Similarly, I am trying to define an object with attributes of my choosing. lets ignore whether or not the object will be useful for now.

This can be done by creating a web application and then creating the objects in that application. This is where I get stuck. I do not know how to implement this. I hope that made a little more sense :S
15 years ago
Hi Amit,

The goal is really to just create, say, a variable of type int, and another of type String, and then put them in the same object simply for organization. The purpose of the object is to test different types of objects in WebLogic and how they respond to modification. Later, the variables will be polled by a stand alone java program for testing. The entire use of the object is not so important right now, I'm just attempting to create it for now. If you could assist me with that it would be GREAT! Thank you

Harinder
15 years ago
Hi everyone,

I am looking to create a custom object in weblogic server. For example, if I wanted to create an object and have, say, 5 String attributes, 8 int attributes, and 4 long attributes. Someone suggested creating a deployable application (a webapp) and then create the custom object in that application. I am a newbie to this stuff so I dont know how to implement that. Is this somehow related to using JSPs? Also, does anyone know if this can be done using Weblogic Scripting Language (WLST). Any help would be greatly appreciated! Thanks!

Harinder
15 years ago