[Yanel-dev] Configuration files not copied correctly?
Andreas Wuest
awuest at student.ethz.ch
Fri Mar 9 17:41:07 CET 2007
Hi Simon
On 9.3.2007 16:39 Uhr, simon litwan wrote:
> Andreas Wuest schrieb:
>> Hi
>>
>> I have a problem with the local.realms.xml.
>>
>> I have a "local" directory in my conf dir, which contains
>>
>> local.realms.xml
>> local.resource-types.xml
>> local.yanel.xml
>>
>> My local.yanel.xml looks like this:
>>
>> <?xml version="1.0"?>
>>
>> <yanel xmlns="http://www.wyona.org/yanel/1.0">
>> <!-- # Realms configuration -->
>> <realms-config src="local.realms.xml"/>
>>
>> <!-- # ResourceTypes configuration -->
>> <resource-types-config src="local.resource-types.xml"/>
>> </yanel>
> don't use local.resource-types.xml just resource-types.xml resp.
> realms.xml instead of local.realms.xml
>
>>
>> But when I try to access a page, I always get
>>
>> 783 2007-03-09 16:17:16,932 [http-8080-Processor24] ERROR
>> org.wyona.yanel.core.map.RealmConfiguration.readRealms():252 -
>> /Users/awuest/Documents/devel/src/wyona/repos/yanel/trunk/local/apache-tomcat-5.5.20/webapps/yanel/WEB-INF/classes/local.realms.xml
>> (No such file or directory)
>> java.io.FileNotFoundException:
>> /Users/awuest/Documents/devel/src/wyona/repos/yanel/trunk/local/apache-tomcat-5.5.20/webapps/yanel/WEB-INF/classes/local.realms.xml
>> (No such file or directory)
>>
>> And indeed, there is no local.realms.xml in my WEB-INF.
>>
>> I looked at your production server, and there the local.yanel.xml
>> looks like this:
>>
>> <?xml version="1.0"?>
>>
>> <yanel xmlns="http://www.wyona.org/yanel/1.0">
>>
>> <!-- # Realms configuration -->
>> <realms-config src="realms.xml"/>
>>
>> <!-- # ResourceTypes configuration -->
>> <resource-types-config src="resource-types.xml"/>
>>
>> </yanel>
>>
>> Note though that the realms.xml and the resource-types.xml are
>> actually called local.* in that directory, so it does not seem to use
>> the local ones.
>
> the build procees takes care of that and makes a copy of the
> local.resource-types.xml and local.realms.xml to WEB-INF/classes and
> names the target resource-types.xml resp. realms.xml
Thanks a lot! This works! :)
--
Kind regards,
Andi
More information about the Yanel-development
mailing list