Installing Hudson on WebLogic Server

Today I needed to set up a Hudson server and so I decided to put it on WebLogic Server.  Turns out there is a little trick to get it working.  Thanks to Steve Button for sharing the trick with me. 🙂

I installed Hudson 1.396 on WebLogic Server 10.3.4 running on Oracle Linux 5.5 (64-bit).

First you need to download the hudson.war file from the Hudson site.  We need to add a WebLogic deployment descriptor to it so that it wont have any classpath/library  problems.

In the directory where you saved hudson.war create a new directory called WEB-INF and inside that a file called weblogic.xml.  Here is the contents for the file:

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app
  xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
  <container-descriptor>
    <prefer-application-packages>
      <package-name>org.apache.*</package-name>
      <package-name>org.dom4j.*</package-name>
    </prefer-application-packages>
  </container-descriptor>
</weblogic-web-app>

Now you need to add this file into the hudson.war using the following command:

# jar uvf hudson.war WEB-INF/weblogic.xml

Now we are ready to install Hudson!

Log in to the WebLogic Server adminstration console at http://yourserver:7001/console and start a new edit session (click on Lock and Edit).  Note that you wont have to do this if you are running your server in development mode.

Now click on Deployments in the navigation tree on the left and then click on the Install button.

Click on the link to upload your file(s) and point it to your updated hudson.war.  After it is uploaded, check it is selected and click on Next.

Click Next on the next screen.

Select a managed server to deploy Hudson on.  I used my soa_server1.  Then click on Next.

Click Next on the next screen.

Click on Finish.  After a few moments your application will be installed.

If you are running your server in production mode, you will need to click on the Activate Changes button.  Then return to the Deployments screen, find your newly installed application (hudson), tick the box next to it and click on the Start button and then Servicing all requests.  This will start Hudson on your WebLogic Server.

Now you can open up a browser and visit the Hudson home page at http://yourserver:8001/hudson.  Note that you will have to change the port to match your environment.

More about Hudson later… but for now, enjoy!

About Mark Nelson

Mark Nelson is a Developer Evangelist at Oracle, focusing on microservices and messaging. Before this role, Mark was an Architect in the Enterprise Cloud-Native Java Team, the Verrazzano Enterprise Container Platform project, worked on Wercker, WebLogic and was a senior member of the A-Team since 2010, and worked in Sales Consulting at Oracle since 2006 and various roles at IBM since 1994.
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

4 Responses to Installing Hudson on WebLogic Server

  1. Pingback: Getting started with Continuous Integration for SOA projects | RedStack

  2. wright2matt says:

    Great post. We have also set-up Hudson on WebLogic, a few extra tips can be found here http://www.rubiconred.com/blog/deploying-hudson-on-weblogic/

  3. Pingback: Gang oF-M-W Experts » Blog Archive » Deploying Hudson in Weblogic

Leave a comment