tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Chenais <Francois.Chen...@citb.bull.net>
Subject Re: /admin authentification ?
Date Tue, 29 Aug 2000 14:29:52 GMT
Something new.

in admin/WEB-INF/web.xml, I have found :
---------------------------------------------

      <auth-constraint>
         <role-name>admin</role-name>
      </auth-constraint>


in conf/tomcat-users.xlk, I have found :
------------------------------------------

<tomcat-users>
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="role1"  password="tomcat" roles="role1"  />
  <user name="both"   password="tomcat" roles="tomcat,role1" />
</tomcat-users>



so I decided to add an entry in tomcat-users.xml :
--------------------------------------------------

  <user name="admin"  password="admintomcat" roles="admin" />



Something happens when I use admin/admintomcat in dialog box 
BUT it seems to be bad !!!:-)  ANY IDEA ?
--------------------------------------------------


Error: 500

Location:/admin/contextAdmin/contextAdmin.jsp

Internal Servlet Error:

javax.servlet.ServletException: 
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:450)
        at
contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAd
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:179)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:298)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:417)
        at
org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:256)
        at
org.apache.tomcat.facade.ServletWrapper.service(ServletWrapper.java:387)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:685)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:629)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:162)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:399)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java)
Root cause:
java.lang.NullPointerException: 
        at ContextAdmin.init(ContextAdmin.java:46)
        at
contextAdmin._0002fcontextAdmin_0002fcontextAdmin_0002ejspcontextAdmin_jsp_0._jspService(_0002fcontextAdmin_0002fcontextAd
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:179)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:298)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at
org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:417)
        at
org.apache.tomcat.facade.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:256)
        at
org.apache.tomcat.facade.ServletWrapper.service(ServletWrapper.java:387)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:685)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:629)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:162)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:399)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java)
---------------------------------------------------------------------------------------------------------------------------------


François Chenais wrote:
> 
> Hello
> 
>         I am new usinf tomcat and I have a little problem with /admin
> authentification.
>         Where are the login/password set ?
> 
>         Thanks a lot
> 
>                 François
> 
> PS: I have red the FAQ and tomcat UG but I didn't find anything about
> this !
> 
> --
> Francois.Chenais@citb.bull.net
>    BULL-CITB            tel:(+33) 556 437 848   Home: chenais@insat.com
> 207, cours du Médoc     fax:(+33) 556 437 978   http://www.citb.bull.net
>  33000 Bordeaux         BullCom: 227 7848       ICQ :3886291
> --------------------------------------------------------------------
> Linux -----








-- 
Francois.Chenais@citb.bull.net
   BULL-CITB            tel:(+33) 556 437 848   Home: chenais@insat.com
207, cours du Médoc     fax:(+33) 556 437 978   http://www.citb.bull.net
 33000 Bordeaux         BullCom: 227 7848       ICQ :3886291
--------------------------------------------------------------------
Linux -----

Mime
View raw message