geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <ammul...@alumni.princeton.edu>
Subject Re: How to use the deploy plugin
Date Mon, 19 Dec 2005 13:50:21 GMT
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 <eljotpl@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
>

Mime
View raw message