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

ClassNotFoundException thrown by WebLogic 12c R2 when trying to load class weblogic.jndi.WLInitialContextFactory

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:

      weblogic.jndi,\
      weblogic.jndi.*
      

      Steps to Reproduce

      1. Start Liferay DXP 7.0 on WebLogic 12c R2

      2. Deploy the com.liferay.faces.demo.jsf.export.pdf.portlet.war (attached)

      Expected Results

      No error messages appear in the WebLogic server log.

      Actual Results

      The following stacktrace appears in the WebLogic server log:

      <Aug 18, 2016 1:37:51 PM EDT> <Warning> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory cannot be found by com.liferay.faces.demo.jsf.export.pdf.portlet_4.0.0]
      javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory cannot be found by com.liferay.faces.demo.jsf.export.pdf.portlet_4.0.0]
      	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
      	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
      	at javax.naming.InitialContext.init(InitialContext.java:244)
      	at javax.naming.InitialContext.<init>(InitialContext.java:192)
      	at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:835)
      	Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory cannot be found by com.liferay.faces.demo.jsf.export.pdf.portlet_4.0.0
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:444)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:357)
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:349)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	Truncated. see log file for complete stacktrace
      

      Attachments

        Activity

          People

            raven.song Raven Song
            neil.griffin Neil Griffin
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 7 weeks, 6 days ago

              Packages

                Version Package
                7.1.0 Beta 3
                7.1.X
                Master