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.
>
>> server.addContext("", baseDirectory);
>> ctx.addServletMapping("/manager/*", manager-servlet);
>
> 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-script")
p
> ie:
>
> localhost/manager/html vs localhost/html
>
> I don't know what I am exactly searching for at jconsole, so here is a overview :)
> Thnx and cheers
> Darky
>
>
>
>
> 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.InstanceNotFoundException:
>>> Tomcat:type=Deployer,host=localhost
>> 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=Deployer,host=localhost"
>>
>> to work.
>>
>>
>> p
>>
>>
>> * or VisualVM with the JConsole plugin enabled.
>>
>
|