facebook

Tomcat eclipse plugin error

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #226377 Reply

    stoutoleman
    Member

    Hello –

    I am trying to debug a webapp of mine using eclipse 3.0 and the sysdeo
    plugin. Starting and stopping both work fine, but when i try to go to
    the root page of the webapp i get the below error. I have eclipse
    setup to use the jdk jvm.

    When I start tomcat via the command line, my webapp works fine and I can connect via remote dbg, but I cannot set break pts.

    Any help you could offer would be greatly appreciated.

    Scott

    // LOG FILE ————————————————————————————————————-

    ——– Launch Tomcat JVM Start ——–
    -> Label : Tomcat 5.x
    -> ClassToLaunch : org.apache.catalina.startup.Bootstrap
    -> Classpath : | project\classes | |
    project\webroot\WEB-INF\compile-lib\javax.servlet.jar | |
    project\webroot\WEB-INF\deploy-lib\commons-beanutils.jar | |
    project\webroot\WEB-INF\deploy-lib\struts.jar | |
    project\webroot\WEB-INF\deploy-lib\jai_core.jar | |
    project\webroot\WEB-INF\deploy-lib\jai_codec.jar | | C:\Program
    Files\eclipse\plugins\org.junit_3.8.1\junit.jar | |
    project\webroot\WEB-INF\deploy-lib\mail.jar | | C:\Program
    Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar | |
    C:\Program Files\Java\jdk1.5.0_01\lib\tools.jar |
    -> BootClasspath :
    -> Vmargs : -Dcatalina.home=”C:\Program Files\Apache Software
    Foundation\Tomcat 5.0″ -Djava.endorsed.dirs=”C:\Program Files\Apache
    Software Foundation\Tomcat 5.0\common\endorsed”
    -Dcatalina.base=”C:\Program Files\Apache Software Foundation\Tomcat
    5.0″ -Djava.io.tmpdir=”C:\Program Files\Apache Software
    Foundation\Tomcat 5.0\temp”
    -> PrgArgs : -config “C:\Program Files\Apache Software
    Foundation\Tomcat 5.0\conf\server.xml” start
    -> Debug : true
    ——– Launch Tomcat JVM End——–

    // BEGIN ERROR —————————————————————————————————–

    HTTP Status 500 –

    type Exception report

    message

    description The server encountered an internal error () that prevented
    it from fulfilling this request.

    exception

    javax.servlet.ServletException:
    javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:565)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    root cause

    java.lang.NoSuchMethodError:
    javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
    org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:899)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:135)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    note The full stack trace of the root cause is available in the Apache
    Tomcat/5.0.28 logs.
    Apache Tomcat/5.0.28

    #226391 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this is not ME related.

    java.lang.NoSuchMethodError:
    javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
    org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:899)
    org.apache.jsp.index_jsp._jspService(index_jsp.java:135)

    It looks like you are deploying against a different version of jsp-api.jar than what you are developing against. I would highly suggest that you never include your server libs (servlet-api.jar, jsp-api.jar, etc.) in your project but instead link out externally to the JAR or create a User Library for it.

    #226399 Reply

    stoutoleman
    Member

    Hrm, I searched my system and the only jsp-api.jar available on my system was the one located in Tomcat\common\lib

    Is there some other way I could be developing against or deploying against that jar?

    #226402 Reply

    Riyad Kalla
    Member

    I noticed in your project output you have servlet-api.jar in your project (compile-lib), my comments apply to that as well, try and remove it and link externally to the JAR.

    This is hard for me to trouble shoot as I don’t use Sysdeo.

    #226443 Reply

    stoutoleman
    Member

    Maybe I can ask a different question. When I start tomcat via the command line (tomcat jpda start), my webapp works fine. If I try to debug it in eclipse, I am able to connect to the process, but I cannot set break points (it complains about not having enough info to set the break point). I could swear that the following was the right setting needed to put debug info into the java files:

    <javac debug=”on” destdir=”webroot/WEB-INF/classes” srcdir=”src” source=”1.4″>

    blah, blah, blah

    </javac>

    Am I missing something? I am using the JDK 1.5.01

    #226445 Reply

    Riyad Kalla
    Member

    That looks fine to me… can you not build the webapp with MyEclipse and deploy it? Try it that way and see if it works.

    #226457 Reply

    stoutoleman
    Member

    Riyad,

    Thanks so much for the help, your input caused me to double check my build.xml. The problem was that my debug build depended upon my release build (doh!) and thus the war really, truely had no debug info. I can now set break points, etc.

    Thanks again for your help,

    Scott

    #226458 Reply

    Riyad Kalla
    Member

    I like happy endings 😉

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Tomcat eclipse plugin error

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