javax.ejb.SessionBean cannot be resolved
843829Aug 29 2003 — edited Aug 5 2008I have set up eclipse with JBoss and I have installed the Lomboz com.objectlearn.jdt.j2ee jboss32all server plugin.
My Environment:
JBoss-3.2.2RC3
eclipse SDK 2.1.1
XDoclet 1.2b3
Win XP
I have these environment variables:
J2EE_HOME d:\j2sdkee1.3.1
JAVA_HOME d:\j2sdk1.4.0_01
JBOSS_HOME d:\jboss-3.2.2RC2
And my CLASSPATH looks like:
D:\j2sdkee1.3.1\lib\j2ee.jar;D:\Program Files\jakarta-tomcat-4.1.10\common\lib\servlet.jar;D:\j2sdk1.4.0_01\lib\tools.jar;D:\xdoclet\lib\xdoclet.jar;D:\jboss-3.2.2RC2\lib\ejb.jar;D:\jboss-3.2.2RC2\client\jboss-j2ee.jar
The problem is that when my EJBs are being compiled, I get errors that point to my import statements (here are some examples}:
import javax.ejb.SessionBean;
import javax.ejb.EJBLocalObject;
import.javax.ejb.EJBHome;
The error message states "the import javax cannot be resolved"
As you can see, I have my j2ee.jar in the classpath. Can anyone see what is wrong?
thanks
yan