Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3241

Jackrabbit does not deploy on JBoss AS 7.1.0 Final

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.10
    • Fix Version/s: None
    • Component/s: jackrabbit-jca
    • Labels:
      None

      Description

      When deploying Jackrabbit JCA rar (resource adapter archive) on JBoss 7.1.0 final we have the following errors:
      Section: 19.4.2
      Description: A ResourceAdapter must implement a "public int hashCode()" method.
      Code: org.apache.jackrabbit.jca.JCAResourceAdapter

      Severity: ERROR
      Section: 19.4.2
      Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
      Code: org.apache.jackrabbit.jca.JCAResourceAdapter

      JBoss ironjacamar runs a validation sequence on the JCAResourceAdapter which seems to not conform to EE6 specifications.

      I tried with latest jackrabbit version and I have the same result.
      I need to use jackrabbit with JBoss 7.1.0 so this issue is kind of blocking.

        Activity

        Hide
        mslama Marek Slama added a comment -

        FYI: I just tried to patch org.apache.jackrabbit.jca.JCAResourceAdapter to implement those 2 missing methods, delegating them to superclass (Object) and it seems to work fine. As workaround it seems ok. Anyway I have no idea what would be correct implementation of those 2 methods.

        I also had to change jndi name. JBoss 7.1 requires jndi name starts with java:/

        Show
        mslama Marek Slama added a comment - FYI: I just tried to patch org.apache.jackrabbit.jca.JCAResourceAdapter to implement those 2 missing methods, delegating them to superclass (Object) and it seems to work fine. As workaround it seems ok. Anyway I have no idea what would be correct implementation of those 2 methods. I also had to change jndi name. JBoss 7.1 requires jndi name starts with java:/
        Hide
        stillalex Alex Deparvu added a comment -

        If I understand correctly ironjacamar uses the 1.6 spec to validate the archives which is more strict that the 1.5 version.
        So apparently the temporary workaround is to disable archive validation within the JCA subsystem.

        I'll lower the priority as the workaround seems pretty common for other projects who ran into the same issue.

        Can you test Marek's solution and just add hashCode & equals and see if that is enough to get you going?

        Show
        stillalex Alex Deparvu added a comment - If I understand correctly ironjacamar uses the 1.6 spec to validate the archives which is more strict that the 1.5 version. So apparently the temporary workaround is to disable archive validation within the JCA subsystem. I'll lower the priority as the workaround seems pretty common for other projects who ran into the same issue. Can you test Marek's solution and just add hashCode & equals and see if that is enough to get you going?
        Hide
        rick-rainer.ludwig Rick-Rainer Ludwig added a comment -

        I also run into this issue with latest Jackrabbit RAR version 2.8.0 and JBoss 7.1.1. Is a fix planned?

        Show
        rick-rainer.ludwig Rick-Rainer Ludwig added a comment - I also run into this issue with latest Jackrabbit RAR version 2.8.0 and JBoss 7.1.1. Is a fix planned?
        Hide
        leopal Leonidas Palyvas added a comment -

        I can reproduce this bug with Jackrabbit RAR version 2.15.7 and Wildfly 10. The deployment fails exactly with the same error message as reported above.

        Show
        leopal Leonidas Palyvas added a comment - I can reproduce this bug with Jackrabbit RAR version 2.15.7 and Wildfly 10. The deployment fails exactly with the same error message as reported above.
        Hide
        reschke Julian Reschke added a comment -

        If you are interested in JCA then please the previous comments, see whether the suggested change helps, and supply a patch.

        Show
        reschke Julian Reschke added a comment - If you are interested in JCA then please the previous comments, see whether the suggested change helps, and supply a patch.
        Hide
        leopal Leonidas Palyvas added a comment - - edited

        Julian Reschke In my case the workaround proposed at comment #2 fixes the reported error. However, after configuring properly wildfly I still couldn't successfully deploy rar. I finally managed to do the "job" by following steps described at these two links link1 , link2

        Show
        leopal Leonidas Palyvas added a comment - - edited Julian Reschke In my case the workaround proposed at comment #2 fixes the reported error. However, after configuring properly wildfly I still couldn't successfully deploy rar. I finally managed to do the "job" by following steps described at these two links link1 , link2

          People

          • Assignee:
            Unassigned
            Reporter:
            cmuresan Claudiu Muresan
          • Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development