3 Replies Latest reply on Aug 4, 2006 7:42 AM by j2ee_junkie

    Configure bundled Tomcat Manager

    dheelus

      Hi,
      Is there a way to access the bundled Tomcat manager in JBoss 4.0.2? I have tried multiple ways, but I get an exception.
      Please help.

      Thanks.
      Neel.

      exception

      javax.servlet.ServletException: Error allocating a servlet instance
      org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      java.lang.Thread.run(Thread.java:595)

      root cause

      java.lang.SecurityException: Servlet of class org.apache.catalina.manager.ManagerServlet is privileged and cannot be loaded by this web application
      org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      java.lang.Thread.run(Thread.java:595)

        • 1. Re: Configure bundled Tomcat Manager
          brian.stansberry

          Do you want the Manager webapp or the implementation of the Manager interface (which is used to manage sessions for the webapp)?

          • 2. Re: Configure bundled Tomcat Manager
            dheelus

            To be precise, I need to be able to deploy the org.apache.catalina.manager.ManagerServlet so that I can leverage the ant build tasks specified in catalina-ant.jar, like deploy/undeploy, etc. via the ANT tool.

            I am unable to deploy this servlet, so I cannot use ANT for performing these tasks. If I can do something similar using some jboss specific ANT utility, that would also serve my purpose.

            • 3. Re: Configure bundled Tomcat Manager
              j2ee_junkie

              dheelus,

              With Tomcat bundled with JBoss, you deploy to JBoss not Tomcat. Then JBoss does the deployment into Tomcat container. So if your ant script just copies your war/ear int $YOUR_SERVER/deploy that's all she wrote.

              cgriffith