Struts 2
  1. Struts 2
  2. WW-2999

Convention plugin and jar scanning failing on Websphere

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.1.8
    • Component/s: Plugin - Convention
    • Labels:
      None
    • Environment:

      Websphere 6.1

      Description

      Hi,

      I am upgrading an existing project from struts 2.0.14 to 2.1.6. We are using the zero configuration approach, and the classpath scanning ability.

      The application is running on Websphere 6.1, and I had a lot of trouble having it work. My 2 major issues were :

      • Classes of the current project not being scanned : This url file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/F6FMSWASTSTNode02Cell/fms-ear.ear/fms-web.war/WEB-INF/classes/ was originally excluded by the filters in the convention plugin. I'll let you know exactly which one did that
      • We had some action classes in a dependency jar, and it didn't get included because of the wsjar protocol. See http://jira.opensymphony.com/browse/XW-669 for more documentation on this protocol and its inclusion in Xwork. The url look like :
        wsjar:file:/C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv02/installedApps/F6FMSWASTSTNode02Cell/fms-ear.ear/fms-web.war/WEB-INF/lib/axis-1.4.jar!/
        And are not processed by com.opensymphony.xwork2.util.finder.ClassFinder.

      I'll add more detail as I dig into this and let you know how I worked around it (except by moving to a real application server.... )

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Denis Cabasson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development