Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View JBoss Management on the plugin site for more information.

This plugin allows to manage a JBoss Application Server during build procedure.
With the plugin we can start/stop JBoss AS. It's very useful if we need to run some integration tests against of the server. There is also operation allows verification if artifacts are deployable.

The plugin is using JMX to communicate with JBoss AS so there is possible to implement other features.

Supported versions

The plugin was tested on JBoss AS versions:

  • 4.0.5.GA
  • 4.2.2.GA

I'm looking for feedback if the plugin works with other versions as well.

Requirements

Recommended version of the Hudson is 1.355.

Known issues

  • There is a problem to add more then one step in build procedure at once. This problem is related to JENKINS-5028 and be managed in jboss component JENKINS-5635. Current workaround is to create one step save configuration and add another step by edit job configuration and again. Sorry for that but couldn't find quicker solution at this moment. (It looks like the problem not occuring in 1.355 version of Hudson)
  • There is a problem with version of log4j. The issue is related to JENKINS-4433 and be managed in jboss component in JENKINS-5709. (This issue is not occuring in Hudson 1.355)

Changelog

Version 1.0.5 (4-Nov-2011)
  • added bind address option
Version 1.0.4 (20-Aug-2011)
  • remote server functionality added
  • do not cache global configuration (JENKINS-6306)
  • remove unnecessary stacktraces logging (JENKINS-6305)
Version 1.0.3 (20-Apr-2010)
  • added timeout to global server configuration, it will be honor during START_AND_WAIT operation
  • added support to verify WARs by CHECK_DEPLOYMENT operation
Version 1.0.2 (18-Feb-2010)
  • fixes in build step configuration
Version 1.0.1 (12-Feb-2010)
  • javadoc-ing, wiki page created
Version 1.0 (10-Feb-2010)
  • Initial release.

4 Comments

  1. Unknown User (vinay.binny@coreobjects.com)

    How Do I use this plugin? I installed it on my Hudson and was able to see it under the main Hudson configuration where I set JBoss Home etc.

    But I am unable to see anything related to the JBoss Plugin while configuring any jobs.

    I am using Hudson 1.355 with JBoss Management Plugin 1.0.3  on CentOs.

    Thanks,

    Chris.

    1. Unknown User (kipper)

      Did you configure the plugin under Manage Hudson/system configuration?

  2. Unknown User (kipper)

    Question about using jboss management with nodes. Seems like we can only use this plugin for local installations of hudson?

    Thanks,

    -Kip

  3. Unknown User (googles06)

    I am using Jenkins 1.494 to start and stop JBoss 5.1.0.GA. I would like to know the work around for this issue. this issue happens when I choose Start and wait option.
    START_AND_WAIT: Checking if server is already running (max 20 seconds)...
    START_AND_WAIT: Going to start server with timeout 90 seconds...
    bin $ cmd.exe /C '"D:\Gowthaman\jboss-5.1.0.GA\/bin/run.bat -c http://localhost:8081 -b 0.0.0.0 && exit %%ERRORLEVEL%%"' -D-b=0.0.0.0
    Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
    java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$1.run(LogManager.java:167)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Can't load log handler "1catalina.org.apache.juli.FileHandler"
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$3.run(LogManager.java:358)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.addLogger(LogManager.java:566)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Can't load log handler "1catalina.org.apache.juli.FileHandler"
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
    java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$3.run(LogManager.java:358)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1032)
    at java.util.logging.LogManager.access$1100(LogManager.java:129)
    at java.util.logging.LogManager$RootLogger.addHandler(LogManager.java:1103)
    at java.util.logging.LogManager$3.run(LogManager.java:372)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.addLogger(LogManager.java:566)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Can't load log handler "2localhost.org.apache.juli.FileHandler"
    java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler
    java.lang.ClassNotFoundException: 2localhost.org.apache.juli.FileHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$3.run(LogManager.java:358)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1032)
    at java.util.logging.LogManager.access$1100(LogManager.java:129)
    at java.util.logging.LogManager$RootLogger.addHandler(LogManager.java:1103)
    at java.util.logging.LogManager$3.run(LogManager.java:372)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.addLogger(LogManager.java:566)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Can't load log handler "3manager.org.apache.juli.FileHandler"
    java.lang.ClassNotFoundException: 3manager.org.apache.juli.FileHandler
    java.lang.ClassNotFoundException: 3manager.org.apache.juli.FileHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$3.run(LogManager.java:358)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1032)
    at java.util.logging.LogManager.access$1100(LogManager.java:129)
    at java.util.logging.LogManager$RootLogger.addHandler(LogManager.java:1103)
    at java.util.logging.LogManager$3.run(LogManager.java:372)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.addLogger(LogManager.java:566)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Can't load log handler "4host-manager.org.apache.juli.FileHandler"
    java.lang.ClassNotFoundException: 4host-manager.org.apache.juli.FileHandler
    java.lang.ClassNotFoundException: 4host-manager.org.apache.juli.FileHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.util.logging.LogManager$3.run(LogManager.java:358)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1032)
    at java.util.logging.LogManager.access$1100(LogManager.java:129)
    at java.util.logging.LogManager$RootLogger.addHandler(LogManager.java:1103)
    at java.util.logging.LogManager$3.run(LogManager.java:372)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:345)
    at java.util.logging.LogManager.addLogger(LogManager.java:566)
    at java.util.logging.LogManager$1.run(LogManager.java:181)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at java.util.logging.Logger.getLogger(Logger.java:287)
    at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)
    at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:362)
    at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
    at org.jboss.Main.boot(Main.java:215)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    log4j:ERROR Failed to create directory structure: D:\Gowthaman\jboss-5.1.0.GA\server\http:\localhost:8081\log
    log4j:ERROR setFile(null,false) call failed.
    java.io.FileNotFoundException: D:\Gowthaman\jboss-5.1.0.GA\server\http:\localhost:8081\log\boot.log (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
    at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
    at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
    at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
    at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
    at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
    at org.jboss.logging.log4j.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:70)
    at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:603)
    at org.jboss.logging.Logger.<init>(Logger.java:119)
    at org.jboss.logging.Logger.getLogger(Logger.java:567)
    at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:204)
    at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
    at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
    at org.jboss.Main.boot(Main.java:218)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Failed to boot JBoss:
    java.lang.RuntimeException: Error unmarshalling http://localhost:8081/conf/bootstrap.xml
    at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:60)
    at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:123)
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: http://localhost:8081/conf/bootstrap.xml
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
    at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:119)
    at org.jboss.bootstrap.xml.BootstrapParser.parse(BootstrapParser.java:53)
    ... 5 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
    at sun.net.www.http.HttpClient.New(HttpClient.java:300)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
    ... 7 more
    START_AND_WAIT: JBoss AS is not started before timeout (90 sec) has expired!
    Build step 'JBoss Management' marked build as failure