File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Error while deploying ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error while deploying ejb" Watch "Error while deploying ejb" New topic
Author

Error while deploying ejb

Geetha Sarath
Greenhorn

Joined: Aug 08, 2005
Posts: 10
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

Joined: Apr 14, 2004
Posts: 10336


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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mahesh Patil
Greenhorn

Joined: May 27, 2003
Posts: 2
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

Joined: Dec 17, 2001
Posts: 7
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error while deploying ejb