witam, mam prosty programik, który tworzy tylko pare beanow(sessionFactory ... menagery jakies tam ..) - ogólnie chodzi o to, że działa dopóki mam połączenie z internetem. chodzi zapewne o ładowanie schematów czy cuś takiego. kods odpowiedzialny za to, to pewnie to:
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
jak to zrobić, że jak wyciągnę wtyczkę, to żeb to chodziło....
Wyczytałem gdzieś, że trzeba w class-pathie na pierwszym miejscu załaczyć spring-beans.jar, ale coś mi nie gra - być może dlatego, że używam anta do budowania i przy budowaniu jara używam <indexjars>
Log w przypadku braku połączenia :
INFO - XmlBeanDefinitionReader.loadBeanDefinitions(303) | Loading XML bean defin
itions from class path resource [applicationContext.xml]
WARN - SimpleSaxErrorHandler.warning(47) | Ignored XML validation warning
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema documen
t 'http://www.springframework.org/schema/beans/spring-beans-2.0.xsd', because 1)
could not find the document; 2) the document could not be read; 3) the root ele
ment of the document is not <xsd:schema>.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.repo
rtSchemaWarning(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getS
chemaDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.pars
eSchema(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema
(Unknown Source)
...