1 Reply Latest reply on Feb 25, 2008 3:12 PM by kavitha_sundaram

    Starting Jboss from within Eclipse Europa J2EE

    kavitha_sundaram

      Hi,

      I pretty new to J2EE and Jboss, I am trying to get the two to work. I created a simple.jsp file within a J2EE project called simple, the file is within the Web Content folder. I start the JBOSS server from Eclipse and it deploys the project as simple.war. But when I try to hit the url, I get an error.

      org.apache.jasper.JasperException: Unable to compile class for JSP
      Unable to find a javac compiler;
      com.sun.tools.javac.Main is not on the classpath.
      Perhaps JAVA_HOME does not point to the JDK

      Ok, heres the weird part, when I start the server from command line using run.bat, it works.

      But really need to get it to work from eclipse. because it automatically deploys the application each time I make a code change.

      I have set JAVA_HOME but have not set classpath.

      Also I noticed that I don't get the following messages in the eclipse console
      that I get on the command window when I start JBOSS.

      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\developer\jboss-4.0.1sp1\bin\\..
      .
      JAVA: c:\j2sdk1.4.2_10\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      .
      CLASSPATH: c:\j2sdk1.4.2_10\lib\tools.jar;C:\developer\jboss-4.0.1sp1\bin\\run.jar
      .

      If anyone here has the eclipse & JBOSS working together please help.
      Your time and comments are greatly appreciated.

      KS

        • 1. Re: Starting Jboss from within Eclipse Europa J2EE
          kavitha_sundaram

          Hi,

          I have made some progress in the meantime.
          Just an update, I was able to start and stop the jboss server successfully from Eclipse Europa J2EE. Also eclipse deployed the project as a .war file no problems this time and it compiled fine. The thing I did different now was to update my JDK from 1.4 to 1.5 and Jboss to 5.0 beta 4 and deleted all the older versions of JDK (yeah , I had a handful). I have no idea why it didn't work before.
          I would recommend newbies like me who don't want to pay for myeclipse to try eclipse J2ee.

          KS