MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
deus_pater
Post subject: Tomcat + javax/ejb/SessionBean [Closed]  PostPosted: Oct 21, 2004 - 08:41 AM
Veteran Member
Veteran Member


Joined: Sep 11, 2004
Posts: 3

Hi,

I'm trying to deploy a very simple j2ee project (one jsp, one bean that just has a method to return a string) into Tomcat 5 (Windows XP, Tomcat 5.0.28, Eclipse 3.0.1, MyEclipseIDE 3.8.2, java j2sdk 1.4.2_06 -- anything else?).

I get the following error in the browser:
java.lang.NoClassDefFoundError: javax/ejb/SessionBean

In my project, the IDE insists on importing a bunch of JBoss libraries, despite the fact that I've never installed JBoss.

Do I need to install JBoss to run Tomcat? Or am I doing something else wrong (probably)?

Help is much appreciated -- thanks!!

Mayank
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Oct 21, 2004 - 03:35 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Mayank,
If you are working with EJBs then that means you need a full J2EE compliant server, JBoss happens to be a very popular open source one, Tomcat does not support EJBs.

The JBoss libraries added to your build path are just J2EE 1.4 compliant files to allow you to develop J2EE apps. When you deploy your project (e.g. WebLogic, JBoss, Websphere, etc.) the server's own versions of those libraries will be used instead.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits