7 Replies Latest reply: Aug 16, 2012 5:58 AM by michajil_tigrow RSS

    Jboss7/CXF/Spring

    Nuno Martins Newbie

      Hello,

       

      I have a web-service developed with CXF and Spring. I tried to deploy it with JBoss7 (with standalone-preview.xml) but a couple of warnings appeared

       

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl/bus on class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: org.apache.cxf.ws.policy.PolicyEngineImpl/bus on class org.apache.cxf.ws.policy.PolicyEngineImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry/bus on class org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl/bus on class org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/bus on class org.apache.cxf.jaxws.context.WebServiceContextResourceResolver since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      WARN  [org.jboss.as.ee.component.deployers.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-5) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.databinding.AbstractDataBinding since it's missing a "lookup" (or "mappedName") value and isn't of any known type

       

      I saw a possible solution in another post (http://community.jboss.org/message/624035#624035), but ih this case we don't have the spring involved.

      Is it possible to eliminate this warnings without loosing the spring dependency?

        • 1. Re: Jboss7/CXF/Spring
          Alessio Soldano Master

          Try removing the spring libs from your deployment and installing them into the org.springframework.spring AS7 module (that's automatically done when using the jbossws-cxf installation, ant -Dspring=true deploy-jboss710, http://community.jboss.org/wiki/JBossWS-Installation )

          • 2. Re: Jboss7/CXF/Spring
            Nuno Martins Newbie

            Hello Alessio,

             

            I tried what you said, but the result was the following error.

             

            Target "deploy-jboss710" does not exist in the project "JBossWS-CXF".

            • 3. Re: Jboss7/CXF/Spring
              Nuno Martins Newbie

              Hello all,

               

              Some news about this issue.

               

              I've installed the spring module manually. The module.xml is this one:

               

              <module xmlns="urn:jboss:module:1.0" name="org.springframework">

                <resources>

                  <resource-root path="spring-aop-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-asm-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-context-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-context-support-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-core-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-expression-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-web-3.0.5.RELEASE.jar"/>

                  <resource-root path="spring-beans-3.0.5.RELEASE.jar"/>

                </resources>

               

                <dependencies>

                      <module name="javax.api"/>

                      <module name="javax.jms.api"/>

                      <module name="javax.annotation.api"/>

                      <module name="javax.servlet.api"/>

                      <module name="org.apache.commons.logging"/>

                 </dependencies>

               

              </module>

              In my pom.xml, all spring and cxf dependencies were changed to scope provided. The result was the following error:

               

              Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 71 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

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

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

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

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

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

                        at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]

              Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

                        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)

                        at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)

                        at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)

                        at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)

                        at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)

                        at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)

                        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)

                        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)

                        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)

                        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)

                        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)

                        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)

                        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)

                        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)

                        at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)

                        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)

                        at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

                        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]

                        ... 21 more

               

              If I remove the scope provided from the dependencies, the web service is deployed but the warnings are back. Does anyone knows how can I remove this warnings?

              • 4. Re: Jboss7/CXF/Spring
                Jim Ma Apprentice

                Looks like you missed the beans declaration in your applicationContext.xm.

                • 5. Re: Jboss7/CXF/Spring
                  jamesbaxter Newbie

                  I think that's failing to find the xsd file to validate the spring configuration file - we resolved the same issue by using the following schemaLocation:

                   

                    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

                   

                  Although I suspect this might cause issues if deploying to a server without access to the internet...

                  • 6. Re: Jboss7/CXF/Spring
                    siddiquis Newbie

                    Hello Nuno,

                    you can solve the namespace problem by either including the resources in your org.springframework module.xml

                     

                    <resource-root path="spring-beans-3.0.5.RELEASE.jar">

                       <filter>

                         <include path="META-INF**"/>

                       </filter>

                    </resource-root>

                     

                    or by adding snowdrop http://www.jboss.org/snowdrop/downloads to your JBoss

                    • 7. Re: Jboss7/CXF/Spring
                      michajil_tigrow Newbie

                      Hi

                      I have a similar problem. I would prefer not to use the snowdrop, but the suggested

                      <resource-root path="spring-beans-3.0.5.RELEASE.jar">

                         <filter>

                           <include path="META-INF**"/>

                         </filter>

                      </resource-root>

                       

                      does not work for me. I also tried similar with jboss-deployment-structure.xml

                       

                      <module name="org.springframework.spring" export="true">

                                      <imports>

                                          <include path="META-INF**" />

                                          <include path="org**" />

                                      </imports>

                                  </module>

                       

                      but still I'm getting the error:

                       

                      Spring ApplicationContext initialization failed. Line 20 in XML document from file [C:\dexxis\server\jboss-as-7.1.1.Final\standalone\configuration\dexxis\production\datamodel\spring\master-datamodel-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 20 in XML document from file [C:\dexxis\server\jboss-as-7.1.1.Final\standalone\configuration\dexxis\production\datamodel\spring\master-datamodel-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

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

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

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

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

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

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

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

                          at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126) [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]

                          at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92) [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]

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

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

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

                          at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:140) [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]

                          at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:84) [org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]

                          at com.gemalto.dexxis.core.utils.AbstractDexxisSessionBean.getContext(AbstractDexxisSessionBean.java:48) [dexxis-core-1.0.9-SNAPSHOT.jar:]

                          at com.gemalto.dexxis.production.server.datamodel.spring.AbstractDatamodelSessionBean.getContext(AbstractDatamodelSessionBean.java:55) [prod-server-datamodel.jar:]

                          at com.gemalto.dexxis.production.server.datamodel.spring.AbstractDatamodelSessionBean.getBean(AbstractDatamodelSessionBean.java:24) [prod-server-datamodel.jar:]

                          at com.gemalto.dexxis.production.server.datamodel.spring.SpringContextInitializer.<init>(SpringContextInitializer.java:15) [prod-server-datamodel.jar:]

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_30]

                          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_30]

                          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_30]

                          at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_30]

                          at org.jboss.msc.value.ConstructedValue.getValue(ConstructedValue.java:61)

                          at org.jboss.as.naming.ValueManagedReferenceFactory.getReference(ValueManagedReferenceFactory.java:49)

                          at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:90) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                          at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                          at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44) [jboss-as-ee-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_30]

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

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

                      Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.

                          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)

                          at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)

                          at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)

                          at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)

                          at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)

                          at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)

                          at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)

                          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)

                          at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)

                          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)

                          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)

                          at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)

                          at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)

                          at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)

                          at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)

                          at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)

                          at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]

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

                          ... 48 more

                       

                       

                      EDIT:

                      I tried with snowdrop, still the same. I'm using Jboss 7.1.1.

                      Any ideas what might be wrong?