Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] EAR, RAD, m2e

Hello Sander,

As Ilko pointed out, there is documentation about Maven in the Infocenter page for RAD 8.5.1. But if that information is not enough, or you have more questions, I suggest to contact RAD support: http://www-01.ibm.com/software/rational/support/contact.html?rcss=rtlrad or post questions in Developer Works  https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000430


Thanks

Roberto Sanchez Herrera





From: Sander Verhagen <verhagen@xxxxxxxxxx>
To: m2e-users@xxxxxxxxxxx
Date: 22-07-13 04:30
Subject: Re: [m2e-users] EAR, RAD, m2e
Sent by: m2e-users-bounces@xxxxxxxxxxx





Hi,


Thanks for your response, Ilko.

I'm on 8.5.1 and I hadn't checked the infocenter page. You may have been
particularly referencing "Recommended POM entries for projects targeting
WebSphere® Application Server". I added some of that to my project but
am getting similar results as before. (It seemingly being slightly
inconsistent with its errors and other bombs makes it harder to focus
and thus pinpoint the issue.) That page doesn't say a whole lot about
EARs to begin with. Do you have a working example of your EAR (dependent
on EJB) project?

What are recommended choices for generateApplicationXml and
includeLibInApplicationXml?

As for the maven-subclipse-connector, no Subversion here :-(

Best regards, Sander.



Sander Verhagen
[ Verhagen@xxxxxxxxxx ]

On 20-7-2013 1:23, Ilko Iliev wrote:
> Hi Sander,
>
> could you please provide the versions of the product you are using.
> Apparently, if you are on 8.5.1 RAD have you checked the infocenter
> about the maven integration -
>
http://pic.dhe.ibm.com/infocenter/radhelp/v8r5/topic/com.ibm.etools.maven.doc/topics/maven_intro.html
> - this is a new feature as from v8.5.1 in RAD. We are still on 8.5.0 and
> are using the m2e + m2e-wtp plugins manually installed. The most
> important part to make the deployment to WAS WTE work is either to
> follow the recommendations for maven project configuration as described
> in the link above OR to use the maven native name conventions for the
> artifacts, however in this case only "Publish to server with resources
> on server" does work (otherwise you get NoClassDefFoundErrors or similar
> at publish time). And after version changes we have to make "Clean" on
> the server to get everything updated - we've opened PMR for this with
> IBM but we haven't got resolution yet.
> As for import maven project - we've tried it only from SVN with the
> provided maven-subclipse-connector. Here we have the issue that if you
> try this from the Package Explorer you get some weird error, but if you
> try this directly in the SVN explorer view everything works, which is ok
> for us at the moment.
>
> Hope this helps a bit,
> Ilko
>
>
> On Sat, Jul 20, 2013 at 1:44 AM, Sander Verhagen <verhagen@xxxxxxxxxx
> <
mailto:verhagen@xxxxxxxxxx>> wrote:
>
>     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 ]
>     _________________________________________________
>     m2e-users mailing list
>     m2e-users@xxxxxxxxxxx <
mailto:m2e-users@xxxxxxxxxxx>
>    
https://dev.eclipse.org/__mailman/listinfo/m2e-users
>     <
https://dev.eclipse.org/mailman/listinfo/m2e-users>
>
>
>
>
>
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/m2e-users
>
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




Back to the top