Re: Problems creating ejb jar
Thank you Dion, I solved my problem, also because I realized I had the elements defined only for the test, and not for the source. Maven now builds a jar file that contain also ejb-jar.xml and jboss.xml and it gets deployed correctly under Jboss. The only problem I've got is that the jar contains all the files, not only the ejbs. Because I've got two separate modules, war and ejb, I "duplicate" the classes. I suppose I could solve the problem by creating a ear, can't I? Marco - Original Message - From: [EMAIL PROTECTED] To: Marco Tedone Sent: Wednesday, March 17, 2004 12:23 AM Subject: Re: Problems creating ejb jar The only ejb property i have in project.properties for that jar is maven.ejb.excludes=**/*.java which is probably not needed. -- dIon Gillard, Multitask Consulting "Marco Tedone" <[EMAIL PROTECTED]> wrote on 17/03/2004 10:37:29 AM: > Dion, could you please send me a code example? > > Thanks, > > Marco > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Maven Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, March 16, 2004 11:39 PM > Subject: Re: Problems creating ejb jar > > > > Webb Morris <[EMAIL PROTECTED]> 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 . 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: Problems creating ejb jar
Dion, could you please send me a code example? Thanks, Marco - Original Message - From: <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 16, 2004 11:39 PM Subject: Re: Problems creating ejb jar > Webb Morris <[EMAIL PROTECTED]> 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 . 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems creating ejb jar
Webb Morris <[EMAIL PROTECTED]> 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 . 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
Did you solve the bcel dependency problems? Marco - Original Message - From: "Webb Morris" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 16, 2004 2:19 PM Subject: Re: Problems creating ejb jar > --- Arto Pastinen <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems creating ejb jar
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" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> 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: > > > > > > > > > > > > > > > > > > > > > > If I comment out the jar is created with all the > > classes. > > > > I tried also to use 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- > Thorsten Maus ( IT Architect ) > [EMAIL PROTECTED] > mobile: +49-173-644-1988 > www.pirack.com > it's teamwork > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems creating ejb jar
--- Arto Pastinen <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems creating ejb jar
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 xdoclet maven-xdoclet-plugin 1.2b4 plugin xdoclet xdoclet-web-module 1.2b4 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: > > > > > > > > > > > > > > > > > > > > > > If I comment out the jar is created with all the > > classes. > > > > I tried also to use 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: If I comment out the jar is created with all the classes. I tried also to use 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thorsten Maus ( IT Architect ) [EMAIL PROTECTED] mobile: +49-173-644-1988 www.pirack.com it's teamwork - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: If I comment out the jar is created with all the classes. I tried also to use 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]