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

Reply via email to