У меня есть приложение Spring (а не веб-приложение), которое должно быть доступно для автономной работы. Однако, когда я пытаюсь сделать это, он выходит из строя с этим сообщением об ошибке:Как запустить приложения Spring в автономном режиме?
- Loading XML bean definitions from class path resource [applicationContext.xml]
21220 [main] WARN org.springframework.beans.factory.xml.XmlBeanDefinitionReader
- Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/tool/spring-tool-3.0.xsd', 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 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(Unknown Source)
...
Это вызвано весной не будучи в состоянии найти схемы, так как они находятся в сети и Spring вне форума. Как запустить приложения Spring в автономном режиме?
Duplicate. См.: Http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection - http://stackoverflow.com/questions/2293415/how-to-avoid -downloading-schema-file-from-internet-in-spring-initialization и т. д. – kaliatech