Current best practices for automating deployment to Weblogic 8?
Hi, I am wanting to automate deployment of our WARs / EARs to Weblogic 8 under Maven, scheduled via Anthill Pro. I'm wondering what is the latest and greatest way to do this, right now. There seem to be several options available: * Cargo (which we are already using for Jetty, but doesn't have WL8 support yet) * the Maven appserver/J2EE plugins (but these don't seem to support deployment to an existing remote container???) * Rolling my own with calls to SCP (probably via ant's SCP target) and Weblogic's native container start/stop/deploy control support. Can anyone provide input on which of these (or some other) would be the path of least resistance? Pointers to publicly accessible working examples would be great. Thanks a lot, Chad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JCoverage Report always shows 0% Coverage
Hi Brett, The recommended structure is: src/main/java for sources src/test/java for test sources Funny, the genapp plugin doesn't do it that way. :p Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JCoverage Report always shows 0% Coverage
yes, and that's something I've been meaning to change... On Mon, 11 Oct 2004 15:09:47 +0900, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Brett, The recommended structure is: src/main/java for sources src/test/java for test sources Funny, the genapp plugin doesn't do it that way. :p Best regards, -- Shinobu Kawai -- Shinobu Kawai [EMAIL PROTECTED] - 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: Current best practices for automating deployment to Weblogic 8?
I am wanting to automate deployment of our WARs / EARs to Weblogic 8 under Maven, scheduled via Anthill Pro. I'm wondering what is the latest and greatest way to do this, right now. I use the weblogic.Deployer class called by an ant:java tag http://e-docs.bea.com/wls/docs81/deployment/tools.html -- Thomas Recloux - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: attainGoal No goal [ejb:install]
Maven reported it installed. I installed it manually and then got different error regarding classes that dont exists in the target folder. It worked only after running jar:install (or any command that compile). I expected ejb:install to compile classes before building jar. Is it not the case? Oren -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: 09 October 2004 00:18 To: Maven Users List Subject: Re: attainGoal No goal [ejb:install] does maven --info report it installed? if so, what does maven -P ejb say? Thanks, Brett On Fri, 08 Oct 2004 16:28:57 +0100, Oren Berenson [EMAIL PROTECTED] wrote: Hi, I installed Maven EJB Plugin 1.5 as follow: maven plugin:download -DgroupId=maven -DartifactId=maven-ejb-plugin -Dversion=1.5 Installation finished successfully. I have maven.xml : project default=build xmlns:m=jelly:maven goal name=build attainGoal name=ejb:install / /goal /project When running it i get the message: attainGoal No goal [ejb:install] any idea where i gone wrong? Oren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current best practices for automating deployment to Weblogic 8?
Hi, there is a weblogic plugin at http://sourceforge.net/projects/maven-plugins/. It seems to be a wrapper around Weblogic deployment tool and ant tasks. -- Pascal On Mon, 11 Oct 2004 08:40:06 +0200, Thomas Recloux [EMAIL PROTECTED] wrote: I am wanting to automate deployment of our WARs / EARs to Weblogic 8 under Maven, scheduled via Anthill Pro. I'm wondering what is the latest and greatest way to do this, right now. I use the weblogic.Deployer class called by an ant:java tag http://e-docs.bea.com/wls/docs81/deployment/tools.html -- Thomas Recloux - 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: attainGoal No goal [ejb:install]
This is my maven.xml: project default=build xmlns:m=jelly:maven preGoal name=java:compile echo!! Clean/echo attainGoal name=clean / /preGoal goal name=build echoCalling ejb:install/echo attainGoal name=ejb:install / /goal /project I get the following error: D:\TestEJB\target\classes does not exist or is not a directory It looks like the folder\classes have to exists for it to work. Is it correct to use clean like i did? Oren -Original Message- From: Oren Berenson [mailto:[EMAIL PROTECTED] Sent: 11 October 2004 08:54 To: Brett Porter; Maven Users List Subject: RE: attainGoal No goal [ejb:install] Maven reported it installed. I installed it manually and then got different error regarding classes that dont exists in the target folder. It worked only after running jar:install (or any command that compile). I expected ejb:install to compile classes before building jar. Is it not the case? Oren -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: 09 October 2004 00:18 To: Maven Users List Subject: Re: attainGoal No goal [ejb:install] does maven --info report it installed? if so, what does maven -P ejb say? Thanks, Brett On Fri, 08 Oct 2004 16:28:57 +0100, Oren Berenson [EMAIL PROTECTED] wrote: Hi, I installed Maven EJB Plugin 1.5 as follow: maven plugin:download -DgroupId=maven -DartifactId=maven-ejb-plugin -Dversion=1.5 Installation finished successfully. I have maven.xml : project default=build xmlns:m=jelly:maven goal name=build attainGoal name=ejb:install / /goal /project When running it i get the message: attainGoal No goal [ejb:install] any idea where i gone wrong? Oren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SPAM] - RE: attainGoal No goal [ejb:install] - Found word(s) list error in the Text body.
Thanks for that. It is now working fine. Oren -Original Message- From: Stéphane Nicoll [mailto:[EMAIL PROTECTED] Sent: 11 October 2004 11:07 To: Maven Users List Subject: RE: [SPAM] - RE: attainGoal No goal [ejb:install] - Found word(s) list error in the Text body. Well, there's a pregoal which will create the directory target\classes just before compiling (it's called java:prepare-filesystem). If you clean the target directory just before launching the compilation, the java:compile goal will obiously fail. I suggest the following as a replacement goal name=build prereqs=clean echoCalling ejb:install/echo attainGoal name=ejb:install / /goal Regards, Stéphane -Original Message- From: Oren Berenson [mailto:[EMAIL PROTECTED] Sent: lundi 11 octobre 2004 12:04 To: Maven Users List; Brett Porter Subject: [SPAM] - RE: attainGoal No goal [ejb:install] - Found word(s) list error in the Text body. This is my maven.xml: project default=build xmlns:m=jelly:maven preGoal name=java:compile echo!! Clean/echo attainGoal name=clean / /preGoal goal name=build echoCalling ejb:install/echo attainGoal name=ejb:install / /goal /project I get the following error: D:\TestEJB\target\classes does not exist or is not a directory It looks like the folder\classes have to exists for it to work. Is it correct to use clean like i did? Oren -Original Message- From: Oren Berenson [mailto:[EMAIL PROTECTED] Sent: 11 October 2004 08:54 To: Brett Porter; Maven Users List Subject: RE: attainGoal No goal [ejb:install] Maven reported it installed. I installed it manually and then got different error regarding classes that don't exists in the target folder. It worked only after running jar:install (or any command that compile). I expected ejb:install to compile classes before building jar. Is it not the case? Oren -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: 09 October 2004 00:18 To: Maven Users List Subject: Re: attainGoal No goal [ejb:install] does maven --info report it installed? if so, what does maven -P ejb say? Thanks, Brett On Fri, 08 Oct 2004 16:28:57 +0100, Oren Berenson [EMAIL PROTECTED] wrote: Hi, I installed Maven EJB Plugin 1.5 as follow: maven plugin:download -DgroupId=maven -DartifactId=maven-ejb-plugin -Dversion=1.5 Installation finished successfully. I have maven.xml : project default=build xmlns:m=jelly:maven goal name=build attainGoal name=ejb:install / /goal /project When running it i get the message: attainGoal No goal [ejb:install] any idea where i gone wrong? Oren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - 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] This email and any files transmitted
Specify directory for resources in ear
I want the application.xml to be copied into /META-INF in the ear file. ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / I set the properties as follow: maven.ear.appxml=${basedir}/META-INF maven.ear.src=${basedir}/META-INF maven.ear.resources=${basedir}/META-INF The application.xml is being picked up but it is inserted into the ear file without the path. Beside the application.xml there are few other resources, which I want to do the same with them. Any idea how it is done? Thanks Oren This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre.
Re: Dependent jars in distribution zip file
The solution is written all over the place (Maven User Guide). project default=release xmlns:j=jelly:core xmlns:u=jelly:util xmlns:ant=jelly:ant xmlns:maven=jelly:maven xmlns:deploy=deploy goal name=copydependencies echoCopying Dependent Jars/echo mkdir dir=${maven.build.dir}/lib/ / deploy:copy-deps todir=${maven.build.dir}/lib/ / /goal /project bye Satish On Mon, 20 Sep 2004 16:25:26 +0530, Atluri Satish [EMAIL PROTECTED] wrote: Hi I want to include dependent jar (Specified in Project.xml file) into my distribution zip. I also want to exercise finer control in terms of specifying what dependent jars are to be included in distribution zip files. I request your help in letting me know, how to do it. bye Satish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Specify directory for resources in ear
Hi maven.ear.appxml=${basedir}/META-INF Isn't that suppose to be maven.ear.appxml=${basedir}/META-INF/application.xml ? I also specify include**/META-INF/**/include under the includes in my EAR subproject's project.xml jeff mutonho --- Oren Berenson [EMAIL PROTECTED] wrote: I want the application.xml to be copied into /META-INF in the ear file. ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / I set the properties as follow: maven.ear.appxml=${basedir}/META-INF maven.ear.src=${basedir}/META-INF maven.ear.resources=${basedir}/META-INF The application.xml is being picked up but it is inserted into the ear file without the path. Beside the application.xml there are few other resources, which I want to do the same with them. Any idea how it is done? Thanks Oren This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Specify directory for resources in ear
Yes, it is as expected like that. Thank you very much. Oren -Original Message- From: jeff mutonho [mailto:[EMAIL PROTECTED] Sent: 11 October 2004 13:46 To: Maven Users List Subject: Re: Specify directory for resources in ear Hi maven.ear.appxml=${basedir}/META-INF Isn't that suppose to be maven.ear.appxml=${basedir}/META-INF/application.xml ? I also specify include**/META-INF/**/include under the includes in my EAR subproject's project.xml jeff mutonho --- Oren Berenson [EMAIL PROTECTED] wrote: I want the application.xml to be copied into /META-INF in the ear file. ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / I set the properties as follow: maven.ear.appxml=${basedir}/META-INF maven.ear.src=${basedir}/META-INF maven.ear.resources=${basedir}/META-INF The application.xml is being picked up but it is inserted into the ear file without the path. Beside the application.xml there are few other resources, which I want to do the same with them. Any idea how it is done? Thanks Oren This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it contain information that may be confidential or privileged, and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient any disclosure, copying, distribution or use of the information is prohibited. If you have received this email in error, please notify me by return email immediately. Any opinions expressed are those of the author, not of Morpheus Limited. This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Current best practices for automating deployment to Weblogic 8?
One thing to note is that this will not by default support remote deployment. You need to either FTP the files to the source directory for the server or use a shared directory structure. The remote deploy will remotely deploy the EAR or WAR but only if the code is already accessible by the remote server. This is the same limitation as currently exists for all BEA deployment scripts. Non of them will perform the remote copy to the source machine. We have the system up and running and are using the Weblogic plugin mentioned and have successfully automated our builds and deployments. We also use cactus to check our anthill and cruise control builds once they are built and deployed. Scott Damon Ryan Developer (720) 514-5389 [EMAIL PROTECTED] -Original Message- From: Pascal Thivent [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 2:18 AM To: Maven Users List; Thomas Recloux Subject: Re: Current best practices for automating deployment to Weblogic 8? Hi, there is a weblogic plugin at http://sourceforge.net/projects/maven-plugins/. It seems to be a wrapper around Weblogic deployment tool and ant tasks. -- Pascal On Mon, 11 Oct 2004 08:40:06 +0200, Thomas Recloux [EMAIL PROTECTED] wrote: I am wanting to automate deployment of our WARs / EARs to Weblogic 8 under Maven, scheduled via Anthill Pro. I'm wondering what is the latest and greatest way to do this, right now. I use the weblogic.Deployer class called by an ant:java tag http://e-docs.bea.com/wls/docs81/deployment/tools.html -- Thomas Recloux - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Current best practices for automating deployment to Weblogic 8?
Hi Ryan, since I'm not a weblogic expert I have a question - would a remote deploy work if the application is already deployed?! Thanks in advance Siegfried Goeschl Ryan, Scott wrote: One thing to note is that this will not by default support remote deployment. You need to either FTP the files to the source directory for the server or use a shared directory structure. The remote deploy will remotely deploy the EAR or WAR but only if the code is already accessible by the remote server. This is the same limitation as currently exists for all BEA deployment scripts. Non of them will perform the remote copy to the source machine. We have the system up and running and are using the Weblogic plugin mentioned and have successfully automated our builds and deployments. We also use cactus to check our anthill and cruise control builds once they are built and deployed. Scott Damon Ryan Developer (720) 514-5389 [EMAIL PROTECTED] -Original Message- From: Pascal Thivent [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 2:18 AM To: Maven Users List; Thomas Recloux Subject: Re: Current best practices for automating deployment to Weblogic 8? Hi, there is a weblogic plugin at http://sourceforge.net/projects/maven-plugins/. It seems to be a wrapper around Weblogic deployment tool and ant tasks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using define:jellyBean and classLoaders
Hi all, I'm having some trouble using the Jelly define tags. Basically what I'm trying to do is define a jellyBean tag to use the Jasper compiler on a Tomcat version of my choice. So far I have tried something along the lines of : define:taglib uri=jasper ant:path id=jspc.classpath echo message=Java home=${java.home} / ant:pathelement location=${java.home}/../lib/tools.jar/ ant:fileset dir=${catalina.home.dir}/bin ant:include name=*.jar/ /ant:fileset ant:fileset dir=${catalina.home.dir}/server/lib ant:include name=*.jar/ /ant:fileset ant:fileset dir=${catalina.home.dir}/common/lib ant:include name=*.jar/ /ant:fileset ant:path refid=maven.dependency.classpath/ ant:pathelement path=${maven.build.dest}/ /ant:path define:classLoader var=jasperClassLoader url=${jspc.classpath} / define:jellybean classLoader=${jasperClassLoader} name=JspC className=org.apache.jasper.JspC method=execute / /define:taglib but this doesn't work because I can't reference the Ant refid in the classloader tag. Also it seems the classLoader tag only accepts a SINGLE URL as a parameter, not a collection of them (I looked at the source code for this tag and this was my understanding). I know that I can use the dependency classpath to define all I need, but that means hardcoding the Tomcat version I can use this tag with, which is what I'm trying to undo. I've searched all over Google, Maven and Jelly websites and I must say I'm at a loss here. Any help would be greatly appreciated ! Regards, Serge Huber. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]