Problems with IBM initial contrib fro Eclipse JST subproject [message #45665] |
Sun, 26 September 2004 16:14 |
Eclipse User |
|
|
|
Originally posted by: zvonimir.kriz.zvonet.com
Hi,
I have a problem while exploring server tools (scenario 2 - debugging a JSP
on Tomcat 5.0).
When I try to debug today.jsp on server, I allways get the following error:
SEVERE: 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.CompilerAdapterFacto ry.getCompiler(C
ompilerAdapterFactory.java:106)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:5
11)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:2
95)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Application
FilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterCh
ain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContext
Valve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.ja
va:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:137
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
t.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:118
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
t.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java
:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
t.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapte r.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.jav
a:683)
at java.lang.Thread.run(Unknown Source)
2004.09.26 18:12:19 org.apache.jasper.compiler.Compiler generateClass
SEVERE: Env: Compile: javaFileName=/C:/Program Files/Apache Software
Foundation/Tomcat
5.0/work/Catalina/localhost/MaWeb//org/apache/jsp\today_jsp. java
classpath=/C:/eclipse_workspace/MaWeb/WebContent/WEB-INF/cla sses/;C:\Program
Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\MaWeb;/C:/eclipse_workspace/MaWe b/WebContent/WEB
-INF/classes/;C:/Program Files/Apache Software Foundation/Tomcat
5.0/shared/classes/;C:/Program Files/Apache Software Foundation/Tomcat
5.0/common/classes/;C:/Program Files/Apache Software Foundation/Tomcat
5.0/common/endorsed/xercesImpl.jar;C:/Program Files/Apache Software
Foundation/Tomcat 5.0/common/endorsed/xml-apis.jar;C:/Program Files/Apache
Software Foundation/Tomcat 5.0/common/lib/ant-launcher.jar;C:/Program
Files/Apache Software Foundation/Tomcat 5.0/common/lib/ant.jar;C:/Program
Files/Apache Software Foundation/Tomcat
5.0/common/lib/commons-collections-3.1.jar;C:/Program Files/Apache Software
Foundation/Tomcat 5.0/common/lib/commons-dbcp-1.2.1.jar;C:/Program
Files/Apache Software Foundation/Tomcat
5.0/common/lib/commons-el.jar;C:/Program Files/Apache Software
Foundation/Tomcat 5.0/common/lib/commons-pool-1.2.jar;C:/Program
Files/Apache Software Foundation/Tomcat
5.0/common/lib/jasper-compiler.jar;C:/Program Files/Apache Software
Foundation/Tomcat 5.0/common/lib/jasper-runtime.jar;C:/Program Files/Apache
Software Foundation/Tomcat 5.0/common/lib/jsp-api.jar;C:/Program
Files/Apache Software Foundation/Tomcat
5.0/common/lib/naming-common.jar;C:/Program Files/Apache Software
Foundation/Tomcat 5.0/common/lib/naming-factory.jar;C:/Program Files/Apache
Software Foundation/Tomcat 5.0/common/lib/naming-java.jar;C:/Program
Files/Apache Software Foundation/Tomcat
5.0/common/lib/naming-resources.jar;C:/Program Files/Apache Software
Foundation/Tomcat
5.0/common/lib/servlet-api.jar;/C:/Program%20Files/Apache%20 Software%20Found
ation/Tomcat%205.0/bin/bootstrap.jar;/C:/Program%20Files/Jav a/j2re1.4.2_04/l
ib/ext/dnsns.jar;/C:/Program%20Files/Java/j2re1.4.2_04/lib/e xt/ldapsec.jar;/
C:/Program%20Files/Java/j2re1.4.2_04/lib/ext/localedata.jar; /C:/Program%20Fi
les/Java/j2re1.4.2_04/lib/ext/sunjce_provider.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
cp=C:\eclipse_workspace\MaWeb\WebContent\WEB-INF\classes
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\MaWeb
cp=C:\eclipse_workspace\MaWeb\WebContent\WEB-INF\classes
cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\shared\classes
cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\classes
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed\xercesImpl.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\endorsed\xml-apis.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\ant-launcher.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\ant.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\commons-collections-3.1.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\commons-dbcp-1.2.1.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\commons-el.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\commons-pool-1.2.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jasper-compiler.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jasper-runtime.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\jsp-api.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\naming-common.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\naming-factory.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\naming-java.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\naming-resources.jar
cp=C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib\servlet-api.jar
cp=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat% 205.0\bin\bootst
rap.jar
cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\dnsns.jar
cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\ldapsec.jar
cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\localedata.j ar
cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\sunjce_provi der.jar
work dir=C:\Program Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\MaWeb
extension dir=C:\Program Files\Java\j2re1.4.2_04\lib\ext
srcDir=C:\Program Files\Apache Software Foundation\Tomcat
5.0\work\Catalina\localhost\MaWeb
include=org/apache/jsp/today_jsp.java
2004.09.26 18:12:19 org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /C:/Program Files/Apache Software
Foundation/Tomcat
5.0/work/Catalina/localhost/MaWeb//org/apache/jsp\today_jsp. java [javac]
Compiling 1 source file
|
|
|
|
Re: Problems with IBM initial contrib fro Eclipse JST subproject [message #45730 is a reply to message #45665] |
Mon, 27 September 2004 11:45 |
Eclipse User |
|
|
|
Originally posted by: levi.artsoft-consult.ro
Hi,
The problem is that in your classpath is the JRE not the JDK. You can
try to start eclipse using the -vm argument and point it to a JDK
installation. For example:
c:\eclipse\eclipse.exe -vm c:\j2sdk1.4.2\bin\javaw.exe
Hope this helps,
Levi
zvonimir.kriz@zvonet.com wrote:
> Hi,
>
> I have a problem while exploring server tools (scenario 2 - debugging a JSP
> on Tomcat 5.0).
>
> When I try to debug today.jsp on server, I allways get the following error:
>
> SEVERE: 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.CompilerAdapterFacto ry.getCompiler(C
> ompilerAdapterFactory.java:106)
>
> at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>
> at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>
> at org.apache.jasper.compiler.Compiler.generateClass(Compiler.j ava:382)
>
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:47 2)
>
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:45 1)
>
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:43 9)
>
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:5
> 11)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:2
> 95)
>
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:292)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :236)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Application
> FilterChain.java:237)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterCh
> ain.java:157)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.ja
> va:214)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
> t.java:104)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContext
> Valve.java:198)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.ja
> va:152)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
> t.java:104)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:137
> )
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
> t.java:104)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:118
> )
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
> t.java:102)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java
> :109)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(Sta ndardValveContex
> t.java:104)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:520)
>
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:929)
>
> at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapte r.java:160)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:799)
>
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConne
> ction(Http11Protocol.java:705)
>
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:577)
>
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.jav
> a:683)
>
> at java.lang.Thread.run(Unknown Source)
>
> 2004.09.26 18:12:19 org.apache.jasper.compiler.Compiler generateClass
>
> SEVERE: Env: Compile: javaFileName=/C:/Program Files/Apache Software
> Foundation/Tomcat
> 5.0/work/Catalina/localhost/MaWeb//org/apache/jsp\today_jsp. java
>
> classpath=/C:/eclipse_workspace/MaWeb/WebContent/WEB-INF/cla sses/;C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.0\work\Catalina\localhost\MaWeb;/C:/eclipse_workspace/MaWe b/WebContent/WEB
> -INF/classes/;C:/Program Files/Apache Software Foundation/Tomcat
> 5.0/shared/classes/;C:/Program Files/Apache Software Foundation/Tomcat
> 5.0/common/classes/;C:/Program Files/Apache Software Foundation/Tomcat
> 5.0/common/endorsed/xercesImpl.jar;C:/Program Files/Apache Software
> Foundation/Tomcat 5.0/common/endorsed/xml-apis.jar;C:/Program Files/Apache
> Software Foundation/Tomcat 5.0/common/lib/ant-launcher.jar;C:/Program
> Files/Apache Software Foundation/Tomcat 5.0/common/lib/ant.jar;C:/Program
> Files/Apache Software Foundation/Tomcat
> 5.0/common/lib/commons-collections-3.1.jar;C:/Program Files/Apache Software
> Foundation/Tomcat 5.0/common/lib/commons-dbcp-1.2.1.jar;C:/Program
> Files/Apache Software Foundation/Tomcat
> 5.0/common/lib/commons-el.jar;C:/Program Files/Apache Software
> Foundation/Tomcat 5.0/common/lib/commons-pool-1.2.jar;C:/Program
> Files/Apache Software Foundation/Tomcat
> 5.0/common/lib/jasper-compiler.jar;C:/Program Files/Apache Software
> Foundation/Tomcat 5.0/common/lib/jasper-runtime.jar;C:/Program Files/Apache
> Software Foundation/Tomcat 5.0/common/lib/jsp-api.jar;C:/Program
> Files/Apache Software Foundation/Tomcat
> 5.0/common/lib/naming-common.jar;C:/Program Files/Apache Software
> Foundation/Tomcat 5.0/common/lib/naming-factory.jar;C:/Program Files/Apache
> Software Foundation/Tomcat 5.0/common/lib/naming-java.jar;C:/Program
> Files/Apache Software Foundation/Tomcat
> 5.0/common/lib/naming-resources.jar;C:/Program Files/Apache Software
> Foundation/Tomcat
> 5.0/common/lib/servlet-api.jar;/C:/Program%20Files/Apache%20 Software%20Found
> ation/Tomcat%205.0/bin/bootstrap.jar;/C:/Program%20Files/Jav a/j2re1.4.2_04/l
> ib/ext/dnsns.jar;/C:/Program%20Files/Java/j2re1.4.2_04/lib/e xt/ldapsec.jar;/
> C:/Program%20Files/Java/j2re1.4.2_04/lib/ext/localedata.jar; /C:/Program%20Fi
> les/Java/j2re1.4.2_04/lib/ext/sunjce_provider.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
>
> cp=C:\eclipse_workspace\MaWeb\WebContent\WEB-INF\classes
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\work\Catalina\localhost\MaWeb
>
> cp=C:\eclipse_workspace\MaWeb\WebContent\WEB-INF\classes
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\shared\classes
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\classes
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\endorsed\xercesImpl.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\endorsed\xml-apis.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\ant-launcher.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\ant.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\commons-collections-3.1.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\commons-dbcp-1.2.1.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\commons-el.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\commons-pool-1.2.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\jasper-compiler.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\jasper-runtime.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\jsp-api.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\naming-common.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\naming-factory.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\naming-java.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\naming-resources.jar
>
> cp=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\lib\servlet-api.jar
>
> cp=C:\Program%20Files\Apache%20Software%20Foundation\Tomcat% 205.0\bin\bootst
> rap.jar
>
> cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\dnsns.jar
>
> cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\ldapsec.jar
>
> cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\localedata.j ar
>
> cp=C:\Program%20Files\Java\j2re1.4.2_04\lib\ext\sunjce_provi der.jar
>
> work dir=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\work\Catalina\localhost\MaWeb
>
> extension dir=C:\Program Files\Java\j2re1.4.2_04\lib\ext
>
> srcDir=C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\work\Catalina\localhost\MaWeb
>
> include=org/apache/jsp/today_jsp.java
>
> 2004.09.26 18:12:19 org.apache.jasper.compiler.Compiler generateClass
>
> SEVERE: Error compiling file: /C:/Program Files/Apache Software
> Foundation/Tomcat
> 5.0/work/Catalina/localhost/MaWeb//org/apache/jsp\today_jsp. java [javac]
> Compiling 1 source file
>
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05901 seconds