Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error while deploying ejb

 
Geetha Sarath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
Iam new to EJB,iam trying to deploy a bean,but getting the following error.I have pasted the error below.
Please help me.
Thanks in advance.
Geetha.


Exception:weblogic.management.ApplicationException: prepare failed for sl Module: sl Error: Exception preparing module: EJBModule(sl,status=NEW) Unable to deploy EJB: E:\ bea\ user_projects\ domains\ mydomain\ myserver\ upload\ sl.jar from sl.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: StatelessSessionEJB at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:548) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl. (MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847) at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188) at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
The exception that occurred while performing this task.
Log:
A log of the task's activities.
[Deployer:149033]preparing application sl on myserver
[Deployer:149033]failed application sl on myserver
[Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application sl on myserver.:
Exception:weblogic.management.ApplicationException: prepare failed for sl
Module: sl Error: Exception preparing module: EJBModule(sl,status=NEW)
Unable to deploy EJB: E:\bea\user_projects\domains\mydomain\myserver\upload\sl.jar from sl.jar:
weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: StatelessSessionEJB
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(MBeanDeploymentInfoImpl.java:548)
at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl. (MBeanDeploymentInfoImpl.java:232)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1262)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:477)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2847)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Unable to load a class specified in your ejb-jar.xml: StatelessSessionEJB

Check your ejb-jar.xml file. Make sure it describes EJBs included in the Jar file you are deploying.
 
Mahesh Patil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the problem is because of JDK version missmatch. You must be compiling your source with JDK 1.5 and deploying onto Weblogic which uses JDK 1.4 or earlier version. Try to compile and build your Jar file using JDK 1.4(or whichever used by Weblogic) and deploy.
I faced the same problem when I compiled using JDK1.5 and deployed to Weblogic 8.1 which uses JDK 1.4.

Mahesh
 
Silvio Pedroso
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Not sure but my guess is the descriptor and jar file are inconsistent. About jdk versions i�ve been using env�s with diferent versions in weblogic and jar successfully...

[]�s

'Think, therefore I exist!'
[ August 31, 2005: Message edited by: Silvio Pedroso ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic