On 26/08/2011 12:31, Barbara Rosi-Schwartz wrote:

Ooops, sorry, I forgot to paste the exception in. Here it is:

_org.xml.sax.SAXParseException_: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'configurator:settings'.


It seems that one of your Spring XML files is not containing the needed declarations for the configuration namespace; such file should have an header like as the following:

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:util="http://www.springframework.org/schema/util";
       xmlns:configurator="http://cocoon.apache.org/schema/configurator";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
                           http://cocoon.apache.org/schema/configurator
http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.1.xsd";>

Regards.

Thanks again

*From:*Barbara Rosi-Schwartz [mailto:[email protected]]
*Sent:* 26 August 2011 11:29
*To:* [email protected]
*Subject:* Spring Configurator in an OSGi environment

Hello everyone.

I am wondering if anybody has any experience of using the Spring Configurator in an OSGi environment.

I am running an application under Eclipse Virgo (version 3.0.0.RELEASE) and I would like to use the Configurator for my multi-environment requirements. I have OSGi-ified the Configurator's jar and I have build a very simple test program to try it out and learn it.

Unfortunately, when my spring config file is read, I get the following exception:

This seems to indicate that the Configurator's schema file is not found. I have checked the structure of my Configurator OSGi bundle and it is exactly the same as the original jar, with all the schema files and the spring.schema and spring.handlers files where they are expected.

I have been in contact with the OSGi/Virgo guys to explore whether or not this is an OSGi issue, but so far with no success.

Does anybody have any experience or ideas to contribute?

TIA,

B.

--
Francesco Chicchiriccò

Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to