Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB and other Java EE Technologies and the fly likes Weblogic.ejbc compile problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weblogic.ejbc compile problems" Watch "Weblogic.ejbc compile problems" New topic

Weblogic.ejbc compile problems

Anouska Jones

Joined: Sep 21, 2001
Posts: 2
Hi folks,
I am trying to use ejbc to compile my jar file. When I run it I get the following error:
<21-Sep-01 18:23:33 BST> <Error> <EJB> <EJB Deployment: ESMyAccount has a class<br /> which is in the classpath. This<br /> class should only be located in the ejb-jar file.>
Can anybody tell me what the problem is??
My ejb-jar.xml file exists and has been set up with the correct tags.
anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
U havent mentioned which app server or which version u were having problems with. But since I have seen this problem on WebLogic6.0, I am assuming that is what u r using too.
This is happening because the classloader architecture has been changed from WL6.0 onwards. If u look at some of the example build scripts that come with the server u will see that only the Bean classes are put into the jar file. However, the good news is that even thought weblogic reports this as an error, the jar file gets created and deployed. So, it is nore of an irritant than a show-stopper and if I am not mistaken, the messge comes as a <Warning> in WL6.1.
I agree. Here's the link:
subject: Weblogic.ejbc compile problems
Similar Threads
Unable to deploy BEAN
EJB start
junit AssertionFailedError
stuck early on in HF EJB