[Yanel-usage] Adding a new realm
Michael Wechner
michael.wechner at wyona.com
Mon Nov 13 15:03:06 CET 2006
Paloma Gomez wrote:
> 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
the relative paths are being resolved relative to where the file is
being located, e.g.
TOMCAT/webapps/yanel/WEB-INF/classes/...
is this correct?
You might want to try absolute paths.
The build process is patching the relative paths for yanel-sample and
javadoc, but not for yulup.
If this is your problem, which is a common problem, then maybe we should
fix it by writing a better relative path patcher
or at least a note
WDYT?
Cheers
Michi
>
>
> -----------------------------------------------------------------------
> 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
>
> _______________________________________________
> 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