File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes please help me to resolve this problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "please help me to resolve this problem" Watch "please help me to resolve this problem" New topic
Author

please help me to resolve this problem

niranjan angadi
Greenhorn

Joined: Jan 09, 2006
Posts: 3
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

Joined: Oct 05, 2005
Posts: 64
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.


Pranav Shukla
SCJP, SCWCD, SCBCD
niranjan angadi
Greenhorn

Joined: Jan 09, 2006
Posts: 3
thanks its working now
[ January 09, 2006: Message edited by: niranjan angadi ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please help me to resolve this problem
 
Similar Threads
class compile err,pls help
error in compiling, ejb
Set up problems for HF EJB
error compiling ejb, first time prompt compile
AdviceBean - compile time erorr