Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3704

Deployment of POJO WS fails silently when WAR includes JSR 181 API jar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • EAP_EWP 5.1.0
    • EAP 5.0.0
    • Web Services
    • None
    • RHEL 5.4, EAP 5.0

    Description

      Deploying a POJO WS fails silently in EAP 5.0 if the WAR contains the JSR 181 API library (jsr-181-api.jar) in WEB-INF/lib. Removing the library fixes the problem and the POJO WS is deployed successfully. This is worth looking into for two reasons:

      1) There is no indication during deployment that anything has gone wrong. An exception is thrown when you try and access the WS endpoint, but it's of little use to the end user/developer (ClassCastException).
      2) The same WAR deploys successfully to EAP 4.3, which brings up the question of whether this is intended behavior or not.

      I have attached a WAR file (PojoWS.war) to this JIRA that can be used to reproduce the issue. I have also attached the maven project (pojows.zip) which includes the source for the POJO WS.

      Deploying on EAP 5.0
      ======================================================

      • The only output to the console and server log (no errors):
        17:04:34,567 INFO [TomcatDeployment] deploy, ctxPath=/PojoWS
      • JBoss WS status page shows:
        "There are currently no endpoints deployed"
      • Trying to access the SOAP endpoint yields (full stack attached):
        java.lang.ClassCastException: com.examples.PojoWS cannot be cast to javax.servlet.Servlet

      Deploying on EAP 4.3
      ======================================================

      Attachments

        1. PojoWS.war
          9 kB
        2. pojows.zip
          5 kB
        3. stack-trace.txt
          2 kB

        Activity

          People

            darran.lofthouse@redhat.com Darran Lofthouse
            kbabo1@redhat.com Keith Babo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: