QueueMetrics forum

QueueMetrics => QueueMetrics installation => Topic started by: kressefresser on August 28, 2008, 12:17:06

Title: java.io.FileNotFoundException
Post by: kressefresser on August 28, 2008, 12:17:06
Hello,

I´m new to QueueMetrics, so I hope my questions aren´t to dumb.

I´ve installed QueueMetrics 1.4.5 on a Gentoo Server with Tomcat 6 and Asterisk 1.2.

All works fine except of importing files form the server.

I always get an java.io.FileNotFoundException: /var/log/asterisk/queue_log (Permission denied) if I try to generate a report. The permissions on that file are read/write for all.

In the FAQ there is a part about "How do I run QueueMetrics with Java Security?". I´ve tried this out, but the effekt is the same. So what can I do? ???

Sorry for my bad English...

Title: Re: java.io.FileNotFoundException
Post by: QueueMetrics on August 28, 2008, 14:21:06
My suggestion is to completely disable the Java Security module.
Title: Re: java.io.FileNotFoundException
Post by: kressefresser on August 28, 2008, 14:30:55
My suggestion is to completely disable the Java Security module.


How can I disable this? I´m completly new to this Tomcat Stuff and our Admin is on vacation  :(
Title: Re: java.io.FileNotFoundException
Post by: QueueMetrics on August 28, 2008, 14:35:21
See if this applies - I've never used Gentoo but this is a Tomcat setting:

http://astrecipes.net/index.php?n=227

http://queuemetrics.com/faq.jsp#faq-047-java_security

Basically if you look on the License page for the property java.security.policy, you find to what file it points to and try to delete it and restart.
Title: Re: java.io.FileNotFoundException
Post by: kressefresser on August 28, 2008, 14:44:08
Quote
Basically if you look on the License page for the property java.security.policy, you find to what file it points to and try to delete it and restart.

On my License page there is no java.security.policy part  ??? May there other reasons for getting this Exceptions?

Title: Re: java.io.FileNotFoundException
Post by: QueueMetrics on August 28, 2008, 16:52:36
Which user is running the Tomcat process?
Title: Re: java.io.FileNotFoundException
Post by: kressefresser on August 29, 2008, 09:58:27
Hello,

if I do ps -aux |grep tomcat, I get:

Code: [Select]
root     27772  0.0  0.0   9588  1440 pts/0    S    09:49   0:00 /bin/bash /sbin/runscript.sh /etc/init.d/tomcat-6 start
tomcat   27777  188  1.5 1293188 61440 pts/0   Sl   09:49   0:01 /opt/sun-jdk-1.6.0.07/bin/java
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat-6//conf/logging.properties
-classpath /usr/share/tomcat-6/lib/:/usr/share/tomcat-6//lib:/opt/sun-jdk-1.6.0.07/lib/tools.jar:/usr/share/tomcat-6//bin/bootstrap.jar:/usr/share/tomcat-6//bin/tomcat-juli.jar
-Dcatalina.base=/var/lib/tomcat-6/ -Dcatalina.home=/usr/share/tomcat-6/ -Djava.io.tmpdir=/var/tmp/tomcat-6/ org.apache.catalina.startup.Bootstrap start


Title: Re: java.io.FileNotFoundException
Post by: QueueMetrics on August 29, 2008, 16:09:48
Tomcat is running as user tomcat - can you try running it as root, just for a test?