Help with Compilation Errors

783 views
Skip to first unread message

Dotun oluyade

unread,
Aug 12, 2012, 9:05:33 PM8/12/12
to open...@googlegroups.com
Hello All,

I want to build openolat from source, but I am getting this build erros related to XML files. Any help would be appreciated.

Description Resource Path Location Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. threadlogCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/threadlog/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. threadlogCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/threadlog/_spring line 12 XML Problem
src-resolve: Cannot resolve the name 'xml:base' to a(n) 'attribute declaration' component. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 119 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. servicesCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/services/_spring line 11 XML Problem
s4s-elt-invalid-content.1: The content of 'manifestType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 246 XML Schema Problem
s4s-elt-must-match.1: The content of 'attr.base' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?)). A problem was found starting at: attribute. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 119 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. coordinatorMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. servicesCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/services/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. coordinatorMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. upgradeContext.xml /openolat-lms/src/main/java/org/olat/upgrade/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. upgradeContext.xml /openolat-lms/src/main/java/org/olat/upgrade/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. buildingblockContext.xml /openolat-lms/src/main/java/org/olat/course/nodes/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. versioningCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/vfs/version/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. instantMessagingTestContext.xml /openolat-lms/src/test/java/org/olat/instantMessaging/_spring line 11 XML Problem
src-resolve: Cannot resolve the name 'xml:base' to a(n) 'attribute declaration' component. imscp_rootv1p1p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 57 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. i18nCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/i18n/_spring line 11 XML Problem
s4s-elt-invalid-content.1: The content of 'manifestType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imscp_rootv1p1p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 243 XML Schema Problem
s4s-elt-must-match.1: The content of 'attr.base' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?)). A problem was found starting at: attribute. imscp_rootv1p1p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 57 XML Schema Problem
s4s-elt-invalid-content.1: The content of 'stringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 470 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. coordinatorMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 11 XML Problem
s4s-elt-invalid-content.1: The content of 'langstringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 324 XML Schema Problem
src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 324 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. coordinatorMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. baseSecurityContext.xml /openolat-lms/src/main/java/org/olat/basesecurity/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. taskExecutorCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/taskExecutor/_spring line 11 XML Problem
src-resolve: Cannot resolve the name 'xml:base' to a(n) 'attribute declaration' component. imscp_v1p1p3.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 76 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. coordinatorAndDatabaseContextMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. coordinatorAndDatabaseContextMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. mailModuleMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. mailModuleMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. StickyMessageCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/fullWebApp/util/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. contextHelpCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/contextHelp/_spring line 11 XML Problem
src-resolve: Cannot resolve the name 'xml:base' to a(n) 'attribute declaration' component. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 119 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. assessmentContext.xml /openolat-lms/src/main/java/org/olat/course/assessment/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. assessmentContext.xml /openolat-lms/src/main/java/org/olat/course/assessment/_spring line 12 XML Problem
s4s-elt-invalid-content.1: The content of 'manifestType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 246 XML Schema Problem
s4s-elt-must-match.1: The content of 'attr.base' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?)). A problem was found starting at: attribute. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/_unzipped_ line 119 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. glossaryCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/modules/glossary/_spring line 11 XML Problem
src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 324 XML Schema Problem
s4s-elt-invalid-content.1: The content of 'langstringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 324 XML Schema Problem
s4s-elt-invalid-content.1: The content of 'stringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 470 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. modulesContext.xml /openolat-lms/src/main/java/org/olat/modules/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. modulesContext.xml /openolat-lms/src/main/java/org/olat/modules/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. instantMessagingContext.xml /openolat-lms/src/main/java/org/olat/instantMessaging/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. instantMessagingContext.xml /openolat-lms/src/main/java/org/olat/instantMessaging/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. vcContext.xml /openolat-lms/src/main/java/de/bps/course/nodes/vc/_spring line 11 XML Problem
s4s-elt-invalid-content.1: The content of 'langstringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 324 XML Schema Problem
s4s-elt-invalid-content.1: The content of 'stringType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 470 XML Schema Problem
src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component. imsmd_v1p2p2.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 324 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. webapphelperMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. viteroContext.xml /openolat-lms/src/main/java/org/olat/modules/vitero/_spring line 11 XML Problem
s4s-elt-invalid-content.1: The content of 'manifestType' is invalid.  Element 'attribute' is invalid, misplaced, or occurs too often. imscp_v1p1p3.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 262 XML Schema Problem
s4s-elt-must-match.1: The content of 'attr.base' must match (annotation?, ((attribute | attributeGroup)*, anyAttribute?)). A problem was found starting at: attribute. imscp_v1p1p3.xsd /openolat-lms/src/main/java/org/olat/ims/resources/xsd line 76 XML Schema Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. coordinatorAndDatabaseContextMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. webapphelperMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. coordinatorAndDatabaseContextMock.xml /openolat-lms/src/test/java/org/olat/core/test/_spring line 12 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. viteroContext.xml /openolat-lms/src/main/java/org/olat/modules/vitero/_spring line 12 XML Problem

