• 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

please help me to resolve this problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting error while compiling ejb related files

I am getting following error. I dont know which jar file to be included in class path. I have both BEA-Weblogic and j2ee server.

I dont know how to set class path for deploying ejb component.

E:\niranjan\day12>javac HelloBean.java
HelloBean.java:1: package javax.ejb does not exist
import javax.ejb.*;
^
HelloBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class HelloBean
public class HelloBean implements SessionBean
^
HelloBean.java:7: cannot resolve symbol
symbol : class SessionContext
location: class HelloBean
SessionContext ctx;
^
HelloBean.java:35: cannot resolve symbol
symbol : class SessionContext
location: class HelloBean
public void setSessionContext(SessionContext ct)
^
4 errors
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

If you are planning to deploy your EJB on weblogic then you need to put weblogic.jar in the classpath while compiling your classes. If you plan to use j2ee RI then use j2ee.jar instead.
 
niranjan angadi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks its working now
[ January 09, 2006: Message edited by: niranjan angadi ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic