On Thu, 17 Mar 2005 16:35:43 +0530 "Karanjkar, Sanjay V \(IT\)" <[EMAIL PROTECTED]> wrote:
> Hi Lionel, > > Thanks for your response. I tried both suggestions but no luck.. > Maybe it's something to do with the fact that I've not *installed* > tomcat but only copied the binaries from an installed location (then > how come the maanger app works? :-( > The Manager, by default, is installed but not activated. In your installation, you have - $CATALINA_HOME/server/lib/servlets-manager.jar - $CATALINA_HOME/webapps/manager.xml You have to add: <role rolename="manager"/> <user username="userid" password="password" roles="manager"/> And you can access to the HTML manager (in the default installation) with : http://localhost:8080/manager/html/ > Anyways, I also have a problem when shutting down tomcat. When I run > shutdown.sh, I get the following error and there are process threads > that I have to kill manually.... > I have not altered the default server.xml (Ajp13 connector is not > commented out) so can someone help me? > > Catalina.stop: java.net.ConnectException: Connection refused > java.net.ConnectException: Connection refused > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) > at > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) > at java.net.Socket.<init>(Socket.java:268) > at java.net.Socket.<init>(Socket.java:95) > at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) > at > org.apache.catalina.startup.Catalina.execute(Catalina.java:402) > at > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > at java.lang.reflect.Method.invoke(Native Method) > at > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > gmake: *** [stop_tomcat] Error 1 > I think you have to re-install properly your Tomcat... (and verify your port 8080 is free, otherwise change it). > Thanks in advance > Sanjay Karanjkar > fc3sdi team > > -----Original Message----- > From: Lionel Farbos [mailto:[EMAIL PROTECTED] > Sent: 17 March 2005 09:58 > To: Tomcat Users List > Cc: Karanjkar, Sanjay V (IT) > Subject: Re: Problem with BASIC authentication > > Hi, > > Compared to Manager's web.xml, it seems you don't have the section > <resource-env-ref> with the link to your user DataBase. > Perhaps, try to put the role names without a - (rather a _ or nothing) > > Cheers. > > On Thu, 17 Mar 2005 10:49:29 +0530 > "Karanjkar, Sanjay V \(IT\)" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Anyone had a chance to look at this one yet? > > > > Thanks > > Sanjay > > > > -----Original Message----- > > From: Karanjkar, Sanjay V (IT) > > Sent: 15 March 2005 11:19 > > To: tomcat-user@jakarta.apache.org > > Subject: Problem with BASIC authentication > > > > Hi, > > > > I have the following setup: > > > > 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely > > *copied* the entire tomcat folder from another installed location > > instead of installing it) > > > > 2. My application WAR file referenced by the following Context in > > Server.xml: > > <Context path="/ieg-sc" > > docBase="/var/tmp/DEV/install/common/lib/tc.ieg.war" > > reloadable="true" debug="99" privileged="true"> > > <ResourceLink name="users" > > type="org.apache.catalina.UserDatabase" global="UserDatabase"/> > > </Context> > > > > 3. My app's web.xml has the following: > > <security-constraint> > > <web-resource-collection> > > <web-resource-name>My Application</web-resource-name> > > <url-pattern>/*</url-pattern> > > </web-resource-collection> > > <auth-constraint> > > <role-name>ieg-sc-user</role-name> > > </auth-constraint> > > <user-data-constraint> > > <transport-guarantee>NONE</transport-guarantee> > > </user-data-constraint> > > </security-constraint> > > <!-- Define the Login Configuration for this Application --> > > <login-config> > > <auth-method>BASIC</auth-method> > > <realm-name>My Application</realm-name> > > </login-config> > > <security-role> > > <role-name>ieg-sc-user</role-name> > > </security-role> > > > > 4. I have defined the user/role in conf/tomcat-users.xml: > > <?xml version='1.0' encoding='utf-8'?> <tomcat-users> > > <role rolename="ieg-sc-user"/> > > <user username="userid" password="passwd" roles="ieg-sc-user"/> > > </tomcat-users> > > > > When I start tomcat, everything seems to run fine except that I do not > > > get a login window! I have gone over the setup so many times now, I'm > > going mad....Have I missed something? Is it because I've copied the > > tomcat binaries instead of installing it? If so, why does > > authentication work correctly for the inbuilt Manager application..? > > > > Appreciate if you could help me.. > > > > Thanks and regards > > Sanjay Karanjkar > > -------------------------------------------------------- > > > > NOTICE: If received in error, please destroy and notify sender. > > Sender does not waive confidentiality or privilege, and use is > prohibited. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -------------------------------------------------------- > > > > NOTICE: If received in error, please destroy and notify sender. > Sender does not waive confidentiality or privilege, and use is > prohibited. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender does > not waive confidentiality or privilege, and use is prohibited. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]