running! a servlet at tomcat startup

2007-11-05 Thread loredana loredana
This issue is a classic one already I think. I've googled it and haven't found anything that could help solving this problem. I'm probably not the one to think about this but...if you would add the load-on-startup1/load-on-startup to a servlet, and from the init() method you would somehow try

Re: Problems with a web application running a PHP script

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Rocco

Re: running! a servlet at tomcat startup

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: loredana

Re: running! a servlet at tomcat startup

2007-11-05 Thread loredana loredana
thanks for the response johnny. That's probably the only way it can be done.. Unfortunatelly for me, I need variables like request.getContextPath() and from init() method i can't retrieve those values. 10x a lot anyway. - Original Message From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat

Re: running! a servlet at tomcat startup

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: loredana

Re: running! a servlet at tomcat startup

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Johnny

Re: running! a servlet at tomcat startup

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Grzegorz

Re: running! a servlet at tomcat startup

2007-11-05 Thread Wade Chandler
See Servlet.getServletConfig() and ServletConfig.getServletContext(). Wade - Original Message From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 5, 2007 6:16:17 AM Subject: Re: running! a servlet at tomcat startup OK, now I'm

Can I install own JAR-Files of my application outside WEB-INF/lib with Tomcat 6?

2007-11-05 Thread Ingolf Knopf
Problem: Up to 50% of my war file contains of constant libraries (JDBC, Axis an so on), and theese libraries blow up my application more than 8 MByte. It takes much time to send such applications to our customers - and time is something that none of our customers have in a case of a fault.

Re: running! a servlet at tomcat startup

2007-11-05 Thread Martin Gainty
No access to request??? Which AppServer are you running??? M-- - Original Message - From: Johnny Kewl [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 05, 2007 6:16 AM Subject: Re: running! a servlet at tomcat startup

Re: Tomcat 3.3.1a problem

2007-11-05 Thread Pid
Marko Krejic wrote: Hi, We are running Tomcat 3.3.1a on a Windows Server 2003. A apache server is also installed on the machine as a proxy and it is connected with the tomcat through AJP12. Tomcat is running on JDK1.4.2_13. The silence you experienced is people being dumbfounded that

[ANN] securityfilter development resuming

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Sorry for the announcement about a different project, but there are a lot of interested parties, here, I'd imagine. securityfilter is resuming development! I am taking over the project from Max Cooper, who has maintained it quite well through

Re: Can I install own JAR-Files of my application outside WEB-INF/lib with Tomcat 6?

2007-11-05 Thread Martin Gainty
Ingolf- If you desire to load your own XML Parser you can use the *endorsed* mechanism by starting TOMCAT specifying the new endorsed dir e.g -Djava.endorsed.dirs=$CATALINA_HOME/endorsed *Other list members will be able to provide more assistance* Martin- Original Message - From:

Re: running! a servlet at tomcat startup

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Loredana, loredana loredana wrote: This issue is a classic one already I think. Hardly anyone actually wants to do this. Why do /you/ want to do this? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with

Re: Can I install own JAR-Files of my application outside WEB-INF/lib with Tomcat 6?

2007-11-05 Thread Markus Schönhaber
Ingolf Knopf wrote: Problem: Up to 50% of my war file contains of constant libraries (JDBC, Axis an so on), and theese libraries blow up my application more than 8 MByte. It takes much time to send such applications to our customers - and time is something that none of our customers have

Re: Can I install own JAR-Files of my application outside WEB-INF/lib with Tomcat 6?

2007-11-05 Thread Ingolf Knopf
Haven't tried this myself, but as far as i understand it you can re-activate the shared classloader by setting the shared.loader property in conf/catalina.properties accordingly. It works, thank you for this idea. With kind regards, Ingolf.

RE: running! a servlet at tomcat startup

2007-11-05 Thread Caldarale, Charles R
From: loredana loredana [mailto:[EMAIL PROTECTED] Subject: Re: running! a servlet at tomcat startup In case ur wondering why I used a servlet to fill the cache is because I need some variables like request.getContenxtPath, getRealPath() etc. Wouldn't a ServletContextListener be more

Re: running! a servlet at tomcat startup

2007-11-05 Thread Wade Chandler
Yes, and in the listener I would then utilize some kind of other web client to actually perform a first request. You can use something like HttpClient or one of the command line text browsers and Runtime.exec. It would probably be easier than trying to simulate with some other means, but I may

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
I have installed: - jdk 1.5.0.13 - jre 1.5.0.13 -- jre 1.6.0.02 In NB, Java platform is set for both TC is 'JDK 1.5 (Default)' whose folder path is 'C:\Programmi\Java\jdk1.5.0_13' (i.e.: The installation path for the jdk 1.5.0.13 that I have installed.) As Chuck mentioned , this script

RE: Problems with a web application running a PHP script

2007-11-05 Thread Caldarale, Charles R
From: Rocco Scappatura [mailto:[EMAIL PROTECTED] Subject: Re: Problems with a web application running a PHP script Soory but I haven't understood what Chuck said in his first email. Just as a refresher, here's what I said: Possibly the correct JRE/JDK for Tomcat. The above class and

Re: Tomcat causing high CPU load

2007-11-05 Thread Sai Bobba
Many thanks. We've had several developers walk through the code to try to catch the possibity that the app may be sitting in a loop in some situations. The code seems ok, and, as I indicated, we've never been able to reproduce the situation. I've searched the web for taking thread dumps, as I

RE: Tomcat causing high CPU load

2007-11-05 Thread Caldarale, Charles R
From: Sai Bobba [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat causing high CPU load I've searched the web for taking thread dumps Try searching the Tomcat mailing list archives (http://marc.info/?l=tomcat-user) as well. For Windows, run the process from a command prompt, and enter a

Heap out of memory error

2007-11-05 Thread Bob Riaz
Hi all, I have web apps using the following: JDK 1.5 Tomcat 6 SQL Server 2000 Windows 2000 server From time to time I have come across this error in the Tomcat logs: java.lang.OutOfMemoryError: Java heap space I understand the default heap size is 64M, and that it is possibe to configure Tomcat

RE: Tomcat causing high CPU load

2007-11-05 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Tomcat causing high CPU load There are also some 3rd-party tools to take thread dumps of services (I think JProbe does, for example). Also, Lambda Probe (www.lambdaprobe.org) can display stack traces, but only one thread at a time. - Chuck THIS

Re: Tomcat causing high CPU load

2007-11-05 Thread Leon Rosenberg
Moskito can display monitoring traces instantly (path through monitoring points) and measure time in each call and sub-calls, but it requires some source code adoption. regards Leon On 11/5/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Caldarale, Charles R Subject: RE: Tomcat

RE: Heap out of memory error

2007-11-05 Thread Caldarale, Charles R
From: Bob Riaz [mailto:[EMAIL PROTECTED] Subject: Heap out of memory error From time to time I have come across this error in the Tomcat logs: java.lang.OutOfMemoryError: Java heap space If you're running Tomcat as a Windows service, use the tomcat6w.exe program to set initial and maximum

Re: Tomcat 3.3.1a problem

2007-11-05 Thread Mark Thomas
Pid wrote: Marko Krejic wrote: Hi, We are running Tomcat 3.3.1a on a Windows Server 2003. A apache server is also installed on the machine as a proxy and it is connected with the tomcat through AJP12. Tomcat is running on JDK1.4.2_13. The silence you experienced is people being

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
As Chuck mentioned , this script class is in 1.6 so you need to either change the environment variable or if from service set it to 1.6. Then there is just one other thing, in NB right click-properties-source... Check the source level... ie you can be running on 1.6 but still tell NB to

Re: Tomcat causing high CPU load

2007-11-05 Thread Peng Tuck Kwok
Is there a link for Moskito? On Nov 6, 2007 6:21 AM, Leon Rosenberg [EMAIL PROTECTED] wrote: Moskito can display monitoring traces instantly (path through monitoring points) and measure time in each call and sub-calls, but it requires some source code adoption. regards Leon On 11/5/07,

Re: Tomcat 3.3.1a problem

2007-11-05 Thread Bill Barker
I don't recognize the problem, but AJP12 was deprecated even for 3.3.1a (which, for Pid's benifit, was a single security issue bugfix release from 3.3.1). In any case, it will be a bottleneck for any attempt to scale your application. You should try with the AJP13 connector, which works

Re: Problems with a web application running a PHP script

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Rocco

Re: Problems with a web application running a PHP script

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- FootNote Having a separate TC, (not using

Re: Problems with a web application running a PHP script

2007-11-05 Thread Rocco Scappatura
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From:

Re: Problems with a web application running a PHP script

2007-11-05 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- Another FootNote Just so you understand where