Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help me to resolve this problem

 
niranjan angadi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
 
Pranav Shukla
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thanks its working now
[ January 09, 2006: Message edited by: niranjan angadi ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic