Re: Tomcat CPU Profiler

2006-10-13 Thread Mark Miller
http://eclipsecolorer.sourceforge.net/index_profiler.html Is a nice eclipse profiler that can profile tomcat. I am sure there are many others as well. Unfortunatley, that eclipse profiler seems to be abandonded or something and last I knew requires you to find a special patch to get it to work wi

Re: load files on tomcat

2006-10-13 Thread Mark Miller
, you could use ServletContext.getRealPath( ). That will return the absolute path to the file, but only if the webapp isn't packed up as .war. --David Why is this the case? Doesn't Tomcat extract to war to a webapp/warname folder when it first accesses it? - Mark

Re: Tomcat Embedded and Server.xml

2006-10-13 Thread Mark Miller
I am using embedded tomcat and I do not use server.xml. Unfortunately, I am away from home until Sunday. I will give you more info then. - Mark On 10/13/06, Miguel Correia Ricardo <[EMAIL PROTECTED]> wrote: But, do you use server.xml to configure tomcat embedded? For example, for the connector

Webapp works in reg tomcat, fails in embedded tomcat

2006-10-07 Thread Mark Miller
I am using an embedded version of Tomcat 5.5.20. I have a jar that you can run and it will install the embedded tomcat's directory structure to a specified location. I then use the api to start up tomcat and add my webapp. I can then access the Manager webapp, and thing work alright. When I try