- This topic has 5 replies, 3 voices, and was last updated 21 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
Tim BerglundMemberI installed MyEclipse today and converted an existing project to a WebProject. Under the project root, I created a WebRoot directory which contains the normal WEB-INF and META-INF directories. Under WEB-INF is web.xml and the normal directories classes and lib (and tld, just to follow conventions that I’ve picked up on in these forums). WEB-INF also contains a directory called jsp-secure, which holds my JSPs. (This may be unconventional, but there’s a good reason for it.)
All of my JSPs now report having a single compilation error. Here’s an example copied from the Eclipse Tasks tab (spaces inserted for polite post formatting):
Kind Status Priority Description Resource In Folder Location
Error
Ljava/lang/String;Ljava/lang/String;Ljava/lang/String; Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo; Ljavax/servlet/jsp/tagext/TagExtraInfo; [Ljavax/servlet/jsp/tagext/TagAttributeInfo; Ljava/lang/String;Ljava/lang/String;Ljava/lang/String; [Ljavax/servlet/jsp/tagext/TagVariableInfo;)V Build.jsp IntelliQuote/WebRoot/WEB-INF/jsp-secure line 0Let me know if you need any more information for me. Thanks for your help.
Regards,
Tim– System Setup ——————————-
Operating System and version: Windows XP Professional SP1
Eclipse version: 2.1.3
Eclipse build id: 200403101828
Fresh Eclipse install (y/n): n
If not, was it upgraded to its current version using the update manager? y
Other installed external plugins: none
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 1
MyEclipse version: 2.7.1 (build 200403241200-2.7.1-GA)
Eclipse JDK version: 1.4.2_04-b05
Application Server JDK version: 1.4.2_04-b05
Are there any exceptions in the Eclipse log file? no– Message Body ——————————-
April 19, 2004 at 7:49 pm #206180
Scott AndersonParticipantWhat version are you specifying for the web app DTD in web.xml? Is it 2.4? If so, this is likely the issue as 2.4 is not yet supported. You should either be using 2.3 or 2.2 for MyEclipse.
April 19, 2004 at 9:25 pm #206183
Tim BerglundMemberScott:
I am using the 2.3 DTD (http://java.sun.com/dtd/web-app_2_3.dtd). Let me know if it would help for me to post any files like web.xml…I didn’t want to flood the request with a bunch of that stuff without it being needed.
Tim
April 19, 2004 at 11:33 pm #206184
Riyad KallaMemberTim,
Were you developing this project against Tomcat, and now you have the J2EE 1.3 Library Set in your build path instead of the servlet-api.jar and jsp-api.jar files from Tomcat?Whenever I see what look like compilation errors my “Wrong JAR version” radar goes up…
April 20, 2004 at 10:24 am #206212
Tim BerglundMemberRiyad:
Bingo! That did it. A few JSP compilation errors remain, but if I end up needing help with them, they’ll be separate issues. This one sounds closed to me. Thank you very much for your help.
Tim
April 20, 2004 at 11:06 am #206215
Riyad KallaMemberBingo! That did it.
Glad to hear it! I know that has caught me on quite a few occasions.
-
AuthorPosts