aspose file tools*
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weblogic.ejbc compile problems" Watch "Weblogic.ejbc compile problems" New topic
Author

Weblogic.ejbc compile problems

Anouska Jones
Greenhorn

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 /> com.bt.eStores.service.myAccount.ESMyAccountBean 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.
Cheers
Nosh.
anup vachali
Ranch Hand

Joined: Oct 17, 2000
Posts: 54
Anouska,
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.
HTH,
Anup.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weblogic.ejbc compile problems
 
Similar Threads
Unable to deploy BEAN
stuck early on in HF EJB
EJB start
ClassNotFoundException
junit AssertionFailedError