1 Reply Latest reply on Jan 21, 2013 2:53 AM by nickarls

    nested exception is org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'cxf-beans:identifiedType' to a(n) 'type definition' component.

    poorna.sama

      Hi,

         I am getting an exception.

         Could you please let me know how to resolve this exception.

       

      16:38:44,925 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-4)

      Context initialization failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:

      Line 53 in XML document from ServletContext resource [/WEB-INF/classes/xxxx-ws-context.xml] is invalid;

      nested exception is org.xml.sax.SAXParseException: src-resolve:

      Cannot resolve the name 'cxf-beans:identifiedType' to a(n) 'type definition' component.

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [org.springframework.context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) [org.springframework.context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) [org.springframework.context-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [org.springframework.web-3.0.3.RELEASE.jar:3.0.3.RELEASE]

              at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'cxf-beans:identifiedType' to a(n) 'type definition' component.

       

      Workaround: Please find the below code in this location Line 53 in XML document from ServletContext resource [/WEB-INF/classes/xxxx-ws-context.xml] is invalid;

       

                 <bean id="locationLookUpService" class="com.agcs.locmgmt.webservices.locationlookup.LocationLookUpService"

        factory-bean="locationLookUpServiceFactory" factory-method="create" />

       

      Here 'cxf-beans:identifiedType'  name is not there in Line 53.

       

      Thanks,

      Poorna