[Yanel-usage] Problems with adding a new realm

Josias Thöny josias.thoeny at wyona.com
Mon Jan 8 09:28:42 CET 2007


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.

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... ;)
> 




More information about the Yanel-usage mailing list