facebook

[Closed] WAR Deployment Problem

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #241741 Reply

    derwood46
    Member

    I have a web project in Eclipse 3.1.1 and myEclipse 4.0.3. My folder structure is as suggested:

    project root
    /webroot
    + /css
    + /templates
    + /WEB-INF
    ++ /classes
    ++ /props
    + /META-INF

    I use the Depoy MyEclipse J2EE to Server to build/package into a war and deploy the project to Tomcat 4.1. The problem is that the resulting war does not contain the /css or /template folders (other folders do get deployed). I have experimented and placed a test file, index.html under /webroot–this too is not packaged into the war.

    What do I need to do to get the IDE to see and include my files–I’ve looked everywhere for such a setting, but don’t see any.

    #241785 Reply

    Riyad Kalla
    Member

    What kind of project is this that you are working with? If you open up your Project Properties and go to MyEclipse-Web, what values do you have set there?

    The problem is that the resulting war does not contain the /css or /template folders (other folders do get deployed). I have experimented and placed a test file, index.html under /webroot–this too is not packaged into the war.

    Try refreshing your project by selecting the root of your project, right clicking and selecting “Refresh”.

    What do I need to do to get the IDE to see and include my files–I’ve looked everywhere for such a setting, but don’t see any.

    Are you using the deployment tool from the tool bar to deploy your app? If you try using an exploded deployment instead of packaged, do the files get deployed?

    #241792 Reply

    derwood46
    Member

    You hit it correct–stupid me had not refreshed the project in Eclipse–I discovered this last night after posting. Thanks for the assist.

    #241793 Reply

    Riyad Kalla
    Member

    Glad it is working

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] WAR Deployment Problem

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