File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Using weblogic.appc from eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Using weblogic.appc from eclipse" Watch "Using weblogic.appc from eclipse" New topic
Author

Using weblogic.appc from eclipse

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi guys,
Can any guys help me in making a deployable EJB jar using Eclipse. I am using weblogic server 8.1 sp3. I am not sure whether should I use weblogic.ejbc or weblogic.appc. I did it by <wlappc ant build tag and though it creates stub and skeleton for the remote object but still jar is not deployable. When I try to deploy it, server throws exception saying can't load one of the bean class defined in ejb-jar.xml file, byte class found but loading failed.

Waiting for your positive response

Thanks


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
As I recall, bea recommends appc over the old ejbc. Perhaps you could post the actual exception. What class is it having a problem with. Is it a java version problem?...just speculating since i don't have much to go on.

From BEA appc & ejbc documentation
ejbc
Note: ejbc is deprecated. Use appc instead. See appc.

[ November 23, 2006: Message edited by: Carol Enderlin ]
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Originally posted by Carol Enderlin:
As I recall, bea recommends appc over the old ejbc. Perhaps you could post the actual exception. What class is it having a problem with. Is it a java version problem?...just speculating since i don't have much to go on.

From BEA appc & ejbc documentation


[ November 23, 2006: Message edited by: Carol Enderlin ]


Thanks for your reply. Infact I have used the same <wlappc tag in ant build file and though it creates stub and Impl classes in jar file, but when I deploy the ejb jar, server throws exception saying Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'mybankEJB'. Did anyone came across with such type of exception at the time of deploying EJB module.

I am sure the problem is due to stub and skeleton classes. Yes I am using sun jre 1.5 at the time of build and weblogic sever 8.1 uses its own sun jre 1.4 version.

Thanks
[ November 26, 2006: Message edited by: Naseem Khan ]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Don't compile with java 5 and run on 1.4. That's your problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using weblogic.appc from eclipse