aspose file tools*
The moose likes Servlets and the fly likes tomcat log file!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat log file!!" Watch "tomcat log file!!" New topic
Author

tomcat log file!!

arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
I am trying to run tomcat with cloudscape embedded into it in school library computer. But it gives me following error:
Unable to open log file: C:\tomcat\logs\servlet.log! Using stderr as the defaul
t.
Unable to open log file: C:\tomcat\logs\jasper.log! Using stderr as the default
i get follwing excptions:
:\tomcat/conf/tomcat-apache.conf (Access is denied)
java.io.FileNotFoundException: C:\tomcat/conf/tomcat-apache.conf (Access is d
ed)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at java.io.FileOutputStream.<init>(FileOutputStream.java:62)
at java.io.FileWriter.<init>(FileWriter.java:38)
at org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:97)
at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Error generating automatic IIS configuration java.io.FileNotFoundException: C
omcat/conf/iis_redirect.reg-auto (Access is denied)
java.io.FileNotFoundException: C:\tomcat/conf/iis_redirect.reg-auto (Access i
enied)
at java.io.FileOutputStream.open(Native Method)
the same combination works at my home. Please let me know what i am doing wrong here, could it be privilege problem. I tried to run as administrator in the lab, still gave me the same problem...
i am wondering if sth. needs to be configured.
thanks
arpit
arpit singla
Ranch Hand

Joined: Jun 18, 2001
Posts: 66
solved the problem i posted.. silly mistake !!
i was copying all my files from CDROM to Hard disk which had read only attribute so when i started my server, it wouldn't be able to write to log files..
thanks
 
 
subject: tomcat log file!!