The Artima Developer Community
Sponsored Link

Java Buzz Forum
Cruisecontrol not starting JBoss container

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bill de hÓra

Posts: 1137
Nickname: dehora
Registered: May, 2003

Bill de hÓra is a technical architect with Propylon
Cruisecontrol not starting JBoss container Posted: Apr 20, 2005 3:36 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Bill de hÓra.
Original Post: Cruisecontrol not starting JBoss container
Feed Title: Bill de hÓra
Feed URL: http://www.dehora.net/journal/atom.xml
Feed Description: FD85 1117 1888 1681 7689 B5DF E696 885C 20D8 21F8
Latest Java Buzz Posts
Latest Java Buzz Posts by Bill de hÓra
Latest Posts From Bill de hÓra

Advertisement
Came across this one in work yesterday. What's happening is that some of the guys are using Cruisecontrol (2.2) to run a nightly build along with a deploy/smoketest into JBoss; as part of the build JBoss is stopped, and then started via a Java target. This setup works fine when the build is called directly via Ant, but when run from Cruisecontrol, JBoss is not started and the Cruisecontrol cycle hangs. Here's the Cruisecontrol fragment that calls the ant build file: <schedule> <ant time="0300" antscript="C:/Projects/P3/build/cc-build.bat" antworkingdir="C:/Projects/P3/build" buildfile="cc-build.xml" uselogger="true"/> </schedule> The target in cc-build.xml being invoked looks like this: <target name="build" depends="stop.appserver, init, clean, get-code"> <ant antfile="build.xml" dir="${src.localpath}\build" target="nightly-build"/> <antcall target="start.appserver"/> </target> And the start.appserver target looks like this: <target name="start.appserver" description="Start the Appserver server." depends="init"> <java dir="${appserver.home.dir}/bin" classname="org.jboss.Main" fork="true" spawn="true"> <arg line="-c default"/> <jvmarg value="-Xms32m"/> <jvmarg value="-Xmx200m"/> <classpath> <pathelement path="${appserver.home.dir}/bin/run.jar"/> <pathelement path="${java.home}/lib/tools.jar"/> </classpath> </java> </target> I suspect the JBoss JVM process is forking out in a way that perhaps has the Cruisecontrol JVM hung waiting for it to return. I haven't had to time to really go digging into this but I'm thinking that an exec target might work better instead of Java. Another possibility I suppose is that the running JBoss is not being stopped fully before the new instance is started (but that doesn't happen via Ant). Anyhow, I thought I'd throw out there to see if anyone had come cross this before....

Read: Cruisecontrol not starting JBoss container

Topic: Type 1 diabetics required for &#8220;ground-breaking&#8221; vision study Previous Topic   Next Topic Topic: The muse always comes late

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use