Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
deploying exploded webapps with maven2 and cargo

deploying exploded webapps with maven2 and cargo

2007-01-12       - By Joe Germuska

 Back
Reply:     1     2     3  

(I sent the below to the cargo users list, but haven't gotten a response in
several days, so I'm going to be gauche and send it to struts; now that
Struts2 uses Maven2, some Struts folks must be dealing with this [*cough*
Wendy :-) ]  If anyone has advice, it will be appreciated... )

I'm exploring the possibility of moving my webapp development team from
using Maven1 to Maven2 and one of the major practices we've developed has to
do with deploying our work in progress to a locally running Tomcat
instance.  In the interest of not changing too many things at once, I'm
hoping to figure out how to use Cargo to do what we've previously had great
success achieving with the CodeCzar plugin.

I have found examples from various folks online indicating success with
this, but I am hitting a roadblock when I try to run "exploded".
Everything seems to be fairly functional (if not quite straightforward!)
when I run from the WAR, but when I follow instructions from this post
(http://www.nabble.com/-mvn----reloadable-webapps-t2762768.html#a7715823
) and add a <location> element to my deployable, I get the following
FileNotFound error


java.io.FileNotFoundException Source code of java.io.FileNotFoundException:
/Users/germuska/Development/myriad/webapp-customization/target/webapp-
customization-1 (See http://ion-1.ora-code.com).0-SNAPSHOT (No such file or directory)
       at java.io.FileInputStream Source code of java.io.FileInputStream(Native Method)
       at java.io.FileInputStream Source code of java.io.FileInputStream<init>(FileInputStream.java:106)
       at
org.codehaus.cargo.container.tomcat.internal.AbstractTomcatDeployer.deploy(
AbstractTomcatDeployer.java:115)


When I copy the not-found path and execute the following, I get something:

% ls -lad
/Users/germuska/Development/myriad/webapp-customization/target/webapp-
customization-1 (See http://ion-1.ora-code.com).0-SNAPSHOT
drwxr-xr-x   20 germuska  admin  680 Jan  8 13:29
/Users/germuska/Development/myriad/webapp-customization/target/webapp-
customization-1 (See http://ion-1.ora-code.com).0-SNAPSHOT

Any suggestions on how to dig more deeply on this?  Below is the cargo
section of my effective POM.  One thing which seems a little odd is that the
<location> element is only partially interpolated, although as seen in the
error message, it ends up fully interpolated by that point.  So I don't know
if that is of any import or not.

     <plugin>
       <groupId>org.codehaus.cargo</groupId>
       <artifactId>cargo-maven2-plugin</artifactId>
       <configuration>
         <container>
           <containerId>tomcat5x</containerId>
           <home>/opt/tomcat</home>
           <type>remote</type>
         </container>
         <configuration>
           <type>runtime</type>
           <properties>
             <cargo.remote.username>*****</cargo.remote.username>
             <cargo.remote.password>*****</cargo.remote.password>
             <cargo.servlet.port>9000</cargo.servlet.port>
           </properties>
         </configuration>
         <deployer>
           <type>remote</type>
           <deployables>
             <deployable>
               <location>${project.build.directory}/webapp-
customization-1 (See http://ion-1.ora-code.com).0-SNAPSHOT</location>
               <properties>
                 <context>customization</context>
               </properties>
             </deployable>
           </deployables>
         </deployer>
       </configuration>
     </plugin>

Thanks in advance...

Joe

--
Joe Germuska
Joe@(protected) * http://blog.germuska.com

"The truth is that we learned from Jo?o forever to be out of tune."
-- Caetano Veloso

©2008 junlu.com - Jax Systems, LLC, U.S.A.