I noticed that the virgo.kernel tests fail every time on my Windows with the following:
[exec] [junit] Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
The problem does not appear on Linux however. Anyone faced the same issue? I think this is a problem with the XSD header…
If this is not a known problem I will create a bug + enhancement request for setup of Windows build as well.
P.S. The full stacktrace:
[exec] [junit] Testcase: testManualContextDefinitionWithBadImports(org.eclipse.virgo.kernel.deployer.test.Manua
lSpringContextTests): Caused an ERROR
[exec] [junit] BundleException
[exec] [junit] org.eclipse.virgo.kernel.deployer.core.DeploymentException: BundleException
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.startB
undle(StandardBundleDriver.java:170)
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.start(
StandardBundleDriver.java:149)
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifa
ct.doStart(StandardBundleInstallArtifact.java:253)
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoSta
rt(AbstractInstallArtifact.java:208)
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifa
ct.start(StandardBundleInstallArtifact.java:242)
[exec] [junit] at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.start(Pi
pelinedApplicationDeployer.java:285)
[exec] [junit] at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(P
ipelinedApplicationDeployer.java:195)
[exec] [junit] at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(P
ipelinedApplicationDeployer.java:101)
[exec] [junit] at org.eclipse.virgo.kernel.deployer.test.ManualSpringContextTests.testManualContextDefi
nitionWithBadImports(ManualSpringContextTests.java:26)
[exec] [junit] at org.eclipse.virgo.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:74)
[exec] [junit] Caused by: org.osgi.framework.BundleException: Exception in eg.Activator.start() of bundle manua
[exec] [junit] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleConte
[exec] [junit] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.ja
[exec] [junit] at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:378)
[exec] [junit] at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:287
[exec] [junit] at org.eclipse.virgo.kernel.core.internal.StandardBundleStarter.start(StandardBundleStar
[exec] [junit] at org.eclipse.virgo.kernel.core.internal.StandardBundleStarter.start(StandardBundleStar
[exec] [junit] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java
[exec] [junit] at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvok
e(ServiceInvoker.java:58)
[exec] [junit] at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(
[exec] [junit] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
[exec] [junit] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(Delegatin
gIntroductionInterceptor.java:131)
[exec] [junit] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIn
troductionInterceptor.java:119)
[exec] [junit] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
[exec] [junit] at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(Loc
alBundleContextAdvice.java:59)
[exec] [junit] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
[exec] [junit] at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(Delegatin
gIntroductionInterceptor.java:131)
[exec] [junit] at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIn
troductionInterceptor.java:119)
[exec] [junit] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethod
[exec] [junit] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:2
[exec] [junit] at $Proxy1252.start(Unknown Source)
[exec] [junit] at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.startB
undle(StandardBundleDriver.java:168)
[exec] [junit] Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML
document from class path resource [context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1
: Cannot find the declaration of element 'beans'.
[exec] [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(X
mlBeanDefinitionReader.java:396)
[exec] [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Xml
BeanDefinitionReader.java:334)
[exec] [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Xml
BeanDefinitionReader.java:302)
[exec] [junit] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefini
tions(AbstractBeanDefinitionReader.java:143)
[exec] [junit] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
(AbstractXmlApplicationContext.java:122)
[exec] [junit] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
(AbstractXmlApplicationContext.java:92)
[exec] [junit] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBean
Factory(AbstractRefreshableApplicationContext.java:130)
[exec] [junit] at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
(AbstractApplicationContext.java:458)
[exec] [junit] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplic
[exec] [junit] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:197)
[exec] [junit] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:172)
[exec] [junit] at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXm
lApplicationContext.java:158)
[exec] [junit] at eg.Activator.start(Activator.java:10)
[exec] [junit] at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.ja
[exec] [junit] at java.security.AccessController.doPrivileged(Native Method)
[exec] [junit] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleConte
[exec] [junit] Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'bea
[exec] [junit] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(E
rrorHandlerWrapper.java:195)
[exec] [junit] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLS
chemaValidator.java:1915)
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaV
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XML
NSDocumentScannerImpl.java:400)
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scan
RootElementHook(XMLNSDocumentScannerImpl.java:626)
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentConten
tDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLD
ocumentScannerImpl.java:922)
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScanne
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentSc
[exec] [junit] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(X
MLDocumentFragmentScannerImpl.java:511)
[exec] [junit] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuratio
[exec] [junit] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuratio
[exec] [junit] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
[exec] [junit] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
[exec] [junit] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
[exec] [junit] at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocum
[exec] [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(X
mlBeanDefinitionReader.java:388)
_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev