Re: Tomcat Repsonse question...

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/7/2009 8:16 PM, Tony Anecito wrote: > I am using Apache Web server for the front end to serve my html > requests. Why? Tomcat can serve those requests quite well. > I have thought about using JBoss with it's Tomcat as the > front end Apa

RE: java.lang.OutOfMemoryError: Java heap space

2009-10-07 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: java.lang.OutOfMemoryError: Java heap space > > There are even techniques that will allow your session objects to > expire when memory gets tight (which is super cool IMO). To put a name on the above technique, read

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/7/2009 8:40 PM, Joe Hansen wrote: > WoW! "jmap" was a great command to learn Chris! Thank you so much! Yeah, it's great as a poor-man's memory profiler. On the other hand, I haven't seen a big-time memory profiler offer such a simple view

RE: Tomcat Repsonse question...

2009-10-07 Thread Caldarale, Charles R
> From: Tony Anecito [mailto:adanec...@yahoo.com] > Subject: Re: Tomcat Repsonse question... > > I am using Apache Web server for the front end to serve my html > requests. I have thought about using JBoss with it's Tomcat as the > front end Apache as the back end for handling ordinary http reques

Re: JNI problem

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/7/2009 8:18 PM, Warnier wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mohamedin, >> >> On 10/7/2009 10:40 AM, Mohamedin wrote: >>> Dear all, >>> >>> I am trying to use a JNI library written

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-07 Thread Joe Hansen
WoW! "jmap" was a great command to learn Chris! Thank you so much! I generated a histogram of the Objects in the java heap (while things were stable) and here's what I got: Object Histogram: SizeCount Class description --- 149989048

Re: JNI problem

2009-10-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamedin, On 10/7/2009 10:40 AM, Mohamedin wrote: Dear all, I am trying to use a JNI library written by me that uses GraphicsMagick wand. It is working fine as a stand alone java application but when I tried to use it i

Re: Tomcat Repsonse question...

2009-10-07 Thread Tony Anecito
Thanks Christopher for the reply, I am using Apache Web server for the front end to serve my html requests. I have thought about using JBoss with it's Tomcat as the front end Apache as the back end for handling ordinary http requests but have not found anyone who has done that. This is so I use

Re: mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread André Warnier
One real question is why you are bothering with an Apache httpd in front, since unless I saw this wrong, you are proxying absolutely everything to Tomcat, in both virtual hosts. JkMount /* etc.. Why not just turn off Apache, and have Tomcat listen on port 80 ? You would save yourself some compl

RE: Tomcat training at ApacheCon

2009-10-07 Thread Martin Gainty
the springsource folks provide occasional presentations and lectures here in the east ..then again if they publish on youtube we could all see it.. Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nach

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-07 Thread Law, Christopher
Thanks, Chuck, I'll take a look into this. Appreciate it. Chris -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, October 07, 2009 5:46 PM To: Tomcat Users List Subject: RE: Tomcat hangs for minutes between ContextConfig and StandardCont

Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/7/2009 5:28 PM, Nada O'Neal wrote: > I'm pointing tomcat to a safe keystore file, not the system keystore or > any particular keystore. So, I don't have to worry about the keystore > getting overwritten when I upgrade. Also, just by changi

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-07 Thread Caldarale, Charles R
> From: Law, Christopher [mailto:chris@snapon.com] > Subject: RE: Tomcat hangs for minutes between ContextConfig and > StandardContext (Starting the app) > > I'm afraid I don't know what a blocking entropy is. /dev/random is the system-provided random byte stream for UNIX/Linux and some othe

RE: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-07 Thread Law, Christopher
I appreciate your responses, but I'm afraid I don't know what a blocking entropy is. Also, I don't appear to have any issues in resolving or referencing DTDs during building. I had posted another email indicating some more behavior, basically that the delay occurs only when a new WAR file is depl

Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)

2009-10-07 Thread Nada O'Neal
Thanks for your continuing endeavors to help me, Chris. I'm pointing tomcat to a safe keystore file, not the system keystore or any particular keystore. So, I don't have to worry about the keystore getting overwritten when I upgrade. Also, just by changing JAVA_HOME, I can start up tomcat with

Re: Tomcat training at ApacheCon

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/6/2009 4:38 PM, Martin Gainty wrote: > bit of a stretch for folks on the east coast or midwest Er... it's a conference, not a traveling carnival. If you want to see the presentations, attend the conference (or hope the presenters are k

Re: Tomcat hangs for minutes between ContextConfig and StandardContext (Starting the app)

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 10/6/2009 2:00 PM, Rainer Jung wrote: > On 06.10.2009 17:41, Christopher Schultz wrote: > >> Another possibility is that SecureRandom is taking forever to >> initialize: if your JVM is configured to use a blocking source of >> entropy, tha

Re: Tomcat Repsonse question...

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, On 10/6/2009 1:32 PM, Tony Anecito wrote: > I am running JBoss and Apache on the same box so not sure if the > TCP/IP stack is bypassed in that case. It's not bypassed, but it skips a lot of steps and does sneaky things like sharing send and r

RE: mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread Maciej Zabielski
Thank you both for your support! You are absolutely right. My thinking (rather unexperienced, because this is my first month with linux / tomcat) was that by setting: docBase="/var/lib/tomcat5/webapps/alfresco" alfresco would become "root" of localhost (as it actually does?) and therefore would b

Re: mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread Rainer Jung
On 07.10.2009 19:40, Maciej Zabielski wrote: > Hello, > > I have a mod_jk problem related to multiple hosts on Apache and Tomcat > > My setup is > Centos 5.3 + Apache HTTPD 2.2.3 + Tomcat 5 > > httpd.conf contains (Just before section 3) Basic mod_jk directives. > At the end it contains two vir

RE: Getting an error with the Tomcat Manager on version6.0.14.

2009-10-07 Thread Razvan Poenaru
Hi Chuck, I downloaded the 6.0.14 version, installed it on an other machine and copy the wrong or missing files to the bad installation. It is working now. Thanks a lot for help. Regards, Razvan Poenaru |Sr.Programmer/Analyst |Space Missions -MDA (905) 790 2800 x4626|razvan.poen...@mdacor

RE: Getting an error with the Tomcat Manager on version6.0.14.

2009-10-07 Thread Caldarale, Charles R
> From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] > Subject: RE: Getting an error with the Tomcat Manager on version6.0.14. > > This is the manager.xml file I have in \webapps\manager directory: > privileged="true" antiResourceLocking="false" > antiJARLocking="false"> Th

RE: Getting an error with the Tomcat Manager on version 6.0.14.

2009-10-07 Thread Razvan Poenaru
Hi Chuck, Thanks a lot for the answer. This is the manager.xml file I have in \webapps\manager directory: I do not have any contex.xml file in \webapps\manager\MET-INF I am new to Tomcat. We can not upgrade due to SOX requirements. Lots of Testing involved. Regards,

Re: mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread Tsirkin Evgeny
What Chuck means is that you need docBase="/var/lib/tomcat5/webapps/alfresco" On Wed, Oct 7, 2009 at 8:51 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Maciej Zabielski [mailto:m...@tessel.pl] > > Subject: mod_jk problem related to multiple hosts on Apache and Tomcat > >

Re: JNI problem

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamedin, On 10/7/2009 10:40 AM, Mohamedin wrote: > Dear all, > > I am trying to use a JNI library written by me that uses > GraphicsMagick wand. It is working fine as a stand alone java > application but when I tried to use it in tomcat it give me

Re: java.lang.OutOfMemoryError: Java heap space

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 10/6/2009 3:44 PM, Joe Hansen wrote: > I did not check the CPU usage when the issue happened. I just checked > the web application logs and found that first there was an > OutOfMemoryError, followed by MySQL errors when > TWFotoSetListDAO.get

RE: mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread Caldarale, Charles R
> From: Maciej Zabielski [mailto:m...@tessel.pl] > Subject: mod_jk problem related to multiple hosts on Apache and Tomcat > > Tomcat Host > autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > alfresco.domain.com > I can't advise you about the httpd-rel

RE: Getting an error with the Tomcat Manager on version 6.0.14.

2009-10-07 Thread Caldarale, Charles R
> From: Razvan Poenaru [mailto:razvan.poen...@mdacorporation.com] > Subject: Getting an error with the Tomcat Manager on version 6.0.14. > > I am getting the following error when trying to access the Tomcat > Manager on Tomcat 6.0.14: Access it how? > root cause > java.lang.SecurityException: Se

mod_jk problem related to multiple hosts on Apache and Tomcat

2009-10-07 Thread Maciej Zabielski
Hello, I have a mod_jk problem related to multiple hosts on Apache and Tomcat My setup is Centos 5.3 + Apache HTTPD 2.2.3 + Tomcat 5 httpd.conf contains (Just before section 3) Basic mod_jk directives. At the end it contains two virtual hosts: (all sections are placed in proper files, but I hav

Re: Default character encoding for ServletRequest

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Halm, On 10/7/2009 11:44 AM, Halm Reusser wrote: > Peter Crowther wrote: >> What are you trying to achieve? If we know more about the problem you're >> trying to solve, we may be able to suggest some different approaches. > > The client receives an

Re: ssl_error_internal_error_alert in firefox only, dependent on jdk version (tomcat 5.5.26)

2009-10-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nada, On 10/6/2009 4:51 PM, Nada O'Neal wrote: > I don't have an EV cert, it's just a standard cert signed by Equifax. I > have similar certs working on other servers. Again, it's the upgrade > from one java to another that seems to cause the problem

Re: Default character encoding for ServletRequest

2009-10-07 Thread Mark Thomas
Halm Reusser wrote: > Hi Markus, > > thanks for your hints. > > Markus Meyer wrote: >> It all depends on the client. IIRC if you set the charset in the >> content type header to utf-8, like this >> >> contentType="text/html; charset=utf-8" >> >> most browsers will then use utf-8 for HTTP GET and

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Andre-John, Andre-John Mas wrote: I wan't do it within the application. I prefer to configure the app container or the app itself. I had asked for this too a while back, but I was told the RFC indicates ISO-8859-1, so the developers didn't want to allow you to change the default encoding

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Markus, thanks for your hints. Markus Meyer wrote: It all depends on the client. IIRC if you set the charset in the content type header to utf-8, like this contentType="text/html; charset=utf-8" most browsers will then use utf-8 for HTTP GET and POST requests when responding to the given

Re: Default character encoding for ServletRequest

2009-10-07 Thread Halm Reusser
Hi Peter, Peter Crowther wrote: What are you trying to achieve? If we know more about the problem you're trying to solve, we may be able to suggest some different approaches. The client receives an HTML page with contentType="text/html; charset=utf-8" On that page is a POST form. When I eval

Getting an error with the Tomcat Manager on version 6.0.14.

2009-10-07 Thread Razvan Poenaru
I am getting the following error when trying to access the Tomcat Manager on Tomcat 6.0.14: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet

Re: alias problem in tomcat5.0 + apache1.3

2009-10-07 Thread Nada O'Neal
Hi Partha, It looks like you're asking for two things: 1) that your server respond to "partha16" instead of "localhost", and 2) that your server respond on port 80 instead of port 8085 Is that right? 1) is a DNS issue. If http://localhost:8085/DOMAIN is working now, I can help you get to http

JNI problem

2009-10-07 Thread Mohamedin
000 09:07 134466607 /home/java/app/WEB-INF/lib/ezmorph-1.0.2.jar 7f5620dcf000-7f5620dec000 r-xs 09:07 134504360 Thanks, Mohamed Mohamedin __ Information from ESET NOD32 Antivirus, version of virus signature database 4487 (20091007) __ The message w

Re: Running tomcat as native

2009-10-07 Thread Mark Thomas
Vivek Shanmughan wrote: > Thanks Mark, > >It worked with tcnative-1.dll 1.1.16 and apache-tomcat-6.0.20. > > Let me find the suitable tcnative-1.dll for apache-tomcat-5.5.28 1.1.16 should work with 5.5.28 as well. I suspect that you have hit this issue: https://issues.apache.org/bugzilla/s

RE: Running tomcat as native

2009-10-07 Thread Vivek Shanmughan
Thanks Mark, It worked with tcnative-1.dll 1.1.16 and apache-tomcat-6.0.20. Let me find the suitable tcnative-1.dll for apache-tomcat-5.5.28 Vivek -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, October 07, 2009 4:32 PM To: Tomcat Users List Subject

Re: Running tomcat as native

2009-10-07 Thread Mark Thomas
Vivek Shanmughan wrote: > > Operating system - Windows XP SP2 > Tomcat version - apache-tomcat-5.5.28 > Exactly what did you download - tcnative-1.dll from the location > http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ You should use 1.1.16 from here: http://tomcat.apache.org/download-na

RE: Running tomcat as native

2009-10-07 Thread Vivek Shanmughan
Operating system - Windows XP SP2 Tomcat version - apache-tomcat-5.5.28 Exactly what did you download - tcnative-1.dll from the location http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ Vivek -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, Octobe

Re: JspServlet Issue

2009-10-07 Thread Mercy
Hi Mark, I just want to compile the pages what i need, not all. Actually,the most pages ware compiled by ANT,thus, our application does not set the development parameter is true. What's more , I did not re-invent the wheel rather than I re-use the JspServlet and its correlative classes.

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-07 Thread Mercy
Hi, At first , you need to create a web project , and the add it into tomcat server. Later, you create a new jsp page, select it and click right button, the pop-up menu dispears, select Run As -> Run on Server, the server is Ok when that page is present. :-) Kind regards, Mercy

Re: Running tomcat as native

2009-10-07 Thread Mark Thomas
Vivek Shanmughan wrote: > Hi all, > >I am trying to run tomcat as native. I downloaded tcnative-1.dll and > copied it to tomcat/bin. Still am getting the INFO : "The Apache Tomcat > Native library which allows optimal performance in production environments > was not found on the java.library.

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
Mercy wrote: > Hi Mark, > > Thank you for your response, actually, I has found a way to fulfill > my requirement that it can compile the JSP pages when development > parameter is false. > My question is that why my compiler using JspServletWrapper has been > compiled some class files of Jsp fi

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-07 Thread srinivas2828
Oh..thats Great and can you tell me how can i see the server status success or not and can i see the default success page in eclipse and is it possibe? or ele browser?dont mind for this question and I am newbie to this kind of configurations... O Mercy Ma wrote: > > Hi, > You could add the

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-07 Thread Mercy
Hi, You could add the src.zip under JDK folder instead of JRE,please take a look at the attached image file. Kind regards, Mercy On Wed, 07 Oct 2009 17:34:18 +0800, srinivas2828 wrote: I really appriciate your help but got one more problem,please find attached copy of image http:/

Comet question with Tomcat

2009-10-07 Thread Markus Innerebner
Hi all, I am using Tomcat6 together with Comet. I implemented as described in the article "Advanced IO and Tomcat" the servlet, message sender ... The main reason for using comet is that I would like to implement a kind of streaming, what means: I am launching from the client with a AJAX r

Re: how to integrate tomcat with IDE tools like eclipse,Netbeans?

2009-10-07 Thread srinivas2828
I really appriciate your help but got one more problem,please find attached copy of image http://www.nabble.com/file/p25783409/Screenshot.png Screenshot.png Konstantin Kolinko wrote: > > 2009/10/7 srinivas2828 : >> >> Hi Deepa >> I integrated tomcat with eclipse(I downloaded Eclipse-Galelio) th

Re: Running tomcat as native

2009-10-07 Thread Mercy
Hi, welcome, the following links may help for you: http://mirrors.dotsrc.org/apache/tomcat/tomcat-connectors/native/1.1.16/binaries/win64/README.html, http://mirrors.dotsrc.org/apache/tomcat/tomcat-connectors/native/1.1.16/binaries/win32/README.htmlFYI:Apache Tomcat Native 1.1.16 for WIN32The bi

RE: Running tomcat as native

2009-10-07 Thread Vivek Shanmughan
Thank you Mercy, I tried copying the dll to one of the folders in java.library.path. But even this didn't help. Is there a dependency between tcnative-1.dll version and tomcat version . Vivek -Original Message- From: Mercy [mailto:techme...@gmail.com] Sent: Wednesday, October 07, 2

Re: JspServlet Issue

2009-10-07 Thread Mercy
Hi Mark, Thank you for your response, actually, I has found a way to fulfill my requirement that it can compile the JSP pages when development parameter is false. My question is that why my compiler using JspServletWrapper has been compiled some class files of Jsp file, the JasperLoader ca

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
> --- Original Message --- > From: Mercy > To: "Tomcat Users List" > Sent: 07/10/09, 08:57:24 > Subject: Re: JspServlet Issue > > Hi Mark, > > What did you mean "change" the app? Could you give more information? Don't set the development parameter of the JspServlet to false. Mar

Re: JspServlet Issue

2009-10-07 Thread Mercy
Hi Mark, What did you mean "change" the app? Could you give more information? Thank you. Kind regards, Mercy On Wed, 07 Oct 2009 15:50:28 +0800, Mark Thomas wrote: From: Mercy Ma To: users@tomcat.apache.org Sent: 07/10/09, 06:42:17 Subject: JspServlet Issue Hi there, I d

Re: JspServlet Issue

2009-10-07 Thread Mark Thomas
> From: Mercy Ma > To: users@tomcat.apache.org > Sent: 07/10/09, 06:42:17 > Subject: JspServlet Issue > > Hi there, > > I did write some code to create dynamic compiler for JSP pages, because our > application sets development options parameter to be false for JspServlet. Surely much simpler to

Re: Tomcat gets hanged and sessions not releasing

2009-10-07 Thread Mark Thomas
> --- Original Message --- > From: sudip pattanayak > Subject: Tomcat gets hanged and sessions not releasing > > Actually the tomcat session kind of gets hanged and the session for the > troubled user does not get released and the force full log off feature does > not work. > > Restart

Re: Running tomcat as native

2009-10-07 Thread Mercy
Hi Vivek, You can try this code to get the paths, public static void main(String[] args){ for(String path : System.getProperty("java.library.path").split(File.pathSeparator)) System.out.println(path); } Please put the DLL file into t

RE: Running tomcat as native

2009-10-07 Thread Vivek Shanmughan
Hi all, I am trying to run tomcat as native. I downloaded tcnative-1.dll and copied it to tomcat/bin. Still am getting the INFO : "The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: " Can anyone please give me