[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [m2e-users] EAR, RAD, m2e | 
Hi all,
I searched through this list's archives, I browsed the web, I played 
with IBM's examples ("RAD_m2e-Nov(update Jun 2012).pdf"), but I'm still 
at a loss. The group's help would be much appreciated!
I have a multi-module Maven project that ultimately builds into EAR 
files, containing EJBs, WARs and utility JARs. I'm focusing on a 
specific EAR and trying to move from command-line to RAD.
I could not find a comprehensive tutorial or anything pertaining to EAR 
files and running WTP server (Servers tab). So that would be a help, or 
your suggestions for my specific issue would be a great help and much 
appreciated!
Following works:
- Command-line: cd ..._EAR; mvn clean install; "Import EAR file" (i.e. 
binary) in RAD; drag the project to my WAS/WTP server (Servers tab)
Following doesn't work:
- "Import Existing Maven Projects" (i.e. source project) in RAD; drag 
the project to my WAS/WTP server (Servers tab)
It finally fails with the following error:
[7/19/13 14:16:50:115 PDT] 00001808 InstallSchedu I   ADMA5014E: The 
installation of application MYCOMPANY_SERVICE_CUSTOMER_EAR failed.
[7/19/13 14:16:50:115 PDT] 00001808 SystemErr     R 
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: 
A file does not exist for module element having uri: 
MYCOMPANY_EXCEPTIONS.jar
However, it appears that this dependency is nicely referenced from the 
org.eclipse.wst.common.component file:
<dependent-module archiveName="MYCOMPANY_EXCEPTIONS.jar" deploy-path="/" 
handle="module:/classpath/var/M2_REPO/com/my-company/java/utility/MYCOMPANY_EXCEPTIONS/0.0.1-XXX/MYCOMPANY_EXCEPTIONS-0.0.1-XXX.jar">
    <dependency-type>uses</dependency-type>
</dependent-module>
There is also a bunch of errors that I that I don't know what to do 
with, as follows: E 
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl openNestedArchive(String) 
An error occurred while opening a nested archive: IWAE0023E Unable to 
open module file "commons-beanutils-core.jar" in EAR file 
"C:/workspace/xxx/.metadata/.plugins/org.eclipse.wst.server.core/tmp0\MYCOMPANY_SERVICE_CUSTOMER_EAR"
There is also a bunch of warnings that I chose to ignore for now, as 
follows: W 
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl 
openNestedArchive - module An error occurred while opening a nested 
archive: IWAE0006E Archive is not a valid Application Client JAR File 
because the deployment descriptor can not be found (case sensitive): 
META-INF/application-client.xml
This is the EAR plugin configuration that I'm using:
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-ear-plugin</artifactId>
  <version>2.8</version>
  <configuration>
    <archive>
      <manifest>
        <addClasspath>true</addClasspath>
      </manifest>
    </archive>
    <skinnyWars>false</skinnyWars>
    <includeLibInApplicationXml>true</includeLibInApplicationXml>
    <displayName>${project.artifactId}</displayName>
    <fileNameMapping>no-version</fileNameMapping>
    <modules>
      <ejbModule>
        <groupId>com.my-company...</groupId>
        <artifactId>MYCOMPANY_SERVICE_CUSTOMER_EJB</artifactId>
        <moduleId>EjbModule_1316615955479</moduleId>
      </ejbModule>
    </modules>
    <security/>
  </configuration>
</plugin>
As said, your help is much appreciated! Best regards, Sander.
--
Sander Verhagen
[ Verhagen@xxxxxxxxxx ]