[ 
http://jira.codehaus.org/browse/MJBOSS-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff Genender closed MJBOSS-8.
------------------------------

    Resolution: Fixed

Patch applied. Thanks.

> JBoss:create does not starj jboss on Windows XP
> -----------------------------------------------
>
>                 Key: MJBOSS-8
>                 URL: http://jira.codehaus.org/browse/MJBOSS-8
>             Project: Maven 2.x JBoss Plugin
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>         Environment: Windows XP Maven 2 JDK 1.5 + plugin 1.3.2-SNAPSHOT
>            Reporter: J-C Walmetz
>         Attachments: AbstractJBossMojo.java, ConsoleTextBlocking.txt
>
>
> I try to start JBoss with the mvn jboss:start command. Server does not start. 
> I have patched AbstractJBossMojo.java to make it run:
> protected void launch(String fName, String params)
>       throws MojoExecutionException {
>       ...
>       if (osName.startsWith("Windows")) {
>         String command[] = {
>             "cmd.exe",
>             "/C",
>             "cd " + outputDirectory.getAbsolutePath() + "\\bin & " + fName
>                 + ".bat " + " " + params };
>         p = runtime.exec(command);
>         dump(p.getInputStream());
>         dump(p.getErrorStream());
>       } else {
>       ...
> protected void dump(final InputStream a_input) {
>     new Thread(new Runnable() {
>       public void run() {
>         try {
>           byte[] b = new byte[1000];
>           while ((a_input.read(b)) != -1) {
>           }
>         } catch (IOException e) {
>           e.printStackTrace();
>         }
>       }
>     }).start();
>   }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to