> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron > Mulder > Sent: lundi 13 février 2006 23:04 > To: [email protected] > Subject: Re: offline deployment with deploy distribute? > > Well, I should mention that you can dump the module in the hot deploy > directory, which may be good enoguh to get you going for now. > Currently we don't notice if you dumped a *newer* copy of the file in > there while the server was down, but if it's a new deployment it'll > get deployed next time the server starts. The down side is we don't > validate anything when you copy it in there, only when the server > starts up and attempts the deployment.
Ok that explains a few things! Thanks for mentioning it. Thanks -Vincent > On 2/13/06, Vincent Massol <[EMAIL PROTECTED]> wrote: > > Hi Aaron, > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Aaron > > > Mulder > > > Sent: lundi 13 février 2006 20:15 > > > To: [email protected] > > > Subject: Re: offline deployment with deploy distribute? > > > > > > The offline option has gone away for 1.0. There are Maven tasks you > > > can use to start the server, deploy some stuff, and then shut the > > > server down again -- not sure if that would work for you. > > > > I need a Java API for integrating it in Cargo. Right now one integration > > pain is that it's not possible to relocate the location of the var/ > > directory. David Jencks made a proposal on this list last week but I > don't > > know if it has progressed much since then. > > > > > There was > > > talk about creating a dedicated offline development tool, but I don't > > > think it's been a super-high priority. Of course, having more use > > > cases helps motivate things like that. :) > > > > I'm pretty sure you'll have users ask for this. It's useful in situation > > where you need to prepare a container configuration and package it as > part > > of your build for example. I know you guys are working on a packager > that > > would create a G configuration but unfortunately the current > implementation > > is using Maven1 and is not easily reusable in Java code. If you had a > pure > > java implementation independent of Maven that would help a lot. > > > > In any case all containers do support offline deployments so I'm pretty > sure > > G will have to provide that too in some manner. > > > > > I'm not sure if there's a JIRA for this or not -- if you get a chance, > > > can you review the JIRAs in the "deployment" category and see if > > > there's one discussing offline deployment and if not add one and > > > describe why you need it? > > > > Kevan pointed me to http://issues.apache.org/jira/browse/GERONIMO-1507. > > > > Thanks > > -Vincent > > > > > On 2/13/06, Vincent Massol <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > Still working on the G integration in Cargo. I need to find a way to > > > deploy > > > > an archive before the container is started. I read on > > > > http://tinyurl.com/8dfxj that I should use the distribute command > with > > > the > > > > --offline option. > > > > > > > > I'm using G 1.0 and it's failing: > > > > > > > > C:\apps\geronimo-1.0-tomcat\bin>java -jar deployer.jar --offline > > > distribute > > > > C:\dev\m2book\code\j2ee\daytrader\ear\target\daytrader-ear-1.0- > > > SNAPSHOT.ear > > > > C:\dev\m2book\code\j2ee\daytrader\ear\src\main\deployment\dayTrader- > > > plan.xml > > > > > > > > Error: No such command: '--offline' > > > > > > > > > > > > Command-line deployer syntax: > > > > deployer [general options] command [command options] > > > > > > > > [...] > > > > > > > > If I don't use --offline I get: > > > > > > > > C:\apps\geronimo-1.0-tomcat\bin>java -jar deployer.jar distribute > > > > C:\dev\m2book\code\j2ee\daytrader\ear\target\daytrader-ear-1.0- > > > SNAPSHOT.ear > > > > C:\dev\m2book\code\j2ee\daytrader\ear\src\main\deployment\dayTrader- > > > plan.xml > > > > Error: Unable to connect to server at deployer:geronimo:jmx -- > > > > javax.naming.ServiceUnavailableException [Root exception is > > > > java.rmi.ConnectException: Connection refused to host: > localhost; > > > > nested exception is: > > > > > > > > java.net.ConnectException: Connection refused: connect] > > > > > > > > Any idea? Is the --offline option supported in G 1.0? > > > > > > > > Thanks > > > > -Vincent > > > > > > > > > > > >
