aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes Problem in Deploying the ejb jar in WL 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Problem in Deploying the ejb jar in WL 7.0" Watch "Problem in Deploying the ejb jar in WL 7.0" New topic
Author

Problem in Deploying the ejb jar in WL 7.0

Phani Kumar
Greenhorn

Joined: Dec 18, 2006
Posts: 21
Hi,
I have a an issue in Weblogic. I am trying to create the EJB jar file(session beans only) and
i am using DAO's to interact the DB. Now, the issue is i complied all the classes. While creating
and compile the jar file ejbc is throwing some warning Like:

<Mar 1, 2002 11:23:23 AM IST> <Warning> <EJB> <010054> <EJB Deployment: UserProfileEJB has a class com.gmac
.sm.userprofile.ejb.session.UserProfileLocal which is in the classpath. This class should only be located i
n the ejb-jar file.>

This is the warning I am getting for each and every bean. Even though I am trying to deploy this EJB,
but I am unable to deploy the EJB in WL 7.0, there also i am getting the following the Exceptions,
Finally, i am unable to deploy the application.



TargetException:
Unable to deploy EJB: EATraderEJB.jar from EATraderEJB.jar:
Unable to load a class specified in your ejb-jar.xml: com.gmac.sm.evaluation.ejb.session.EvaluationManagerBean
at weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:155)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:496)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:826)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1344)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1786)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:747)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:561)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1139)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:803)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:262)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:224)
}
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:754)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:561)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1139)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:803)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:262)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:224)
>




Can you tell me the exact reason, Why i am getting this error, and i mentiond the clsspath properly, and please
suggest me the folder structure for EJB jar.

Thanks in advance.


Thanks and best regards,
Phanikumar Y.
Phani Kumar
Greenhorn

Joined: Dec 18, 2006
Posts: 21
Hi,

Please Update this ASAP. it is very urgent for us.

Regards,
Phani.
Trimoorthy Kotte
Greenhorn

Joined: Mar 31, 2006
Posts: 9
-----------------------------------------------------------------------
<Mar 1, 2002 11:23:23 AM IST> <Warning> <EJB> <010054> <EJB Deployment: UserProfileEJB has a class com.gmac
.sm.userprofile.ejb.session.UserProfileLocal which is in the classpath. This class should only be located i
n the ejb-jar file.>
------------------------------------------------------------------------
Though it not likely, can you check if you have the jar file added to the classpath, if so remove. this

------------------------------------------------------------------------
This is the warning I am getting for each and every bean. Even though I am trying to deploy this EJB,
but I am unable to deploy the EJB in WL 7.0, there also i am getting the following the Exceptions,
------------------------------------------------------------------------
Are you using WebLogic Server 7.0 or WebLogic Platform 7.0 (WebLogic Integration ). You also specified you are getting this issue with all the EJBs. What kind of EJBs are these.
WebLogic Integration comes with set of Applications (exploded) under which there will be some ejb modules, if you try to deploy ejb under the existing application (thru console), you will find issues.(pls ignore this if you are using WebLogic Server alone) For deploying the EJB under the existing application, you need to add entry in the application.xml. Also you need to copy the ejb jar file to the staging folder of eaching managed server (or delete the managed servers stage folder and strat the servers and then deploy).
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in Deploying the ejb jar in WL 7.0
 
Similar Threads
Unable to deploy bean problem.
ejb deployment error
Stateless Session Bean Deployment error
Problem in deploying HelloWold applicaton
Exception:weblogic.management.ApplicationException: prepare failed for devejb