[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Error with EAR in RAD/m2e

Hi,


I compared a lot, for what that's worth. I was able to make some improvements though (or so I believe). But it is still not entirely working.


I have been able, however, to identify that JAR dependencies (of EJBs of my EAR) that are currently open in the workspace, are not available to the EAR. When I close them, and run the server, they are available to the EAR (from the local repository).

When I drill down in the Administrative Console of WAS, look at the classloader, I can in fact see that all the (closed) repository dependencies are in the classloader -- none of the JAR dependencies that are currently open in the workspace.

Mystery!

Thanks for further ideas already!



Sander Verhagen
[ Verhagen@xxxxxxxxxx ]

On 28-8-2013 1:18, Fred Bricon wrote:
try to compare the deployed EAR with the one generated with maven


On Wed, Aug 28, 2013 at 10:12 AM, Sander Verhagen <verhagen@xxxxxxxxxx <mailto:verhagen@xxxxxxxxxx>> wrote:

    Hi group,


I've been at this before, but still struggling. I'm importing Maven EAR projects in RAD 8.5.1, they're error free (Problems view) and worked before (pre-Maven). I drag them to server in the Servers view, they're started, give the following error:

    [8/28/13 0:57:06:078 PDT] 00000016 AbstractEJBRu E   WSVR0068E:
    Attempt to start EnterpriseBean
    MYCOMPANY_EAR#MYCOMPANY___UDHIERARCHY_EJB.jar#__UDHierarchy failed
    with exception: java.lang.__NoClassDefFoundError:
    com.mycompany.create.__exceptions.__DuplicateKeyException

    This DuplicateKeyException is in a project MYCOMPANY_EXCEPTIONS
    which is a runtime dependency of some EJB's that are dependencies of
    my EAR (such as MYCOMPANY_UDHIERARCHY_EJB). MYCOMPANY_EXCEPTIONS.jar
    is in fact packed in to MYCOMPANY_EAR.ear and listed in the
    MANIFEST.MF (when built with Maven on the command-line). It is also
    referenced in org.eclipse.wst.common.__component:

    <dependent-module archiveName="MYCOMPANY___EXCEPTIONS.jar"
    deploy-path="/"
    handle="module:/resource/__MYCOMPANY_EXCEPTIONS/__MYCOMPANY_EXCEPTIONS">
    <dependency-type>uses</__dependency-type>
    </dependent-module>

    Following are some POM configurations:
    build:
    <finalName>${project.__artifactId}</finalName>
    EAR plugin:
    <fileNameMapping>no-version</__fileNameMapping>
    <generateApplicationXml>true</__generateApplicationXml>
    <modules>
         <ejbModule>
         <groupId>...</groupId>
         <artifactId>MYCOMPANY___UDHIERARCHY_EJB</artifactId>
         <moduleId>EjbModule___1039818166884</moduleId>
         </ejbModule>

    Just let me know if there's other details you want to see.
    Your help once again much appreciated!!!


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>




-- "Have you tried turning it off and on again" - The IT Crowd


_______________________________________________ m2e-users mailing list m2e-users@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/m2e-users