RE: Can't login to Tomcat manager pages
Sorry, yes, Pid, that's what I meant. Sorry for confusion there. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, April 22, 2010 2:57 AM To: Tomcat Users List Subject: Re: Can't login to Tomcat manager pages On 21/04/2010 18:45, Propes, Barry L wrote: > I started having a similar problem yesterday and discovered that somehow my > web.xml file had been deleted (not sure how), so I replaced it. > > Make sure you have that in your manager folder in WEB-INF. Barry probably meant: "make sure you have a web.xml in WEB-INF, in webapps/manager" - because a web.xml in a manager directory in (any) WEB-INF isn't going to be discovered by Tomcat. p > -Original Message- > From: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] > Sent: Wednesday, April 21, 2010 12:15 PM > To: users@tomcat.apache.org > Subject: Can't login to Tomcat manager pages > > Dear all, > > Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages > (http://localhost:8080/manager/html). I set a new user and a few roles in the > /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't possibly login. > > I browsed through a number of threads with similar issues but couldn't solve > it so far. Note that I uncommented the users section in the file, it is > reproduced below. > > Thanks for you time, > > Luís > > -- > > > > > > > > >roles="admin,standard,manager"/> > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
On Thu, Apr 22, 2010 at 2:49 PM, André Warnier wrote: > What do you see when running "ps -ef | grep tomcat" ? Hi André, I see loadsa stuff I don't understand :) Luís $ ps -ef | grep tomcat root 2129 1 0 08:07 ?00:00:00 /usr/bin/jsvc -user tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx128M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-temp -Djava.security.manager -Djava.security.policy=/var/lib/tomcat6/work/catalina.policy -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties org.apache.catalina.startup.Bootstrap root 2131 2129 0 08:07 ?00:00:00 /usr/bin/jsvc -user tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx128M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-temp -Djava.security.manager -Djava.security.policy=/var/lib/tomcat6/work/catalina.policy -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties org.apache.catalina.startup.Bootstrap tomcat6 2132 2129 0 08:07 ?00:00:12 /usr/bin/jsvc -user tomcat6 -cp /usr/share/java/commons-daemon.jar:/usr/share/tomcat6/bin/bootstrap.jar -outfile SYSLOG -errfile SYSLOG -pidfile /var/run/tomcat6.pid -Djava.awt.headless=true -Xmx128M -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-temp -Djava.security.manager -Djava.security.policy=/var/lib/tomcat6/work/catalina.policy -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties org.apache.catalina.startup.Bootstrap root 8600 1 0 14:01 pts/100:00:13 /usr/bin/java -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath :/usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/usr/share/tomcat6/temp org.apache.catalina.startup.Bootstrap start lads 9328 3055 0 14:52 pts/100:00:00 grep tomcat - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
Luís de Sousa wrote: On Thu, Apr 22, 2010 at 2:18 PM, David Smith wrote: Here's my system's tomcat-user.xml as listed w/ ls -l: -rw-r- 1 root tomcat6 1202 2010-04-22 08:15 /etc/tomcat6/tomcat-users.xml As you can see, user and group permissions are set, but the "other" permissions are all blank. This is the way it should be since it contains password information. --David That way I can't access the manager pages. Only when I added the read permissions to all Tomcat was able to validate the password. What's wrong? Probably that your Tomcat is not running under a user-id which has read access to that file. What do you see when running "ps -ef | grep tomcat" ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
On Thu, Apr 22, 2010 at 2:18 PM, David Smith wrote: > Here's my system's tomcat-user.xml as listed w/ ls -l: > > -rw-r- 1 root tomcat6 1202 2010-04-22 08:15 > /etc/tomcat6/tomcat-users.xml > > As you can see, user and group permissions are set, but the "other" > permissions are all blank. This is the way it should be since it > contains password information. > > --David That way I can't access the manager pages. Only when I added the read permissions to all Tomcat was able to validate the password. What's wrong? Luís - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
Here's my system's tomcat-user.xml as listed w/ ls -l: -rw-r- 1 root tomcat6 1202 2010-04-22 08:15 /etc/tomcat6/tomcat-users.xml As you can see, user and group permissions are set, but the "other" permissions are all blank. This is the way it should be since it contains password information. --David On 4/22/2010 9:07 AM, Luís de Sousa wrote: > On Thu, Apr 22, 2010 at 1:29 PM, David Smith > >> I have a Ubuntu 9.10 system and did exactly what you've posted above. >> It works like a charm. Have you altered anything else? Change >> permission inadvertently on tomcat-users.xml? Mine is read/write by >> root, read-only by tomcat6. >> > Well David you figured it. By some reason the tomcat-users.xml had > blank permissions for the 'all' group. I have no idea how it ended up > that way, and doubt I'd do such thing out of my own will. Go figure. > > I think I'll run a test install on another machine to see if this is > set by default. > > Thanks to all for your help, > > Luís > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
On Thu, Apr 22, 2010 at 1:29 PM, David Smith > I have a Ubuntu 9.10 system and did exactly what you've posted above. > It works like a charm. Have you altered anything else? Change > permission inadvertently on tomcat-users.xml? Mine is read/write by > root, read-only by tomcat6. Well David you figured it. By some reason the tomcat-users.xml had blank permissions for the 'all' group. I have no idea how it ended up that way, and doubt I'd do such thing out of my own will. Go figure. I think I'll run a test install on another machine to see if this is set by default. Thanks to all for your help, Luís - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
2010/4/22 Luís de Sousa : > I then performed a shutdown and startup. Unlike yesterday, today I'm > getting a "Connection refused" exception when shutting down, "Connection refused" means Tomcat was not running, or failed to stop. If it is still running, you can use "kill" utility to stop it. >From your logs: > java.net.BindException: Address already in use:8080 means that Tomcat failed to start, because another instance of Tomcat is still running and using those port numbers. By the way: The attachments to this list are usually stripped by mailing list software, but yours somehow reached me. . Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
On 4/21/2010 1:14 PM, Luís de Sousa wrote: > Dear all, > > Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages > (http://localhost:8080/manager/html). I set a new user and a few roles > in the /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't > possibly login. > > I browsed through a number of threads with similar issues but couldn't > solve it so far. Note that I uncommented the users section in the > file, it is reproduced below. > > Thanks for you time, > > Luís > > -- > > > > > > > > > > > > > I have a Ubuntu 9.10 system and did exactly what you've posted above. It works like a charm. Have you altered anything else? Change permission inadvertently on tomcat-users.xml? Mine is read/write by root, read-only by tomcat6. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can't login to Tomcat manager pages
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-common6.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.(Socket.java:392) at java.net.Socket.(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 22-Apr-2010 10:51:46 org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() 22-Apr-2010 10:51:46 org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() 22-Apr-2010 10:51:51 org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 22-Apr-2010 10:51:46 org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176) at org.apache.catalina.connector.Connector.initialize(Connector.java:1058) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795) at org.apache.catalina.startup.Catalina.load(Catalina.java:535) at org.apache.catalina.startup.Catalina.load(Catalina.java:555) 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.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) 22-Apr-2010 10:51:46 org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.catalina.connector.Connector.initialize(Connector.java:1060) at org.apache.catalina.core.StandardService.initialize(StandardService.java:677) at org.apache.catalina.core.Stand
Re: Can't login to Tomcat manager pages
On 21/04/2010 18:45, Propes, Barry L wrote: > I started having a similar problem yesterday and discovered that somehow my > web.xml file had been deleted (not sure how), so I replaced it. > > Make sure you have that in your manager folder in WEB-INF. Barry probably meant: "make sure you have a web.xml in WEB-INF, in webapps/manager" - because a web.xml in a manager directory in (any) WEB-INF isn't going to be discovered by Tomcat. p > -Original Message- > From: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] > Sent: Wednesday, April 21, 2010 12:15 PM > To: users@tomcat.apache.org > Subject: Can't login to Tomcat manager pages > > Dear all, > > Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages > (http://localhost:8080/manager/html). I set a new user and a few roles in the > /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't possibly login. > > I browsed through a number of threads with similar issues but couldn't solve > it so far. Note that I uncommented the users section in the file, it is > reproduced below. > > Thanks for you time, > > Luís > > -- > > > > > > > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > signature.asc Description: OpenPGP digital signature
Re: Can't login to Tomcat manager pages
2010/4/21 Luís de Sousa : > Dear all, > > Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages > (http://localhost:8080/manager/html). I set a new user and a few roles > in the /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't > possibly login. > > /etc/tomcat6/tomcat-users.xml I do not have Ubuntu to reproduce it, but it is possible that that file is not the one that is actually used. The file that is used in the default configuration is ${catalina.base}/conf/tomcat-users.xml -- you can see how "org.apache.catalina.UserDatabase" resource is declared in server.xml. The contents of the file looks OK for me, and you said that you did not forget to restart Tomcat. Maybe there are some error messages in the logs? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Can't login to Tomcat manager pages
I started having a similar problem yesterday and discovered that somehow my web.xml file had been deleted (not sure how), so I replaced it. Make sure you have that in your manager folder in WEB-INF. -Original Message- From: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] Sent: Wednesday, April 21, 2010 12:15 PM To: users@tomcat.apache.org Subject: Can't login to Tomcat manager pages Dear all, Tomcat 6.0.20 on Ubuntu 9.10. I can't login to the manager pages (http://localhost:8080/manager/html). I set a new user and a few roles in the /etc/tomcat6/tomcat-users.xml file, restarted Tomcat but can't possibly login. I browsed through a number of threads with similar issues but couldn't solve it so far. Note that I uncommented the users section in the file, it is reproduced below. Thanks for you time, Luís -- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org