Hi Dain, and David,
Well, I'm not as experienced with Maven as I am with Ant, so that may be
the reason for my question. I will definitely give the topic a look, and
read through the maven plugin source code when I have time to see what
it's doing. Thanks for the pointers.
I am doing some in depth learning of what has occurred in Geronimo since
my attention span slipped sometime last year. I've written and deployed
my first very small JSP application with JDBC connector, and was able to
do a database query and print some results. So, being encouraged by that
I decided to understand more about the deployer, and hence my question.
I'm pretty sure my server was running the RuntimeDeployer configuration,
but since I am new to your deployment plan based deployer, I may have
done something that caused it not to be there for a while when I was
seeing the problems. I guess it's the price paid for extreme modularity,
so only experience can help me (definitely not a fault).
So far I am quite happy to be back. I'll let you know if I have questions.
Cheers.
-Neal
Dain Sundstrom wrote:
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