Tomcat User problem

Discussions

XML & Web services: Tomcat User problem

  1. Tomcat User problem (3 messages)

    Can anybody tell me what is the username and password for tomcat 4.1.18 administrator becoz i tried username:tomcat and password:tomcat but it doesn't work.

    Please it is urgent

    thanks

    Chintan

    Threaded Messages (3)

  2. Tomcat User problem[ Go to top ]

    Tomcat user store is in file TOMCAT_HOME/conf/tomcat-users.xml

    Just edit this file like on example below you ca login as admin/admin after restart of server that's all.


    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="admin" description="Server administrators"/>
      <role rolename="manager" description="Users with with access to Administration tool"/>
      <user username="admin" password="admin" roles="admin,manager"/>
    </tomcat-users>


    Hope this wil help you

    Jaroslav Brazda
    Senior Engineer, Systinet

    Phone: +420 272 019 539
    eMail: jaroslav dot brazda at systinet dot com
    icq: 114543450
    http://www.systinet.com
  3. Tomcat User problem[ Go to top ]

    Thanks Jaroslav Brazda
    It works fine

    Thanks onece agian
    i have also one problem. I wrote java and class file and put it in Jakarata_home/webapps
    /new/com/instantjsp/ and my jspfile is in /new directory so when i run jsp file it shows me webapps.new.com.instantjsp.MiscSystemProp classnot found exception

    so what can i do?
    Please suggest me
  4. classloaders[ Go to top ]

    You have to put your classes into your_app_root/WEB-INF/classes directory. This is the classpath root for your application context classloader. your optional jars you should put into your_app_root/WEB-INF/lib any jar file in this directory is automatically on your application classpath.

    See the servlet specification on http://java.sun.com/products/servlet/download.html

    Hope this helps

    Jaroslav Brazda
    Senior Engineer, Systinet

    Phone: +420 272 019 539
    eMail: jaroslav dot brazda at systinet dot com
    icq: 114543450
    http://www.systinet.com