Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > eclispe WTP kann Webapp unter JBoss nicht starten wg. "Unable to find a javac compiler;"

Reply
Thread Tools

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

 
 
f.mayer@web.de
Guest
Posts: n/a
 
      01-19-2007
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.CompilerAd apterFactory.getCompiler(CompilerAdapterFactory.ja va:105)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:929)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:75
at
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:382)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
at
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
at
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher..java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:499)
at
org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:966)
at
org.apache.jasper.runtime.PageContextImpl.include( PageContextImpl.java:581)
at
com.dept101.http://www.controller.StateawareErro...ponse.java:118)
at
com.dept101.http://www.view.taglib.page.PageTagS...pport.java:106)
at
com.dept101.http://www.view.taglib.page.FillTemp...teTag.java:124)
at org.apache.jsp.sys.view_jsp._jspService(view_jsp.j ava:976)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher..java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:499)
at
com.dept101.http://www.controller.ControllerServ...rvlet.java:201)
at
com.dept101.http://www.controller.ControllerServ...rvlet.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.in ternalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:81)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:17
at
org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:153)
at
org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:482)
at
org.jboss.web.tomcat.security.JaccContextValve.inv oke(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.invok e(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:14
at
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)

 
Reply With Quote
 
 
 
 
Lew
Guest
Posts: n/a
 
      01-19-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to start with a webapp that is not really a webapp Andrew Java 7 06-28-2009 08:42 PM
Kann mal jemand win 98 uppen? ciouuz Computer Support 2 02-17-2006 08:14 PM
What should I do webapp or webservice + webapp? jhooper71@yahoo.com ASP .Net 6 02-10-2006 02:07 PM
Hi, wer kann bitte helfen> aus Datei-Meine BIlder> kann ich keine Bilder mehr verschicken!! roko Computer Support 0 02-24-2004 05:41 PM
nieuwsgroep starten marjo Computer Support 1 02-01-2004 06:50 PM



Advertisments