Manuel Odesser wrote:
Hi,

Yes, that was very good help ! But, as usual, everything did not work as expected :'( This code :

XInterface xViewRoot = (XInterface)xConfigProvider.createInstanceWithArguments(
               "com.sun.star.configuration.ConfigurationAccess",
               properties);

throws a WrappedTargetException with the following error code :

com.sun.star.lang.WrappedTargetException: /org.mycomp.mypackage.Settings/URLs (and for locale fr) could not be created. Unable to retrieve the node from the configuration server.
The backend returned the following error:
Layer merging: No data to merge with


IIRC that means that the OOR schema is not there.

My .xsd and .xcu files are now like this :


The schema file extension should be .xcs (not .xsd). Does that fix the problem?

<oor:component-schema
   oor:name="Settings"
   oor:package="org.mycomp.mypackage"
xsi:schemaLocation="http://openoffice.org/2001/registry component-schema.xsd"

I don't think that actually is a valid schema location. Might drop this.

   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   xmlns:oor="http://openoffice.org/2001/registry";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xml:lang='en-US'>
   <oor:component>
       <group oor:name="URLs">
           <prop oor:name="dataPath" oor:type="oor:string">

As Cyrille pointed out that should be xs:string.

HTH

- Joerg

--
Joerg Barfurth              Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer                         [EMAIL PROTECTED]
Thin Client Software

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to