[JIRA] Commented: (CC-534) CruiseControl Hangs while trying to start the JBoss server
"Jan Koops (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.devel |
|---|---|
| Message-ID | <1271168632.1286461129887.JavaMail.jira@chidmzhosting02.thoughtworks.com> |
[ http://jira.public.thoughtworks.org/browse/CC-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_18806 ]
Jan Koops commented on CC-534:
------------------------------
We solved this issue with the JDK 1.6 java.awt.Desktop.open method.
One could write an Ant Task or use JavaScript in ANT (the project-Object is provided by the ANT Runtime):
<script language="js">
importPackage(java.awt);
Desktop.getDesktop().open(project.getProperty("basedir"));
</script>
> CruiseControl Hangs while trying to start the JBoss server
> ----------------------------------------------------------
>
> Key: CC-534
> URL: http://jira.public.thoughtworks.org/browse/CC-534
> Project: CruiseControl
> Issue Type: Bug
> Components: Core Application
> Affects Versions: 2.5
> Reporter: Varun Bhambri
> Priority: Major
> Attachments: NantBuilderTest.java.patch, ScriptRunner.java.patch, ScriptRunner.java.patch, ScriptRunnerTest.java
>
>
> Hi,
> I'm using JBoss server for deploying our WebApplication. After the deployment by the ANT build file I want cruisecontrol to stop JBoss and then restart it.
> Cruisecontrol is able to stop the JBoss server but it hangs after restarting it. Following is my ANT build target that starts the JBoss server -
> <target name="startJBoss" depends="init">
> <parallel>
> <sequential>
> <echo> JBoss server will start in a few seconds... </echo>
> <sleep seconds="75"/>
> </sequential>
> <daemons>
> <exec os="${linux-os}" executable="${jboss.bin.dir}/run.sh"/>
> <exec os="${windows-os}" dir="${jboss.bin.dir}" executable="cmd">
> <arg line="/c run.bat"/>
> </exec>
> </daemons>
> </parallel>
> </target>
> And this is the part of my config.xml file for CruiseControl -
> <schedule interval="3600">
> <ant anthome="${ant-home}"
> antWorkingDir="${basedir}/checkout/myproj"
> buildfile="build.xml"
> timeout="40"
> uselogger="true"
> usedebug="false"
> target="startJBoss"
> saveLogDir="logs/myproj"/>
> </schedule>
> I've tried the steps given on "http://confluence.public.thoughtworks.org/display/CC/Starting+a+server+with+cc" but still the result is absolutely same i.e. it hangs while execution. I'm using Cruisecontrol-2.5, JBoss-3.2.6 and ANT-1.6.2.
> I believe that the timeout feature should make the CruiseControl stop building the process after 40 seconds with a build failed message. Is there any other way to do this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb