You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Tedone <mt...@jemos.org> on 2004/03/16 10:47:23 UTC

Problems creating ejb jar

Hi, I'm trying to create an ejb-jar for my project.

Following the documentation for the EJB plugin, I declared the following
properties:

#Sources to include in the ejb
maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
va

#Includes the deployment descriptors
maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml

However my jar file ends without classes or deployment descriptors in it.

In /src/project.xml I specified the following:

<project default="driver">

<goal name="driver">
  <attainGoal name="jar:install" />
  <attainGoal name="ejb" />
</goal>

</project>

If I comment out <attainGoal name="ejb" /> the jar is created with all the
classes.

I tried also to use <ejbjar> from ant, but I get an error dependency on
bcel, although I declared it as a dependency.

Thanks for any help,

Marco







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


Re: Problems creating ejb jar

Posted by Marco Tedone <mt...@jemos.org>.
Did you solve the bcel dependency problems?

Marco
----- Original Message ----- 
From: "Webb Morris" <we...@yahoo.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, March 16, 2004 2:19 PM
Subject: Re: Problems creating ejb jar


> --- Arto Pastinen <ar...@ofw.fi> wrote:
> > > > #Sources to include in the ejb
> > > >
maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
> > > > va
> > > >
> > > > #Includes the deployment descriptors
> > > > maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml
> > > >
> > > > However my jar file ends without classes or deployment descriptors
in it.
>
> The maven.ejb.src is actually meant to be pointed at the information you
have listed for
> maven.ejb.includes.  The documentation is lacking there.  I found the
ejbjar plugin to be
> sufficiently lacking that I wrote my own using the ejbjar Ant task (more
specific for what my
> company needs).  However, I also get the bcel dependency problem.
>
> Hope this helps,
>
> WM
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.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: Problems creating ejb jar

Posted by Marco Tedone <mt...@jemos.org>.
Dion, could you please send me a code example?

Thanks,

Marco
----- Original Message ----- 
From: <di...@multitask.com.au>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, March 16, 2004 11:39 PM
Subject: Re: Problems creating ejb jar


> Webb Morris <we...@yahoo.com> wrote on 17/03/2004 01:19:34 AM:
>
> > The maven.ejb.src is actually meant to be pointed at the information
> > you have listed for
> > maven.ejb.includes.  The documentation is lacking there.  I found
> > the ejbjar plugin to be
> > sufficiently lacking that I wrote my own using the ejbjar Ant task
> > (more specific for what my
> > company needs).  However, I also get the bcel dependency problem.
> >
> > Hope this helps,
>
> I simply don't use the convoluted property of the ejb jar plugin and
> simply use <resources>. This works so much better.
>
> EAR projects (as of 1.5 of the ear plugin) have support for resources now
> too.
> --
> dIon Gillard, Multitask Consulting
>




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


Re: Problems creating ejb jar

Posted by di...@multitask.com.au.
Webb Morris <we...@yahoo.com> wrote on 17/03/2004 01:19:34 AM:

> The maven.ejb.src is actually meant to be pointed at the information
> you have listed for
> maven.ejb.includes.  The documentation is lacking there.  I found 
> the ejbjar plugin to be
> sufficiently lacking that I wrote my own using the ejbjar Ant task 
> (more specific for what my
> company needs).  However, I also get the bcel dependency problem.
> 
> Hope this helps,

I simply don't use the convoluted property of the ejb jar plugin and 
simply use <resources>. This works so much better.

EAR projects (as of 1.5 of the ear plugin) have support for resources now 
too.
--
dIon Gillard, Multitask Consulting

Re: Problems creating ejb jar

Posted by Webb Morris <we...@yahoo.com>.
--- Arto Pastinen <ar...@ofw.fi> wrote:
> > > #Sources to include in the ejb
> > > maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
> > > va
> > > 
> > > #Includes the deployment descriptors
> > > maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml
> > > 
> > > However my jar file ends without classes or deployment descriptors in it.

The maven.ejb.src is actually meant to be pointed at the information you have listed for
maven.ejb.includes.  The documentation is lacking there.  I found the ejbjar plugin to be
sufficiently lacking that I wrote my own using the ejbjar Ant task (more specific for what my
company needs).  However, I also get the bcel dependency problem.

Hope this helps,

WM

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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


Re: Problems creating ejb jar

Posted by Arto Pastinen <ar...@ofw.fi>.
Yeah i have use them both, and others too, it depends what i'm doing..
Here is little example from some stupid test project.xml

          <dependency>
                <groupId>xdoclet</groupId>
                <artifactId>maven-xdoclet-plugin</artifactId>
                <version>1.2b4</version>
                <type>plugin</type>
          </dependency>

          <dependency>
                <groupId>xdoclet</groupId>
                <artifactId>xdoclet-web-module</artifactId>
                <version>1.2b4</version>
            </dependency>

