[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-install
Subject: Re: [opennms-install] Two java exceptions on Log4JLogger
From: Howard Tsai <changhaotsai () yahoo ! com>
Date: 2006-07-31 17:37:10
Message-ID: 20060731173710.86864.qmail () web60311 ! mail ! yahoo ! com
[Download RAW message or body]
--- Howard Tsai <changhaotsai@yahoo.com> wrote:
> --- Eric Evans <eevans@rackspace.com> wrote:
> > On Mon, 2006-07-31 at 06:35 -0700, Howard Tsai wrote:
> > > I am installing OpenNMS 1.2.8 on Debian Sarge on AMD Opteron (AMD64,
> > > dual-core). I use tomcat4 4.1.31 with Blackdown Java 1.4.2 SDK. The
> > OpenNMS
> > > is compiled from source. The compilication went fine (as far as I know)
> > but
> > > after installation I can't access OpenNMS at
> http://hostname:8180/opennms/
> > The
> > > error code is HTTP Status 404 - /opennms/ - The requested resource
> > (/opennms/)
> > > is not available. I found the following lines from my tomcat4 logs
> > > (localhost_[date].log). Tomcat4 is running as root. Could you help me
> > figure
> > > out what is wrong?
> >
> > You need a copy of opennms_web.jar, (or a symlink pointing to it), in
> > your tomcat's server/lib directory, (/usr/share/tomcat4/server/lib if
> > you have the debian package of tomcat4).
>
> Thanks for your prompt reply.
>
> opennms_web.jar and the other 5 jars were sym-linked to the installation
> directory. I copied all 6 files into /usr/share/tomcat4/server/lib and then
> tomcat4 can deploy the webapp successfully. Is there a switch to allow
> sym-links?
>
> Howard, when I try to access opennms webapp, there is another Java Exception
> showed on the browser:
>
> java.security.AccessControlException: access denied (java.io.FilePermission
> /usr/local/src/opennms-1.3.1-1/source/dist/etc/map.enable read)
>
> The file map.enable is readable to everyone (644). How do I allow
> opennms/tomcat to access opennms files?
I am answering one of my own question.
Just create a file in /etc/tomcat4/policy.d and include the following content:
grant codeBase "file:/usr/local/src/opennms-1.3.1-1/source/dist/-" {
permission java.security.AllPermission;
};
Does anyone know how to allow sym-link'ed jar in tomcat4?
Howard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic