[Yanel-usage] Problems with adding a new realm
Andreas Wuest
awuest at student.ethz.ch
Fri Jan 5 22:14:10 CET 2007
Hi
After pulling my <realm/> up above the test realm, it now works.
Does Yanel somehow depend on the order in which realms are listed in the
realms.conf?
On 5.1.2007 21:32 Uhr, 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).
>
> 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... ;)
>
--
Kind regards,
Andi
More information about the Yanel-usage
mailing list