You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pe...@ubs.com on 2006/08/07 13:44:11 UTC

m2 WebSphere EJB / EAR Build and Deployment

Hi

I just want to ask has anybody used Maven 2 to build an EJB-JAR, an EAR
and successfully deploy them all to WebSphere Server 6.0.x?

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by "David J. M. Karlsen" <da...@davidkarlsen.com>.
Peter.Pilgrim@ubs.com wrote:
> Hi
> 
> I just want to ask has anybody used Maven 2 to build an EJB-JAR, an EAR
> and successfully deploy them all to WebSphere Server 6.0.x?

Yes we have - at least for 5.0.2.x - which should work pretty much the 
same for 6.0.x.

I use the xdoclet plugin for generating WAS specific 
deploymentdescriptor (and EJB interfaces).

I use my own homegrown plugin for generating EJB stubs: 
http://www.davidkarlsen.com/maven-was-plugin/

You might consider to use a plugin from one of my fellow collegues, 
Hermod Opstvedt - if his plugin is released for the community yet.

There's still no finished cargo plugin - but I think there's been done 
some work on it - check cargo-JIRA for latest news.


-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Marco Mistroni <mm...@gmail.com>.
hello peter,
  yes, you r perfectly right.. as long as you stick with WAS/RAD everything
is done
for you.
/as soon as you try to be little more 'open sourced' here comes troubles.

and, yes, you r right again, WAS/RAD generates binding files for references
etc, they are called ibm-ejb-access-bean.xmi, ibm-ejb-jar-bnd.xmi and
ibm-ejb-jar-ext.xmi, i guess generated automatically by your RAD. I m not
sure, but you might want to check if xdoclet has something for you for IBM
binding files....

frankly speaking i never liked IDE that does everything.. i m trying to
convert some of our projects to use m2 and JBoss cos i m sick of hardcoded
environments.. but it's little pain :(

good luck, i surely let you know if i find something

regards
 marco

On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
>
> Hi Marco
>
> > -----Original Message-----
> > From: Marco Mistroni [mailto:mmistroni@gmail.com]
> ==////==
> >
> > hi peter,
> >  not sure if it can help
> >  a colleague of mine wrote an ant script for building EJB and
> > deploying them, but it was with ant and it was deployed on WAS 5.1.
> > i think he used 'custom' ant task from IBM for websphere So,
> > if m2 can't help, you could be able to launch an ant task
> > from m2 sorry to say that i don't know where my colleague
> > script went (and he has left the company few months ago)
> >
>
> I am new to Websphere building. So it sounds like that WebSphere
> makes it harder to deploy EJB without using the wizards and IDEs.
> I am beginning to come to the same conclusion to launch
> Ant from M2, except I am unsure the name of the ant task to call.
>
> I am getting a dependency missing when I deploy a pure EAR
> that was build from the maven-ejb-plugin and maven-ear-plugin.
> I suspect that EAR and EJB-JAR requires a Websphere extensions
> ( e.g an ejb-jar-ext.xml and ejb-jar-bnd.xml meta file)
>
> However if you ever find that script let me know
>
> > hth
> >  marco
> ==////==
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Marco Mistroni <mm...@gmail.com>.
Hello peter,
  ok found it..
mmm actually interesting part is only when you deploy....

<wsejbdeploy inputJar=".."
                     outputJar=".."
                     workingDirectory="${basedir}/build/tmp"
                     classpathref="classpath.deploy"
                     dbname=".."
                     dbschema="..."
                     dbvendor="..."
                     rmicOptions="-verbose">

i don't think it' smuch help.... it is launche dfrom the directory in RAD
where you generate EJBs, so RAD will have already generated binding files
for you...

hth
 marco