Regards,
Dotun


Domício Medeiros

unread,
Aug 12, 2012, 9:39:42 PM8/12/12
to open...@googlegroups.com
I guess the application can run without solving those XML problems.
Try to do this first.

Best Regards.

Domício.

2012/8/12 Dotun oluyade <dotuno...@gmail.com>:
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOLAT".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> -------------------------------------------------------------------------------------------------------------------
> OpenOLAT - infinite learning - http://www.openolat.org

Stéphane Rossé

unread,
Aug 13, 2012, 3:01:13 AM8/13/12
to open...@googlegroups.com
Hi

These are not compilation errors, these are validation errors from the XML validators. Try to suspend the validators for XML in your Eclipse preferences.

Best regards
Stéphane Rossé


Le lundi 13 août 2012 03:05:33 UTC+2, Dotun oluyade a écrit :
I want to build openolat from source, but I am getting this build erros related to XML files. Any help would be appreciated.

Description Resource Path Location Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. threadlogCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/threadlog/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. threadlogCorecontext.xml /openolat-lms/src/main/java/org/olat/core/util/threadlog/_spring line 12 XML Problem
src-resolve: Cannot resolve the name 'xml:base' to a(n) 'attribute declaration' component. imscp_v1p1.xsd /openolat-lms/src/main/java/org/olat/ims/cp/_resources/imscp line 119 XML Schema Problem


---------------------------------------------------------------
professional services for the open source eLearning system OLAT
hosting - operating - support - java development - consulting
---------------------------------------------------------------
http://www.frentix.com | http://www.olat.com | http://openolat.org

frentix  GmbH
Stéphane Rossé
Hardturmstrasse 76
CH-8005 Zürich, Switzerland

tel://+41-43-544-9000
skype://s_rosse
--------------------------------------------------------------- 

Oludotun Oluyade

unread,
Aug 15, 2012, 8:14:08 PM8/15/12
to open...@googlegroups.com
Hi Stéphane,

I have suspended all validation in my Eclipse Preference. This reduced the validation errors from 74 to 10. Now I get no declaration found for 

'context:annotation-config' , 'context:property-placeholder' , and the element 'beans' as shown in the log below. Am I missing a library?
 

Description Resource Path Location Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. vcContext.xml /openolat-lms/src/main/java/de/bps/course/nodes/vc/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. StickyMessageCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/fullWebApp/util/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. webapphelperMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. vcContext.xml /openolat-lms/src/main/java/de/bps/course/nodes/vc/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. StickyMessageCorecontext.xml /openolat-lms/src/main/java/org/olat/core/commons/fullWebApp/util/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. webapphelperMock.xml /openolat-lms/src/test/java/org/olat/test/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. buildingblockContext.xml /openolat-lms/src/main/java/org/olat/course/nodes/_spring line 11 XML Problem
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. buildingblockContext.xml /openolat-lms/src/main/java/org/olat/course/nodes/_spring line 11 XML Problem
cvc-elt.1: Cannot find the declaration of element 'beans'. scheduler.xml /openolat-lms/src/test/java/org/olat/core/commons/scheduler line 4 XML Problem
cvc-elt.1: Cannot find the declaration of element 'beans'. scheduler.xml /openolat-lms/src/test/java/org/olat/core/commons/scheduler line 4 XML Problem


Regards.
Dotun


Domício

unread,
Aug 17, 2012, 6:45:38 PM8/17/12
to open...@googlegroups.com
Ok.... Did you tried to run the application without solving those problems?

Domício

unread,
Aug 17, 2012, 6:47:46 PM8/17/12
to open...@googlegroups.com
" cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'. vcContext.xml /openolat-lms/src/main/java/de/bps/course/nodes/vc/_spring line 11 XML Problem "

As you can see, that's a XML problem. Try to run OpenOlat without solving the problems or just ignore me again.

See ya.


On Wednesday, August 15, 2012 9:14:08 PM UTC-3, Dotun oluyade wrote:

Oludotun Oluyade

unread,
Aug 18, 2012, 5:45:00 AM8/18/12
to open...@googlegroups.com
Hi Domício,

Thank you for trying to help resolve this XML issue. I did as you said, I ran openolat with XML validations turned off in my eclipse and got these messages in my log. 


