• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

weblogic.ejbc errors

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I am working on EJB 1.1 with WLS - 6.1 . Am getting the following error when the following command
java weblogic.ejbc Employee.jar Employeedep.jar
is given at command prompt.
In home interface I declared ..
public EmpRemote findByPrimaryKey(int empid ) throws FinderException , RemoteException ;

E:\CONTAINERMANAGED\Example5>
java weblogic.ejbc Employee.jar Employeedep.jar
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpBean which is in the classpath. This class should only be located
in the ejb-jar file.>
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpHome which is in the classpath. This class should only be located
in the ejb-jar file.>
<Mar 6, 2003 12:51:52 AM IST> <Warning> <EJB> <EJB Deployment: containerManaged
has a class EmpRemote which is in the classpath. This class should only be locat
ed in the ejb-jar file.>
ERROR: Error from ejbc: In EJB containerManaged, the home interface's findByPrim
aryKey methods parameter must be the primary key type or java.lang.Object: {1}
ERROR: ejbc found errors
E:\CONTAINERMANAGED\Example5>
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the WebLogic forum...
Basically though, you need to remove the reference to that class from your classpath before running ejbc.
Simon
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic