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!

javax.ejb.SessionBean cannot be resolved

843829Aug 29 2003 — edited Aug 5 2008
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2008
Added on Aug 29 2003
3 comments
1,072 views