facebook

Hello world: Tomcat Not able to compile the JSPs [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208776 Reply

    Hello All,

    I have created and deployed HelloWorld web application as described in the tutorial. I am using Tomcat 4. When I try to open the url, http://localhost:8080/MyWebProject/HelloWorld.jsp, an exception stack trace is thrown and on server side console following message is thrown.

    Error running jikes compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:451)
    at org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:232)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.io.IOException: CreateProcess: jikes -classpath D:\j2sdk1.4.2_03\jre\lib\ext\dnsns.jar;D:\j2sdk1.4.2_03\jre\lib\ext\ldapsec.jar;D:\j2sdk1.4.2_03\jre\lib\ext\localedata.jar;D:\j2sdk1.4.2_03\jre\lib\ext\sunjce_provider.jar;D:\BobcatDev\System\Tomcat\bin\bootstrap.jar;D:\j2sdk1.4.2_03\lib\tools.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\classes;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-beanutils.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-collections.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-digester.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-fileupload.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-lang.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-logging.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-validator.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\jakarta-oro.jar;D:\BobcatDev\System\Tomcat\webapps?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:646)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:416)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:427)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:448)
    … 39 more
    — Nested Exception —
    java.io.IOException: CreateProcess: jikes -classpath D:\j2sdk1.4.2_03\jre\lib\ext\dnsns.jar;D:\j2sdk1.4.2_03\jre\lib\ext\ldapsec.jar;D:\j2sdk1.4.2_03\jre\lib\ext\localedata.jar;D:\j2sdk1.4.2_03\jre\lib\ext\sunjce_provider.jar;D:\BobcatDev\System\Tomcat\bin\bootstrap.jar;D:\j2sdk1.4.2_03\lib\tools.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\classes;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-beanutils.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-collections.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-digester.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-fileupload.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-lang.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-logging.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\commons-validator.jar;D:\BobcatDev\System\Tomcat\webapps\MyWebProject\WEB-INF\lib\jakarta-oro.jar;D:\BobcatDev\System\Tomcat\webapps?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:66)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:646)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:416)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:427)
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:448)
    at org.apache.tools.ant.taskdefs.compilers.Jikes.execute(Jikes.java:232)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:534)

    Can anybody please tell me, what is wrong with the settings? I have been browsing this myeclipseide site for the answer but could NOT get any.

    Thanks in advance for reading this message and giving me some hint/answer to my problem.

    Rajesh
    (IITM Alumnus)

    #208777 Reply

    Riyad Kalla
    Member

    Jikes is not able to run because its classpath is too long (note how its truncated at the end). Is it necessary to use Jikes? I believe Tomcat by default uses the Sun compiler from tools.jar doesn’t it? Have you configured Tomcat in a special way for it to use Jikes?

    #208782 Reply

    Dear Riyad,
    Thanks a lot for your quick reply.

    In the JDK settings, I only referred to the SUN’s JDK 1.4.2_03. Other than that I did not do any JVM settings.

    Any solution to overcome the above mentioned problem?

    Again, Thanks in advance.

    Rajesh
    (IITM Alumnus)

    #208784 Reply

    Riyad Kalla
    Member

    Rajesh,
    Look at the bottom of this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html, did you or anyone else that might have setup your computer go through these steps to set Jikes as the default compiler for Tomcat 4?

    #208790 Reply

    Dear Riyad,

    Great! Thanks a lot for quickly spotting the problem area and providing solution too! In fact, while setting up the JBoss our application setup engineer had set up the Jikes as compiler for Tomcat.

    Thanks again!

    Rajesh
    (IITM Alumnus)

    #208793 Reply

    Riyad Kalla
    Member

    No problem, I’m glad it helped.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Hello world: Tomcat Not able to compile the JSPs [Closed]

You must be logged in to post in the forum log in