Am 17.06.2011 23:47, schrieb Caldarale, Charles R:
From: Dark Before Dawn [mailto:dark.before.d...@gmail.com]
Subject: Re: Tomcat 7 Embedded: Manager
Where can i find the unit test examples?
I browsed the src distribution but couldn't find any
examples (I think I am blind :)
Quite possibly, since they're cunningly hidden in a directory named ... test.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
Yeah!
I finally found the Unit-Tests and got it basically working : the
(HTML)ManagerServlet via MapRealm and Digest-Auth. Thanks so far :)
When using HTMLManagerServlet and navigating to http://localhost/manager
the Manager's HTML Interface will appear. This is also OK but when
following any links I am led back to the ROOT.
i.e the ServerStatus-Link will lead to http://localhost/status
or when using the normal ManagerServlet I get an error > "FAIL - Unknown
command /manager"
console output:
org.apache.catalina.core.ApplicationContext log
INFO: manager: init: Associated with Deployer
'Tomcat:type=Deployer,host=localhost'
It looks like the |Manager Servlet Mapping is wrong. Can you tell me how
to set it programatically for /deploy /undeploy ?
Cheers
Darky
BTW: Here is the Code Snippet without Auth and Realm.
StandardContext ctx = (StandardContext)
server.addWebapp("", "");
ManagerServlet mgmt = new ManagerServlet();
Wrapper mgmt_wrapper = Tomcat.addServlet(ctx, "manager", mgmt);
mgmt.setWrapper(mgmt_wrapper);
ctx.addServletMapping("/manager", "manager");
|