Deploy WebSphere Plugin

Plugin Information

Plugin ID deploy-websphere
Latest Release 1.0
Latest Release Date Jun 02, 2010
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

Overview

This plugin is an extension of the Deploy Plugin. It takes a war/ear file and deploys that to a running remote WebSphere Application Server at the end of a build.
The plugin currently supports:

  • WebSphere Application Server 6.1 (with security disabled)

Installation

To run this plugin against a Hudson installation, the following extra step need to be taken:

  • The following WAS JAR files need to be placed into the Hudson class path or dropped into the %project.basedir%/WEB-INF/lib/  directory. These JAR files can be copied from the %WAS_HOME%/runtimes/ directory of your WAS server installation.
    • com.ibm.ws.admin.client_6.1.0
    • com.ibm.ws.webservices.thinclient_6.1.0

Failure to follow the above steps will mean the plugin will not operate.

User guide

Release Plan

  • WebSphere Application Server 6.1/7 (with security disabled) (DONE)
  • WebSphere Application Server 6.1/7 (with security enabled) (soon)
  • WebSphere Portal Server 6.1 (soon)

Known Issues

Version history

Version 1.0 (Jun 2, 2010)

  • Initial release : WebSphere Application Server 6.1 (with security disabled)

FAQ

How disable WAS security

  1. Open admin console: Start -> Programs -> IBM Websphere -> Application Server -> Profiles-> <SERVER_NAME> -> First Steps -> Administrative Console.
  2. Login and proceed: Security -> Secure administration, applications, and infrastructur.
  3. Clear "Enable administrative security" checkbox under Administrative security.
  4. Apply, save settings, restart WAS.

The plugin executes without exceptions but it does not do anything

This plugin depends on Deploy Plugin. The last version of the Deploy Plugin (1.5) seems to have some issue affecting also the Deploy WebSphere plugin. Downgrading the Deploy Plugin to version 1.4 should solve the problem.

Labels:

plugin-upload plugin-upload Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jul 07, 2011

    Troy Town says:

    Question: 1. Does this plugin work also for Jenkins? 2. Where is Hudson class ...

    Question:

    1. Does this plugin work also for Jenkins?

    2. Where is Hudson class path located on Linux?

    3. Will this also work with WebSphere 7.0

  2. Jul 18, 2011

    Troy Town says:

    Regarding the WebSphere plugin…. After placing the required .jar files into the ...

    Regarding the WebSphere plugin…. After placing the required .jar files into the %project.basedir%/WEB_INF/lib/ directory, Jenkins can’t restart. I have to remove the two WAS jar files in order for Jenkins to start up again. Has anyone had this problem and is there a fix?

    1. Jul 27, 2011

      netslow says:

      I have the same problem. Can't find any workaround. Antonio, what can you say? H...

      I have the same problem. Can't find any workaround. Antonio, what can you say?
      Here is log:

      Running from: C:\Hudson\hudson.war
      webroot: EnvVars.masterEnvVars.get("HUDSON_HOME")
      [Winstone 2011/07/27 13:54:16] - Beginning extraction from war file
      [Winstone 2011/07/27 13:54:17] - Container startup failed
      java.lang.ClassCastException: hudson.util.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
      at winstone.FilterConfiguration.getFilter(FilterConfiguration.java:128)
      at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:915)
      at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
      at winstone.HostConfiguration.<init>(HostConfiguration.java:73)
      at winstone.HostGroup.initHost(HostGroup.java:85)
      at winstone.HostGroup.<init>(HostGroup.java:45)
      at winstone.Launcher.<init>(Launcher.java:196)
      at winstone.Launcher.main(Launcher.java:391)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at Main._main(Main.java:248)
      at Main.main(Main.java:95)

      1. Jul 27, 2011

        Antonio Sanso says:

        guys apologies for the inconvenience. I have done this plugin last year for Huds...

        guys apologies for the inconvenience. I have done this plugin last year for Hudson and use to work fine. Unlikely due IP (I have changed job) I cannot contribute through the migration to Jenkins.

        Keep also in mind about the limitation of this plugin that works just with security disabled.

  3. Oct 09, 2011

    Yanqing Lin says:

    Is it the open source project?  I can not find it at https://github.com/hud...

    Is it the open source project?  I can not find it at https://github.com/hudson-plugins.

    Anyone knows the location of the source code?

    1. Oct 09, 2011

      Yanqing Lin says:

      Source code available at Jenkins site: https://svn.jenkins-ci.org/trunk/hudson/p...
  4. Feb 07, 2012

    Akilan Paulraj says:

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/ibm/webspher...

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/ibm/websphere/management/Session
    org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:603)
    org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
    org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)

     root cause

    java.lang.NoClassDefFoundError: com/ibm/websphere/management/Session
    hudson.plugins.deploy.websphere.WebSphereAdapter.<init>(WebSphereAdapter.java:62)
    hudson.plugins.deploy.websphere.WAS61Adapter.<init>(WAS61Adapter.java:25)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    dear friends,

    i have added deploy-websphere plugin, after configuring websphere URL, while saving the settings i am getting the above error.

    pls help me how to solve this

    1. Feb 20, 2012

      Vincent Jansen says:

      Put the jars "com.ibm.ws.admin.client_6.1.0.jar" and "com.ibm.ws.webservices.thi...

      Put the jars "com.ibm.ws.admin.client_6.1.0.jar" and "com.ibm.ws.webservices.thinclient_6.1.0.jar" in the plugins\deploy-websphere\WEB-INF\lib directory.