Yes, it's been true for all the application servers I've tested so far, Tomcat, JBoss, Glassfish.
However, Tomcat, for instance, would use the last deployment folder first when doing "Serve without publishing", effectively serving unfiltered resources. Also,I know the IBM guys use the ability to generate application.xml directly to the source folders (see Preferences > Maven > Java EE integration), because I believe their server adapter doesn't properly support deployment from multiple sources, or something like that. But you can't do that since, apparently, you already have an application.xml in your source. AFAICT, your only option is to manually change the order of entries in org.eclipse.wst.common.component, but that won't survive the next project import/ update configuration. I strongly suggest you contact Oracle on that issue, they may be able to give you more info on why their server adapter is behaving differently than others and provide a proper fix. Also, m2e-wtp-dev list is used for discussing actual m2e-wtp development. Please use the m2e-users list ( https://dev.eclipse.org/mailman/listinfo/m2e-users) for future questions on m2e-wtp usage. Fred On Tue, Mar 11, 2014 at 12:02 PM, Fréderic Bergmans < [email protected]> wrote: > Hello, > > I am having some problems with the generated deployment assembly for my > ear project. > The org.eclipse.wst.common.component file contains the following entries: > > <wb-resource deploy-path="/" source-path="/target/m2e-wtp/ear-resources"/> > <wb-resource deploy-path="/" source-path="/src/main/application" > tag="defaultRootSource"/> > > Both contain the META-INF/weblogic-application.xml file. > > When deploying the application on my local weblogic server, the > weblogic-application.xml from the src/main/application/META-INF directory > is used instead of the filtered one in the > target/m2e-wtp/ear-resources/META-INF folder. > This causes an exception. > > According to the page http://wiki.eclipse.org/M2E-WTP_FAQ , the first one > should be used when there is a collision between two files with the same > name. Is this correct? > > Kind regards, > Frederic > > _______________________________________________ > m2e-wtp-dev mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/m2e-wtp-dev > > -- "Have you tried turning it off and on again" - The IT Crowd
_______________________________________________ m2e-wtp-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-wtp-dev
