facebook

Tomcat + javax/ejb/SessionBean [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218107 Reply

    deus_pater
    Member

    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

    #218126 Reply

    Riyad Kalla
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Tomcat + javax/ejb/SessionBean [Closed]

You must be logged in to post in the forum log in