On 17/06/2011 21:14, Dark Before Dawn wrote:
> Hi guys,
> I am trying to deploy a WAR-File programmaticaly via ANT or manually.
> Therefore I would like to have a Manager Servlet which  supports
> deploying/undeploying.
> 
> My first try was something like this:
> 
>         Context ctx = server.addContext("/manager", baseDirectory);
> 
>         HTMLManagerServlet mgmt = new HTMLManagerServlet();
> 
>         mgmt.setWrapper(Tomcat.addServlet(ctx, "manager", mgmt));
> 
> I just get a 404 Error when visiting localhost:8080/manger and console
> output says:
> 
> org.apache.catalina.realm.JAASRealm setContainer
> INFO: Set JAAS app name Tomcat
> 
> I am also not sure where to set the manger name and password?
> Cheers and thanks in advance

You need to configure a Realm. Take a look in the Tomcat 7 unit tests
for examples.

There are a couple of other issues with the above:
- you don't want the HTML version
- you'll need to make the context privileged

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to