There is no doclet for ejb, but you can add it easily. Like
xdoclet-web-module, but it's xdoclet-ejb-module. (if i remember
correctly), you can check it from www.ibiblio.com/maven/xdoclet/jars

I like that if web application project use some ejb (for persistence
example. btw. hibernate rocks.) 
those ejb parts are in own project, and i put that dependency to web
application project.xml. More like speed reasons, and usually after
those persistence/business stuff is finished, there is no need to touch
them after that.

Artsi

On Tue, 2004-03-16 at 11:57, thorsten maus wrote:
> did you include the
> ejbdoclet as well as the webdoclet in your project.xml ???
> 
> without the webdoclet maven will not create the ejb parts properly ..
> 
> 
> 
> Marco Tedone wrote:
> > Hi, I'm trying to create an ejb-jar for my project.
> > 
> > Following the documentation for the EJB plugin, I declared the following
> > properties:
> > 
> > #Sources to include in the ejb
> > maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
> > va
> > 
> > #Includes the deployment descriptors
> > maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml
> > 
> > However my jar file ends without classes or deployment descriptors in it.
> > 
> > In /src/project.xml I specified the following:
> > 
> > <project default="driver">
> > 
> > <goal name="driver">
> >   <attainGoal name="jar:install" />
> >   <attainGoal name="ejb" />
> > </goal>
> > 
> > </project>
> > 
> > If I comment out <attainGoal name="ejb" /> the jar is created with all the
> > classes.
> > 
> > I tried also to use <ejbjar> from ant, but I get an error dependency on
> > bcel, although I declared it as a dependency.
> > 
> > Thanks for any help,
> > 
> > Marco
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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: Problems creating ejb jar

Posted by Marco Tedone <mt...@jemos.org>.
Sorry, I think I didn't understand you properly.

I use ejbdoclet in ${basedir}/maven.xml to create the EJBs interfaces.

Marco
----- Original Message ----- 
From: "thorsten maus" <th...@pirack.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, March 16, 2004 9:57 AM
Subject: Re: Problems creating ejb jar


>
> did you include the
> ejbdoclet as well as the webdoclet in your project.xml ???
>
> without the webdoclet maven will not create the ejb parts properly ..
>
>
>
> Marco Tedone wrote:
> > Hi, I'm trying to create an ejb-jar for my project.
> >
> > Following the documentation for the EJB plugin, I declared the following
> > properties:
> >
> > #Sources to include in the ejb
> >
maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
> > va
> >
> > #Includes the deployment descriptors
> > maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml
> >
> > However my jar file ends without classes or deployment descriptors in
it.
> >
> > In /src/project.xml I specified the following:
> >
> > <project default="driver">
> >
> > <goal name="driver">
> >   <attainGoal name="jar:install" />
> >   <attainGoal name="ejb" />
> > </goal>
> >
> > </project>
> >
> > If I comment out <attainGoal name="ejb" /> the jar is created with all
the
> > classes.
> >
> > I tried also to use <ejbjar> from ant, but I get an error dependency on
> > bcel, although I declared it as a dependency.
> >
> > Thanks for any help,
> >
> > Marco
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> -- 
> Thorsten Maus ( IT Architect )
> thorsten.maus@pirack.com
> mobile: +49-173-644-1988
> www.pirack.com
> it's teamwork
>
>
> ---------------------------------------------------------------------
> 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: Problems creating ejb jar

Posted by thorsten maus <th...@pirack.com>.
did you include the
ejbdoclet as well as the webdoclet in your project.xml ???

without the webdoclet maven will not create the ejb parts properly ..



Marco Tedone wrote:
> Hi, I'm trying to create an ejb-jar for my project.
> 
> Following the documentation for the EJB plugin, I declared the following
> properties:
> 
> #Sources to include in the ejb
> maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}/org/jemos/xmlop/ejbs/**/*.ja
> va
> 
> #Includes the deployment descriptors
> maven.ejb.includes=${maven.xdoclet.ejbdoclet.destDir}/META-INF/*.xml
> 
> However my jar file ends without classes or deployment descriptors in it.
> 
> In /src/project.xml I specified the following:
> 
> <project default="driver">
> 
> <goal name="driver">
>   <attainGoal name="jar:install" />
>   <attainGoal name="ejb" />
> </goal>
> 
> </project>
> 
> If I comment out <attainGoal name="ejb" /> the jar is created with all the
> classes.
> 
> I tried also to use <ejbjar> from ant, but I get an error dependency on
> bcel, although I declared it as a dependency.
> 
> Thanks for any help,
> 
> Marco
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


-- 
Thorsten Maus ( IT Architect )
thorsten.maus@pirack.com
mobile: +49-173-644-1988
www.pirack.com
it's teamwork


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