Spring context fails without network connection
.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:96)
...
When a network connection is present, the application works fine, but Spring fetches the following two schemas repeatedly (once for each Spring-enabled bundle) on startup:
schem...-beans-3.0.xsd
schem...g-tool-3.0.xsd
Here's how all spring-context.xml files start:Code:
lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;
lt;beans xmlns=quot;schema/beansquot; xmlns:context=quot;schema/contextquot; xmlns sgi=quot;schema/osgiquot; xmlns:tx=quot;schema/txquot; xmlns:xsi=quot;2001/XMLSchema-instancequot; xsi:schemaLocation=quot; schema/beans schema/beans/spring-beans-3.0.xsd schema/context schema/context/spring-context-3.0.xsd schema/osgi schema/osgi/spring-osgi-2.0-m1.xsd schema/tx schema/tx/spring-tx-3.0.xsdquot; osgi:default-timeout=quot;10000quot;
gt;
I'm using the org..beans-3.0.5.RELEASE.jar bundle.
Anyone else encountered this issue?
For the record: The spring-beans bundle (which contains the two schemas) needs to be started (before the spring extender bundle is started). See browse/OSGI-810. |