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

Sample Spring Portlet - Unable to deploy

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.0 CE B2
    • Fix Version/s: 6.1.X EE, 6.2.X EE, 7.0.0 M1
    • Component/s: Legacy > Samples
    • Labels:
    • Environment:

      Description

      Exceptions thrown when deploying sample-spring-portlet

      These are the steps to reproduce:
      1. Deploy sample-spring-portlet
      2. Assert exceptions

      22:05:52,928 INFO  [localhost-startStop-2][PluginPackageUtil:154] Reading plugin package for sample-spring-portlet
      log4j:ERROR Could not instantiate class [org.apache.log4j.EnhancedPatternLayout].
      java.lang.ClassNotFoundException: org.apache.log4j.EnhancedPatternLayout
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:186)
              at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
              at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
              at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121)
              at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:676)
              at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
              at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
              at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
              at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
              at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
              at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
              at org.apache.log4j.Logger.getLogger(Logger.java:105)
              at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
              at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
              at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
              at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
              at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
              at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
              at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
              at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
              at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)
              at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:136)
              at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:237)
              at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addFileProperties(ClassLoaderAggregateProperties.java:155)
              at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties._addPropertiesSource(ClassLoaderAggregateProperties.java:263)
              at com.liferay.portal.configuration.easyconf.ClassLoaderAggregateProperties.addGlobalFileName(ClassLoaderAggregateProperties.java:76)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration._getAvailableProperties(ClassLoaderComponentConfiguration.java:115)
              at com.liferay.portal.configuration.easyconf.ClassLoaderComponentConfiguration.getProperties(ClassLoaderComponentConfiguration.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.getComponentProperties(ConfigurationImpl.java:413)
              at com.liferay.portal.configuration.ConfigurationImpl.printSources(ConfigurationImpl.java:428)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:77)
              at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:54)
              at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:31)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at $Proxy7.getConfiguration(Unknown Source)
              at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:27)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initServiceComponent(PluginPackageHotDeployListener.java:200)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:126)
              at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:61)
              at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:193)
              at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at $Proxy33.fireDeployEvent(Unknown Source)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
              at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164)
              at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:116)
              at com.liferay.portal.kernel.servlet.SecurePluginContextListener.contextInitialized(SecurePluginContextListener.java:150)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
              at java.util.concurrent.FutureTask.run(FutureTask.java:166)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:722)
      

        Attachments

          Activity

            People

            Assignee:
            john.co John Co
            Reporter:
            john.co John Co
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 41 weeks, 5 days ago

                Packages

                Version Package
                6.1.X EE
                6.2.X EE
                7.0.0 M1