[Yanel-usage] Problems with adding a new realm

Michael Wechner michael.wechner at wyona.com
Mon Jan 8 09:40:45 CET 2007


Josias Thöny wrote:

>On Fri, 2007-01-05 at 21:32 +0100, Andreas Wuest wrote:
>  
>
>>Hi
>>
>>I wanted to create a local test realm to toy around with Yulup.
>>
>>I've added a new realm, as described in 
>>http://127.0.0.1:8080/yanel/yanel-website/en/documentation/how-to-add-a-new-realm.html.
>>
>>I've copied the file conf/realms.conf to conf/local/local.realms.conf, 
>>and added a new entry at the bottom of the file:
>>
>><realm id="blog" mount-point="/blog/">
>>   <name>Andreas Wuest's Blog</name>
>>   <config 
>>src="/Users/awuest/Documents/devel/src/blog/yanel/config/yanel-realm-config.xml"/>
>></realm>
>>
>>Then did a ./build.sh clean, ./build.sh, and ./yanel.sh start.
>>
>>My new realm indeed shows up on http://127.0.0.1:8080/yanel/ in the 
>>"Registered Realms" section.
>>
>>Interestingly enough, this link points to 
>>http://127.0.0.1:8080/yanel/blog/ (I thought it might point to 
>>http://127.0.0.1:8080/blog/, but whatever).
>>    
>>
>
>/yanel is just the servlet context path. 
>Since there is only one yanel servlet which controls all realms, the
>context path is there for all realms.
>You could get rid of it by deploying yanel in the root context of your
>servlet container.
>  
>

which can be configured within src/build/local.build.properties


Cheers

Michi

>Josias
>
>  
>
>>Accessing this page gives me the following error though:
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><yanel 
>>servlet-context-real-path="/Users/awuest/Documents/devel/src/wyona/yanel/trunk/local/apache-tomcat-5.5.20/webapps/yanel/">
>>   <request servlet-path="/blog/" uri="/yanel/blog/"/>
>>   <session id="AD96E79826532B323021A941A8A5E84B">
>>     <no-attributes/>
>>   </session>
>>   <resource-type-identifier local-name="file" 
>>namespace="http://www.wyona.org/yanel/resource/1.0"/>
>>   <resource>
>>     <view>View Descriptors: null</view>
>>     <size>-1</size>
>>   </resource>
>>   <exception>org.wyona.yarep.core.NoSuchNodeException: 
>>/Users/awuest/Documents/devel/src/wyona/yanel/trunk/src/realms/welcome-admin/yanel/data/blog 
>>(No such file or directory)
>>   </exception>
>></yanel>
>>
>>It looks like Yanel tries to access 
>>/Users/awuest/Documents/devel/src/wyona/yanel/trunk/src/realms/welcome-admin/yanel/data/blog.
>>
>>But my data resides in /Users/awuest/Documents/devel/src/blog/yanel/data/.
>>
>>BTW: I've simply copied the from-scratch-template, without modifying 
>>anything in there (except the <name/> in yanel-realm-config.xml).
>>
>>PS: Yes, I've unset CATALINA_HOME... ;)
>>
>>    
>>
>
>
>_______________________________________________
>Yanel-usage mailing list
>Yanel-usage at wyona.com
>http://wyona.com/cgi-bin/mailman/listinfo/yanel-usage
>
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-usage mailing list