application.xml is not generated correctly while saying "Run On Server" using Weblogic (beadep)

I always encounter the following situation while "Run On Server" on my mavenized EAR project.


If I take the following steps on my EAR project:

  • mvn clean install
  • Run on Server

... will lead to:

The application.xml generated by Maven will be correct:

<application xmlns="" xmlns:xsi="" xsi:schemaLocation="" version="5">

While the EJB project "" is a maven dependency of the EAR project:

(in "" pom.xml)


... but the application.xml generated by Run on Server is incorrect:

The Oracle WebLogic Server Plugin will generate a application.xml to:


.... having the wrong EJB jar name:

<application xmlns="" xmlns:xsi="" xsi:schemaLocation="" version="5">

So in this process some integration is not aware of the fact that Maven generates a different ejb.jar name and this is not used for "Run on Server".


I found a workaround to get it somehow running. If you say "Maven - Update Project Configuration ..." before "Run on Server" it works once. But will be corrupt again after the next build.

Used Plugins
  • Oracle WebLogic Server Tools for Eclipse
  • m2e - Maven Integration for Eclipse

Do you have any idea how to correct this situation without using my workaround?


I use the weblogic-maven-plugin to deploy my ear to weblogic. Below is a sample configuration from the pom. this should be on your ear project pom. Make sure the dependencies are added right, the dependencies are not available from maven repository. I had to manually install them and as well the wlfullclient.jar had to be built using the weblogic jarbuilder Once you have the configuration set right create a maven build run configuration with goal weblogic:deploy. This should get the artifact deployed to your weblogic server.


This message:

Caused By: 
C:\<ECLIPSE WORKSPACE PATH>\.metadata\.plugins\org.eclipse.core.resources\.projects\<EAR PROJECT NAME>\beadep\<SERVER DOMAIN NAME>\<EAR PROJECT NAME>\<WAR NAME>

is caused by a conflict between META-INF/application.xml and .settings/org.eclipse.wst.common.component. I'm using angle brackets to represent a variable in the path, since those parts will be different for everyone.

<EAR PROJECT NAME> is determined from org.eclipse.wst.common.component:

<wb-module deploy-name="<EAR PROJECT NAME>">

<WAR NAME> is also determined from org.eclipse.wst.common.component:

<dependent-module archiveName="<WAR NAME>"......

The war name in application.xml's web-uri tag should match the archiveName attribute from org.eclipse.wst.common.component:

If they are not the same, Eclipse gets confused and doesn't know where to look for your war file. Note that this only applies when using Eclipse to build your project. You can change either file to fix the problem, however, since Eclipse creates org.eclipse.wst.common.component, it might change without you knowing, so I suggest changing application.xml.

Need Your Help

karma coverage does not show any data

karma-runner karma-jasmine test-coverage

I have included the source files in the files &amp; preprocessors section of my karma conf file. The tests run fine and the junit xml report shows the data. The html coverage just show 100% without...

ShellTile not updating data on windows phone

windows-phone-7 windows-phone

I want to schedule multiple Tile Notifications while my app is running, so that when my app is in background, my schedule Tile notifications appear one by one using respective occurrence time.