eclispe WTP kann Webapp unter JBoss nicht starten wg. "Unable to find a javac compiler;"

Discussion in 'Java' started by f.mayer@web.de, Jan 19, 2007.

  1. Guest

    Hallo!

    Ich möchte eine J2EE-Applikation aus eclipse WTP 1.5.1
    (eclipse-Plattform 3.2.1) unter JBoss 4.0.2 starten. Der JBoss startet
    ohne Probleme. Wenn ich dann allerdings eine JSP aufrufen möchte,
    wirft der JBoss die folgende Meldung (siehe unten für ausführlicheren
    Output):
    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

    Wenn ich jedoch den JBoss manuell als batch starte funktioniert die
    Webseite einwandfrei.

    Was ich schon geprüft habe:
    - Das tools.jar unter Preferences > Ant > Runtime > Gloabl Entries ist
    vorhanden.
    - Unter Preferences > Java > Build Path > Classpath habe ich ein
    JAVA_HOME und die Variable CLASSPATH angelegt (selbe, wie unter
    Windows-Einstellungen).
    - Unter Preferences > Java > Installed JREs ist die korrekte JDK
    gelistet (jdk1.5.0_05)

    An was liegt es, dass der JBoss aus eclipse die JSPs nicht umsetzen
    kann? Wie behebe ich dieses Problem?

    Vielen Dank bereits im Voraus.
    Gruß Franz

    --- AUSZUG AUS eclipse-Console ---
    16:22:30,404 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build:
    CVSTag=JBoss_4_0_2 date=200505022023)] Started in 25s:360ms
    16:22:39,810 ERROR [Compiler] Javac exception
    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
    at
    org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher..java:672)
    at
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
    at
    org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:581)
    at
    com.dept101.www.controller.StateawareErrorsuppressResponse.includeJSP(StateawareErrorsuppressResponse.java:118)
    at
    com.dept101.www.view.taglib.page.PageTagSupport.includeJSP(PageTagSupport.java:106)
    at
    com.dept101.www.view.taglib.page.FillTemplateTag.doEndTag(FillTemplateTag.java:124)
    at org.apache.jsp.sys.view_jsp._jspService(view_jsp.java:976)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher..java:672)
    at
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at
    com.dept101.www.controller.ControllerServlet.myService(ControllerServlet.java:201)
    at
    com.dept101.www.controller.ControllerServlet.doGet(ControllerServlet.java:157)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
    at
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
    at
    org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at
    org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
     
    , Jan 19, 2007
    #1
    1. Advertising

  2. Lew Guest

    Re: eclispe WTP kann Webapp unter JBoss nicht starten wg. "Unableto find a javac compiler;"

    wrote:
    > Hallo!
    >
    > Ich möchte eine J2EE-Applikation aus eclipse WTP 1.5.1
    > (eclipse-Plattform 3.2.1) unter JBoss 4.0.2 starten. Der JBoss startet
    > ohne Probleme.


    Ich bin kein Berliner.

    - Lew
     
    Lew, Jan 19, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?iso-8859-1?Q?Uwe_M=FCnch?=

    Debugger funktioniert nicht!?

    =?iso-8859-1?Q?Uwe_M=FCnch?=, Aug 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    579
    S. Justin Gengo
    Aug 26, 2003
  2. Thomas Mueller

    aspnet_wp.exe wird nicht gestartet HILFE!!

    Thomas Mueller, Feb 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,006
    Thomas Mueller
    Feb 27, 2004
  3. Replies:
    6
    Views:
    447
    S. Justin Gengo [MCP]
    Feb 10, 2006
  4. Replies:
    2
    Views:
    701
  5. Andrew
    Replies:
    7
    Views:
    434
    Andrew
    Jun 28, 2009
Loading...

Share This Page