Aug 18, 2012 10:35:31 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Aug 18, 2012 10:35:31 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:openolat-lms' did not find a matching property.
Aug 18, 2012 10:35:31 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Aug 18, 2012 10:35:31 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Aug 18, 2012 10:35:31 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 723 ms
Aug 18, 2012 10:35:31 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 18, 2012 10:35:31 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
log4j:WARN Continuable parsing error 32 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)".
Aug 18, 2012 10:35:32 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
10:35:32,703  INFO ContextLoader:273 - Root WebApplicationContext: initialization started
10:35:32,826  INFO XmlWebApplicationContext:495 - Refreshing Root WebApplicationContext: startup date [Sat Aug 18 10:35:32 WAT 2012]; root of context hierarchy
10:35:32,908  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/threadlog/_spring/threadlogCorecontext.xml]
10:35:33,333  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/vfs/version/_spring/versioningCorecontext.xml]
10:35:33,380  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/i18n/_spring/i18nCorecontext.xml]
10:35:33,436  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/_spring/utilCorecontext.xml]
10:35:33,467  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/i18n/devtools/_spring/devtoolsCorecontext.xml]
10:35:33,515  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/util/event/_spring/frameworkStartedEventCorecontext.xml]
10:35:33,537  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/id/context/_spring/historyCorecontext.xml]
10:35:33,566  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/commons/controllers/resume/_spring/resumeCorecontext.xml]
10:35:33,612  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/commons/persistence/_spring/databaseCorecontext.xml]
10:35:33,674  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/commons/taskExecutor/_spring/taskExecutorCorecontext.xml]
10:35:33,710  INFO XmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [org/olat/core/commons/fullWebApp/util/_spring/StickyMessageCorecontext.xml]
10:35:36,202  WARN XmlBeanDefinitionReader:47 - Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-3.0', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
10:35:36,206 ERROR ContextLoader:308 - Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [org/olat/core/commons/fullWebApp/util/_spring/StickyMessageCorecontext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
... 21 more
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 11 in XML document from class path resource [org/olat/core/commons/fullWebApp/util/_spring/StickyMessageCorecontext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-config'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
... 21 more
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property: 'webapp.root' = [/Users/dotunooluyade/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/openolat-lms/]
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/olat] startup failed due to previous errors
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext).
log4j:WARN Please initialize the log4j system properly.
Aug 18, 2012 10:35:36 AM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:556)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763)
at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5473)
at java.lang.Thread.run(Thread.java:680)
Aug 18, 2012 10:35:36 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Aug 18, 2012 10:35:36 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Aug 18, 2012 10:35:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4592 ms


I think these errors are preventing openolat running as well. Could it be the version of the spring libraries I have or missing jars? It is failing to execute the schema

Regard.
Dotun

Stéphane Rossé

unread,
Aug 18, 2012, 10:33:22 AM8/18/12
to open...@googlegroups.com
Hi

First of all: try to clean up your eclipse project with

mvn eclipse:clean eclipse:eclipse

than

mvn clean package

than

Refresh your eclipse project, you need to link your olat.local.properties and try again.

And can you give some informations on your platform? Have you clone OpenOLAT? If yes did you work with the default branch?

Regards
Stéphane

Dotun Oluyade

unread,
Aug 18, 2012, 1:50:41 PM8/18/12
to open...@googlegroups.com
Hi Stéphane,
I did as stated in your mail, but still got the same error message in my log. I use the following platform:
1. Mac OSX 10.7.4 64 bit 
2. Eclipse java EE for web  developers, Juno release
3. Maven 3.0.3
4. Mercurial plug for eclipse
5. Java SE 6 (mac default)
6. Apache Tomcat v 7.0.22

I did a clone from http://hg.openolat.org/openolat within eclipse which created an openolat-lms project inside my workspace folder.

Could it be my eclipse version or u want me to do a fresh clone?

Thanks.







Dotun Oluyade
Chief Software Architect
Pearlsoft Company Ltd.

Stéphane Rossé

unread,
Aug 18, 2012, 2:37:47 PM8/18/12
to open...@googlegroups.com
Have you an internet connection where you start your OpenOLAT? Such an error can be thrown if you don't have a internet connection and the schema to validate the XML cannot be found. The schema is accessible from this URL:


And I have no problem to start OpenOLAT and download the schema from within a browser.

Another thing that you can try is upgrade the spring framework. There is a property in the pom.xml at the root of your eclipse project:

<org.springframework.version>3.1.1.RELEASE</org.springframework.version>


change it to:


<org.springframework.version>3.1.2.RELEASE</org.springframework.version>


After that:

mvm eclipse:clean eclipse:eclipse

And refresh your project. Some users of the Spring framework have reported some problems with a specific version of the framework, problems solved by upgrading or downgrading the version of Spring.

Oludotun Oluyade

unread,
Aug 18, 2012, 4:10:22 PM8/18/12
to open...@googlegroups.com
Hi Stéphane,

Thank you. I have openolat running now. I wasn't connected to the internet while running openolat and http://www.springframework.org/schema/context/spring-context-3.0.xsd
could not be read. I also corrected the instance id in my olat.local.properties from 11 character to 10 characters. I like openolat's look and feel over olat's... Nice! Looking at the booking features now...


Thanks for your help. 
Dotun.
Reply all
Reply to author
Forward
0 new messages