facebook

can’t open jsp files in WEB-INF folder [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #214465 Reply

    mikeyearling
    Member

    After upgrading to 3.8.1 and reading every thread to make sure I have the very latest version, I still can’t open any jsp’s in the WEB-INF folder without getting the ‘can’t open part’ message (these files also share another thing in common: they all have a ‘<%@ include file=”IncludeTop.jsp” %>’ directive at the top of their files).

    I’ve done everything – started with the ‘-clean’ arg, threw away the ‘.log’ file, threw away the configuration folder – and still nothing works. My version number reads: “3.8.1+QF20040825”. I also added my webroot folder to the java build path – still no go.

    If I try to comment out the include directive using a text editor, I get An ‘internal error occurred during: “Update JSP Index”‘ immediately upon saving.

    I’m only using MyEclipse for its jsp editor at the moment. I haven’t set up the web application through MyEclipse so I’m using my own folder structure, as follows:

    src/
    war/WEB-INF/jsp/

    My error.jsp file at the top level of the ‘war’ folder opens fine, but nothing in WEB-INF does. It worked before I upgraded.

    Thanks-

    System Setup ——————————-
    Operating System and version: Mac OS 10.3.3
    Eclipse version: 3.0.0
    Eclipse build id: 200406251208
    Fresh Eclipse install (y/n): n
    If not, was it upgraded to its current version using the update manager? n
    Other installed external plugins: spring, hibernate sychronizer
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 8
    MyEclipse version: 3.8.1
    Eclipse JDK version: JVM 1.4.2 (MacOS X Default)
    Application Server JDK version: same
    Are there any exceptions in the Eclipse log file?

    –An internal error occurred during: “Update JSP Index”.

    –Unable to restore editor – no editor descriptor for id: com.genuitec.eclipse.webdesigner.jspeditor

    – Message Body ——————————-

    #214506 Reply

    Riyad Kalla
    Member

    This is a known problem when using ME with non-web projects. Make sure the /war directory is in your source path if you cannot convert the project to a web project. Or the best workaround is to add web project capabilities and set “war” as your webroot folder. This won’t change anything about your project (except add a web.xml file if you don’t already have one), it just sets up the project structure for ME to “understand” it better.

    #214531 Reply

    mikeyearling
    Member

    Thanks, Riyad. It’s fixed. I added web project capabilities and set ‘war’ as the webroot. That was easy!

    #214536 Reply

    Riyad Kalla
    Member

    Glad to hear it worked!

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: can’t open jsp files in WEB-INF folder [Closed]

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