You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Aaron Mulder <am...@alumni.princeton.edu> on 2005/12/19 14:50:21 UTC

Re: How to use the deploy plugin

Try setting waitForStarted to wait for
"geronimo/j2ee-deployer/1.0/car" (or if you're running it,
"geronimo/hot-deployer/1.0/car", which is started very close to the
end).  Here's what I have about it:

http://chariotsolutions.com/geronimo/development-maven.html

If you don't mind a counter-question, what is the namespace
declaration for u as in "<u:sleep>"?

Thanks,
    Aaron

On 12/19/05, Jacek Laskowski <el...@gmail.com> wrote:
> Hi,
>
> I've been looking into it for the past 2 days and couldn't find anything
> satisfactory. I ended up with the following, but whenever distribute is
> called, I'm getting the error about missing runtime (or online)
> deployer. What's wrong with it? Should I use deployer.jar rather than
> the deploy plugin?
>
>          <deploy:unpackServer
>              geronimoVersion="${geronimo_version}"
>              geronimoArtifactId="geronimo-tomcat-j2ee"/>
>
>          <deploy:startRemoteServer
>              geronimoTarget="${instDir}"/>
>          <ant:echo message="Waiting for server at: ${instDir}"/>
>          <!-- TODO: No way to specify vv -->
>          <deploy:waitForStarted
>              uri="jmx:rmi://localhost/jndi/rmi:/JMXConnector"
>              username="system"
>              password="manager"
>              maxTries="120"
>              id="geronimo/rmi-naming/1.0-SNAPSHOT/car"/>
>          <echo message="RMI Naming has started"/>
>          <u:sleep millis="60000"/>
>          <!-- TODO: Empty id leads to Exception -->
>          <!-- TODO: Different uri in start and waitForStarted  -->
>          <deploy:start
>              uri="deployer:geronimo:jmx"
>              username="system"
>              password="manager"
>              id="geronimo/online-deployer/1.0-SNAPSHOT/car"/>
>          <deploy:waitForStarted
>              uri="jmx:rmi://localhost/jndi/rmi:/JMXConnector"
>              username="system"
>              password="manager"
>              maxTries="120"
>              id="geronimo/online-deployer/1.0-SNAPSHOT/car"/>
>          <echo message="Online deployer has started"/>
>
>          <deploy:distribute
>              uri="deployer:geronimo:jmx"
>              username="system"
>              password="manager"
>
> module="${maven.repo.local}/activemq/rars/activemq-ra-${activemq_version}.rar"
>              plan="${maven.build.dir}/plan/adventure1.0.3-jms-ra-plan.xml"/>
>
> Jacek
>

Re: How to use the deploy plugin

Posted by Jacek Laskowski <el...@gmail.com>.
Aaron Mulder wrote:
> Try setting waitForStarted to wait for
> "geronimo/j2ee-deployer/1.0/car" (or if you're running it,
> "geronimo/hot-deployer/1.0/car", which is started very close to the
> end).  Here's what I have about it:
> 
> http://chariotsolutions.com/geronimo/development-maven.html

Thanks!

> If you don't mind a counter-question, what is the namespace
> declaration for u as in "<u:sleep>"?

xmlns:u="jelly:util"

>     Aaron

Jacek