Re: Http Header Cache-Control

2007-07-17 Thread Rainer Jung
There is no way to influence HTTP headers by mod_jk. You can manipulate Headers via mod_headers, which is part of Apache httpd. If I remember correctly, in case Tomcat already sends a header, mod_headers will not be able to remove or overwrite it, because mod_jk will set the header Tomcat

Re: How to deploy a web app on tomcat.. help needed plz.. :)

2007-07-17 Thread Pid
It looks like you've configured one .war per servlet. Have you replaced some of the old config with some new stuff in the login app? If you were able to request the URL '/LoginApp' there should probably be a file called LoginApp.war, which would need to contain some more config in it's

Cannot send mail from servlet

2007-07-17 Thread Fabio Rossi
Hi. I'll try to explain my problem, that is about sending an email with JavaMail API from a servlet. Anyway, it seems to be a more general problem i'm having with servlet. I'm using Tomcat 5.0. I've a servlet that process a request, writes to a database some info and then send a email with a

Re: Cannot send mail from servlet

2007-07-17 Thread David Smith
Seems to me the important part of this is the sendMail method. Could you post that? --David Fabio Rossi wrote: Hi. I'll try to explain my problem, that is about sending an email with JavaMail API from a servlet. Anyway, it seems to be a more general problem i'm having with servlet. I'm

A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Hello all, I’m running a web application on a tomcat 5.5 server (jvm 1.5, debian 4) and it uses a lot of CPU resources. It seems that the charge keeps growing, regardless the number of users. So I suspect a non-ending routing running but I don’t know how to locate it. So here is my question:

Re: Http Header Cache-Control

2007-07-17 Thread Gregor Schneider
On 7/17/07, Rainer Jung [EMAIL PROTECTED] wrote: There is no way to influence HTTP headers by mod_jk. You can manipulate Headers via mod_headers, which is part of Apache httpd. when combining apache2 with tomcat 5 using mod_jk, mod_headers will not touch any headers created by tomcat - we've

Re: A lot of CPU used

2007-07-17 Thread Leon Rosenberg
thread dump: kill -QUIT tomcat_pid regards Leon On 7/17/07, Stéphane Hanser [EMAIL PROTECTED] wrote: Hello all, I'm running a web application on a tomcat 5.5 server (jvm 1.5, debian 4) and it uses a lot of CPU resources. It seems that the charge keeps growing, regardless the number of

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Thanks, that seemes great. However I don't know why but there is no catalina.out on my server. How should I configure tomcat in order to log in this file? Stéphane -Message d'origine- De : Leon Rosenberg [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 juillet 2007 14:12 À : Tomcat Users

Re: Cannot send mail from servlet

2007-07-17 Thread Fabio Rossi
Here's sendMail method: Properties props = new ConfigLoader().loadConfigFile(); String prop; prop=(String)props.get(summary_header); if(prop!=null) summary=prop+\n+summary; prop= (String)

Hot to access raw POST Data in servlet?

2007-07-17 Thread Joe Kramer
Hello, I can't find a way to do a simple thing - access raw postdata in servlet service()/doPost() method. (The data that goes after the headers.) In old Servlet API it was possible using javax.servlet.http.HttpUtils.parsePostData() which is now deprecated. Servlet API only seem to have methods

Re: A lot of CPU used

2007-07-17 Thread Leon Rosenberg
have you installed tomcat from debian package or from the binary distribution from tomcat.apache.org if first is the case your log file is probably somewhere under /var/log. regards Leon P.S. take the distribution from tomcat.apache.org for safety. On 7/17/07, Stéphane Hanser [EMAIL

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
I didn't install it myself. We hired a system admin for one day to set up our server. But I'm quite positive that it was installed from the debian package. It isn't one the server: when I locate Catalina.out I don't get any result. -Message d'origine- De : Leon Rosenberg [mailto:[EMAIL

Re: A lot of CPU used

2007-07-17 Thread Leon Rosenberg
maybe because it is called catalina.out? :-) On 7/17/07, Stéphane Hanser [EMAIL PROTECTED] wrote: I didn't install it myself. We hired a system admin for one day to set up our server. But I'm quite positive that it was installed from the debian package. It isn't one the server: when I locate

Re: A lot of CPU used

2007-07-17 Thread David Delbecq
Locate catalina.sh and look out where it does redirects it's stdout. En l'instant précis du 17/07/07 15:09, Stéphane Hanser s'exprimait en ces termes: I didn't install it myself. We hired a system admin for one day to set up our server. But I'm quite positive that it was installed from the

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
Lol. No I typed the right word. There is no file ended by .out on the machine. -Message d'origine- De : Leon Rosenberg [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 juillet 2007 15:10 À : Tomcat Users List Objet : Re: A lot of CPU used maybe because it is called catalina.out? :-) On

Re: A lot of CPU used

2007-07-17 Thread Leon Rosenberg
you may want to check your catalina.sh (i hope you have one) where the output goes. On 7/17/07, Stéphane Hanser [EMAIL PROTECTED] wrote: Lol. No I typed the right word. There is no file ended by .out on the machine. -Message d'origine- De: Leon Rosenberg [mailto:[EMAIL PROTECTED]

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
I did check. It seems good to me: elif [ $1 = start ] ; then shift touch $CATALINA_BASE/logs/catalina.out if [ $1 = -security ] ; then if [ $gcj = yes ]; then echo The java-gcj-compat-dev environment currently doesn't support echo a security manager. Please check the

Re: A lot of CPU used

2007-07-17 Thread Leon Rosenberg
have you checked where the $CATALINA_BASE is pointing to? regards Leon P.S. you can contact me off-list if you want me to login to your box and play on it a bit :-) On 7/17/07, Stéphane Hanser [EMAIL PROTECTED] wrote: I did check. It seems good to me: elif [ $1 = start ] ; then shift

