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

Jonas - java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI and liferay fails to start

    Details

    • Fix Priority:
      5

      Description

      Getting the following exception on startup of Jonas and Liferay fails to start:

      23:40:44,685 ERROR [Thread-9][ContextLoader:92] Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portlet.dynamicdatamapping.util.DDMXML' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.XMLSchemaImpl#7e46edcc' of type [com.liferay.portal.xml.XMLSchemaImpl] while setting bean property 'XMLSchema'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.XMLSchemaImpl#7e46edcc' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'util:constant#23b20c52' of type [org.springframework.beans.factory.config.FieldRetrievingFactoryBean] while setting bean property 'schemaLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              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:214)
              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.xml.XMLSchemaImpl#7e46edcc' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'util:constant#23b20c52' of type [org.springframework.beans.factory.config.FieldRetrievingFactoryBean] while setting bean property 'schemaLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              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 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 42 more
      Caused by: java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              at java.lang.Class.getField(Class.java:1539)
              at org.springframework.beans.factory.config.FieldRetrievingFactoryBean.afterPropertiesSet(FieldRetrievingFactoryBean.java:190)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
              ... 45 more
      2013-09-27 23:40:44,752 : 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.portlet.dynamicdatamapping.util.DDMXML' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'com.liferay.portal.xml.XMLSchemaImpl#7e46edcc' of type [com.liferay.portal.xml.XMLSchemaImpl] while setting bean property 'XMLSchema'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.xml.XMLSchemaImpl#7e46edcc' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'util:constant#23b20c52' of type [org.springframework.beans.factory.config.FieldRetrievingFactoryBean] while setting bean property 'schemaLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              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:214)
              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.xml.XMLSchemaImpl#7e46edcc' defined in class path resource [META-INF/util-spring.xml]: Cannot create inner bean 'util:constant#23b20c52' of type [org.springframework.beans.factory.config.FieldRetrievingFactoryBean] while setting bean property 'schemaLanguage'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              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 'util:constant#23b20c52': Invocation of init method failed; nested exception is java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
              ... 42 more
      Caused by: java.lang.NoSuchFieldException: W3C_XML_SCHEMA_NS_URI
              at java.lang.Class.getField(Class.java:1539)
              at org.springframework.beans.factory.config.FieldRetrievingFactoryBean.afterPropertiesSet(FieldRetrievingFactoryBean.java:190)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
              ... 45 more
      2013-09-27 23:40:44,846 : StandardContext.start : Error listenerStart
      2013-09-27 23:40:44,848 : StandardContext.start : Context [] startup failed due to previous errors
      2013-09-27 23:40:44,867 : ApplicationContext.log : Closing Spring root WebApplicationContext
      2013-09-27 23:40:44,880 : WebappClassLoader.clearReferencesThreads : The web application [] appears to have started a thread named [HSQLDB Timer @5e41a770] but has failed to stop it. This is very likely to create a memory leak.
      2013-09-27 23:40:46,032 : BaseWebContainerService.registerWar : War liferay-portal available at the context /.
      2013-09-27 23:40:46,667 : WARDeployer.doDeploy : Deploying marketplace-portlet
      2013-09-27 23:40:47,200 : BaseWebContainerService.registerWar : War marketplace-portlet available at the context /marketplace-portlet.
      2013-09-27 23:40:47,509 : J2EEServer.__info : JOnAS AS v5.2.3 named 'jonas' RUNNING
      
      D:\jonas\liferay-portal-6.2.10-ee-rc2\jonas-5.2.3\bin>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.lee Albert Lee
                Reporter:
                albert.lee Albert Lee
                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:
                  6 years, 1 week, 5 days ago

                  Packages

                  Version Package
                  6.2.0 CE RC3