Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic