facebook

No compiled classes in deployed WAR to appserver

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #290769 Reply

    Brad O’Hearne
    Participant

    I am using Maven on 7.0 M2 and deploying to Tomcat from within MyEclipse. Every time I deploy and run Tomcat, I receive errors because my WEB-INF/classes directory is empty. My project compiles cleanly.

    This must be some problem with the built-in compiler / maven, because there are no compiled classes at the default output folder location, but there are classes at target/classes.

    How do I fix this problem, so that I can build with Maven and deploy using the MyEclipse deploy functionality?

    Thanks,

    B

    #290770 Reply

    Brad O’Hearne
    Participant

    Actually, I’ve tried changing the default output folder around to a few different places, and here’s what I’ve found: compiled classes are not being placed at the location specified in the default output folder setting, they are being placed in: target/classes, and the internal MyEclipse deployment feature seems to not include those classes in the WAR / exploded WAR it builds. How do I get these to be included?

    B

    #290773 Reply

    Brad O’Hearne
    Participant

    After much tinkering, I discovered that I had to *remove* and re-add Web project capabilities in order for the problem to be rectified.

    #290819 Reply

    allenparslow
    Member

    What happens when you do mvn install (does it produce a war in /target/ without error)?

    [In your pom.xml, do you have <packaging>war</packaging> and src/main/webapp/WEB-INF/web.xml (or override of WEB-INF location in pom.xml/parent pom)]

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: No compiled classes in deployed WAR to appserver

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