tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luís de Sousa <luis.a.de.so...@gmail.com>
Subject Re: Can't login to Tomcat manager pages
Date Thu, 22 Apr 2010 10:04:38 GMT
Hello everyone, thank you for the answers.

I started by looking for the web.xml file, it is together with
tomcat-users.xml in the CATALINA_HOME/conf directory (/etc/tomcat6). I
don't have a manager directory under /var/lib/tomcat6/webapps so I
checked if the tomcat6-admin package is installed:

$ dpkg -l '*tomcat*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version           Description
+++-=================-=================-==================================================
ii  libtomcat6-java   6.0.20-2ubuntu2.1 Servlet and JSP engine -- core libraries
ii  tomcat6           6.0.20-2ubuntu2.1 Servlet and JSP engine
ii  tomcat6-admin     6.0.20-2ubuntu2.1 Servlet and JSP engine --
admin web applications
ii  tomcat6-common    6.0.20-2ubuntu2.1 Servlet and JSP engine -- common files
ii  tomcat6-docs      6.0.20-2ubuntu2.1 Servlet and JSP engine --
example web applications
ii  tomcat6-examples  6.0.20-2ubuntu2.1 Servlet and JSP engine --
example web applications
ii  tomcat6-user      6.0.20-2ubuntu2.1 Servlet and JSP engine --
tools to create user ins

It seems to be.

I then performed a shutdown and startup. Unlike yesterday, today I'm
getting a "Connection refused" exception when shutting down, but the
startup goes ok. The command line log is below, in attach go the
Tomcat logs for today.

Thank you,

Luís

-----

$ cd /usr/share/tomcat6/bin
$ sudo ./shutdown.sh
Using CATALINA_BASE:   /usr/share/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:       /usr
22-Apr-2010 10:51:39 org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
	at java.net.Socket.connect(Socket.java:546)
	at java.net.Socket.connect(Socket.java:495)
	at java.net.Socket.<init>(Socket.java:392)
	at java.net.Socket.<init>(Socket.java:206)
	at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:422)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
$ sudo ./startup.sh
Using CATALINA_BASE:   /usr/share/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:       /usr

Mime
View raw message