- This topic has 6 replies, 2 voices, and was last updated 10 years, 11 months ago by support-swapna.
-
AuthorPosts
-
PatriceParticipantHello,
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
support-swapnaModeratorPatrice,
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?
PatriceParticipantOk 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.
support-swapnaModeratorPatrice,
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.
PatriceParticipantAnd 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
support-swapnaModeratorPatrice,
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? -
AuthorPosts