• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using weblogic.appc from eclipse

 
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't compile with java 5 and run on 1.4. That's your problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic