RE: adding servlet definition to context on the fly :Tomcat 5.5

2008-10-05 Thread ram . sriharsha
Hi Martin, DeploymentDescriptor is simply a bean that holds the web.xml info we want to add on the fly , its not a Tomcat class. basically it holds the init params, servlet name/class and servlet mapping...those were the only aspects of web.xml we wanted to add on the fly. Similarly

adding servlet definition to context on the fly :Tomcat 5.5

2008-10-04 Thread ram . sriharsha
Hi, I had written some code to dynamically add a servlet to a context in a deployed applicaiton in Tomcat 4.1. This code basically uses the catalina loader to obtain the server-engine-host-and context, and invokes the addChild method after configuring a StandardWwrapper to represent the servlet I

Re: adding servlet definition to context on the fly :Tomcat 5.5

2008-10-04 Thread ram . sriharsha
Hi Johnny, Th code i used is basically the one you have in your last email... I have an app running in privileged mode, and it has to add a servlet definition on the fly to another app...so in my app i call a method and pass the description of the other application as well as the servlet

In memory copy of web.xml

2008-05-19 Thread ram . sriharsha
Hi, I am writing an application where we need to edit the client's web.xml file to provide a context path to a servlet inside our jars. Right now, I am only able to eidt the web.xml file when Tomcat is shutdown, as the file is locked when Tomcat is running. I assume Tomcat makes an internal

Re: basic authentication with tomcat 4.1.36

2008-03-19 Thread ram . sriharsha
Hi Chris, I figured out why the code I wrote did not work(had to look into the Authentication class inside Tomcat source code to figure it out!). The reason was when I was setting Request Property for Authentication, I was missing a space

Tomcat 4.1.36 and JMX

2008-03-18 Thread ram . sriharsha
Hi, I am trying to connect remotely to Tomcat 4.1.36 via JMX, and am unable to do so. I tried to set mx.port =9000,mx.enable=true etc, in jk2.properties, and uncommented the Connector in server.xml. I am running the remote machine in java 1.4.2, and port 9000 does not seem to be enabled. I am

basic authentication with tomcat 4.1.36

2008-03-18 Thread ram . sriharsha
Hi, I am trying to undeploy applications from Tomcat 4.1 using basic authentication, by writing a small HTTP client that uses a URL connection to request the Tomcat Manager to undeploy application given the context. Unfortunately, this is not working! If I remove the login-config details

Tomcat 4.1 question(viewing html pages)

2008-01-16 Thread ram . sriharsha
Hi, I have the following question: to view a html page from the webapps directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do was create a sub-folder in webapps and put the html page inside it. Then using the right URL, I can access the page...This does not work in Tomcat 4.1

Re: Tomcat 4.1 question(viewing html pages)

2008-01-16 Thread ram . sriharsha
Hi Mark, Thanks for your helpful comment..it solved the problem. Ram [EMAIL PROTECTED] wrote: Hi, I have the following question: to view a html page from the webapps directory of Tomcat, what do I need to do? In Tomcat 5.5 all I had to do was create a sub-folder in webapps and put the