File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

an eclipse problem

 
jay akhawri
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi group,

i think this is appropriate place to discuss eclipse related problems.

lately i was trying to integrate my tomcat5.0.8 with eclipse3.0.2. i got following errors while running a jsp...

------------------------------------------------------------------------------

=====================================================================================

i am using eclipse 3.0.2

my tomcat plugin is
-------------------
plug-in name: Tomcat Plugin(plug in ID com.sysdeo.eclipse.tomcat)
version:3.1.0beta

folowwing JREs are installed
----------------------------------------
F:\j2se1.3\jre
c:\program files\java\jrr1.5.0_01
f:\j2sdk1.4.1_01\jre

and my current jre is F:\j2se1.3\jre
for eclipse.

my project workspace is f:\eclipse\workspace\Tomcatproject

=====================================================================================
i faced this problem -->


Jun 22, 2005 6:24:46 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
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:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)
Jun 22, 2005 6:24:46 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Env: Compile: javaFileName=/F:/eclipse/workspace/Tomcatproject/work//org/apache/jsp\index_jsp.java
classpath=/F:/eclipse/workspace/Tomcatproject/WEB-INF/classes/;F:\eclipse\workspace\Tomcatproject\work;/F:/eclipse/workspace/Tomcatproject/WEB-INF/classes/;F:/Program Files/Apache Software Foundation/Tomcat 5.0/shared/classes/;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/classes/;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/endorsed/xercesImpl.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/endorsed/xml-apis.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/ant-launcher.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/ant.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/commons-collections-3.1.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/commons-dbcp-1.2.1.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/commons-el.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/commons-pool-1.2.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/jasper-compiler.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/jasper-runtime.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/jsp-api.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/mysql-connector-java-3.0.15-ga-bin.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/mysql-connector-java-3.0.16-ga-bin.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/mysql-connector-java-3.1.6-bin.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/naming-common.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/naming-factory.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/naming-java.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/naming-resources.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/servlet-api.jar;F:/Program Files/Apache Software Foundation/Tomcat 5.0/common/lib/tools.jar;/F:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.0/bin/bootstrap.jar;/F:/j2sdk1.4.1_01/jre/lib/ext/dnsns.jar;/F:/j2sdk1.4.1_01/jre/lib/ext/ldapsec.jar;/F:/j2sdk1.4.1_01/jre/lib/ext/localedata.jar;/F:/j2sdk1.4.1_01/jre/lib/ext/sunjce_provider.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar
cp=F:\eclipse\workspace\Tomcatproject\WEB-INF\classes
cp=F:\eclipse\workspace\Tomcatproject\work
cp=F:\eclipse\workspace\Tomcatproject\WEB-INF\classes
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\shared\classes
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\classes
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed\xercesImpl.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed\xml-apis.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\ant-launcher.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\ant.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\commons-collections-3.1.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\commons-dbcp-1.2.1.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\commons-el.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\commons-pool-1.2.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jasper-compiler.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jasper-runtime.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\jsp-api.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\mysql-connector-java-3.0.15-ga-bin.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\mysql-connector-java-3.0.16-ga-bin.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\mysql-connector-java-3.1.6-bin.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\naming-common.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\naming-factory.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\naming-java.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\naming-resources.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar
cp=F:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\tools.jar
cp=F:\Program%20Files\Apache%20Software%20Foundation\Tomcat%205.0\bin\bootstrap.jar
cp=F:\j2sdk1.4.1_01\jre\lib\ext\dnsns.jar
cp=F:\j2sdk1.4.1_01\jre\lib\ext\ldapsec.jar
cp=F:\j2sdk1.4.1_01\jre\lib\ext\localedata.jar
cp=F:\j2sdk1.4.1_01\jre\lib\ext\sunjce_provider.jar
work dir=F:\eclipse\workspace\Tomcatproject\work
extension dir=F:\j2sdk1.4.1_01\jre\lib\ext
srcDir=F:\eclipse\workspace\Tomcatproject\work
include=org/apache/jsp/index_jsp.java

Jun 22, 2005 6:24:47 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file: /F:/eclipse/workspace/Tomcatproject/work//org/apache/jsp\index_jsp.java [javac] Compiling 1 source file

F:\eclipse\workspace\Tomcatproject\work\org\apache\jsp\index_jsp.java:9: cannot access java.lang.Object
bad class file: F:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
implements org.apache.jasper.runtime.JspSourceDependent {
^
1 error
+==========================================================================


i thought this is because of different jvms....so later i changed it to f:\j2sdk1.4.1_01\jre and i compiled and ran it from browser....again i got the same error. However, when i exported this to tomcat's webapp directory and ran it out from IDE .... this worked!!

i am confused..!!

i want my application to be tested right from my workspace....and it's not happening.

any ideas???

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


i think this is appropriate place to discuss eclipse related problems.


Not really: we've got an IDEs forum for that. I'll move this there for you.

Clearly your problem has to do with multiple Java versions; in your original stack trace, you've got JDK 1.4 JARs, but you say you were using JDK 1.3, so there's the problem right there. You'll need to clear out any old .class files.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic