facebook

Exploded view maven tomcat classes missing

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #344675 Reply

    Patrice
    Participant

    Hello,

    I’m using MyEclipse 2013 (official license) and have the following problem:
    I try to publish a webapp to a Tomcat 7 instance.
    This webapp has a Maven dependency, which is a project in the same workspace.
    So this project shows up as a Dependency project.
    In the servers tab I see my webapp, Status OK, Mode Exploded, Location c:\{myapache}\webapps\myapp
    and beneath that my dependend project, Status OK, Mode Exploded and location \ WEB-INF\classes.
    You would expect all is ok, but in the actual folder under c:\{myapache}\webapps\myapp\WEB-INF\classes there is NOTHING.
    So the app crashes with NoClassDefFoundError.
    Any idea would could be done to fix this?

    Cheers
    Patrice Oostermeyer

    #344757 Reply

    support-swapna
    Moderator

    Patrice,

    Sorry that you are seeing this issue.

    Can you please run “Update Maven project configuration” on both of the projects and then deploy to see if the issue persists?
    If you are still seeing issues, can you please send us screenshots of both projects DeploymentAssembly and the pom.xmls to help us investigate further?

    #344828 Reply

    Patrice
    Participant

    Ok the ‘update Maven’ trick I allready tried, no result.
    Here are the screenshot and poms.

    I noticed that the emissing classes are inserted in the wrong place, namely the root of the webapp, and not in webapp/WEB-INF/classes.

    Cheers Patrice

    Attachments:
    You must be logged in to view attached files.
    #344829 Reply

    Patrice
    Participant

    And the pom’s

    Attachments:
    You must be logged in to view attached files.
    #344838 Reply

    support-swapna
    Moderator

    Patrice,

    Thank you for the files.

    Can you please disable Merged Deployment on the Deployment Assembly page and see if it fixes the issue?

    Let us know how it works for you.

    #344858 Reply

    Patrice
    Participant

    And that was the anser to the 64.000 dollar question.
    Disabling the merge option dit the trick!
    Apparently there is a bug in the Merge Utility.

    Thanks you very much for you support,
    cheers Patrice

    #344883 Reply

    support-swapna
    Moderator

    Patrice,

    Glad that it works.
    we could not replicate the issue at our end.
    Can you please send us all the .* files (.class,.settings etc) of the project to help us replicate the issue and fix it?

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Exploded view maven tomcat classes missing

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