3 Replies Latest reply on Nov 5, 2003 11:18 PM by yoshi

    help! unable to compile

    fordeeps

      hi,
      I am a complete novice at ejb and jboss. I tried to deploy a ejb as said in a tutorial.
      The tutorial made me create a Session bean viz.; DemoBean.java, a home interface and a remote interface. Next, it asked me to compile the three files and after that put it in a jar. Now, when i compile each of the file, i get an error, package javax.ejb not found.

      I understand that this is problem related to classpath. But i donot know the workaround for it. Can anybody help me with a clear step by step instruction as to what i should do to just compile the java files (having the import javax.ejb.*). I have JBoss 2.4.2_2 on my machine.
      Thanks in advance

        • 1. Re: help! unable to compile

          I have the same problem, I feel it is really stupid but I cant find how to fix it.

          • 2. Re: help! unable to compile
            jonlee

            You need the jboss-j2ee.jar in your classpath. It contains your basic J2EE/EJB definitions - javax/ejb/* and so on. You may need other files but 2.4.x is pretty ancient these days so not too many people remember what the exact packing was for 2.4.x.

            • 3. Re: help! unable to compile

              I have solve my problem, be sure of compiling the .java before you launch the JSP page. I thought that like for servlet everything needed was recompile at each call, but actually only the JSP page is recompile not the bean, hence the error.