I think the deployer can silently fail. It doesn't print anything;
the program just exits.
Neal, if you have time we have a set of java beans that we wrap in
maven to do deployment, and I'm pretty sure it would be simple to
make ant tasks out of these. The code is in
org.apache.geronimo.deployment.mavenplugin but they don't use any
maven classes at all.
-dain
On Jun 8, 2005, at 11:30 PM, David Jencks wrote:
dont like maven, huh? :-) This might be easier with the geronimo
maven plugin.
I wonder if the times it fails there is a geronimo server running
without the org/apache/geronimo/RuntimeDeployer configuration
started. If so, the deployer.jar will try to connect but not
succeed... the needed pieces are missing.
thanks
david jencks
On Jun 8, 2005, at 10:00 PM, Neal Sanche wrote:
Hi All,
I've built a little Ant script to deploy my app at the end of a
build. The task looks like this:
<target name="deploy" depends="compile,package" description="--
> A simple Geronimo Phonebook JDBC Application">
<java jar="${geronimo.root}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="undeploy"/>
<arg value="PhoneBookWeb"/>
</java>
<java jar="${geronimo.root}/bin/deployer.jar" fork="true">
<arg value="--user"/>
<arg value="${geronimo.user}"/>
<arg value="--password"/>
<arg value="${geronimo.password}"/>
<arg value="deploy"/>
<arg value="phonebook.war"/>
</java>
</target>
The problem is that this seems to be somewhat unpredictable.
Sometimes it works, and usually it doesn't and I have to undeploy
manually. Is there a more effective way to pull this off with the
latest geronimo builds? I've built as of last Saturday or so.
Thanks a ton in advance.
Cheers.
-Neal