facebook

JSP Compilation Error Being Displayed Erroneously [Closed]

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

    Tim Berglund
    Member

    I 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 0

    Let 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 ——————————-

    #206180

    Scott Anderson
    Participant

    What 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.

    #206183

    Tim Berglund
    Member

    Scott:

    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

    #206184

    Riyad Kalla
    Member

    Tim,
    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…

    #206212

    Tim Berglund
    Member

    Riyad:

    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

    #206215

    Riyad Kalla
    Member

    Bingo! That did it.

    Glad to hear it! I know that has caught me on quite a few occasions.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: JSP Compilation Error Being Displayed Erroneously [Closed]

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