Kernel Configuration File

Since kernel 2.1.0, the XML configuration has got a schema for proper validation. The namespace of the schema is http://www.exoplaform.org/xml/ns/kernel_1_0.xsd. For backward compatibility the configuration file does not have to declare it and can be used as such but it is preferable to migrate the configuration file.


The correct declaration is:

<?xml version="1.0" encoding="UTF8"?>
<configuration
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
    xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">
...
</configuration>


Note that when the kernel reads a configuration it loads the file from the kernel jar using the classloader and does not use an internet connection to resolve the file.

the xsd file can be found here : http://anonsvn.jboss.org/repos/exo-jcr/kernel/trunk/exo.kernel.container/src/main/resources/org/exoplatform/container/configuration/kernel-configuration_1_0.xsd

Note that there is a newer version that comes with kernel 2.2 : http://anonsvn.jboss.org/repos/exo-jcr/kernel/trunk/exo.kernel.container/src/main/resources/org/exoplatform/container/configuration/kernel-configuration_1_1.xsd


Creator: Julien Viet on 12/10/2008
Copyright (c) 2000-2009. Allright reserved - eXo platform SAS
1.6.13286