PS let me know if you went further, i am also using WAS/RAD @Work, would
liket o use Maven... but i m  in deep sea now  :(




peter@maven.apache.org

On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
>
> Hi Marco
>
> > -----Original Message-----
> > From: Marco Mistroni [mailto:mmistroni@gmail.com]
> ==////==
> >
> > hi peter,
> >  not sure if it can help
> >  a colleague of mine wrote an ant script for building EJB and
> > deploying them, but it was with ant and it was deployed on WAS 5.1.
> > i think he used 'custom' ant task from IBM for websphere So,
> > if m2 can't help, you could be able to launch an ant task
> > from m2 sorry to say that i don't know where my colleague
> > script went (and he has left the company few months ago)
> >
>
> I am new to Websphere building. So it sounds like that WebSphere
> makes it harder to deploy EJB without using the wizards and IDEs.
> I am beginning to come to the same conclusion to launch
> Ant from M2, except I am unsure the name of the ant task to call.
>
> I am getting a dependency missing when I deploy a pure EAR
> that was build from the maven-ejb-plugin and maven-ear-plugin.
> I suspect that EAR and EJB-JAR requires a Websphere extensions
> ( e.g an ejb-jar-ext.xml and ejb-jar-bnd.xml meta file)
>
> However if you ever find that script let me know
>
> > hth
> >  marco
> ==////==
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: m2 WebSphere EJB / EAR Build and Deployment

Posted by Pe...@ubs.com.
Hi Marco

> -----Original Message-----
> From: Marco Mistroni [mailto:mmistroni@gmail.com] 
==////==
> 
> hi peter,
>  not sure if it can help
>  a colleague of mine wrote an ant script for building EJB and 
> deploying them, but it was with ant and it was deployed on WAS 5.1.
> i think he used 'custom' ant task from IBM for websphere So, 
> if m2 can't help, you could be able to launch an ant task 
> from m2 sorry to say that i don't know where my colleague 
> script went (and he has left the company few months ago)
> 

I am new to Websphere building. So it sounds like that WebSphere
makes it harder to deploy EJB without using the wizards and IDEs.
I am beginning to come to the same conclusion to launch
Ant from M2, except I am unsure the name of the ant task to call.

I am getting a dependency missing when I deploy a pure EAR
that was build from the maven-ejb-plugin and maven-ear-plugin.
I suspect that EAR and EJB-JAR requires a Websphere extensions
( e.g an ejb-jar-ext.xml and ejb-jar-bnd.xml meta file)

However if you ever find that script let me know

> hth
>  marco
==////==

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
:: Java EE / E-Commerce / Enterprise Integration / Development ::
 

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Dion Gillard <di...@gmail.com>.
Have a look at the m1 was plugin - it generates and runs an ant build
file with all the tasks in it.

On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
> > -----Original Message-----
> > From: Stefan Magnus Landrø
> > [mailto:stefan-magnus.landro@gjensidige.no]
> > Sent: 07 August 2006 13:16
> > To: Maven Users List
> > Subject: Re: Re: m2 WebSphere EJB / EAR Build and Deployment
> >
> > Hi there,
> >
> > We also had to write a custom plugin to deploy to was 5.0.2
> > (triggering wsadmin.bat using some jacl scripts). I know
> > other people use the built-in was-ant tasks.
> >
> > Stefan
> >
>
> Sounds like the M2 calling ANT to do the thing. I agree.
> Any idea what is the name of the ant task that should be called?
>
> And if that is the case, has anybody decompiled the ant task
> to get it out of Ant and into a generic state. Oops. Reverse
> engineering might be illegal ;-)
>
> >
> > "Marco Mistroni" <mm...@gmail.com> skrev 07.08.2006 14:10:54:
> >
> > > hi peter,
> > >  not sure if it can help
> > >  a colleague of mine wrote an ant script for building EJB and
> > > deploying them, but it was with ant and it was deployed on WAS 5.1.
> > > i think he used 'custom' ant task from IBM for websphere So, if m2
> > > can't help, you could be able to launch an ant task from m2
> > sorry to
> > > say that i don't know where my colleague script went (and he
> > has
> > > left the company few months ago)
> > >
> > > hth
> > >  marco
> > >
> > > On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
> > > >
> > > > Hi
> > > >
> > > > I just want to ask has anybody used Maven 2 to build an
> > EJB-JAR, an
> > EAR
> > > > and successfully deploy them all to WebSphere Server 6.0.x?
> ==////==
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
http://www.multitask.com.au/people/dion/
"If you even dream of beating me you'd better wake up and apologize" -
Muhammad Ali

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Pe...@ubs.com.
> -----Original Message-----
> From: Stefan Magnus Landrø 
> [mailto:stefan-magnus.landro@gjensidige.no] 
> Sent: 07 August 2006 13:16
> To: Maven Users List
> Subject: Re: Re: m2 WebSphere EJB / EAR Build and Deployment
> 
> Hi there,
> 
> We also had to write a custom plugin to deploy to was 5.0.2 
> (triggering wsadmin.bat using some jacl scripts). I know 
> other people use the built-in was-ant tasks. 
> 
> Stefan
> 

