• Post Reply Bookmark Topic Watch Topic
  • New Topic

Got a EJB Exception

 
Mohnish Saini
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends

I found very hard time in resolving an exception. I have a application built in EJB and Struts. And it is only deployed in Weblogic 8.1 SP4.
2 weeks ago, it was deployed successfully on mu machine and working. Aand now if I am trying to build ear and deploy, it gives the following exception:

[Deployer:149033]preparing application linktool on myserver
[Deployer:149033]failed application linktool on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application linktool on myserver.:
Exception:weblogic.management.ApplicationException: prepare failed for linktool.jar
Module: linktool.jar Error: Exception preparing module: EJBModule(linktool.jar,status=NEW)
Unable to deploy EJB: CrossrefProvidersManager from linktool.jar:
java.lang.AssertionError: Unable to find expected methods. Please check your classpath for stale versions of your ejb classes and re-run weblogic.ejbc
at com.ovid.links.admin.ejb.CrossrefProvidersManager_ezvrun_HomeImpl.<clinit>(CrossrefProvidersManager_ezvrun_HomeImpl.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:999)
at weblogic.ejb20.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:1004)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1345)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:3142)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1583)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1227)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1070)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2513)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2463)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2379)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


May be it is due to some claaspath/paths changes in the two weeks for other work but I am not sure. One thing more: when I deployed the same ear (of two weeks beofre) now, the tool gets deployed and working fine. But if I build ear now by building the application and deploy, above exception comes. And there are many EJBs used in this tool. Why it is giving exceptlion in "CrossrefProvidersManager" EJB only. How to get rid of this excepton.

Thanks
Mohnish

 
Mohamed Inayath
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

You can try this below steps:

1. Stop the Application server
2. Clear the weblogic application deployment cache (All the deployed ejbs).
3. Restart the server.
4. Deploy the new application ear.

Assertion error could be because of the previous deployment not being refreshed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!