Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.4.0, 1.4.1, 1.5.0
-
Fix Version/s: 1.5.0
-
Component/s: None
-
Labels:None
-
Environment:Fedora 13 x86_64, OpenJDK 1.6.0_18
-
Patch Submitted:Yes
-
Number of attachments :
Description
See AbstractJBossServerMojo.java.
When the OS is not Windows, JBoss is started as a Process without calling dump() on it's output streams. This means that when JBoss has logged ?? kbytes to the console, the process will PAUSE until someone flushes that buffer (which doesn't happen).
Effectively, this means that JBoss SOA-P 5.0.1 will pause halfway when trying to run it through jboss-maven-plugin.
Fix: copy line 115-116 and insert after line 123.
Index: AbstractJBossServerMojo.java
===================================================================
— AbstractJBossServerMojo.java (revision 12363)
+++ AbstractJBossServerMojo.java (working copy)
@@ -121,6 +121,8 @@
{ "sh", "-c", "cd " + jbossHome + "/bin; export JBOSS_HOME=\"" + jbossHome + "\"; ./" + commandName + ".sh " + " " + params };
proc = runtime.exec( command );
+ dump( proc.getInputStream() );
+ dump( proc.getErrorStream() );
}
}