tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Tomcat 7 Embedded: Manager
Date Fri, 01 Jul 2011 15:54:10 GMT
On 01/07/2011 12:44, Dark Before Dawn wrote:
> Hi Pid,
> i guess the problem is that the manager-servlet's context is "mounted"
> at root and the ServletMapping points to /manager.
>=20
>> server.addContext("", baseDirectory);
>> ctx.addServletMapping("/manager/*", manager-servlet);
>=20
> So all relative paths will point to root

That's easy to change, no?

 server.addContext("/manager", baseDirectory);
 ctx.addServletMapping("/text/*", manager-servlet);

Note the additional '*' in the security collection:

 collection.addPattern("/text/*");

(The role usually assigned for the text manager servlet is "manager-scrip=
t")


p


> ie:
>=20
> localhost/manager/html vs localhost/html
>=20
> I don't know what I am exactly searching for at jconsole, so here is a =
overview :)
> Thnx and cheers
> Darky
>=20
>=20
>=20
>=20
> Am 01.07.2011 12:46, schrieb Pid:
>> On 01/07/2011 10:40, Dark Before Dawn wrote:
>>> Hi again,
>>> this is realy driving me nuts for weeks :)
>>
>>> FAIL - Encountered exception javax.management.InstanceNotFoundExcepti=
on:
>>> Tomcat:type=3DDeployer,host=3Dlocalhost
>> 1. Connect to your running instance with JConsole*.
>> 2. Examine the MBeans published by the instance.
>> 3. Confirm that you are connecting to the correct MBean.
>>
>>
>> I wouldn't expect:
>>
>>  "Tomcat:type=3DDeployer,host=3Dlocalhost"
>>
>> to work.
>>
>>
>> p
>>
>>
>> * or VisualVM with the JConsole plugin enabled.
>>
>=20



Mime
View raw message