facebook

JSP Compile error "method URLEncode"

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

    gannonda
    Member

    I’ve just set up MyEclipse and imported an existing JSP application into it. Everything is compiling okay except a couple of JSPs which have this JSP tag

    <jsp:include page=”some_file.jsp”></jsp:include>

    The compile error is “cannot resolve symbol: symbol : method URLEncode (java.lang.String,java.lang.String)”.

    As this URLEncoder method is new to Java 1.4 I’m wondering if the JSP validator is still using Java 1.3, and is there somewhere I can change that? The default J2EE library set is already set to 1.4 in my setup.

    Any ideas?

    #213798 Reply

    Riyad Kalla
    Member

    I can’t reproduce this locally, can you make sure you have Quickfix 3 installed? (its cummalative, no need to install 1 or 2): http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html, be sure to follow the instructions given.

    #213800 Reply

    gannonda
    Member

    I’ve installed the Quickfix – but the compile error is still happening.

    #213802 Reply

    Riyad Kalla
    Member

    did you follow the directions with using the -clean option?

    Have you tried closing the project, restarting Eclipse and opening the project then rebuilding it? What version ID do you have displayed fro MyEclipse on the Window > Preferences > MYEclipse page?

    #213806 Reply

    gannonda
    Member

    I restarted Eclipse and rebuilt the project – the version of MyEclipse is 3.8.1+QF20040825 (Build ID: 200408201200-3.8.1+QF20040825) – but the compile error is still there.

    #213817 Reply

    Riyad Kalla
    Member

    What is your Eclipse Build ID? (Help > About)

    I still cannot reproduce this problem using exactly the same names/code/etc.

    #214029 Reply

    gannonda
    Member

    My Eclipse version & build is:
    Version: 3.0.0
    Build id: 200406251208

    I’ve also found another similar error when I include this tag on a page:

    <%@ page isErrorPage=”true” %>

    This gives the compilation error:
    cannot resolve symbol: symbol : method getThrowable (javax.servlet.http.HttpServletRequest)

    The pages compile at runtime correctly with Tomcat.

    #214062 Reply

    Riyad Kalla
    Member

    Do you by chance have the J2EE 1.3 Library Set attached in your project builkd path? You might consider removing it and adding the External JARs servlet-api.jar and jsp-api.jar from your <tomcat>\common\lib directory.

    #225955 Reply

    Hi!

    Well, I am facing the same issue and was wondering if there was a fix for this? I am using eclipse 3.0.1 and myEclipse 3.8.4. Using servlet-api.jar and jsp-api.jar from Tomcat 5.0.28 did not help.

    Thanks

    #226630 Reply

    Lance
    Member

    Hi all, I’m facing the same issues too. Is there a fix for this?

    Running 3.8.4, Build 200501171200-3.8.4

    Thanks,

    #226632 Reply

    Riyad Kalla
    Member

    For the people having this problem, please list EVERYthing on your libraries tab under your Java Build Path settings so I can see if this is a classpath issue.

    #226716 Reply

    Lance
    Member

    Here we go,

    activation.jar
    ant-1.5.3.jar
    ant-optional-1.5.3.jar
    c3p0-0.8.4.5.jar
    cglib-full-2.0.1.jar
    common.jar
    commons-beanutils.jar
    commons-collections-2.1.jar
    commons-collections.jar
    commons-dbcp-1.1.jar
    commons-digester.jar
    commons-lang-1.0.1.jar
    commons-logging-1.0.3.jar
    commons-logging.jar
    commons-pool-1.1.jar
    concurrent-1.3.2.jar
    connector.jar
    ct_admin_api.jar
    ct_runtime_api.jar
    dom.jar
    dom4j-1.4.jar
    ehcache-0.7.jar
    hibernate2.jar
    jaas.jar
    jaxen-full.jar
    jaxp-api.jar
    jboss-cache.jar
    boss-common.jar
    jboss-jmx.jar
    jboss-system.jar
    jcs-1.0-dev.jar
    jdbc2_0-stdext.jar
    jgroups-2.2.1.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    jstl_el.jar
    jta.jar
    junit-3.8.1.jar
    log4j-1.2.8.jar
    mail.jar
    msbase.jar
    mssqlserver.jar
    msutil.jar
    myfaces-components.jar
    myfaces-jsf-api.jar
    myfaces.jar
    odmg-3.0.jar
    oscache-2.0.jar
    proxool-0.8.3.jar
    sax.jar
    saxpath.jar
    standard.jar
    swarmcache-1.0rc2.jar
    xalan-2.4.0.jar
    xalan.jar
    xerces-2.4.0.jar
    xercesImpl.jar
    xml-apis.jar

    #226718 Reply

    Riyad Kalla
    Member

    Where are your servlet API and jsp API jars? If you are using our 1.4 Library set they should be party fo the library and named: javax.servlet.jar and javax.servlet.jsp.jar, if you are using Tomcat, they are servlet-api.jar and jsp-api.jar in the common/lib directory.

    #227063 Reply

    Lance
    Member

    @support-rkalla wrote:

    Where are your servlet API and jsp API jars? If you are using our 1.4 Library set they should be party fo the library and named: javax.servlet.jar and javax.servlet.jsp.jar, if you are using Tomcat, they are servlet-api.jar and jsp-api.jar in the common/lib directory.

    Plus the J2EE 1.4 Library Container & JRE System Library.

    #227064 Reply

    Riyad Kalla
    Member

    I don’t understand your comment in relation to my question…

Viewing 15 posts - 1 through 15 (of 25 total)
Reply To: JSP Compile error "method URLEncode"

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