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.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com