facebook

Change project deployment basedir

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

    wufpack00
    Member

    Hello,

    I’m new to MyEclipse and am trying to import existing projects into the IDE. I believe that the existing project layout is not the typical format that MyEclipse is expecting.

    After a project is deployed using the MyEclipse functionality, the basedir of the war file created is not what my application is expecting. Meaning, when I browse to http://localhost:8080/projectname, I am seeing a directory listing rather than my index.jsp page. (Note: index.jsp is located in the “www” directory)

    For example, my build.xml file has this under my “deploy” target:

    
    <war
            basedir="www"
            warfile="${build.dir}/${project.distname}.war"
            webxml="${webinf.dir}/web.xml">
            <exclude name="WEB-INF/${build.dir}/**"/>
            <exclude name="WEB-INF/src/**"/>
            <exclude name="WEB-INF/web.xml"/>
    </war>
    

    Is there a way to make the automated deployment recognize that the base directory should be “www”?

    If not, am I correct to assume that debugging of JSP’s will not be available unless the automated deployment process is run?

    #214294 Reply

    Riyad Kalla
    Member

    If you right click on your project root and navigate to MyEclipse-web, you can set your Webroot dir to “www” and see if that fixes the problem. ME basically wants to know where the root of your webapp is.

    #214336 Reply

    wufpack00
    Member

    Ok…I see the field you are talking about…but the box is grayed out. The “Web Context-root” field is editable however.

    Am I missing another setting?

    Thanks for the help!

    #214345 Reply

    Riyad Kalla
    Member

    Ahh, yea sorry its read-only in the gui. Just switch to the navigator view, and open your .mymetadata file and edit it there and then save the file, close/reopen the project and rebuild it for good measure.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Change project deployment basedir

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