Sounds like the M2 calling ANT to do the thing. I agree.
Any idea what is the name of the ant task that should be called?

And if that is the case, has anybody decompiled the ant task
to get it out of Ant and into a generic state. Oops. Reverse 
engineering might be illegal ;-)

> 
> "Marco Mistroni" <mm...@gmail.com> skrev 07.08.2006 14:10:54:
> 
> > hi peter,
> >  not sure if it can help
> >  a colleague of mine wrote an ant script for building EJB and 
> > deploying them, but it was with ant and it was deployed on WAS 5.1.
> > i think he used 'custom' ant task from IBM for websphere So, if m2 
> > can't help, you could be able to launch an ant task from m2 
> sorry to 
> > say that i don't know where my colleague script went (and he
> has
> > left the company few months ago)
> > 
> > hth
> >  marco
> > 
> > On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
> > >
> > > Hi
> > >
> > > I just want to ask has anybody used Maven 2 to build an 
> EJB-JAR, an
> EAR
> > > and successfully deploy them all to WebSphere Server 6.0.x?
==////==

--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Stefan Magnus Landrø <st...@gjensidige.no>.
Hi there,

We also had to write a custom plugin to deploy to was 5.0.2 (triggering 
wsadmin.bat using some jacl scripts). I know other people use the built-in 
was-ant tasks. 

Stefan


"Marco Mistroni" <mm...@gmail.com> skrev 07.08.2006 14:10:54:

> hi peter,
>  not sure if it can help
>  a colleague of mine wrote an ant script for building EJB and deploying
> them,
> but it was with ant and it was deployed on WAS 5.1.
> i think he used 'custom' ant task from IBM for websphere
> So, if m2 can't help, you could be able to launch an ant task from m2
> sorry to say that i don't know where my colleague script went (and he 
has
> left the company few months ago)
> 
> hth
>  marco
> 
> On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
> >
> > Hi
> >
> > I just want to ask has anybody used Maven 2 to build an EJB-JAR, an 
EAR
> > and successfully deploy them all to WebSphere Server 6.0.x?
> >
> > --
> > Peter Pilgrim
> > UBS Investment Bank,
> > PTS Portal / IT FIRC OPS LDN,
> > 100 Liverpool Street, London EC2M 2RH, United Kingdom
> > :: Java EE / E-Commerce / Enterprise Integration / Development ::
> >
> > Visit our website at http://www.ubs.com
> >
> > This message contains confidential information and is intended only
> > for the individual named.  If you are not the named addressee you
> > should not disseminate, distribute or copy this e-mail.  Please
> > notify the sender immediately by e-mail if you have received this
> > e-mail by mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free
> > as information could be intercepted, corrupted, lost, destroyed,
> > arrive late or incomplete, or contain viruses.  The sender therefore
> > does not accept liability for any errors or omissions in the contents
> > of this message which arise as a result of e-mail transmission.  If
> > verification is required please request a hard-copy version.  This
> > message is provided for informational purposes and should not be
> > construed as a solicitation or offer to buy or sell any securities or
> > related financial instruments.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >

Re: m2 WebSphere EJB / EAR Build and Deployment

Posted by Marco Mistroni <mm...@gmail.com>.
hi peter,
 not sure if it can help
 a colleague of mine wrote an ant script for building EJB and deploying
them,
but it was with ant and it was deployed on WAS 5.1.
i think he used 'custom' ant task from IBM for websphere
So, if m2 can't help, you could be able to launch an ant task from m2
sorry to say that i don't know where my colleague script went (and he has
left the company few months ago)

hth
 marco

On 8/7/06, Peter.Pilgrim@ubs.com <Pe...@ubs.com> wrote:
>
> Hi
>
> I just want to ask has anybody used Maven 2 to build an EJB-JAR, an EAR
> and successfully deploy them all to WebSphere Server 6.0.x?
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>