aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes cann't understand this error plz help. 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 "cann Watch "cann New topic
Author

cann't understand this error plz help.

sajjad ahmad
Ranch Hand

Joined: Jan 23, 2003
Posts: 78
hi!
i am a biginer to ejb.
i have downloded the ejbtutorial from this site and trying to learn some thing from it
in this tutorial i have to make three files
DemoHome.java
**************************************************
package ejb.demo;
import javax.ejb.*;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.*;

public interface DemoHome extends EJBHome {

public Demo create() throws CreateException, RemoteException;

}
**************************************************
Demo.java
**************************************************
package ejb.demo;
import java.rmi.RemoteException;
import java.rmi.Remote;
import javax.ejb.*;
public interface Demo extends EJBObject, Remote {

public String demoSelect() throws RemoteException;
}
**************************************************
DemoBean.java
**************************************************
package ejb.demo;
import javax.ejb.*;
import java.io.Serializable;
import java.util.*;
import java.rmi.*;
public class DemoBean implements SessionBean {
static final boolean verbose = true;
private transient SessionContext ctx;
private transient Properties props;


public void ejbActivate() {
if (verbose)
System.out.println("ejbActivate called");
}
public void ejbRemove() {
if (verbose)
System.out.println("ejbRemove called");
}
public void ejbPassivate() {
if (verbose)
System.out.println("ejbPassivate called");
}
public void setSessionContext(SessionContext ctx) {
if (verbose)
System.out.println("setSessionContext called");
this.ctx = ctx;
props = ctx.getEnvironment();
}

public void ejbCreate () {
if (verbose)
System.out.println("ejbCreate called");
}
public String demoSelect()
throws RemoteException
{

return("hello world");
}

}
**************************************************
but when i try to compile them ithe two classes Demo.java,DemoBean.java are compiled correctly but
javac DemoHome.java
gives me following the error
cann't resolve symbol Demo
i have correctly set all the path and classpath varibles and still i m wondring that y it isn't working.
can anybody plz help me to slove this problem.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I still think it is a classpath issue. Please refer to this discussion on a similar topic.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cann't understand this error plz help.