You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Drinkwater, GJ (Glen)" <g....@dl.ac.uk> on 2008/07/11 13:54:03 UTC
EJB Jar packaging
Hi
I am using maven2 to package a EJB3 jar and I was wondering how I
package the dependencies into the EJB3 jar file? Looks like you can do
it with maven 1 with ejb.bundle but I cannot find any documentation for
maven 2?
Thanks Glen
RE: EJB Jar packaging
Posted by Martin Gainty <mg...@hotmail.com>.
Stephen
With Websphere this depends on how you've specified CLASSLOADER Mode
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzatz/51/program/clsadmcns.htm
PARENT_LAST will load class from Local Classpath first
PARENT_FIRST will load classes from Parent then the Local Classpath
HTH
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> To: users@maven.apache.org
> Subject: Re: EJB Jar packaging
> From: Chris_Graham@aami.com.au
> Date: Mon, 14 Jul 2008 10:38:55 +1000
>
> Stephen Coy <st...@resolvesw.com> wrote on 13/07/2008 21:07:57:
>
> > In JEE5, jars in an EAR's "lib" directory do not need to be in the EJB
> > jar's manifest classpath.
>
> Ah. Thanks makes it a lot clearer!
>
> Thanks for clearing that up for me.
>
> > In J2EE 1.3/1.4 these jars normally need to be in the EJB jar's
> > manifest classpath, whether or not they are in a "lib" directory. If
> > they are in a "lib" directory, then the manifest classpath entries
> > must include "lib/" for each jar.
> >
> > Now it's possible that WAS 5.1 had a non-portable extension that had
> > the JEE5 behavior - I know that WebLogic certainly had a similar
> > feature. But this behavior was not added to the standard until JEE5.
> >
> > In any event, Glen does not mention EAR files at all, so I was just
> > trying to establish what he was trying to do.
>
>
> **********************************************************************
> CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information.
>
> If you are not the intended recipient of this message you must:
> - Not use, copy, distribute or disclose it to anyone other than the addressee;
> - Notify the sender via return email; and
> - Delete the message (and any related attachments) from your computer immediately.
>
> Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent.
>
> Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI.
> **********************************************************************
_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
Re: EJB Jar packaging
Posted by Frank Adcock <fr...@bushlife.com.au>.
Hi,
How are things going.
I finally managed to get onto a project that is working on reasonable
technology.
Rosco still working with you?
Ciao
Frank
On 13/07/2008, at 9:07 PM, Stephen Coy wrote:
> In JEE5, jars in an EAR's "lib" directory do not need to be in the
> EJB jar's manifest classpath.
>
> In J2EE 1.3/1.4 these jars normally need to be in the EJB jar's
> manifest classpath, whether or not they are in a "lib" directory. If
> they are in a "lib" directory, then the manifest classpath entries
> must include "lib/" for each jar.
>
> Now it's possible that WAS 5.1 had a non-portable extension that had
> the JEE5 behavior - I know that WebLogic certainly had a similar
> feature. But this behavior was not added to the standard until JEE5.
>
> In any event, Glen does not mention EAR files at all, so I was just
> trying to establish what he was trying to do.
>
> Thanks,
>
> Steve C
>
>
> On 13/07/2008, at 4:47 PM, ChrisGWarp wrote:
>
>>
>>
>>
>> Stephen Coy-3 wrote:
>>>
>>> The usual way of doing this is to package the EJB jar together with
>>> its dependencies in an EAR file. In a JEE5 environment the deps can
>>> either go in a "lib" directory in the EAR or (and for J2EE 1.3/4) be
>>> at the root of the EAR and a manifest classpath entry added to the
>>> EJB
>>> jar.
>>>
>>
>> There is no special restriction or requirement for where the
>> additional jars
>> can go.
>>
>> We were using a lib directory in the root of the ear quite happily
>> with
>> WebSphere 5.1 (J2EE 1.3).
>>
>> The above post implies (the way that I read it) that J2EE 1.3/4
>> must go into
>> the root of the ear, which is not the case.
>>
>> -Chris
>>
>> --
>> View this message in context: http://www.nabble.com/EJB-Jar-packaging-tp18402174p18426698.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: EJB Jar packaging
Posted by Ch...@aami.com.au.
Stephen Coy <st...@resolvesw.com> wrote on 13/07/2008 21:07:57:
> In JEE5, jars in an EAR's "lib" directory do not need to be in the EJB
> jar's manifest classpath.
Ah. Thanks makes it a lot clearer!
Thanks for clearing that up for me.
> In J2EE 1.3/1.4 these jars normally need to be in the EJB jar's
> manifest classpath, whether or not they are in a "lib" directory. If
> they are in a "lib" directory, then the manifest classpath entries
> must include "lib/" for each jar.
>
> Now it's possible that WAS 5.1 had a non-portable extension that had
> the JEE5 behavior - I know that WebLogic certainly had a similar
> feature. But this behavior was not added to the standard until JEE5.
>
> In any event, Glen does not mention EAR files at all, so I was just
> trying to establish what he was trying to do.
**********************************************************************
CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information.
If you are not the intended recipient of this message you must:
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer immediately.
Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent.
Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI.
**********************************************************************
Re: EJB Jar packaging
Posted by Stephen Coy <st...@resolvesw.com>.
In JEE5, jars in an EAR's "lib" directory do not need to be in the EJB
jar's manifest classpath.
In J2EE 1.3/1.4 these jars normally need to be in the EJB jar's
manifest classpath, whether or not they are in a "lib" directory. If
they are in a "lib" directory, then the manifest classpath entries
must include "lib/" for each jar.
Now it's possible that WAS 5.1 had a non-portable extension that had
the JEE5 behavior - I know that WebLogic certainly had a similar
feature. But this behavior was not added to the standard until JEE5.
In any event, Glen does not mention EAR files at all, so I was just
trying to establish what he was trying to do.
Thanks,
Steve C
On 13/07/2008, at 4:47 PM, ChrisGWarp wrote:
>
>
>
> Stephen Coy-3 wrote:
>>
>> The usual way of doing this is to package the EJB jar together with
>> its dependencies in an EAR file. In a JEE5 environment the deps can
>> either go in a "lib" directory in the EAR or (and for J2EE 1.3/4) be
>> at the root of the EAR and a manifest classpath entry added to the
>> EJB
>> jar.
>>
>
> There is no special restriction or requirement for where the
> additional jars
> can go.
>
> We were using a lib directory in the root of the ear quite happily
> with
> WebSphere 5.1 (J2EE 1.3).
>
> The above post implies (the way that I read it) that J2EE 1.3/4 must
> go into
> the root of the ear, which is not the case.
>
> -Chris
>
> --
> View this message in context: http://www.nabble.com/EJB-Jar-packaging-tp18402174p18426698.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: EJB Jar packaging
Posted by ChrisGWarp <Ch...@aami.com.au>.
Stephen Coy-3 wrote:
>
> The usual way of doing this is to package the EJB jar together with
> its dependencies in an EAR file. In a JEE5 environment the deps can
> either go in a "lib" directory in the EAR or (and for J2EE 1.3/4) be
> at the root of the EAR and a manifest classpath entry added to the EJB
> jar.
>
There is no special restriction or requirement for where the additional jars
can go.
We were using a lib directory in the root of the ear quite happily with
WebSphere 5.1 (J2EE 1.3).
The above post implies (the way that I read it) that J2EE 1.3/4 must go into
the root of the ear, which is not the case.
-Chris
--
View this message in context: http://www.nabble.com/EJB-Jar-packaging-tp18402174p18426698.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: EJB Jar packaging
Posted by Stephen Coy <st...@resolvesw.com>.
The usual way of doing this is to package the EJB jar together with
its dependencies in an EAR file. In a JEE5 environment the deps can
either go in a "lib" directory in the EAR or (and for J2EE 1.3/4) be
at the root of the EAR and a manifest classpath entry added to the EJB
jar. This stuff can all be managed with the maven EJB/EAR plugins.
Is there any particular reason that you don't want to do it this way?
Steve C
On 11/07/2008, at 9:54 PM, Drinkwater, GJ (Glen) wrote:
> Hi
>
> I am using maven2 to package a EJB3 jar and I was wondering how I
> package the dependencies into the EJB3 jar file? Looks like you can
> do
> it with maven 1 with ejb.bundle but I cannot find any documentation
> for
> maven 2?
>
> Thanks Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Re: EJB Jar packaging
Posted by "Drinkwater, GJ (Glen)" <g....@dl.ac.uk>.
Hi
Oh right, I have it kind of working, seems that when I do
<unpack>false</unpack> it then leaves the jar out, whilst
<unpack>true</unpack> unpacks and them adds it. I would like it not to
unpack the jar whilst adding it. Is that possible?
Glen
-----Original Message-----
From: news [mailto:news@ger.gmane.org] On Behalf Of Kristian Rink
Sent: 11 July 2008 13:54
To: users@maven.apache.org
Subject: Re: EJB Jar packaging
Drinkwater, GJ (Glen) schrieb:
> I am using maven2 to package a EJB3 jar and I was wondering how I
> package the dependencies into the EJB3 jar file? Looks like you can
> do it with maven 1 with ejb.bundle but I cannot find any documentation
> for maven 2?
So far I am using assembly:assembly / jar-with-dependencies to do this
job. Compared to ant-based projects (using NetBeans...) it surely is
different (as it explodes the dependencies right to the jar to be
deployed rather than simply adding them), but it seems to do the job...
Cheers,
Kristian
--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: EJB Jar packaging
Posted by Kristian Rink <ka...@zimmer428.net>.
Drinkwater, GJ (Glen) schrieb:
> I am using maven2 to package a EJB3 jar and I was wondering how I
> package the dependencies into the EJB3 jar file? Looks like you can do
> it with maven 1 with ejb.bundle but I cannot find any documentation for
> maven 2?
So far I am using assembly:assembly / jar-with-dependencies to do this
job. Compared to ant-based projects (using NetBeans...) it surely is
different (as it explodes the dependencies right to the jar to be
deployed rather than simply adding them), but it seems to do the job...
Cheers,
Kristian
--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771 "One
dreaming alone, it will be only a dream; many dreaming together is the
beginning of a new reality." (Hundertwasser)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org