Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

fail to import javax.ejb.* ???

843829May 13 2003 — edited May 14 2003
Hello All,

I am trying to do my very first HelloWorld in EJB. In my Hello.java (the remote interface), I have an import statement for the javax.ejb.EJBObject. When I compile the whole thing using ant, I got error message that it cannot resolve symbol at the aforementioned import statement. Am I missing a library or something?

By the way, I have installed the followings:
JDK 1.3.1
J2EE 1.3.1
JBoss-3.2.1_tomcat-4.1.24 bundle

I didn't have any problem with JSP using the same setup. The following is the code of Hello.java:
//code begin-----------------------------------------------------------
package com.mypackage.HelloEJBClasses;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface Hello extends EJBObject{
public String sayHello(String greeting) throws RemoteException;
}
//code end-------------------------------------------------------------

Any help will be very much appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 11 2003
Added on May 13 2003
3 comments
310 views