tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thufir <hawat.thu...@gmail.com>
Subject manager 401 error fixed with restart
Date Mon, 02 Mar 2009 05:49:53 GMT
I'm getting:


HTTP Status 401 -

type Status report

message

description This request requires HTTP authentication ().

http://localhost:8080/manager/html


on tomcat6 for ubuntu 8.10 with sun java.  Neither restarting tomcat nor 
logging out gained access to the manager page, had to restart.

Is there a less drastic step to take in that circumstance?


thufir@arrakis:~$ cat -n /usr/local/tomcat/logs/catalina.out  | tail -n 99
101159		at java.util.logging.Logger.getLogger(Logger.java:274)
101160		at org.apache.juli.logging.DirectJDKLog.<init>
(DirectJDKLog.java:71)
101161		at org.apache.juli.logging.DirectJDKLog.getInstance
(DirectJDKLog.java:178)
101162		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:170)
101163		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:241)
101164		at org.apache.juli.logging.LogFactory.getLog
(LogFactory.java:296)
101165		at org.apache.catalina.startup.Bootstrap.<clinit>
(Bootstrap.java:54)
101166	java.util.logging.ErrorManager: 4
101167	java.io.FileNotFoundException: /usr/local/tomcat/logs/
admin.2009-03-01.log (Permission denied)
101168		at java.io.FileOutputStream.openAppend(Native Method)
101169		at java.io.FileOutputStream.<init>
(FileOutputStream.java:177)
101170		at java.io.FileOutputStream.<init>
(FileOutputStream.java:102)
101171		at java.io.FileWriter.<init>(FileWriter.java:61)
101172		at org.apache.juli.FileHandler.open(FileHandler.java:259)
101173		at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
101174		at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
101175		at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
101176		at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
101177		at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
101178		at java.lang.reflect.Constructor.newInstance
(Constructor.java:513)
101179		at java.lang.Class.newInstance0(Class.java:355)
101180		at java.lang.Class.newInstance(Class.java:308)
101181		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:404)
101182		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:348)
101183		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:239)
101184		at java.util.logging.LogManager$2.run(LogManager.java:258)
101185		at java.security.AccessController.doPrivileged(Native 
Method)
101186		at 
java.util.logging.LogManager.readPrimordialConfiguration
(LogManager.java:256)
101187		at java.util.logging.LogManager.getLogManager
(LogManager.java:239)
101188		at java.util.logging.Logger.<init>(Logger.java:221)
101189		at java.util.logging.LogManager$RootLogger.<init>
(LogManager.java:973)
101190		at java.util.logging.LogManager$RootLogger.<init>
(LogManager.java:970)
101191		at java.util.logging.LogManager$1.run(LogManager.java:179)
101192		at java.security.AccessController.doPrivileged(Native 
Method)
101193		at java.util.logging.LogManager.<clinit>
(LogManager.java:156)
101194		at java.util.logging.Logger.getLogger(Logger.java:274)
101195		at org.apache.juli.logging.DirectJDKLog.<init>
(DirectJDKLog.java:71)
101196		at org.apache.juli.logging.DirectJDKLog.getInstance
(DirectJDKLog.java:178)
101197		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:170)
101198		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:241)
101199		at org.apache.juli.logging.LogFactory.getLog
(LogFactory.java:296)
101200		at org.apache.catalina.startup.Bootstrap.<clinit>
(Bootstrap.java:54)
101201	java.util.logging.ErrorManager: 4
101202	java.io.FileNotFoundException: /usr/local/tomcat/logs/host-
manager.2009-03-01.log (Permission denied)
101203		at java.io.FileOutputStream.openAppend(Native Method)
101204		at java.io.FileOutputStream.<init>
(FileOutputStream.java:177)
101205		at java.io.FileOutputStream.<init>
(FileOutputStream.java:102)
101206		at java.io.FileWriter.<init>(FileWriter.java:61)
101207		at org.apache.juli.FileHandler.open(FileHandler.java:259)
101208		at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
101209		at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
101210		at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
101211		at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
101212		at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
101213		at java.lang.reflect.Constructor.newInstance
(Constructor.java:513)
101214		at java.lang.Class.newInstance0(Class.java:355)
101215		at java.lang.Class.newInstance(Class.java:308)
101216		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:404)
101217		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:348)
101218		at org.apache.juli.ClassLoaderLogManager.readConfiguration
(ClassLoaderLogManager.java:239)
101219		at java.util.logging.LogManager$2.run(LogManager.java:258)
101220		at java.security.AccessController.doPrivileged(Native 
Method)
101221		at 
java.util.logging.LogManager.readPrimordialConfiguration
(LogManager.java:256)
101222		at java.util.logging.LogManager.getLogManager
(LogManager.java:239)
101223		at java.util.logging.Logger.<init>(Logger.java:221)
101224		at java.util.logging.LogManager$RootLogger.<init>
(LogManager.java:973)
101225		at java.util.logging.LogManager$RootLogger.<init>
(LogManager.java:970)
101226		at java.util.logging.LogManager$1.run(LogManager.java:179)
101227		at java.security.AccessController.doPrivileged(Native 
Method)
101228		at java.util.logging.LogManager.<clinit>
(LogManager.java:156)
101229		at java.util.logging.Logger.getLogger(Logger.java:274)
101230		at org.apache.juli.logging.DirectJDKLog.<init>
(DirectJDKLog.java:71)
101231		at org.apache.juli.logging.DirectJDKLog.getInstance
(DirectJDKLog.java:178)
101232		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:170)
101233		at org.apache.juli.logging.LogFactory.getInstance
(LogFactory.java:241)
101234		at org.apache.juli.logging.LogFactory.getLog
(LogFactory.java:296)
101235		at org.apache.catalina.startup.Bootstrap.<clinit>
(Bootstrap.java:54)
101236	Mar 1, 2009 9:44:00 PM org.apache.catalina.core.StandardService 
stop
101237	INFO: Stopping service Catalina
101238	Mar 1, 2009 9:44:00 PM org.apache.coyote.http11.Http11Protocol 
destroy
101239	INFO: Stopping Coyote HTTP/1.1 on http-8080
101240	Mar 1, 2009 9:44:01 PM 
org.apache.catalina.core.AprLifecycleListener init
101241	INFO: The APR based Apache Tomcat Native library which allows 
optimal performance in production environments was not found on the 
java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386/client:/
usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/i386:/usr/lib/jvm/java-6-
sun-1.6.0.10/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
101242	Mar 1, 2009 9:44:01 PM org.apache.coyote.http11.Http11Protocol 
init
101243	INFO: Initializing Coyote HTTP/1.1 on http-8080
101244	Mar 1, 2009 9:44:01 PM org.apache.catalina.startup.Catalina load
101245	INFO: Initialization processed in 1390 ms
101246	Mar 1, 2009 9:44:01 PM org.apache.catalina.core.StandardService 
start
101247	INFO: Starting service Catalina
101248	Mar 1, 2009 9:44:01 PM org.apache.catalina.core.StandardEngine 
start
101249	INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
101250	Mar 1, 2009 9:44:02 PM org.apache.jasper.EmbeddedServletOptions 
<init>
101251	SEVERE: The scratchDir you specified: /usr/local/tomcat/work/
Catalina/localhost/host-manager is unusable.
101252	Mar 1, 2009 9:44:02 PM org.apache.jasper.EmbeddedServletOptions 
<init>
101253	SEVERE: The scratchDir you specified: /usr/local/tomcat/work/
Catalina/localhost/examples is unusable.
101254	Mar 1, 2009 9:44:02 PM org.apache.jasper.EmbeddedServletOptions 
<init>
101255	SEVERE: The scratchDir you specified: /usr/local/tomcat/work/
Catalina/localhost/docs is unusable.
101256	Mar 1, 2009 9:44:02 PM org.apache.jasper.EmbeddedServletOptions 
<init>
101257	SEVERE: The scratchDir you specified: /usr/local/tomcat/work/
Catalina/localhost/_ is unusable.
thufir@arrakis:~$ ll /usr/local/tomcat/work/Catalina 
ls: cannot access /usr/local/tomcat/work/Catalina: Permission denied
thufir@arrakis:~$ sudo ls -al /usr/local/tomcat/work/Catalina 
[sudo] password for thufir: 
total 12
drw-rw-rw- 3 thufir thufir 4096 2009-01-15 22:17 .
drw-rw-rw- 3 thufir thufir 4096 2009-01-15 22:17 ..
drw-rw-rw- 9 thufir thufir 4096 2009-03-01 20:37 localhost
thufir@arrakis:~$ 
thufir@arrakis:~$ 
thufir@arrakis:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"
thufir@arrakis:~$ 







thanks,

Thufir


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message