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

BeanCreationException for com.liferay.portal.security.xml.SecureXMLFactoryProvider on startup of Jonas 5.2.3, portal is unusable

    Details

    • Fix Priority:
      5
    • Application Servers:
      JOnAS 5.2

      Description

      BeanCreationException for the following defined class path on startup of Jonas 5.2.3. Hitting http://localhost:8080 gets a 404 error, portal is unusable.

      com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil
      com.liferay.portal.webdav.methods.MethodFactoryImpl
      com.liferay.portal.security.xml.SecureXMLFactoryProvider
      
      JONAS_ROOT is set to L:\git\private\ee-6.2.x-bundles\jonas-5.2.3
      
      OW2 JOnAS 5.2.3 [ http://jonas.ow2.org / jonas@ow2.org ]
      
      JONAS_BASE is set to L:\git\private\ee-6.2.x-bundles\jonas-5.2.3
      
      Welcome to OW2 JOnAS (Running on Felix v3.0.9).
      -----------------------------------------------
      
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : Some jars have been found in [L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\lib\ext]. They have been transformed into bundles (see L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\work\ext-bundles directory).This is NOT the preferred way to extend JOnAS libraries, prefer to use carefully created and tested bundles, and place them in your deploy/ directory.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/hsql.jar installed as a bundle.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/postgresql.jar installed as a bundle.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/portal-service.jar installed as a bundle.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/mysql.jar installed as a bundle.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/jtds.jar installed as a bundle.
      3/19/15 2:35:48 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/junit.jar installed as a bundle.
      3/19/15 2:35:49 PM (I) ExtensionLoaderComponent.__start : file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/work/ext-bundles/portlet.jar installed as a bundle.
      2015-03-19 14:35:49,248 : NameServiceManager.startNonStartedNS : Name service for jrmp is started on port ' 1099'.
      2015-03-19 14:35:49,251 : CarolRegistryService.__doStart : Carol Registry Service started
      2015-03-19 14:35:49,437 : JOnASJMXService$2.execute : JMX security is disabled
      2015-03-19 14:35:49,438 : JOnASJMXService.__doStart : JMX Service started using connector(s)[service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jrmpconnector_jonas]
      2015-03-19 14:35:49,514 : JNDIInterceptorsComponent.__start : JNDI Interceptors component started
      2015-03-19 14:35:49,518 : J2EEServer.__setStarting : JVM used is 1.7.0_65 version of Java HotSpot(TM) 64-Bit Server VM-24.65-b04/Oracle Corporation vendor on Windows 8.1 6.3/amd64 OS.
      2015-03-19 14:35:49,519 : J2EEServer.__info : JOnAS AS v5.2.3 named 'jonas' STARTING
      2015-03-19 14:35:54,123 : PolicyProvider.init : Using JOnAS PolicyConfigurationFactory provider and JOnAS Policy provider
      2015-03-19 14:35:54,223 : JonasSecurityServiceImpl.__doStart : Security Service started
      2015-03-19 14:35:54,304 : JOnASWorkCleanerService.__doStart : WorkCleaner Service started.
      2015-03-19 14:35:54,371 : TransactionRecoveryImpl.<init> : JOTM properties file= L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\conf\jotm.properties
      2015-03-19 14:35:54,373 : Current.setDefaultRecovery : Jotm Recovery= false
      2015-03-19 14:35:54,378 : JOTMTransactionService.__doStart : TransactionService started, default timeout= 60
      2015-03-19 14:35:54,524 : JOnASWorkManagerService.__doStart : WorkManager Service started.
      2015-03-19 14:35:54,562 : RARDeployer.doDeploy : Deploying jonas-jca-jdbc-cp-5.2.3.rar
      2015-03-19 14:35:54,846 : Rar.processRar : jonas-jca-jdbc-cp-5.2.3.rar available
      2015-03-19 14:35:54,850 : RARDeployer.doDeploy : Deploying jonas-jca-jdbc-ds-5.2.3.rar
      2015-03-19 14:35:54,962 : Rar.processRar : jonas-jca-jdbc-ds-5.2.3.rar available
      2015-03-19 14:35:54,966 : RARDeployer.doDeploy : Deploying jonas-jca-jdbc-dm-5.2.3.rar
      2015-03-19 14:35:55,064 : Rar.processRar : jonas-jca-jdbc-dm-5.2.3.rar available
      2015-03-19 14:35:55,067 : RARDeployer.doDeploy : Deploying jonas-jca-jdbc-xa-5.2.3.rar
      2015-03-19 14:35:55,179 : Rar.processRar : jonas-jca-jdbc-xa-5.2.3.rar available
      2015-03-19 14:35:55,180 : JOnASResourceService.__doStart : Resource Service started
      2015-03-19 14:35:55,490 : EventComponent.start : started.
      2015-03-19 14:35:55,498 : StatisticComponent.start : Statistics component started with factories: [org.ow2.easybeans.statistic.MeanCallTimeStatisticFactory, org.ow2.easybeans.statistic.CallCountStatisticFactory, org.ow2.easybeans.statistic.TotalCallTimeStatisticFactory]
      2015-03-19 14:35:55,499 : ComponentManager.startComponents : [ Component(s) started : Quartz Event Carol RemoteJNDIResolver Jmx Statistic ]
      2015-03-19 14:35:55,534 : Embedded.start : Startup of EasyBeans '1.2.3.0' was done in '117' ms.
      2015-03-19 14:35:56,253 : CXFService.__doStart : Apache CXF 2.2.12 started
      2015-03-19 14:35:56,397 : BaseWebContainerService.doStart : OnDemand Feature enabled: Listening on '8080' port (internal:8988).
      2015-03-19 14:35:56,565 : Http11Protocol.init : Initializing Coyote HTTP/1.1 on http-8988
      2015-03-19 14:35:56,574 : StandardService.start : Starting service jonas
      2015-03-19 14:35:56,575 : StandardEngine.start : Starting Servlet Engine: Apache Tomcat/6.0.35
      2015-03-19 14:35:56,605 : Http11Protocol.start : Starting Coyote HTTP/1.1 on http-8988
      2015-03-19 14:35:56,691 : JOnASEARService.__doStart : EAR Service started
      2015-03-19 14:35:56,742 : DeployableMonitorService.__doStart : Use the deploy directories '[]', development mode is 'true'
      2015-03-19 14:35:58,369 : DeployableMonitor.detectNewArchives : Deployables to deploy at startup: [[L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\deploy\joram.xml, L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\deploy\mejb.xml, L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\deploy\scout.xml, L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\deploy\liferay-portal]]
      2015-03-19 14:35:58,508 : RARDeployer.doDeploy : Deploying joram-jca-jonas-5.5.0.rar
      2015-03-19 14:35:58,992 : Rar.processRar : joram-jca-jonas-5.5.0.rar available
      2015-03-19 14:35:59,271 : EasyBeansDeployer.doDeploy : Deploying 'mejb-5.2.3.jar'...
      2015-03-19 14:35:59,412 : Enhancer.enhance : Beans found are [MEJB]
      2015-03-19 14:35:59,621 : JContainer3.start : Container 'L:\git\private\ee-6.2.x-bundles\jonas-5.2.3\work\ejb3s\jonas\mejb-5.2.3_2012.03.05-23.33.30.jar' [1 SLSB, 0 SFSB, 0 MDB] started in 337 ms
      2015-03-19 14:35:59,623 : EasyBeansDeployer.doDeploy : 'mejb-5.2.3.jar' EJB3 Deployable is now deployed
      2015-03-19 14:35:59,891 : RARDeployer.doDeploy : Deploying jonas-jca-scout-rar-5.2.3.rar
      2015-03-19 14:36:00,242 : JAXRResourceAdapter.start : Starting Scout ResourceAdapter
      2015-03-19 14:36:00,252 : Rar.processRar : jonas-jca-scout-rar-5.2.3.rar available
      2015-03-19 14:36:00,904 : WARDeployer.doDeploy : Deploying liferay-portal
      2015-03-19 14:36:11,313 : BaseWebContainerService.registerWar : The application /L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/ has its java2-delegation-model parameter set to false. JOnAS 5 offers a new possibility called the filtering class loader that can replace this parameter and doesn't suffer from the many unexpected behaviours caused by class loader inversion. Please see to JOnAS configuration guide for details.
      2015-03-19 14:36:11,435 : WebappLoader.start : Dual registration of jndi stream handler: factory already defined
      Loading jar:file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/lib/portal-impl.jar!/system.properties
      Loading jar:file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/lib/portal-impl.jar!/system.properties
      2015-03-19 14:36:12,146 : Jdk14LogImpl.info : Detected server jonas
      2015-03-19 14:36:12,165 : Jdk14LogImpl.info : Global shared lib directory
      2015-03-19 14:36:12,167 : Jdk14LogImpl.info : Global lib directory
      2015-03-19 14:36:12,169 : Jdk14LogImpl.info : Portal lib directory /L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/lib/
      2015-03-19 14:36:12,453 : Jdk14LogImpl.info : Properties for portal loaded from [file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/classes/portal-ext.properties, jar:file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/lib/portal-impl.jar!/portal.properties]
      Loading jar:file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/lib/portal-impl.jar!/portal.properties
      Loading file:/L:/git/private/ee-6.2.x-bundles/jonas-5.2.3/deploy/liferay-portal/WEB-INF/classes/portal-ext.properties
      2015-03-19 14:36:31,255 : ApplicationContext.log : Initializing Spring root WebApplicationContext
      14:36:35,057 INFO  [Thread-9][DialectDetector:71] Determine dialect for MySQL 5
      14:36:35,096 INFO  [Thread-9][DialectDetector:136] Found dialect org.hibernate.dialect.MySQLDialect
      14:36:46,223 ERROR [Thread-9][ContextLoader:206] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1baabd5d' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested excepti
      m.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:235)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
              at org.ow2.jonas.web.tomcat6.JOnASStandardContext.start(JOnASStandardContext.java:312)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
              at org.ow2.jonas.web.tomcat6.Tomcat6Service.__doRegisterWar(Tomcat6Service.java:764)
              at org.ow2.jonas.web.tomcat6.Tomcat6Service.doRegisterWar(Tomcat6Service.java)
              at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1025)
              at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1263)
              at org.ow2.jonas.web.base.proxy.HttpOnDemandProxy.addWar(HttpOnDemandProxy.java:352)
              at org.ow2.jonas.web.base.WARDeployer.doDeploy(WARDeployer.java:70)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:93)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:91)
              at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:91)
              at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:148)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:491)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:306)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:216)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1baabd5d' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.xml.SAXReaderUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' of type [com.liferay.portal.xml.SAXReaderImpl] while setting bean property 'secureSAXReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Er
      ader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 36 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.xml.SAXReaderUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' of type [com.liferay.portal.xml.SAXReaderImpl] while setting bean property 'secureSAXReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryP
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:266)
              ... 42 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 52 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
              ... 58 more
      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
              at java.lang.Class.privateGetPublicMethods(Class.java:2690)
              at java.lang.Class.privateGetPublicMethods(Class.java:2700)
              at java.lang.Class.getMethods(Class.java:1467)
              at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1280)
              at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1141)
              at java.beans.Introspector.getBeanInfo(Introspector.java:416)
              at java.beans.Introspector.getBeanInfo(Introspector.java:163)
              at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
              at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)
              at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)
              at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:331)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1209)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1068)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              ... 64 more
      2015-03-19 14:36:46,313 : StandardContext.listenerStart : Exception sending context initialized event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.webdav.methods.MethodFactoryRegistryUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' of type [com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl] while setting bean property 'methodFactoryRegistry'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1baabd5d' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested excepti
      m.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:235)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
              at org.ow2.jonas.web.tomcat6.JOnASStandardContext.start(JOnASStandardContext.java:312)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
              at org.ow2.jonas.web.tomcat6.Tomcat6Service.__doRegisterWar(Tomcat6Service.java:764)
              at org.ow2.jonas.web.tomcat6.Tomcat6Service.doRegisterWar(Tomcat6Service.java)
              at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1025)
              at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1263)
              at org.ow2.jonas.web.base.proxy.HttpOnDemandProxy.addWar(HttpOnDemandProxy.java:352)
              at org.ow2.jonas.web.base.WARDeployer.doDeploy(WARDeployer.java:70)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:93)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:91)
              at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77)
              at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:91)
              at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:148)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:491)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:306)
              at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:216)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.webdav.methods.MethodFactoryRegistryImpl#667632db' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.webdav.methods.MethodFactoryImpl#1baabd5d' of type [com.liferay.portal.webdav.methods.MethodFactoryImpl] while setting bean property 'defaultMethodFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.xml.SAXReaderUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' of type [com.liferay.portal.xml.SAXReaderImpl] while setting bean property 'secureSAXReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Er
      ader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 36 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.kernel.xml.SAXReaderUtil' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' of type [com.liferay.portal.xml.SAXReaderImpl] while setting bean property 'secureSAXReader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryP
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:266)
              ... 42 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.SAXReaderImpl#c54ed21' defined in class path resource [META-INF/util-spring.xml]: Cannot resolve reference to bean 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' while setting bean property 'secureXMLFactoryProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 52 more
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.security.xml.SecureXMLFactoryProvider' defined in class path resource [META-INF/util-spring.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
              ... 58 more
      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously initiated loading for a different type with name "javax/xml/stream/XMLInputFactory"
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
              at java.lang.Class.privateGetPublicMethods(Class.java:2690)
              at java.lang.Class.privateGetPublicMethods(Class.java:2700)
              at java.lang.Class.getMethods(Class.java:1467)
              at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1280)
              at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1141)
              at java.beans.Introspector.getBeanInfo(Introspector.java:416)
              at java.beans.Introspector.getBeanInfo(Introspector.java:163)
              at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
              at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)
              at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)
              at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:331)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1209)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1068)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
              ... 64 more
      2015-03-19 14:36:46,419 : StandardContext.start : Error listenerStart
      2015-03-19 14:36:46,420 : StandardContext.start : Context [] startup failed due to previous errors
      2015-03-19 14:36:46,443 : ApplicationContext.log : Closing Spring root WebApplicationContext
      2015-03-19 14:36:49,281 : BaseWebContainerService.registerWar : War liferay-portal available at the context /.
      2015-03-19 14:36:49,988 : J2EEServer.__info : JOnAS AS v5.2.3 named 'jonas' RUNNING
      

      Jenkins ee-6.2.x results:
      https://test-2-2.liferay.com/job/test-portal-branch-upstream-frontend-jonas-mysql%5Bportal-acceptance%5D(ee-6.2.x)/label_exp=!test-2-2,test=PortalSmokeTestCase%23testSmoke/

      Jenkins master results:
      https://test-2-1.liferay.com/job/test-portal-branch-upstream-frontend-jonas-mysql%5Bportal-acceptance%5D(master)/label_exp=!test-2-1,test=PortalSmokeTestCase%23testSmoke/

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 34 weeks, 4 days ago

                Packages

                Version Package