Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-5643

Investigate Webapp Problems on WebLogic12R2

      AT:

      Debug why rest api and webapp isn't working correctly.

        This is the controller panel for Smart Panels app

            [CAM-5643] Investigate Webapp Problems on WebLogic12R2

            Christian added a comment -

            I was able to pin it down to classloading, trying a solution right now.

            Christian added a comment - I was able to pin it down to classloading, trying a solution right now.

            Christian added a comment -

            I found the cause of the error regarding the REST API. I assume the WebApp suffers from the same issue.

            Situation:
            WebLogic 12R2 is shipping Jersey 2 and Jackson 2.4.3.
            Also since version 2, Jersey is shipping Moxy as the default JSON processor.

            Solution:
            I wrote an weblogic.xml, which makes our Jackson classes available to the correct classloader. I also edited the web.xml to disable Moxy as default JSON processor for Jersey, so it uses our Jackson instead.

            Christian added a comment - I found the cause of the error regarding the REST API. I assume the WebApp suffers from the same issue. Situation: WebLogic 12R2 is shipping Jersey 2 and Jackson 2.4.3. Also since version 2, Jersey is shipping Moxy as the default JSON processor. Solution: I wrote an weblogic.xml, which makes our Jackson classes available to the correct classloader. I also edited the web.xml to disable Moxy as default JSON processor for Jersey, so it uses our Jackson instead.

            What is the difference to the setup in our test suite? Is moxy not included in the Jersey2 dependency we use there?

            Thorben Lindhauer added a comment - What is the difference to the setup in our test suite? Is moxy not included in the Jersey2 dependency we use there?

            Christian added a comment -

            thorben.lindhauer:

            Yes, we just include Jackson like for all others, not Moxy. Maybe we could reproduce it when declaring the Moxy dependency for Jersey. Will try that too.

            Christian added a comment - thorben.lindhauer : Yes, we just include Jackson like for all others, not Moxy. Maybe we could reproduce it when declaring the Moxy dependency for Jersey. Will try that too.

            Christian added a comment - - edited

            thorben.lindhauer:

            Using Moxy dependency together with Jersey breaks alot of things in the testsuite. For example the testsuite was unable to correctly serialize incoming requests to objects.
            Conclusion: We need to make sure that when Jersey or any other JAX-RS provider uses Moxy, only Jackson is used for JSON processing.

            Christian added a comment - - edited thorben.lindhauer : Using Moxy dependency together with Jersey breaks alot of things in the testsuite. For example the testsuite was unable to correctly serialize incoming requests to objects. Conclusion: We need to make sure that when Jersey or any other JAX-RS provider uses Moxy, only Jackson is used for JSON processing.

            Christian added a comment -

            I close this issue as the results of this work is committed as part of CAM-5608.

            Christian added a comment - I close this issue as the results of this work is committed as part of CAM-5608 .

              lipphardt Christian
              lipphardt Christian
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: