Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Problem resolving blueprint.xsd
Problem resolving blueprint.xsd [message #1121495] Mon, 30 September 2013 17:35 Go to next message
Thorsten Schlathölter is currently offline Thorsten Schlathölter
Messages: 208
Registered: February 2012
Location: Düsseldorf
Senior Member
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 19:53 Go to previous message
Thorsten Schlathölter is currently offline Thorsten Schlathölter
Messages: 208
Registered: February 2012
Location: Düsseldorf
Senior Member
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


Previous Topic:ATTN: Gemini Management subproject about to be shut down!
Next Topic:Latest Gemini Mgmt complies with OSGi spec version 4.2 or 5.0 or ... ?
Goto Forum:
  


Current Time: Wed Oct 22 15:31:48 GMT 2014

Powered by FUDForum. Page generated in 0.01982 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software