Problem resolving blueprint.xsd [message #1121495] |
Mon, 30 September 2013 13:35  |
Eclipse User |
|
|
|
Hi all,
I have a problem in getting my gemini blueprint server application running. I know it worked before (a couple of month ago) and I did not touch the workspace or the launch configuration.
The problem is that the
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
cannot be resolved by the schema resolver. I get the following error:
2013-09-30 13:56:57,409 TRACE org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader ()- Looking for resource org/springframework/beans/factory/xml/spring-beans-2.5.xsd
2013-09-30 13:56:57,409 TRACE org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader ()- Found resource org/springframework/beans/factory/xml/spring-beans-2.5.xsd at bundleresource://72.fwk25463023/org/springframework/beans/factory/xml/spring-beans-2.5.xsd
2013-09-30 13:56:57,409 DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver ()- Found XML schema [http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] in classpath: org/springframework/beans/factory/xml/spring-beans-2.5.xsd
2013-09-30 13:56:57,409 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Entity [null|http://www.springframework.org/schema/beans/spring-beans-2.5.xsd] was resolved through entity resolver LocalEntityResolver for bundle Web Bundle (com.portigon.server.web)
2013-09-30 13:56:57,409 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Trying to resolve entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] through resolver LocalEntityResolver for bundle Web Bundle (com.portigon.server.web)
2013-09-30 13:57:02,579 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] was not resolved through entity resolver LocalEntityResolver for bundle Web Bundle (com.portigon.server.web)
2013-09-30 13:57:02,579 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Trying to resolve entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] through resolver OSGi Service resolver
2013-09-30 13:57:08,561 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] was not resolved through entity resolver OSGi Service resolver
2013-09-30 14:00:17,801 DEBUG org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext ()- Refresh error
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 15 in XML document from URL [bundleentry://33.fwk25463023/WEB-INF/com.portigon.server.web-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.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 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)
Since the blueprint.xsd cannot be resolved locally a socket connection is opened to gather the schema definition. The problem is that I am sitting behind a corporate firewall and access to web resources is only granted by a proxy. So the socket basically waits for the timeout and then the above exception is thrown. I know that the application was able to resolve that file locally before but I am not sure how it did accomplish this.
Any ideas?
Thanks in advance
Thorsten
|
|
|
Re: Problem resolving blueprint.xsd [message #1121595 is a reply to message #1121495] |
Mon, 30 September 2013 15:53  |
Eclipse User |
|
|
|
I solved it. It is a matter of bundle startup sequence. I have the blueprint extender bundle on autostart but i did not specify a certain start level. Thus it has a default start level of 4 like most of the other bundles as well. If the extender bundle is started prior to schema resolving (e.g. with start level = 3), the bundle registers a service which is then used by the OSGI Service Resolver to resolve the respective schema file from the bundle classpath. So setting the start level to 3 does the trick.
This is the trace of the working configuration:
2013-09-30 16:17:25,949 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Trying to resolve entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] through resolver LocalEntityResolver for bundle Core (com.portigon.server.action.core)
2013-09-30 16:17:25,949 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] was not resolved through entity resolver LocalEntityResolver for bundle Core (com.portigon.server.action.core)
2013-09-30 16:17:25,949 TRACE org.eclipse.gemini.blueprint.context.support.ChainedEntityResolver ()- Trying to resolve entity [null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd] through resolver OSGi Service resolver
2013-09-30 16:17:25,949 DEBUG org.eclipse.gemini.blueprint.extender.internal.support.NamespacePlugins ()- Trying to resolving entity for null|http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
2013-09-30 16:17:25,949 TRACE org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader ()- Looking for resource org/eclipse/gemini/blueprint/blueprint/config/blueprint-1.0.xsd
2013-09-30 16:17:25,949 TRACE org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader ()- Found resource org/eclipse/gemini/blueprint/blueprint/config/blueprint-1.0.xsd at bundleresource://6.fwk6867819/org/eclipse/gemini/blueprint/blueprint/config/blueprint-1.0.xsd
|
|
|
Powered by
FUDForum. Page generated in 0.02692 seconds