- This topic has 24 replies, 7 voices, and was last updated 18 years, 1 month ago by
swapnil1.
-
AuthorPosts
-
gannondaMemberI’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?
Riyad KallaMemberI 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.
gannondaMemberI’ve installed the Quickfix – but the compile error is still happening.
Riyad KallaMemberdid 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?
gannondaMemberI 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.
Riyad KallaMemberWhat is your Eclipse Build ID? (Help > About)
I still cannot reproduce this problem using exactly the same names/code/etc.
gannondaMemberMy Eclipse version & build is:
Version: 3.0.0
Build id: 200406251208I’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.
Riyad KallaMemberDo 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.
avishekthakurMemberHi!
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
LanceMemberHi all, I’m facing the same issues too. Is there a fix for this?
Running 3.8.4, Build 200501171200-3.8.4
Thanks,
Riyad KallaMemberFor 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.
LanceMemberHere 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
Riyad KallaMemberWhere 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.
LanceMember@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.
Riyad KallaMemberI don’t understand your comment in relation to my question…
-
AuthorPosts