Maven 2.x JBoss Plugin

Console buffer isn't flushed on linux, preventing Jboss SOA-P startup

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    0

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.

Activity

Hide
Jan Ypma added a comment -

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() );
}

}

Show
Jan Ypma added a comment - 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() ); } }
Hide
Paul Gier added a comment -

Fixed in r12377.

Show
Paul Gier added a comment - Fixed in r12377.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: