Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using weblogic.appc from eclipse

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't compile with java 5 and run on 1.4. That's your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic