[Yanel-usage] Adding a new realm

Paloma Gomez paloma.gz at gmail.com
Mon Nov 13 13:55:30 CET 2006


Hi all,

I can access Yanel's website as well as the javadoc. However, I can't
access Yulup's website. It keeps asking for a password.

This is my directory tree:

$YANEL_HOME: /opt/yanel
$YULUP_WEBSITE: /opt/website
$TOMCAT_HOME: /opt/apache-tomcat-5.5.20

These are my local config files:
-----------------------------------------------------------------------
local.yanel-rti-yarep.properties
------------------------------------------------------------------------
# Relative Paths
configurations=yanel-sample,../src/realms/yanel-website/config/repository.xml,javadoc,../src/realms/javadoc/yanel-rti-repository.xml,yulup,../../website/yanel/config/yanel-rti-repository.xml

-----------------------------------------------------------------------
local.yarep.properties
------------------------------------------------------------------------
# Relative Paths
configurations=yanel-sample,../src/realms/yanel-website/config/repository.xml,javadoc,../src/realms/javadoc/yanel-rti-repository.xml,yulup,../../website/yanel/config/yanel-rti-repository.xml

------------------------------------------------------------------
local.ac-identities-yarep.properties
------------------------------------------------------------------
# Relative Paths (IMPORTANT: id needs to correspond to id within
local.)realms.xml)
configurations=yanel-sample,../src/realms/yanel-website/config/repository.xml,yulup,../../website/yanel/config/ac-identities-repository.xml

------------------------------------------------------
local.ac-policies-yarep.properties
----------------------------------------------------------
# Relative Paths (TODO: Add javadoc ac policies)
configurations=security-sample,../src/realms/yanel-website/config/repository.xml,yulup,../../website/yanel/config/ac-policies-repository.xml

------------------------------------------------------
local.realms.xml
-------------------------------------------------------
<realm id="yulup" mount-point="/yulup/">
  <name>Yulup Website</name>

<!--  <reverse-proxy>
    <host-name>www.yulup.org</host-name>
    <port></port>
    <prefix>/yanel/yulup-website</prefix>
  </reverse-proxy> -->
</realm>
-----------------------------------


After setting the local config files I've done sh build.sh clean and
then sh build.sh. After that, I have restarted Tomcat and tried to
access:

http://127.0.0.1:8080/yanel/yulup/
http://127.0.0.1:8080/yanel/yulup

Both requests result in a screen asking for a login and password.

This is my log4j.log:

-------------------------------------------------------------------------------------------------
0    2006-11-13 13:43:38,029 [http-8080-Processor25] ERROR
org.wyona.yarep.core.Repository.readConfiguration():81  -
java.io.FileNotFoundException:
/opt/apache-tomcat-5.5.20/webapps/yanel/website/yanel/config/ac-policies-repository.xml
(No such file or directory)
20   2006-11-13 13:43:38,049 [http-8080-Processor25] ERROR
org.wyona.yarep.core.Repository.readConfiguration():81  -
java.io.FileNotFoundException:
/opt/apache-tomcat-5.5.20/webapps/yanel/website/yanel/config/ac-identities-repository.xml
(No such file or directory)
53   2006-11-13 13:43:38,082 [http-8080-Processor25] ERROR
org.wyona.yarep.core.Repository.readConfiguration():81  -
java.io.FileNotFoundException:
/opt/apache-tomcat-5.5.20/webapps/yanel/website/yanel/config/yanel-rti-repository.xml
(No such file or directory)
71   2006-11-13 13:43:38,100 [http-8080-Processor25] ERROR
org.wyona.yarep.core.Repository.readConfiguration():81  -
java.io.FileNotFoundException:
/opt/apache-tomcat-5.5.20/webapps/yanel/website/yanel/config/yanel-rti-repository.xml
(No such file or directory)
148  2006-11-13 13:43:38,177 [http-8080-Processor25] ERROR
org.wyona.security.impl.PolicyManagerImpl.authorize():151  -
java.lang.NullPointerException
	at org.wyona.yarep.core.Repository.exists(Repository.java:255)
	at org.wyona.yarep.core.Repository.getInputStream(Repository.java:164)
	[...]
159  2006-11-13 13:43:38,188 [http-8080-Processor25] WARN
org.wyona.yanel.servlet.YanelServlet.doAuthorize():775  - Access
denied: http://127.0.0.1:8080/yanel/yulup
4246 2006-11-13 13:43:42,275 [http-8080-Processor25] ERROR
org.wyona.security.impl.PolicyManagerImpl.authorize():151  -
java.lang.NullPointerException
	at org.wyona.yarep.core.Repository.exists(Repository.java:255)
	at org.wyona.yarep.core.Repository.getInputStream(Repository.java:164)
	at org.wyona.security.impl.PolicyManagerImpl.authorize(PolicyManagerImpl.java:78)
	[....]
4265 2006-11-13 13:43:42,294 [http-8080-Processor25] WARN
org.wyona.yanel.servlet.YanelServlet.doAuthorize():775  - Access
denied: http://127.0.0.1:8080/yanel/yulup/
------------------------------------------------------------------------------------------------------

I don't know what I'm missing here. Any suggestions?

Thanks

Paloma



More information about the Yanel-usage mailing list