Search code examples
javaeclipsemaven-2jboss

How can I see jboss console with maven


I started jboss-5.1.0.GA server with maven2, is there a possibility that I can see what is happening in the console. I'm using eclipse plugin to run maven. Is it possible to see console in eclipse or elsewhere?

Here is what I mean by console :

alt text

Is it possible to see this output somewhere? I took this screen shot when manually running jboss.

When I start the server with maven here is what I get :

[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[snrf] in [C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[337 msecs]
[INFO] Building war: C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war
[INFO] [jboss:hard-deploy]
[INFO] Copying C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war to C:\jboss-5.1.0.GA\server\default\deploy\0.0.1-SNAPSHOT.war
[INFO] [jboss:start]
[INFO] Starting JBoss...
[INFO] [install:install]
[INFO] Installing C:\HOME\c0mrade\Workspaces\Eclipse 3.5 Classic\snrf\target\0.0.1-SNAPSHOT.war to C:\HOME\c0mrade\.m2\repository\org\trialofmaven\0.0.1-SNAPSHOT\0.0.1-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------

And that is it. nothing is happening..

Thank you


Solution

  • Is it possible to see this output somewhere? I took this screen shot when manually running jboss.

    I'm don't think that the jboss-maven-plugin redirects the logs anywhere so you'll find them in

    $JBOSS_HOME/server/<your_server>/log
    

    Just in case, note that cargo has support for this (here, I'm getting the console output in cargo.log):

    <plugin>    
      <groupId>org.codehaus.cargo</groupId>    
      <artifactId>cargo-maven2-plugin</artifactId>    
      <version>1.0</version>    
      <configuration>    
        <container>    
          <containerId>jboss5x</containerId>    
          <home>${jboss.home}</home>    
          <append>false</append>    
          <log>${basedir}/target/jboss5.x.logs/cargo.log</log>    
          <timeout>300000</timeout> <!-- 5 minutes -->    
        </container>    
        <configuration>    
          <type>existing</type>    
          <home>${jboss.home}/server/default</home>    
          <properties>    
            <cargo.jboss.configuration>default</cargo.jboss.configuration>    
            <cargo.rmi.port>1099</cargo.rmi.port>    
            <cargo.logging>high</cargo.logging>    
          </properties>    
        </configuration>    
        <wait>false</wait>    
      </configuration>    
      ...
    </plugin>
    

    P.S.: I really wonder why you don't start JBoss with the WTP from Eclipse by the way.