Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74477

JAXBException thrown by WebLogic 12c R2 when deploying RichFaces portlets

    Details

      Description

      The fix for this problem is to add the following to the module.framework.properties.org.osgi.framework.bootdelegation property in portal.properties:

      javax.xml.bind
      

      Steps to Reproduce

      1. Start Liferay DXP FP24 on WebLogic 12.2.1.2

      2. Build and deploy the richfaces-applicant-portlet from the 4.x branch of liferay-faces-bridge-impl.git

      Actual Results

      The following stacktrace appears in the WebLogic server log:

      Caused by: javax.xml.bind.DataBindingException: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundleresource://586.fwk527763212:11/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.
      	at javax.xml.bind.JAXB.unmarshal(JAXB.java:186)
      	at org.richfaces.javascript.ClientServiceConfigParser.parse(ClientServiceConfigParser.java:81)
      	... 69 more
      Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundleresource://586.fwk527763212:11/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.
      	at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:129)
      	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:265)
      	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:249)
      	at javax.xml.bind.ContextFinder.find(ContextFinder.java:442)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652)
      	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
      	at javax.xml.bind.JAXB$Cache.<init>(JAXB.java:127)
      	at javax.xml.bind.JAXB.getContext(JAXB.java:154)
      	at javax.xml.bind.JAXB.unmarshal(JAXB.java:183)
      	... 70 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 22 weeks, 3 days ago