Author Topic: java.io.FileNotFoundException  (Read 6229 times)

kressefresser

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
java.io.FileNotFoundException
« 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...


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: java.io.FileNotFoundException
« Reply #1 on: August 28, 2008, 14:21:06 »
My suggestion is to completely disable the Java Security module.

kressefresser

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: java.io.FileNotFoundException
« Reply #2 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  :(

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: java.io.FileNotFoundException
« Reply #3 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.

kressefresser

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: java.io.FileNotFoundException
« Reply #4 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?


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: java.io.FileNotFoundException
« Reply #5 on: August 28, 2008, 16:52:36 »
Which user is running the Tomcat process?

kressefresser

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: java.io.FileNotFoundException
« Reply #6 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


« Last Edit: August 29, 2008, 10:00:25 by kressefresser »

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: java.io.FileNotFoundException
« Reply #7 on: August 29, 2008, 16:09:48 »
Tomcat is running as user tomcat - can you try running it as root, just for a test?