Hi All,
I am posting this entry pretty late as compared to the earlier posts. I had the same issue few days ago (with Andromda 3.3). When I turned off the EJBs from Spring Cartridge, I got the ejb-jar.xml error in build. So I gave it a dummy ejb-jar.xml, the problem moved to deployment. So I took off the EJB nature for core JAR and bundled it as JAR Module, that gave NoClassDefFoundError for the JARs packaged at EAR level.
To take care of this last problem (and avoiding repackaging the JARs at WAR level), I added a tag <defaultLibBundleDir> in the app/pom.xml, under maven-ear-plugin.
In the app/pom.xml the maven-ear-plugin configuration looks like follows.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.3</version>
<configuration>
<includes>**/*.xml</includes>
<excludes>**/jboss-app.xml</excludes>
<version>1.4</version>
<defaultLibBundleDir>/lib</defaultLibBundleDir>
<modules>
<jarModule>
<groupId>${pom.groupId}</groupId>
<artifactId>MyProject-common</artifactId>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
<jarModule>
<groupId>${pom.groupId}</groupId>
<artifactId>MyProject-core</artifactId>
<includeInApplicationXml>true</includeInApplicationXml>
</jarModule>
<webModule>
<groupId>${pom.groupId}</groupId>
<artifactId>MyProject-web</artifactId>
<contextRoot>${application.id}</contextRoot>
</webModule>
</modules>
</configuration>
</plugin>
What this does is, it add a directory lib under the EAR. This enables WAR classloader to inherit class definitions from EAR classloader. The documentation from Maven site for this tag is here;
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html#defaultLibBundleDirPlease let me know if this fix helped you.
Cheers!
Vikram
_________________________________________________________
Reply to the post :
http://galaxy.andromda.org/forum/viewtopic.php?p=26204#26204Posting to
http://forum.andromda.org/ is preferred over posting to the mailing list!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/