facebook

First time evaluation run of HelloWorld [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #218955 Reply

    Brett Zamora
    Member

    Hi…

    I am evaluating the myEclispe 3.82 plug-in using J2SDK1.4.2_05 and Eclipse 3.01, Apache 2 and Tomcat 5.

    On my first deploy of the HelloWorld tutorial, I got the following information, the first time I tried to access http://localhost:8080/HelloWorld/helloWorld.jsp

    (Note… I can manually configure/deploy my JSP/Servlet applications in this environment just fine. Any assistance would be appreciated. Thx)

    Nov 5, 2004 3:14:30 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Nov 5, 2004 3:14:30 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1832 ms
    Nov 5, 2004 3:14:30 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Nov 5, 2004 3:14:30 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
    Nov 5, 2004 3:14:31 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Nov 5, 2004 3:14:31 PM org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    Nov 5, 2004 3:14:31 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
    Nov 5, 2004 3:14:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config=’org.apache.struts.util.LocalStrings’, returnNull=true
    Nov 5, 2004 3:14:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config=’org.apache.struts.action.ActionResources’, returnNull=true
    Nov 5, 2004 3:14:33 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config=’org.apache.webapp.admin.ApplicationResources’, returnNull=true
    Nov 5, 2004 3:14:34 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
    Nov 5, 2004 3:14:35 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
    Nov 5, 2004 3:14:35 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /HelloWorld from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\HelloWorld
    Nov 5, 2004 3:14:35 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-demo from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-demo
    Nov 5, 2004 3:14:36 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /jsp-examples from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
    Nov 5, 2004 3:14:36 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
    Nov 5, 2004 3:14:36 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples
    Nov 5, 2004 3:14:36 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
    Nov 5, 2004 3:14:36 PM org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /webdav from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\webdav
    Nov 5, 2004 3:14:37 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Nov 5, 2004 3:14:37 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Nov 5, 2004 3:14:37 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/50 config=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
    Nov 5, 2004 3:14:37 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 7191 ms
    Nov 5, 2004 3:15:38 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:865)
    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:534)
    Nov 5, 2004 3:15:38 PM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Env: Compile: javaFileName=/C:/Program Files/Apache Software Foundation/Tomcat 5.0/work/Catalina/localhost/HelloWorld//org/apache/jsp\helloWorld_jsp.java
    classpath=/C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/HelloWorld/WEB-INF/classes/;C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\HelloWorld;/C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/HelloWorld/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%20Software%20Foundation/Tomcat%205.0/bin/bootstrap.jar;/C:/j2sdk1.4.2_05/lib/tools.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/dnsns.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/ldapsec.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/localedata.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/mysql-connector-java-3.0.15-ga-bin.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/servlet.jar;/C:/j2sdk1.4.2_05/jre/lib/ext/sunjce_provider.jar
    cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0/bin/bootstrap.jar;C:\j2sdk1.4.2_05/lib/tools.jar
    cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\HelloWorld\WEB-INF\classes
    cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\HelloWorld
    cp=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\HelloWorld\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\bootstrap.jar
    cp=C:\j2sdk1.4.2_05\lib\tools.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\dnsns.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\ldapsec.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\localedata.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\mysql-connector-java-3.0.15-ga-bin.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\servlet.jar
    cp=C:\j2sdk1.4.2_05\jre\lib\ext\sunjce_provider.jar
    work dir=C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\HelloWorld
    extension dir=C:\j2sdk1.4.2_05\jre\lib\ext
    srcDir=C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\HelloWorld
    include=org/apache/jsp/helloWorld_jsp.java

    Nov 5, 2004 3:15:38 PM org.apache.jasper.compiler.Compiler generateClass
    SEVERE: Error compiling file: /C:/Program Files/Apache Software Foundation/Tomcat 5.0/work/Catalina/localhost/HelloWorld//org/apache/jsp\helloWorld_jsp.java [javac] Compiling 1 source file

    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\HelloWorld\org\apache\jsp\helloWorld_jsp.java:83: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
    if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
    ^
    1 error

    #218960 Reply

    Riyad Kalla
    Member

    I would suggest that you try and reinstall Tomcat 5 to a shorter path without spaces, something like C:\Tomcat5, you can try to see if this will work by grabbing the Tomcat zip, unzipping it, changing your connector paths and trying to run it.

    #218965 Reply

    Brett Zamora
    Member

    Hi…

    I found the problem. I had a servlet.jar file in my /j2sdk1.4.2_05/lib folder and in the /j2sdk1.4.2_05/jre/lib/ext folder.

    I noticed the Eclipse environment comes with it’s own javax.* stuff, so I removed the servlet.jar files from the folders listed above, redeployed my application and it works just fine.

    Thanks for taking the time.

    #218977 Reply

    Riyad Kalla
    Member

    Thank you for closing the loop, I’m glad its working.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: First time evaluation run of HelloWorld [Closed]

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