RE: A lot of CPU used

2007-07-17 Thread Caldarale, Charles R
From: Stéphane Hanser [mailto:[EMAIL PROTECTED] Subject: RE: A lot of CPU used But I'm quite positive that it was installed from the debian package. That's unfortunate. We've seen numerous problems with trying to run Tomcat from 3rd-party repackaged versions (check the mailing list

RE: A lot of CPU used

2007-07-17 Thread Stéphane Hanser
When I type echo $CATALINA_BASE nothing appears but in /etc/default/tomcat5.5 it reads CATALINA_BASE=/var/lib/tomcat5.5 I did check and =/var/lib/tomcat5.5/logs is pointing to my /var/log/tomcat5.5 directory -Message d'origine- De : Leon Rosenberg [mailto:[EMAIL PROTECTED] Envoyé :

Re: Http Header Cache-Control

2007-07-17 Thread Christopher Schultz
To whom it may concern, [EMAIL PROTECTED] wrote: Something is wrong with that mod_jk version, by the way. The most recent release of mod_jk is 1.2.23. Well, the installation file that I found in the server is named: mod_jk-3.3-ap20.so, that's why I assumed that version. Strange. You must

libs in a maven repository for embedded?

2007-07-17 Thread hanasaki
I looked around but have not found any maven repository that has the tomcat jars / build that can be used when building a java application that embeds tomcat... Anything out there? - To start a new topic, e-mail:

Re: Cannot send mail from servlet

2007-07-17 Thread hanasaki
Running in tomcat 6.x? Any chance there is a jndi and smtp config setup in tomcat that is messing with this? Post the code for the sendMail method and any custom code it calls. review your web.xml and tomcat configurations for smtp related stuff. David Smith wrote: Seems to me the important

Re: finding enterprise support for tomcat

2007-07-17 Thread David Jackson SBS PGST
If anyone knows of company that provides good tomcat technical support, please let me know. thanks! David Jackson Siemens Power Generation -- David Jackson Email Administrator SBS PGST DataCenter work: 407-736-2992 * [EMAIL PROTECTED] is an external test account used for testing email

i am looking for professional tomcat support for enterprise

2007-07-17 Thread David Jackson SBS PGST
does anyone of any good companies that provide tomcat AND/OR Geronimo support? thanks David Siemens PG

Re: i am looking for professional tomcat support for enterprise

2007-07-17 Thread Johnny Kewl
If you really want a company, theres SUN and IBM. But there are some terrific people on this group, guys that actually write the code for tomcat, so you've came to the right place. If you could give some idea of location... an Apache developer may be in your area. - Original Message

Re: i am looking for professional tomcat support for enterprise

2007-07-17 Thread David Jackson SBS PGST
we currently have IBM websphere support. I did not know that IBM provided tomcat support. is this true? we are in Orlando and are looking to replace about 45 applications that are running on websphere 5.1 with tomcat. On 7/17/07, Johnny Kewl [EMAIL PROTECTED] wrote: If you really want a

RE: i am looking for professional tomcat support for enterprise

2007-07-17 Thread Simon Kok
Hi Tom, What are you using to monitor your web applications? -- Simon. -Original Message- From: David Jackson SBS PGST [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 11:33 AM To: Tomcat Users List Subject: Re: i am looking for professional tomcat support for enterprise we

RE: i am looking for professional tomcat support for enterprise

2007-07-17 Thread Fargusson.Alan
That could be fun. I tried to move a couple of small servlets from WAS to Tomcat. I found that Tomcat does not understand EAR files, so I had to use WAR files. Also Tomcat didn't like the format of the web.xml files. I ended up importing the .java files into Eclipse and building the the

RE: i am looking for professional tomcat support for enterprise

2007-07-17 Thread Robert Koberg
is anybody looking in on this thread with incredulity? jeebus help me On Tue, 2007-07-17 at 11:40 -0700, Fargusson.Alan wrote: That could be fun. I tried to move a couple of small servlets from WAS to Tomcat. I found that Tomcat does not understand EAR files, so I had to use WAR files.

Re: Hot to access raw POST Data in servlet?

2007-07-17 Thread Johnny Kewl
- Original Message - From: Joe Kramer [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, July 17, 2007 2:51 PM Subject: Hot to access raw POST Data in servlet? Hello, I can't find a way to do a simple thing - access raw postdata in servlet

Re: Hot to access raw POST Data in servlet?

2007-07-17 Thread Frank W. Zammetti
Have a look here: http://javawebparts.sourceforge.net ...more specifically this: http://javawebparts.sourceforge.net/javadocs/javawebparts/request/RequestHelpers.html ...the getBodyContent() is, I think, what your looking for. hth, Frank -- Frank W. Zammetti Founder and Chief Software

Re: Help required setting up smtp server

2007-07-17 Thread hanasaki
Your configuration will look for the hostname mailhost in the dns domain of the same machine that the server runs on... If this is a unix box with a /etc/hosts of: 127.0.0.1 localhost mailhost it would explain this behavor. Try changing the mailhost in the config file to smtpabcd and see

Re: i am looking for professional tomcat support for enterprise

2007-07-17 Thread Johnny Kewl
David, if you dont mind me saying so... you sound like someone that is cheesed off with the service they getting. Thing you need to understand (I'm no expert either in the biz area) is that the products the big brand name companies push are in fact based on open source products. Now if you look

Tomcat 6 sessionDidActivate() being called before contextInitialized()

2007-07-17 Thread Michael Youngstrom
I'm using Seam and a Seam app depends upon the Seam application being initialized before you can do much of anything in Seam. That said Seam puts some hooks into the sessionDidActivate() and sessionDidPassivate() events. Because of that when I start up my app I'm getting a Seam

Classloader question

2007-07-17 Thread Juan Ignacio Garzón
Hi, I'm working with Tomcat 4.1. I have a library that has to be shared between all the applications, but it has singletons that should have one instance per application. In a normal situation, each application could have the .jar in it's WEB-INF/lib directory, but there is a requirement saying

Classloader question

2007-07-17 Thread Juan Ignacio Garzón
Hi, I'm working with Tomcat 4.1. I have a library that has to be shared between all the applications, but it has singletons that should have one instance per application. In a normal situation, each application could have the .jar in it's WEB-INF/lib directory, but there is a requirement saying

RE: A lot of CPU used

2007-07-17 Thread Timothy Wonil Lee
If you are symlinking them, maybe this will help? http://marc.info/?l=tomcat-userm=105159411609623w=2 Timothy Wonil Lee -Original Message- From: Stéphane Hanser [mailto:[EMAIL PROTECTED] Sent: Wednesday, 18 July 2007 12:42 AM To: 'Tomcat Users List' Subject: RE: A lot of CPU used When

Session time out related question

2007-07-17 Thread Urvish Shah
Hi In our application we are using Tomcat 5.5.9. Our tomcat session time out is 30 minutes We have one bottom html frame in our web page which automatically gets refreshed every 10 seconds to poll some event notifications after user logs in. Because of this reason we never get session

Re: How to replace jar which was already loaded?

2007-07-17 Thread Pid
In your Context definition you can state which files should be watched for changes. WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResourceWEB-INF/lib/worker.jar/WatchedResource p hanasaki wrote: If you go this way... remember the following ClassLoader cl1 = new URLClassLoader(urls);

Re: finding enterprise support for tomcat

2007-07-17 Thread randy repasa
Try Covalent: www.covalent.net and www.covalent.com Our project has been a customer for two years and we've had no complaints with the service so far. On 7/18/07, David Jackson SBS PGST [EMAIL PROTECTED] wrote: If anyone knows of company that provides good tomcat technical support, please

Re: i am looking for professional tomcat support for enterprise

2007-07-17 Thread randy repasa
Hi David, Our project has been a customer of Covalent (www.covalent.net and www.covalent.com) for two years and we've had no complaints with their support so far, you might want to give them a try. Thanks, Randy On 7/18/07, David Jackson SBS PGST [EMAIL PROTECTED] wrote: does anyone of any

Exception Thrown in a JSP

2007-07-17 Thread Sam Klin
I am trying to figure out how to debug the following exception that's thrown in one of my jsps. The line number from the exception trace is 259. If this is a line number from the underlying jsp then the line is: %@ include file=inc/footer.jsp % this is also the last line in the jsp. If, on the,

jsp-examples

2007-07-17 Thread vikas verma
Hi 1)why .jsp doesn't convert into .java file in jsp-examples web application even after making changes in jsp file. 2).class file also does not generate also it doesn't allow to make changes in web.xml file.How to achieve that 3)I am using Tomcat 5.0 Thanks and Regards Vikas Verma