socket connection within servlet to the same container

2006-11-12 Thread Dmitry Kandalov
Say I have code like this: protected void doPost( HttpServletRequest request, HttpServletResponse response ) { ... String requestString = "GET " + page + " HTTP/1.1"; String headersString = "\r\nHost: " + request.getServerName() + "\r\nCookie

How to use or install APR(Apache Portable Runtime) with Tomcat 6.0

2006-11-12 Thread Jayant Kumar
Hi everybody, I want to implement comet with tomcat 6.0 but docs says I must have APR Support for comet, I have tried a lot but I couldn’t start APR support, I will be very thankful if anybody can help me. Jayant kr. Punjabi (iTG India Pvt. Ltd.) -- No virus found in this outgoing message. Chec

Re: How do I ........?

2006-11-12 Thread steve Burrus
well I got it right with that one image, saw it in my web browser, after taking out all of the special characters. But when I tried to do the same thing with another img. I am afraid that I had an unpleasant return back to the old NullPointerException!! Can you please continue to give me some he

Re: How do I ........?

2006-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve R Burrus wrote: > here is the entire code for the image servlet which I seem to be > repeatedly getting that NullPointerException java exception. Any ideas > what the problem is ? : What line of code does the NPE show? Please give us the

RE: Accessing ssl pages using client authentication

2006-11-12 Thread Andrew Friebel
I am also having trouble access the page using a browser. I extract my each certificate from my certificate chain, and import them into the keystore on the server running tomcat. After I accept the server certificate (before I select my client certificate to send), the following stack trace is di

Certificate not showing as trusted...

2006-11-12 Thread Andy Tipton
All, When I access the server from the browser (https), it tell me that it is not a trusted certificate. "This CA Root certificate is not trusted because it is not in the Trusted Root Certification Authorities store." I purchased the certificate, downloaded it and installed, but why is it no

RE: Accessing ssl pages using client authentication

2006-11-12 Thread Andrew Friebel
Thanks for confirming my assumption. You are correct, I am finding that the configuration has to be perfect. I am having a lot of trouble getting it correct. At the moment, I am testing some code changes that I have made in my servlet, and I want to see the client certificate details come through

Installing my SSL Certificate.

2006-11-12 Thread Andy Tipton
I am up to the point of importing my certificate with the command (where filename is the name of the domain.): C:\Program Files\Java\jdk1.5.0_05\bin>keytool -import -alias tomcat.keystore -trustcacerts -file filename.crt But I get this error when I run it: keytool error: java.lang.Exception:

Re: How do I ........?

2006-11-12 Thread Martin Gainty
I dont think you can use special characters as your filename so ren your image to image.jpg then re-get using logo = getServletContext().getResourceAsStream("image.jpg"); M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the des

Re: How do I ........?

2006-11-12 Thread Steve R Burrus
here is the entire code for the image servlet which I seem to be repeatedly getting that NullPointerException java exception. Any ideas what the problem is ? : package coreservlets; import java.io.*; import java

Re: How do I ........?

2006-11-12 Thread Martin Gainty
you can always wrap your accesor in a simple try/catch block as in try { Image logo=null; logo = Toolkit.getDefaultToolkit().getImage("images/splash.png"); } catch(NullPointerException excp) { log.debug("NullPointerException thrown while retreiving image images/splash.png"); System.out.printl

How do I ........?

2006-11-12 Thread Steve R Burrus
I know that this question of mine has been asked/answered in this group, but I was wondering how do I go about checking for a null value? I feel the need to do this in a servlet file that incorporates an image into it. - To

Re: Tomcat reloading

2006-11-12 Thread Martin Gainty
preferrably the log with the most recent date/time stamp should be formatted as $CATALINA_HOME/logs/stdout_.log M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended

Re: Tomcat reloading

2006-11-12 Thread Karim Zibari
there is only one connector: sorry, what log do you mean? Best regards Karim Zibari - Original Message From: Martin Gainty <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, November 12, 2006 8:26:52 PM Subject: Re: Tomcat reloading can you verify the timeouts for the def

Re: Tomcat reloading

2006-11-12 Thread Martin Gainty
can you verify the timeouts for the default connectors (specifically the connectionTimeout for the non-SSL default connector) also can you display the log ? M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipi

tomcat 5.0 pdf package

2006-11-12 Thread Kirsten Newbury
I'm looking for recommendations for a package to use with tomcat 5.0 to process dynamic data files to make available for website download. Any suggestions?

Re: Tomcat reloading

2006-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karim, Karim Zibari wrote: > Thanks for your input. I forgot to mention that every time after a crash, > our hosting company powers down and then powers up the server and then the > server is alive again. I have reminded them that if my web applic

Re: Tomcat reloading

2006-11-12 Thread Karim Zibari
Thanks for your input. I forgot to mention that every time after a crash, our hosting company powers down and then powers up the server and then the server is alive again. I have reminded them that if my web application were in fact the culprit, there would be exceptions (memory or too many da

Re: Tomcat reloading

2006-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karim, Karim Zibari wrote: > Thanks again Chuck. One last question: > > how about if my web app ran out of memory or it made too many > database connections or (as my hosting compnay suggests) that my web > app was to get stuck in loop and render t

RE: Tomcat reloading

2006-11-12 Thread Caldarale, Charles R
> From: Karim Zibari [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat reloading > > how about if my web app ran out of memory or it made too many > database connections or (as my hosting compnay suggests) that > my web app was to get stuck in loop and render the processor > non-responsive to ot

Re: Tomcat reloading

2006-11-12 Thread Karim Zibari
Thanks again Chuck. One last question: how about if my web app ran out of memory or it made too many database connections or (as my hosting compnay suggests) that my web app was to get stuck in loop and render the processor non-responsive to other requests.? Best regards Karim Zibari -

RE: Tomcat reloading

2006-11-12 Thread Caldarale, Charles R
> From: Karim Zibari [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat reloading > > Thanks for that info but do you think it is possible for > my web app or for Tomcat to cause the problem and bring > the server down.? Only if there is an underlying flaw in the OS that the server is using. Proper

Re: Tomcat reloading

2006-11-12 Thread Karim Zibari
Thanks for that info but do you think it is possible for my web app or for Tomcat to cause the problem and bring the server down.? Best regards Karim Zibari Want to start your own business? Learn how on Yaho

Re: Tomcat reloading

2006-11-12 Thread Karim Zibari
Thanks for that info but do you think it is possible for my web app or for Tomcat to cause the problem and bring the server down.? Best regards Karim Zibari - Original Message From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Sunday, November 12, 2006 5:0

RE: Tomcat reloading

2006-11-12 Thread Caldarale, Charles R
> From: Karim Zibari [mailto:[EMAIL PROTECTED] > Subject: Tomcat reloading > > nothing works even I cannot ping the server. Assuming that ping works normally, this would indicate the problem has nothing to do with Tomcat, but instead with the box Tomcat is running on, or the network connections

Tomcat reloading

2006-11-12 Thread Karim Zibari
Hi I have developed a developed a web content management system for a newspaper to simplify the process of posting news articles. All article details including images are stored in a MySQL database. The site is highly database-driven and because of this I have cached a large object containing

Re: New tomcat and Jasper error

2006-11-12 Thread Martin Gainty
have you verified your jasper libraries are located in $CATALINA_HOME/commons/lib jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar ? This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named ab

Re: Replying to threads

2006-11-12 Thread Mark Thomas
Andrew Friebel wrote: > I finally managed to get the email. I had to request it using > users-get. > > Am I supposed to get the mail automatically? You are subscribed to the digest list. The Reply-To header is missing on the digest list so mail clients don't know where to send the reply. I'll ge

Re: New tomcat and Jasper error

2006-11-12 Thread Mark Thomas
Assaf Flatto wrote: > i use the minimal-server.xml as the server.xml , but i still get the error: > java.lang.NoClassDefFoundError: org.apache.jasper.servlet.JspServlet. > > Any ideas ? Don't use third party distributions? You could try the tar.gz distribution from the Apache Tomcat web site: ht

New tomcat and Jasper error

2006-11-12 Thread Assaf Flatto
hello list i have a brand new installation of tomcat 5.5.17 , with the following packages : tomcat5-common-lib-5.5.17-3.1.2mdv2007.0 tomcat5-jasper-5.5.17-3.1.2mdv2007.0 tomcat5-jsp-2.0-api-5.5.17-3.1.2mdv2007.0 tomcat5-server-lib-5.5.17-3.1.2mdv2007.0 tomcat5-servlet-2.4-api-javadoc-5.5.17-3.

Re: mod_rewrite - round robin

2006-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mary, Rashmi is right; this question belongs on a different list. However, it might not be the Apache httpd list. Usually, people implement round-robin load distribution using DNS round-robining, instead of resorting to web server configuration trick