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

Add config file cause Unable to load error

    Details

      Description

      Step to reproduce:

      1. Add com.liferay.captcha.configuration.CaptchaConfiguration.config with maxChallenges="0" to osgi/configs
      2. Startup portal
      3. Go to Configuration > System Settings > Security Tools > CAPTCHA
      4. Set reCAPTCHA Public Key to 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
      5. Set reCAPTCHA Private Key to 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
      6. Click save

      Actual result:
      Error in console:

      19:33:03,497 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: pid=com.liferay.captcha.configuration.CaptchaConfiguration)][SimpleCaptchaImpl:512] Unable to load 
            java.lang.ClassNotFoundException:  cannot be found by com.liferay.captcha.api_2.1.1
            	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:508)
            	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:419)
            	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:411)
            	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:151)
            	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
            	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._loadClass(SimpleCaptchaImpl.java:523)
            	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl._getInstance(SimpleCaptchaImpl.java:505)
            	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.initGimpyRenderers(SimpleCaptchaImpl.java:323)
            	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:173)
            	at com.liferay.captcha.simplecaptcha.SimpleCaptchaImpl.activate(SimpleCaptchaImpl.java:185)
            	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            	at java.lang.reflect.Method.invoke(Method.java:498)
            	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228)
            	at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41)
            	at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664)
            	at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510)
            	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:317)
            	at org.apache.felix.scr.impl.inject.methods.ActivateMethod.invoke(ActivateMethod.java:307)
            	at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeModifiedMethod(SingleComponentManager.java:837)
            	at org.apache.felix.scr.impl.manager.SingleComponentManager.modify(SingleComponentManager.java:792)
            	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:710)
            	at org.apache.felix.scr.impl.manager.SingleComponentManager.reconfigure(SingleComponentManager.java:674)
            	at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.configurationUpdated(ConfigurableComponentHolder.java:435)
            	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport.configurationEvent(RegionConfigurationSupport.java:317)
            	at org.apache.felix.scr.impl.manager.RegionConfigurationSupport$2.configurationEvent(RegionConfigurationSupport.java:119)
            	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1685)
            	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1637)
            	at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138)
            	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105)
            	at java.lang.Thread.run(Thread.java:745)
                LIFERAY_ERROR: Unable to load 
                Log out of Liferay Portal.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              della.wang Della Wang (Inactive)
              Reporter:
              sylvia.luan Sylvia Luan
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Marta Medio (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 5 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP20
                  7.1.10.5 SP5
                  7.1.X
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.3.X
                  7.4.13 DXP GA1
                  Master