Filter tricks in tomcat
Hi, Im working with Tomcat 5 from 3 months ago. I understand the filter architecture, but I cannot capture the response filter for my JSP and servelt. Tomcat 5 is Servlet 2.4, so I thing it can filter either request or response. What I can do, is capture the entire request and its response, to have a good mechanism of statistics in my web application. So, can you help in order to know how can I catch the response in a filter?? Thanks in advanced, And best regards. .pcs __ Pablo Carretero Sánchez Cygnux Arquitecto de Software Pintor Velázquez nº 3 Esc Izq 7º B 28932 Móstoles (Madrid) Movil: +34 699929150 [EMAIL PROTECTED] http://www.cygnux.com/egroupware/email/compose.php?folder=INBOXsessionid=1 2a0f5acc6fd5805a190a5b55a147155kp3=7c4ad1ea016bfe58bf86addf2e6064d3domain= cygnux.com[EMAIL PROTECTED]
Re: hide source of a page
On Tue, Nov 09, 2004 at 04:18:37PM +1100, Peter Johnson wrote: So are you saying that I could run ActiveX on my Linux FireFox browser? I doubt he meant that, but I also doubt his bosses gave a damn about Linux users :-). A java serialised object should be secure enough, the next step would be to add some sort of encryption. It's all a matter of degrees, like Frank said... security is a scalar, not a boolean. But still, in the end, you're running on somebody else's hardware, and they can, with enough work, get at the innards of whatever you send them (see some of the MMORPG hacks for good examples). If anybody ever figures out a truly effective safeguard against this (which would be at least equivalent, in terms of mathematical creativity, to public/private key encryption), we'll see some really radical changes. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuration Management, JSP Recompiles, War Files
Steven J. Owens wrote: Peter, On Tue, Nov 09, 2004 at 08:42:34AM +1100, Peter Johnson wrote: We run 5 Tomcat servers (still on 4.1.x so not clustered) and use CVS with two tags: 'stage' and 'prod'. I'm a little unclear on what this means - do you mean branches? Or do you mean that you effectively do some sort of script to get the latest stage tag vs get the latest prod tag? That's something I hadn't considered, but it sounds like it might be easier than branches (which I haven't really messed with, but seem to be notoriously tricky). Nope, no branches just tags When a push script is executed the server pulls the appropriate version from cvs and then performs an ant task to deploy the app, compiling any changed classes. We find that this works just fine and haven't really had any issues. Okay, so ant task to build war file and push it to the tomcat server. Sounds fairly standard (though still unexplored territory for me). No WAR just straight file copy for the JSPs, compile and copy for classes. (This process was developed prior to good admin / deployment interfaces) Check that you are using jsp:include ... (include on execute) rather than @ include ... (include on compile) as this *may* be causing the issue. Yup, we're using jsp:include. Just out of curiousity why are you are deploying individual apps if they are so similar? Why don't you just implement a branding infrastructure and run a single app with multiple brandings? Honestly, I've considered it several times. We're really, really close to that point already. All it would take would be to switch the various logo.gif and CSS imports to use a property instead of copying a template file. Then I'd set up the property singleton to use a different property file database depending on which URL mapping the user requested. The real reason I haven't is that it just doesn't buy me anything significant to run them all off the same webapp, while it increases (instead of decreases) the interdependency, and makes testing much more white-knuckle. I keep thinking, well, it wouldn't be that hard..., but there's no real concrete advantage to do this, except to save a little bit of disk and memory. And if I ever *do* have a serious need do something custom for one instance or another, I'm screwed. Our app http://www.optusnet.com.au currently runs 4 brands with varying content requirements. The complexity really isn't that great as most of the work is performed by a custom include tag which searches a pre-defined path tree for the specified module. The first one found is the one it uses. Each brand has slightly differing content. To me it is a no-brainer to go the branding path but YMMV. PJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: hide source of a page
On Tuesday 9 November 2004 07:36, Steven J. Owens wrote: If anybody ever figures out a truly effective safeguard against this (which would be at least equivalent, in terms of mathematical creativity, to public/private key encryption), we'll see some really radical changes. It's a special case of the generic strong-DRM problem, which I postulate is demonstrably insoluble if the (untrusted) end-user controls the code that runs on his machines. Rightsholder groups would like to outlaw machinery which affords end-users this freedom; the open-source movement protects it. In any case, a business model which requires that you distrust your customers is, in my view, fundamentally flawed. -- Edward Barrow Copyright Consultant [EMAIL PROTECTED] ***Important: see http://www.copyweb.co.uk/email.htm for important information about the legal status of this email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Many many unclosed connections, their state is CLOSE_WAIT
What's your question? This state indicates that the client sends a FIN signal. The client doesn't receive any data on this socket but it can receive data from the server. The connection is half-closed. -Message d'origine- De : David Zhung [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 novembre 2004 06:42 À : [EMAIL PROTECTED] Objet : Many many unclosed connections, their state is CLOSE_WAIT We developed a web application in Tomcat4.1. Recently, when we did test for this application, sometimes we can get many many unclosed connections. The detail environment is: - Server OS is Win2000 server or win2003 ES - Tomcat4.1 - Mysql4.0 We deployed it in the computer named Server_1 and started it, then open several MS IE windows in local and remote hosts to login the application with different accounts. Sometimes, when we check the net state using command netstat -an, we will find many many unclosed connections ... See the following: C:\Documents and Settings\Administratornetstat -na Active Connections Proto Local Address Foreign AddressState TCP0.0.0.0:3870 0.0.0.0:0 LISTENING TCP0.0.0.0:3873 0.0.0.0:0 LISTENING TCP0.0.0.0:3876 0.0.0.0:0 LISTENING TCP0.0.0.0:3879 0.0.0.0:0 LISTENING TCP0.0.0.0:3882 0.0.0.0:0 LISTENING TCP0.0.0.0:3887 0.0.0.0:0 LISTENING TCP0.0.0.0:3890 0.0.0.0:0 LISTENING TCP0.0.0.0:3894 0.0.0.0:0 LISTENING TCP0.0.0.0:3897 0.0.0.0:0 LISTENING TCP0.0.0.0:3900 0.0.0.0:0 LISTENING TCP0.0.0.0:3903 0.0.0.0:0 LISTENING TCP0.0.0.0:3906 0.0.0.0:0 LISTENING TCP0.0.0.0:3909 0.0.0.0:0 LISTENING TCP0.0.0.0:3912 0.0.0.0:0 LISTENING TCP0.0.0.0:3915 0.0.0.0:0 LISTENING TCP0.0.0.0:3918 0.0.0.0:0 LISTENING TCP0.0.0.0:3921 0.0.0.0:0 LISTENING TCP0.0.0.0:3924 0.0.0.0:0 LISTENING TCP0.0.0.0:3927 0.0.0.0:0 LISTENING TCP0.0.0.0:3930 0.0.0.0:0 LISTENING TCP0.0.0.0:3934 0.0.0.0:0 LISTENING TCP0.0.0.0:3937 0.0.0.0:0 LISTENING TCP0.0.0.0:3940 0.0.0.0:0 LISTENING TCP0.0.0.0:3944 0.0.0.0:0 LISTENING TCP0.0.0.0:3947 0.0.0.0:0 LISTENING TCP0.0.0.0:3952 0.0.0.0:0 LISTENING TCP0.0.0.0:3955 0.0.0.0:0 LISTENING TCP0.0.0.0:3958 0.0.0.0:0 LISTENING TCP0.0.0.0:3961 0.0.0.0:0 LISTENING TCP0.0.0.0:3964 0.0.0.0:0 LISTENING TCP0.0.0.0:3967 0.0.0.0:0 LISTENING TCP0.0.0.0:3970 0.0.0.0:0 LISTENING TCP0.0.0.0:3974 0.0.0.0:0 LISTENING TCP0.0.0.0:3977 0.0.0.0:0 LISTENING TCP0.0.0.0:3980 0.0.0.0:0 LISTENING TCP0.0.0.0:3983 0.0.0.0:0 LISTENING TCP0.0.0.0:3986 0.0.0.0:0 LISTENING TCP0.0.0.0:3989 0.0.0.0:0 LISTENING TCP0.0.0.0:3992 0.0.0.0:0 LISTENING TCP0.0.0.0:3996 0.0.0.0:0 LISTENING TCP0.0.0.0:4000 0.0.0.0:0 LISTENING TCP0.0.0.0:4003 0.0.0.0:0 LISTENING TCP0.0.0.0:4006 0.0.0.0:0 LISTENING TCP0.0.0.0:4009 0.0.0.0:0 LISTENING TCP0.0.0.0:4012 0.0.0.0:0 LISTENING TCP0.0.0.0:4015 0.0.0.0:0 LISTENING TCP0.0.0.0:4020 0.0.0.0:0 LISTENING TCP0.0.0.0:4023 0.0.0.0:0 LISTENING TCP0.0.0.0:4026 0.0.0.0:0 LISTENING TCP0.0.0.0:4029 0.0.0.0:0 LISTENING TCP0.0.0.0:4032 0.0.0.0:0 LISTENING TCP0.0.0.0:4035 0.0.0.0:0 LISTENING TCP0.0.0.0:4038 0.0.0.0:0 LISTENING TCP0.0.0.0:4041 0.0.0.0:0 LISTENING TCP0.0.0.0:4044 0.0.0.0:0 LISTENING TCP0.0.0.0:4047 0.0.0.0:0 LISTENING TCP0.0.0.0:4051 0.0.0.0:0 LISTENING TCP0.0.0.0:4054 0.0.0.0:0 LISTENING TCP0.0.0.0:4057 0.0.0.0:0 LISTENING TCP0.0.0.0:4060 0.0.0.0:0 LISTENING TCP0.0.0.0:4063 0.0.0.0:0 LISTENING TCP0.0.0.0:4067 0.0.0.0:0 LISTENING TCP
file Permissions to tomcat?
My Tomcat creates lot of problem in starting. I think reason can be linux permissions. Can any body tell me what permissions should it have? Amit Gupta
Re: hide source of a page
On 9/11/04 4:57, Frank W. Zammetti [EMAIL PROTECTED] wrote: No, there are actually plug-ins for other browsers to run ActiveX controls. I don't know if they are particularly stable, but they do exist. Can you show me one for Safari, and one for the Nokia 6310? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Certificate configuration
Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore keystorePass= / My keystore: D:\db\certificateskeytool -keystore keystore -list Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 7B:CD:2C:5D:AE:79:8A:86:D5:70:25:56:3D:0D:D1:AC mis1_key, Nov 9, 2004, keyEntry, Certificate fingerprint (MD5): BB:6A:10:C7:1C:DC:A2:AE:BD:77:C3:6F:50:B6:50:C1 mis1_cert, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A The certificate that should be used is the mis1_cert certificate. From the printcert: D:\db\certificateskeytool -keystore keystore -printcert -file test.crt -v Owner: CN=mis1, OU=gmPrice, O=Deutsche Bank, L=London, ST=England, C=UK Issuer: [EMAIL PROTECTED], CN=gmPrice, OU=Shared Technology, O=Deutsche Bank, L=London, ST=England, C=UK Serial number: 8 Valid from: Tue Nov 09 09:26:01 GMT 2004 until: Wed Nov 09 09:26:01 GMT 2005 Certificate fingerprints: MD5: 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A SHA1: C7:AA:85:F7:7E:92:AC:E6:77:8B:44:F4:B2:7F:33:11:A7:DC:57:A3 Rob Cole -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Thread deadlocking in 3.2.2 beta 5?
Hi all In the next mail i´ll show you my test with multiprocessor machine. I haven´t manage run tomcat in more than 1 processor. JULE, Nicolas - DSIA said Hi uwe, Tomcat is multithreaded, but is a single process (the JVM) The question is then to know how your JVM is scalable on the machine you work. Generally JVM are not able to profit of all the ressources of SMP machines. On my opinion, this is rather a JVM implementation question, than a question for tomcat if Tomcat is a single process, can you run 2 tomcat containers and redirect in two diferents processors? perhaps a tomcat proxy configuration with 2 or more tomcats running in differents processors may be the solution. Today i´ll do test and i´ll show its here. thanks a lot. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Certificate configuration
On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore keystorePass= / My keystore: D:\db\certificateskeytool -keystore keystore -list should that not be .keystore, not keystore? David Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 7B:CD:2C:5D:AE:79:8A:86:D5:70:25:56:3D:0D:D1:AC mis1_key, Nov 9, 2004, keyEntry, Certificate fingerprint (MD5): BB:6A:10:C7:1C:DC:A2:AE:BD:77:C3:6F:50:B6:50:C1 mis1_cert, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A The certificate that should be used is the mis1_cert certificate. From the printcert: D:\db\certificateskeytool -keystore keystore -printcert -file test.crt -v Owner: CN=mis1, OU=gmPrice, O=Deutsche Bank, L=London, ST=England, C=UK Issuer: [EMAIL PROTECTED], CN=gmPrice, OU=Shared Technology, O=Deutsche Bank, L=London, ST=England, C=UK Serial number: 8 Valid from: Tue Nov 09 09:26:01 GMT 2004 until: Wed Nov 09 09:26:01 GMT 2005 Certificate fingerprints: MD5: 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A SHA1: C7:AA:85:F7:7E:92:AC:E6:77:8B:44:F4:B2:7F:33:11:A7:DC:57:A3 Rob Cole -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
Hi.. Sunitha. Why r u not used encrytion and decryption techiniques in naming of java files. U can used Quantum File naming Concept for nameing java. If u r using Tomcat Server. for That u can implement WebSoS concept to protect ur source code . or u can write some java script code to disbale the source code which r available in different type of browsers. Well This help ..u Deepak TIFR On Tue, 09 Nov 2004 Sunitha Kumar wrote : Hi folks: Can viewing the source code of a page be blocked in tomcat? thanks, -sunitha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem Locating JAAS Config File in Tomcat 5.5.x
Hi, We are having problems running a servlet providing JAAS to our web application. We are using Tomcat 5.5.x and JVM 1.4.2. We can't seem to make the JAAS servlet run because Tomcat can't find the JAAS config file which we've already specified in the JAVA_OPTS env variable. We are referring to this document to setup our JAAS servlet: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm regards, jOjO -- My Blogs http://www.jroller.com/page/jojopaderes/blog Pinoy Tech Scene http://pinoytechscene.mparaz.com PinoyJUG http://www.pinoyjug.ph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Certificate configuration
Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore keystorePass= / My keystore: D:\db\certificateskeytool -keystore keystore -list should that not be .keystore, not keystore? David Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 7B:CD:2C:5D:AE:79:8A:86:D5:70:25:56:3D:0D:D1:AC mis1_key, Nov 9, 2004, keyEntry, Certificate fingerprint
Preventing users getting accessing to directory contents in Tomcat
Under tomcat 4 my jsps are held in a subdiir called jsp which contains further subdirectories What do I put into web.xml to stop requests such as http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info listing the contents of the directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with tomcat
Hi, I am running Tomcat server 5.5.3 with JDK 1.5 on three servers. These servers are User mode Linux. Two servers have fedora core 2 and 1 server has redhat 9. I am installing same binaries downloaded from Jakarta.apache.org and java.sun.com. On one server(Fedora core2 with 64 MB RAM). Tomcat is working fine with no issues. Deploys applications automatically when uploaded. No problem with this server. On second server (Fedora core2 with 128 MB RAM) Tomcat starts and don't kill java process it created when shutdown.sh in CATALINA_HOME/bin/ is executed. So tomcat runs only once and hence need reboot of system . Problem don't solve even if I manually kill process. Third server (Redhat 9 with 128 MB RAM), Tomcat is too slow to execute applications. Also tomcat startup on second and third server is moody. Sometimes it start when CATALINA_HOME/bin/ startup.sh is executed some times don't. Please help... Amit Gupta
Re: Datasource problems on Tomcat 5.5.4
On Mon, 8 Nov 2004 16:07:26 -0800, Mark Fleischman [EMAIL PROTECTED] wrote: Hello, After upgrading from Tomcat 5.0.27 to Tomcat 5.5.4 my JNDI datasources are not resolving in 5.5.4 The configuration of the datasources was too verbose, and has been changed in this release. Look in the JNDI page in the documentation for the details. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Certificate configuration
Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore keystorePass= / My keystore: D:\db\certificateskeytool -keystore keystore -list should that not be .keystore, not keystore? David Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 7B:CD:2C:5D:AE:79:8A:86:D5:70:25:56:3D:0D:D1:AC mis1_key, Nov 9, 2004, keyEntry, Certificate fingerprint (MD5): BB:6A:10:C7:1C:DC:A2:AE:BD:77:C3:6F:50:B6:50:C1 mis1_cert, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A The certificate that should be used is the mis1_cert certificate. From the printcert: D:\db\certificateskeytool -keystore keystore -printcert -file test.crt -v Owner: CN=mis1, OU=gmPrice, O=Deutsche Bank, L=London, ST=England, C=UK Issuer: [EMAIL PROTECTED], CN=gmPrice, OU=Shared Technology, O=Deutsche Bank, L=London, ST=England, C=UK Serial number: 8 Valid from: Tue Nov 09 09:26:01 GMT 2004 until: Wed Nov 09 09:26:01 GMT 2005 Certificate fingerprints: MD5: 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A SHA1: C7:AA:85:F7:7E:92:AC:E6:77:8B:44:F4:B2:7F:33:11:A7:DC:57:A3 Rob Cole -- This e-mail may contain confidential and/or privileged information. If you are not the intended
Re: [FIXED] jndi realm filter problem
Hi, ok it's fixed i made another realm with a new mbean-descriptor bases on the JNDIRealm file from version 4.1.31 and that do the trick till an update of tomcat. However, for those runnin 4.1.30,the main difference between file is: * @version $Revision: 1.19 $ $Date: 2004/08/26 21:37:21 $ --- * @version $Revision: 1.16 $ $Date: 2003/12/12 21:31:56 $ 1295c1343,1344 String filter = roleFormat.format(new String[] { doRFC2254Encoding(dn), username }); --- String filter = roleFormat.format(new String[] { dn, username }); filter = doRFC2254Encoding(filter); so, instead of doing an new realm,just modifying this file and rebuild catalina.jar should do the trick But i guess all this is nearly historical :-) Thank for the excellent framework Xavier Xavier Renard wrote: Hi, I'm using the Debian package of tomcat (4.1.30) with ldap auth with the following config: myapplication.xml -- Context path=/myapplication docBase=/path/2/build Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://localhost:389; connectionName=uid=tomcatproxy,dc=example,dc=org connectionPassword=tomcatpwd roleName=cn roleBase=ou=groups,dc=example,dc=org roleSearch=(memberUid={1}) userBase=ou=people,dc=example,dc=org userSearch=(uid={0}) userSubtree=true/ /Context I have tried it with the tar.gz of tomcat-4.1.30 and tomcat-5.0.28 and it works perfectly well. However,with the debian package, my filter (rolesearch) become (?=undefined) sample from log -- conn=7 op=5 SRCH base=ou=groups,dc=example,dc=org scope=1 filter=(?=undefined) I have to use the debian package so i can't really change that. However, before submitting a bug report or write a mail to the debian-java mailing-list, i would like to know if someone could point me in the good direction to fix this,ie where to modify this behaviour if possible or override this realm by an other,... Regards Xavier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems setting up JDBCStore
Scratch that. Figured out that there wasn't actually a problem When the JDBCStore loads up, it attempts to get a connection which causes the error message The database connection is null or was found to be closed. Trying to re-open it.. Maybe a better way of dealing with this would be to initialize the database connection. This way, no error message means a successful startup. _ Jeremy Nix Senior Application Developer Southwest Financial Services, LTD. (513) 621-6699 x1158 www.sfsltd.com -Original Message- From: Jeremy Nix Sent: Monday, November 08, 2004 3:40 PM To: [EMAIL PROTECTED] Subject: Problems setting up JDBCStore I'm having a little difficulty setting up the JDBCStore session persistence layer. Has anybody had a similar problem? Or do you see anyting wrong in my configuration. Here's the error that I'm getting: 2004-11-08 15:32:11 JDBCStore[/test]: The database connection is null or was found to be closed. Trying to re-open it. My server.xml looks like this: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector address=10.0.2.130 port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=443 acceptCount=100 debug=0 scheme=http connectionTimeout=2 disableUploadTimeout=true / !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector address=10.0.2.130 port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=443 acceptCount=100 debug=0 scheme=https secure=true connectionTimeout=2 disableUploadTimeout=true Factory className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory clientAuth=false protocol=TLS keystoreFile=certs/phoenix.keystore keystorePass=alpine / /Connector !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=10.0.2.130 debug=9 jvmRoute=tomcat1 !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=catalina_log. suffix=.txt timestamp=true verbosity=4/ !-- Define the default virtual host -- Host name=10.0.2.130 debug=0 appBase=webapps unpackWARs=true autoDeploy=false
Re: Problems setting up JDBCStore
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CGI ...yeah, I know (Tomcat 4.1.29)
Thanks. I did what you suggested. I still have one question though, How come when I copied the source from 4.1.31 directly into my own class (with no dependencies) I got ClassNotFound exceptions and it would not run unless I copied my jar file into shared? It was the exact same code, just the package was different. There were no compile errors, (implying no package dependency issues the compiler could detect)... I just don't get it. I have code for other things (like valves) in there, and they work fine. I understand that webapps don't go here, but core catalina servlets work fine...as long as the package name doesn't change. Mark -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 4:33 PM To: 'Tomcat Users List' Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29) I think you have run into http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24478 Sorry - this was entirely my fault and has since been fixed. To get around this you can take the servlets-cgi.jar from an earlier/later release if you don't want to upgrade your entire server. Again, please accept my apologies. Mark -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 3:17 PM To: 'Tomcat Users List' Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29) Thanks for the reply. We have the debug set to 6 already. We found that it almost seems to alternate with the following error. The script is there, accessible, and executable by the user tomcat is running as. We are not using a security manager. One puzzling thing is that the following path has two sets of quotes, but I was thinking that was just an error in the log message. We altered the program so that the first line of the program touches a file so we can see if it ran at all. It does not, and we get either the No such file error or the Broken Pipe one. Perhaps, though, the quotations are the crux of it all. In the localhost log we have: 2004-11-08 10:06:13 cgi: findCGI: currentLoc=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi 2004-11-08 10:06:13 cgi: findCGI: currentLoc=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi 2004-11-08 10:06:13 cgi: findCGI: FOUND cgi at /opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl 2004-11-08 10:06:13 cgi: findCGI calc: name=MRlogin.pl, path=/opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl, scriptname=/MRcgi/MRlogin.pl, cginame=/MRlogin.pl 2004-11-08 10:06:13 cgi: runCGI(envp= ... 2004-11-08 10:06:13 cgi: runCGI (stderr):Can't open perl script /opt/OCIEsys/tomcat/WEB/webapps/ROOT/WEB-INF/cgi/MRlogin.pl : No such file or directory 2004-11-08 10:06:13 cgi: runCGI: 1 lines received on stderr -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 5:20 PM To: 'Tomcat Users List' Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29) Enable cgiservlet log (I usually set debug to 6) and see what's output in the log (very detail). -Original Message- From: Mark Claassen [mailto:[EMAIL PROTECTED] Sent: November 5, 2004 5:07 PM To: 'Tomcat Users List' Subject: CGI ...yeah, I know (Tomcat 4.1.29) I know that Tomcat is not an ideal CGI server, but I am having real trouble getting it to work at all. Most often I get the Exception below, and it doesn't seem to be running our perl program at all. (We can run the perl program by hand though). We had a bit of trouble getting it setup in the first place, and we got errors way different from this. I figured that since we were getting this, we must have everything else setup correctly. Looking at the 4.1.27 source this is: 1686: commandsStdIn.flush(); commandsStdIn.close(); commandsStdIn is the output stream to the process. Anyone have any ideas on where to start looking? Thanks, Mark java.io.IOException: Broken pipe at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:257) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:128) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServl et.java:1686) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:418bf9fd252211451334454! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
AW: connection pooling
Hello, I am stuck in the same Probleme as Erik. I did exactly what in the e-mails suggested is with no success. I am runing TC 5.0.28 und try to get a connection to an informix database. I got the following Error Message: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' mycode : try { initCtx = new InitialContext(); envCtx = (Context) initCtx.lookup(java:comp/env); ds = (DataSource) envCtx.lookup(jdbc/SteaDB); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { conn=ds.getConnection(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } My Configuration is as follow: web.xml : resource-ref descriptionDB Connection to informix/description res-ref-namejdbc/SteaDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server.xml : DefaultContext Resource name=jdbc/SteaDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SteaDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- username and password for dB connections -- parameter nameusername/name valueunknown/value /parameter parameter namepassword/name valueunknown/value /parameter !-- Class name for the informix treiber -- parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name value jdbc:informix-sqli://s0062033.vt.bb.de:300056/coadb:informixserver=coadbzentral /value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value300/value !-- in second -- /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext thanks for any hint Mohammed -Ursprüngliche Nachricht- Von: Steve Kirk [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. November 2004 01:40 An: 'Eric Wulff'; 'Tomcat Users List' Betreff: RE: connection pooling Worth clarifyig what we are meaning by DBCP. The DBCP I was referring to was the specific implementation of connection pooling that is part of Jakarta Commons: http://jakarta.apache.org/commons/dbcp/ There are other pooling implementations which are alternatives to Commons DBCP. Some DB drivers included pooling support as-is. Others do not. For those that do not, you need to implement pooling by building code around the standard driver. You used to have to do this yourself, but now there is DBCP to take care of this for you. DBCP is a wrapper used around a non-pooling DB driver. So, hence my question, are you intending to use DBCP, or does your Informix driver include pooling? From the JNDI/JDBC guides it appears that you have the choice of using DBCP or not (although there is one aspect of the docs that seem slightly unclear on that, which I am going start another thread to clear up). The configs are similar. Personally I have only got the DBCP approach to work, hence my suggestion of using that, for which you need to include the factory parameter. What this does is basically tells TC to call DBCP rather than your database driver when making a connection - DBCP then calls your DB driver if and when it needs to. I think I'm right in saying that if you don't explcitly use DBCP, and your DB driver does not support pooling, you will end up with non-pooled connections. The webapp will still work but you will not have the advantages of pooling. In case it helps, here are my ResourceParams. Note that I have both factory and driverClassName: ResourceParams name=jdbc/myDb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameusername/name valueme/value /parameter parameter namepassword/name
IIS 6 - IIS 5 Isolation mode with JK2 ISAPI.dll
I read some post about it, but I cannot understood if and why Isolation Mode is to be set to work properly with JK2 Connector. I tried in both Isolation Mode and without, and everything seems to work. Can somebody explain me? Thanks, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Renaming WAR problem
Thanks for your reply Tim. Tim Penhey wrote: Andrew Watters wrote: In this case the webapps directory is entirely empty, I delete the ROOT folder as part of the publish procedure and there are no other apps configured except for the manager and admin ones. What about the XML configuration file in $TOMCAT_HOME/conf/Catalina/localhost Does it specify the name of the correct war file? The only files in here are admin.xml and manager.xml. Should I have something for ROOT? As Yoav mentioned, look at the Host element in the /conf/server.xml file. Specifically the values for unpackWARs and autoDeploy. I think this is configured correctly. I have Host name=localhost debug=9 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false I have also set all debug leverls in /conf/server.xml and /conf/web.xml to 9. I don't see any indication of errors in any of the generated logs or in the command window. Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hide source of a page
I said there are plug-ins for other browsers, not which browsers or how many browsers have them :) In truth, I know that there was one for Netscape on Windows, and that's about it. So, my statement was true, from a certain point of view (thank you Obi Wan!) Seriously though, I couldn't tell you which browsers have such capability, and I seriously doubt they exist on Linux as another user mentioned (and the other poster was right, my company developers mostly highly-complex internal apps or apps used by our clients which are all forced to use IE on Windows only, so I have some flexibility others don't, although I don't have some flexibility others do, but that's a topic for another thread). I do seem to recall seeing such a thing for Firefox on Windows, but I could be mistaken. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com David Stevenson wrote: On 9/11/04 4:57, Frank W. Zammetti [EMAIL PROTECTED] wrote: No, there are actually plug-ins for other browsers to run ActiveX controls. I don't know if they are particularly stable, but they do exist. Can you show me one for Safari, and one for the Nokia 6310? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Are all TC-managed DataSources pooled?
Hi, No, the DataSources are not required to be pooled. J2EE only requires that a container provide a DataSource binding. How that DataSource is implemented is up to the container (which usually defers to the server admin, as we do). You can use pooling or non-pooling DataSources, XA DataSources, and other varieties as you see fit. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 7:45 PM To: 'Tomcat Users List' Subject: Are all TC-managed DataSources pooled? The docs under 'JDBC Data Sources' at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.ht ml say, The J2EE Platform Specification requires J2EE Application Servers to make available a DataSource implementation (that is, a connection pool for JDBC connections). Now, I'm *not* criticising the docs, I'm seeking clarification. I'm not sure whether this is saying that a JDBC DataSource has to be pooled? Or is instead saying that J2EE requires pooled JDBC connections, or maybe that J2EE requires connections via a DataSource? I didn't think that DataSources had to be pooled, based on what is says here: http://java.sun.com/j2se/1.4.2/docs/api/javax/sql/DataSource.html This might sound like nit picking, but the answer to this will help me help someone else on another thread. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CGI ...yeah, I know (Tomcat 4.1.29)
Hi, I still have one question though, How come when I copied the source from 4.1.31 directly into my own class (with no dependencies) I got ClassNotFound exceptions and it would not run Was it really a CNFE or a NoClassDefFoundError? You have to be very careful with dependencies once you start putting stuff in shared, common, and server classloader repositories. That's why I recommend never doing that, and just keeping everything in your WEB-INF/lib directory. The reason you must be very careful is that class com.foo loaded from shared/lib is not the same as com.foo loaded from common/lib or WEB-INF/lib. A class is unique within its classloader, and these are distinct classloaders. This leads to problems with applications that package classes such that some classes are in more than one repository, or that require upwards (common/lib needing WEB-INF/lib for example) repository lookups. No-no. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 configuration problems
Hi, I am trying to implement load balancing with the Apache + mod_jk2 + Tomcat setup. I configured jsp_examples application for clustering, it worked perfectly. But my webapp is not working. 1. Round robin behavior worked almost perfectly with jsp-examples, but not with my application 2. The session is not sticky though I set stickySession=1 in workers2.properties Here's my workers2.properties, any help is highly appreciated. # Usually commented out [logger.apache2] file=F:\ApacheGroup\Apache\logs\error.log level=ERROR #provide the basic config needed [config] file=F:\ApacheGroup\Apache\logs\error.log debug=1 #provide the lcoation of shm file on the Apache server file=F:\ApacheGroup\Apache\conf\jk2.shm size=100 #Tomcat5A [channel.socket:dmsqmp:8009] host=dmsqmp port=8009 tomcatId=Tomcat5A group=balanced lb_factor=1 route=Tomcat5A #Tomcat5A worker [ajp13:dmsqmp:8009] channel=chanel.socket:Tomcat5A #Tomcat5B [channel.socket:localhost:8009] host=localhost port=8009 tomcatId=Tomcat5B group=balanced lb_factor=1 route=Tomcat5B #Tomcat5B worker [ajp13:localhost:8009] channel=chanel.socket:Tomcat5B #Load balancer worker [lb:balanced] worker=ajp13:localhost:8009 worker=ajp13:dmsqmp:8009 timeout=30 attempts=2 recovery=90 stickySession=1 noWorkersMsg=Server Busy please try after some time. noWorkerCodeMsg=503 #URI Mapping [uri:/qwaf/*] info=Mappings for the Tomcat context jsp-examples context=/qwaf group=balanced #Define a status worker to test the run-time request behaviour to the all workers [status:] #Status URI mapping [uri:/jkstatus/*] group=status Regards, Srinivas
RE: Datasource problems on Tomcat 5.5.4
Hi, The ResourceParams nested elements are history, it's all in the Resource element now. See the new configuration page at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark Fleischman [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 7:07 PM To: [EMAIL PROTECTED] Subject: Datasource problems on Tomcat 5.5.4 Hello, After upgrading from Tomcat 5.0.27 to Tomcat 5.5.4 my JNDI datasources are not resolving in 5.5.4 I tried 2 approaches which both work in Tomcat 5.0.27. I am using the same configuration on the 5.5.4 version (that is my libraries and context files have not changed) 1) DBCP with MySql 2) c3p0 with MySql With DBCP I get: JDBC driver of class '' for connect URL 'null' With c3p0 I get: javax.naming.NamingException: Cannot create resource instance I am more interested in resolving the c3p0 JNDI datasource setup. So let me share that setup: Here are the details of what I am running: c3p0-0.8.5pre4 mysql-connector-java-3.0.15-ga-bin JDK 1.5.0 Tomcat 5.5.4 On Windows Inside of common/lib I have placed the above JDBC related libraries. Here is my context file (which is placed in the conf\Catalina\localhost directory): Context path=/myapp docBase=myapp.war debug=5 reloadable=true override=true crossContext=true Resource name=jdbc/DCCDS auth=Container type=com.mchange.v2.c3p0.ComboPooledDataSource/ ResourceParams name=jdbc/DCCDS parameter namefactory/name valueorg.apache.naming.factory.BeanFactory/value /parameter parameter namedriverClass/name valuecom.mysql.jdbc.Driver/value /parameter parameter namejdbcUrl/name valuejdbc:mysql://192.168.1.60:3306/dcc_dev?autoReconnect=true;/valu e /parameter parameter nameuser/name valuemark/value /parameter parameter namepassword/name valuexxx/value /parameter parameter nameminPoolSize/name value5/value /parameter parameter namemaxPoolSize/name value15/value /parameter parameter nameacquireIncrement/name value5/value /parameter /ResourceParams /Context Here the relevant part of the web.xml file: resource-ref descriptionDB Connection On My Sql/description res-ref-namejdbc/DCCDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I make the following call in java: envCtx.lookup(jdbc/DCCDS); I get the exception: javax.naming.NamingException: Cannot create resource instance org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac tory . java:132) javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) Any help would be greatly appreciated. Thanks, Mark This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error with tomcat 5.5.3
Hi, One reason may be that the server is already stopped. Please try 5.5.4 instead of 5.5.3. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Amit Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 10:54 PM To: Tomcat Users List Subject: Error with tomcat 5.5.3 When I try to stop tomcat following error occur org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.init(Socket.java:365) at java.net.Socket.init(Socket.java:178) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411) What may be the reason? Amit Gupta This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file Permissions to tomcat?
Hi, It needs to have read permissions on the webapps and conf directories, and their subdirectories. It needs to have write permissions on the conf/tomcat-users.xml file if that's what you're using for user authentication (which is the default). It needs to have read and write permissions on its work and temp directories. If you have unpackWARs set to true in your Host declaration (which is the default), it needs write permission on the appBase directory for the Host. That's most of it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Amit Gupta [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:14 AM To: Tomcat Users List Subject: file Permissions to tomcat? My Tomcat creates lot of problem in starting. I think reason can be linux permissions. Can any body tell me what permissions should it have? Amit Gupta This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Certificate configuration
It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore keystorePass= / My keystore: D:\db\certificateskeytool -keystore keystore -list should that not be .keystore, not keystore? David Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 3 entries rootca, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 7B:CD:2C:5D:AE:79:8A:86:D5:70:25:56:3D:0D:D1:AC mis1_key, Nov 9, 2004, keyEntry, Certificate fingerprint (MD5): BB:6A:10:C7:1C:DC:A2:AE:BD:77:C3:6F:50:B6:50:C1 mis1_cert, Nov 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 63:A4:57:A1:3E:B9:72:67:14:21:88:F3:3A:90:C5:5A The certificate that should be used is the mis1_cert certificate. From the printcert: D:\db\certificateskeytool -keystore keystore -printcert -file test.crt -v Owner: CN=mis1, OU=gmPrice, O=Deutsche Bank, L=London, ST=England, C=UK Issuer: [EMAIL PROTECTED], CN=gmPrice, OU=Shared Technology, O=Deutsche
RE: Filter tricks in tomcat
Hi, I assume that when you say capture you mean handle ? Or maybe wrap? To only handle outgoing (response) data in a filter, do something like this: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws Blah { chain.doFilter(request, response); // Now do whatever you want with the response // Remember though that the response is likely committed by now } To only wrap a response is even simpler: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws Blah { // Do whatever chain.doFilter(request, new MyResponseWrapper(response)); // Do whatever } Yoav Shapira http://www.yoavshapira.com -Original Message- From: Pablo Carretero [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 3:06 AM To: [EMAIL PROTECTED] Subject: Filter tricks in tomcat Hi, I'm working with Tomcat 5 from 3 months ago. I understand the filter architecture, but I cannot capture the response filter for my JSP and servelt. Tomcat 5 is Servlet 2.4, so I thing it can filter either request or response. What I can do, is capture the entire request and its response, to have a good mechanism of statistics in my web application. So, can you help in order to know how can I catch the response in a filter?? Thanks in advanced, And best regards. .pcs __ Pablo Carretero Sánchez Cygnux Arquitecto de Software Pintor Velázquez nº 3 Esc Izq 7º B 28932 - Móstoles (Madrid) Movil: +34 699929150 [EMAIL PROTECTED] http://www.cygnux.com/egroupware/email/compose.php?folder=INBOXsessionid= 1 2a0f5acc6fd5805a190a5b55a147155kp3=7c4ad1ea016bfe58bf86addf2e6064d3domain = cygnux.com[EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Preventing users getting accessing to directory contents in Tomcat
Hi, Add a listings parameter to the DefaultServlet in conf/web.xml with a param-value of false. IIRC. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:00 AM To: Tomcat Users List Subject: Preventing users getting accessing to directory contents in Tomcat Under tomcat 4 my jsps are held in a subdiir called jsp which contains further subdirectories What do I put into web.xml to stop requests such as http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info listing the contents of the directory. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter tricks in tomcat
actually, you can use filters to capture the response and then use a filter to dump the whole thing to the outputstream. What you'll have to do is create your own buffer to hold the content and not write to either the jspwriter or the printwriter in the servlet. the tricky part is this. if you have custom error pages, you'll have to be careful because there may already be stuff in the buffer. one of these days I'll have to write an example and post a patch for the tomcat jsp examples. peter On Tue, 9 Nov 2004 09:03:10 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I assume that when you say capture you mean handle ? Or maybe wrap? To only handle outgoing (response) data in a filter, do something like this: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws Blah { chain.doFilter(request, response); // Now do whatever you want with the response // Remember though that the response is likely committed by now } To only wrap a response is even simpler: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws Blah { // Do whatever chain.doFilter(request, new MyResponseWrapper(response)); // Do whatever } Yoav Shapira http://www.yoavshapira.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Root directory...
Create a context element, something like this: Context displayName=myApp path= docBase=/myApp reloadable=true useNaming=true debug=5 - Original Message - From: Luc Vantroys [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; e-Denton Subscriber [EMAIL PROTECTED] Sent: Sunday, November 07, 2004 7:48 PM Subject: Re: Root directory... Hi, What do you mean by this? thanks, Luc. - Original Message - From: e-Denton Subscriber [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, November 07, 2004 7:44 PM Subject: Re: Root directory... Create a context for your app with path=. That makes it the root app. - Original Message - From: Luc Vantroys [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 06, 2004 9:40 PM Subject: Root directory... Hi, I work in a regular directory but I'm tired to have to reload the application all the time after I recompiled the source code... I don't understand how I am suppose to work with the ROOT directory, I've heard that when the classes are in the ROOT directory, they are relaoded each time you need them. so Can anybody help me? I copied my application in the root directory but I can access it. How can I do? Thanks, Luc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Certificate configuration
There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated
RE: SSL Certificate configuration
BTW, I believe that the CN of your cert needs to be your machines IP or domain, whichever is used to connect. -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self signed SSL certificate, and where could it be getting it from? Is there a way to force Tomcat to use a certain certificate from a keystore? I'm now very, very stuck and would appreciate some help. Are there any switches I can use to get more information from Tomcat on what it is using, certificate wise? For reference, the connector config looks like this: Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=D:\db\certificates\keystore
RE: SSL Certificate configuration
The steps you list worked for me. ... That makes me think that we used keytool or OpenSSL differently somehow. I'm attaching a batch (DOS) script that I used to set myself up for testing. Note that I'm not using the default locations and file names for the keystore and truststore (some adjustment is in order either in this snippet or in your server.xml SSL connector setup). @echo off cd \openssl\bin md ca_cert md server_cert md client_cert md C:\server_truststore md C:\server_keystore md client_truststore md client_keystore echo * echo * * echo * Enter Info for CA Certificate* echo * * echo * openssl req -new -newkey rsa:1024 -nodes -out ca_cert\ca.csr -keyout ca_cert\ca.key openssl x509 -trustout -signkey ca_cert\ca.key -days 365 -req -in ca_cert\ca.csr -out ca_cert\ca.pem copy ca_cert\ca.pem ca_cert\ca.cer keytool -import -keystore C:\server_truststore\cacerts -file ca_cert\ca.cer -alias my_ca -storepass changeit -keypass changeit echo 02 ca_cert\ca.srl echo * echo * * echo * Enter Info for Server Certificate * echo * * echo * IMPORTANT: use the server's * echo * IP address for the common name * echo * * echo * keytool -genkey -alias my_server -keyalg RSA -keysize 1024 -keystore c:\server_keystore\keystore -storetype JKS -storepass changeit -keypass changeit keytool -certreq -keyalg RSA -alias my_server -file server_cert\server.csr -keystore c:\server_keystore\keystore -storepass changeit -keypass changeit openssl x509 -CA ca_cert\ca.pem -CAkey ca_cert\ca.key -CAserial ca_cert\ca.srl -req -in server_cert\server.csr -out server_cert\server.cer -days 365 keytool -import -alias my_ca -keystore C:\server_keystore\keystore -trustcacerts -file ca_cert\ca.cer -storepass changeit -keypass changeit keytool -import -alias my_server -keystore C:\server_keystore\keystore -trustcacerts -file server_cert\server.cer -storepass changeit -keypass changeit -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 6:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new
ISAPI redirector warnings
While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false connectionTimeout=0 redirectPort=8443 debug=0 protocol=AJP/1.3 / isapi_redirector2.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=d:\\tomcat5.0.28\\conf\\workers2.properties extensionUri=/jakarta2/isapi_redirector2.dll logLevel=debug serverRoot=d:\\tomcat5.0.28\\
RE: CGI ...yeah, I know (Tomcat 4.1.29)
2004-11-08 16:06:55 StandardContext[]: Servlet threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class dsi.app.tomcat.DCGIServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89 1) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3422) ... - Root Cause - java.lang.ClassNotFoundException: dsi.app.tomcat.DCGIServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1443) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1289) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88 5) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3422) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) I thought I was being careful. The only non-core library needed to compile it needed was the catalina.jar, which is in that directory. And it was the exact same code. I tried for hours to figure it out, and then I put it in common and, bang, it worked. The only change between the original tomcat code and mine was the package. And since it worked when I put it in common, the web.xml information must have been correct. The invoker servlet was off the whole time. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 8:52 AM To: Tomcat Users List Subject: RE: CGI ...yeah, I know (Tomcat 4.1.29) Hi, I still have one question though, How come when I copied the source from 4.1.31 directly into my own class (with no dependencies) I got ClassNotFound exceptions and it would not run Was it really a CNFE or a NoClassDefFoundError? You have to be very careful with dependencies once you start putting stuff in shared, common, and server classloader repositories. That's why I recommend never doing that, and just keeping everything in your WEB-INF/lib directory. The reason you must be very careful is that class com.foo loaded from shared/lib is not the same as com.foo loaded from common/lib or WEB-INF/lib. A class is unique within its classloader, and these are distinct classloaders. This leads to problems with applications that package classes such that some classes are in more than one repository, or that require upwards (common/lib needing WEB-INF/lib for example) repository lookups. No-no. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI redirector warnings
you could reduce it by setting logLevel=info in the registry settings. You can also specify logging in the workers2.properties file with an info level. [logger.win32] level=INFO ADC -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:38 To: [EMAIL PROTECTED] Cc: Eric Sandusky Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false connectionTimeout=0 redirectPort=8443 debug=0 protocol=AJP/1.3 / isapi_redirector2.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=d:\\tomcat5.0.28\\conf\\workers2.properties extensionUri=/jakarta2/isapi_redirector2.dll logLevel=debug serverRoot=d:\\tomcat5.0.28\\ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL Certificate configuration
Thanks Ken. That looks exactly like what I did. I suppose the only difference is that our OpenSSL is on Linux and the keystore and Tomcat is on Wintel. I could understand if the certificate didn't work at all (i.e. some dodgy characters when copying/ftping information) but its not that. Is there a debug switch that I could use when starting the container to get information on what Tomcat is actually using? I.e. the keystore, certificate alias etc? Thanks for all of the suggestions so far, please keep them coming. Rob Cole +44 (0)20 754 51117 Ken Sims [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] m cc: Subject: RE: SSL Certificate configuration 09/11/2004 15:36 Please respond to Tomcat Users List The steps you list worked for me. ... That makes me think that we used keytool or OpenSSL differently somehow. I'm attaching a batch (DOS) script that I used to set myself up for testing. Note that I'm not using the default locations and file names for the keystore and truststore (some adjustment is in order either in this snippet or in your server.xml SSL connector setup). @echo off cd \openssl\bin md ca_cert md server_cert md client_cert md C:\server_truststore md C:\server_keystore md client_truststore md client_keystore echo * echo * * echo * Enter Info for CA Certificate* echo * * echo * openssl req -new -newkey rsa:1024 -nodes -out ca_cert\ca.csr -keyout ca_cert\ca.key openssl x509 -trustout -signkey ca_cert\ca.key -days 365 -req -in ca_cert\ca.csr -out ca_cert\ca.pem copy ca_cert\ca.pem ca_cert\ca.cer keytool -import -keystore C:\server_truststore\cacerts -file ca_cert\ca.cer -alias my_ca -storepass changeit -keypass changeit echo 02 ca_cert\ca.srl echo * echo * * echo * Enter Info for Server Certificate * echo * * echo * IMPORTANT: use the server's * echo * IP address for the common name * echo * * echo * keytool -genkey -alias my_server -keyalg RSA -keysize 1024 -keystore c:\server_keystore\keystore -storetype JKS -storepass changeit -keypass changeit keytool -certreq -keyalg RSA -alias my_server -file server_cert\server.csr -keystore c:\server_keystore\keystore -storepass changeit -keypass changeit openssl x509 -CA ca_cert\ca.pem -CAkey ca_cert\ca.key -CAserial ca_cert\ca.srl -req -in server_cert\server.csr -out server_cert\server.cer -days 365 keytool -import -alias my_ca -keystore C:\server_keystore\keystore -trustcacerts -file ca_cert\ca.cer -storepass changeit -keypass changeit keytool -import -alias my_server -keystore C:\server_keystore\keystore -trustcacerts -file server_cert\server.cer -storepass changeit -keypass changeit -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 6:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in
RE: ISAPI redirector warnings
Do you know any more information about the 3 logLevels? I see an ERROR, DEBUG, and INFO. I currently set it to DEBUG, which is the default and is not necessary. I would guess that INFO would give you more warnings, and ERROR would give you less warnings. Does this make sense? Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:50 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings you could reduce it by setting logLevel=info in the registry settings. You can also specify logging in the workers2.properties file with an info level. [logger.win32] level=INFO ADC -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:38 To: [EMAIL PROTECTED] Cc: Eric Sandusky Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false connectionTimeout=0 redirectPort=8443 debug=0 protocol=AJP/1.3 / isapi_redirector2.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=d:\\tomcat5.0.28\\conf\\workers2.properties extensionUri=/jakarta2/isapi_redirector2.dll logLevel=debug serverRoot=d:\\tomcat5.0.28\\ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI redirector warnings
i don't know much about jk2 logging. I don't think it can use log4j or commons-logging as it's just a DLL. the theory is the same I imagine, i.e the amount of logging gets narrower info/warn/debug/error. Setting it at ERROR will mean only errors come out and remove all the other stuff. -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:54 To: 'Tomcat Users List' Subject: RE: ISAPI redirector warnings Do you know any more information about the 3 logLevels? I see an ERROR, DEBUG, and INFO. I currently set it to DEBUG, which is the default and is not necessary. I would guess that INFO would give you more warnings, and ERROR would give you less warnings. Does this make sense? Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:50 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings you could reduce it by setting logLevel=info in the registry settings. You can also specify logging in the workers2.properties file with an info level. [logger.win32] level=INFO ADC -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:38 To: [EMAIL PROTECTED] Cc: Eric Sandusky Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false connectionTimeout=0 redirectPort=8443 debug=0 protocol=AJP/1.3 / isapi_redirector2.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] workersFile=d:\\tomcat5.0.28\\conf\\workers2.properties extensionUri=/jakarta2/isapi_redirector2.dll logLevel=debug serverRoot=d:\\tomcat5.0.28\\ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exception in clustering
Hello, I've a cluster of two nodes with 5.0.25 running on Linux. Everythings works fine for most of the day, but we are now getting this a lot on one server. After shutting down this server, the other one still runs. Nov 9, 2004 4:50:24 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) and I also see this: SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Can I solve this by tweaking some timeouts? I'm about to upgrade to 5.0.28 soon. Is this going to help? Ronald.
russian character support
Hi list, How can I configure tomcat for correct displaying of russian characterset ? Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI redirector warnings
By setting the LogLevel to INFO, I get more entries in the Event log. By setting the logLevel to ERROR, I still get the following Warnings in the Application log. Each of the entries starts with the word Error so they must be errors, not warnings. Does anybody know what the root cause of these errors/warnings are? There is nothing in the way of documentation for the JK2 connector that talks about this in detail. I have gone through this site, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html, and found absolutely nothing about these errors. They happen regularly as requests are made to the server, and are unacceptable to many of my customers. Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:58 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings i don't know much about jk2 logging. I don't think it can use log4j or commons-logging as it's just a DLL. the theory is the same I imagine, i.e the amount of logging gets narrower info/warn/debug/error. Setting it at ERROR will mean only errors come out and remove all the other stuff. -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:54 To: 'Tomcat Users List' Subject: RE: ISAPI redirector warnings Do you know any more information about the 3 logLevels? I see an ERROR, DEBUG, and INFO. I currently set it to DEBUG, which is the default and is not necessary. I would guess that INFO would give you more warnings, and ERROR would give you less warnings. Does this make sense? Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:50 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings you could reduce it by setting logLevel=info in the registry settings. You can also specify logging in the workers2.properties file with an info level. [logger.win32] level=INFO ADC -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:38 To: [EMAIL PROTECTED] Cc: Eric Sandusky Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml Connector port=8088 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
Re: exception in clustering
looks pretty normal, this shows that a connection was broken between one server and the other, you need to figure out why it breaks? restart? network? Filip - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 10:02 AM Subject: exception in clustering Hello, I've a cluster of two nodes with 5.0.25 running on Linux. Everythings works fine for most of the day, but we are now getting this a lot on one server. After shutting down this server, the other one still runs. Nov 9, 2004 4:50:24 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) and I also see this: SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Can I solve this by tweaking some timeouts? I'm about to upgrade to 5.0.28 soon. Is this going to help? Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. _ I have Tomcat 5.0.24 running on my localhost - Win XP Pro SP1 I am trying out the JSP 2.0 SVG example found here . http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html and then to view the SVG file .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX to dynamically render and display an SVG object in browser .. quote from above page ... _ JSP 2.0 SVG Example This example uses JSP 2.0's new, simplified JSPX syntax to render a Scalable Vector Graphics (SVG) document. When you view the source, notice the lack of a jsp:root element! The text to be rendered can be modified by changing the value of the name parameter. SVG has many potential uses, such as searchable images, or images customized with the name of your site's visitor (e.g. a Susan's Store tab image). JSPX is a natural fit for generating dynamic XML content such as SVG. _ I am testing this jspx example across several browsers ... IE / Opera / Mozilla IE 6 and Opera 7 both have Adobe SVG plugin, Mozilla has its native SVG reader. These browsers all open and display static *.svg files correctly (with no file download? prompt as reported below with IE 6). ... The problem arises with IE 6 trying to open the dynamically generated textRotate.jspx.svg file. In IE 6, instead of opening the rendered SVG object I see a file download pop-up window some files can harm your computer etc. etc. File name: textRotate.jspx File type: SVG Document from: localhost Would you like to open the file or save? ... But in Opera, Mozilla and Firefox the jspx generated SVG (from above JSP example) opens in the browser window. And the URL opens SVG file in a Batik SVG viewer. So this is more of a cross-browser problem than a server problem. IE 6 in particular. ### Q. How can I get IE 6 browser to open and display this JSP 2.0 SVG example - on the fly - without need for SVG file download? ### This same JSP 2.0 SVG test file can be seen online here .. Jetty server site .. http://jetty.mortbay.org/jsp-examples/jsp2/jspx/svgexample.html Perhaps an IE 6 / Tomcat 5.0.x (localhost) user can go to this standard JSP 2.0 SVG Example and compare results? http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html then .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX But this preview does require an Adobe SVG plugin to be installed in your IE browser. Here is the SVG plug-in test site to check if you have this plugin installed .. http://www.adobe.com/svg/viewer/install/svgtest.html. ___ Finally, here are the My Computer | Tools | Folder Options | File Type settings .. for SVG document * Action: open * Application used to perform action: C:\Program Files\Internet Explorer\iexplore.exe -nohome %1 * Use DDE:ticked * DDE Message:file:%1,,-1, * Application:Iexplore * DDE Application not running:blank * Topic: WWW_OpenURL ___ Thanks for any insights into solving this IE6 / jspx.SVG display problem. d~l
RE: Datasource problems on Tomcat 5.5.4
Thanks Rémy Yoav! Mark Quoting Shapira, Yoav [EMAIL PROTECTED]: Hi, The ResourceParams nested elements are history, it's all in the Resource element now. See the new configuration page at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples -howto.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mark Fleischman [mailto:[EMAIL PROTECTED] Sent: Monday, November 08, 2004 7:07 PM To: [EMAIL PROTECTED] Subject: Datasource problems on Tomcat 5.5.4 Hello, After upgrading from Tomcat 5.0.27 to Tomcat 5.5.4 my JNDI datasources are not resolving in 5.5.4 I tried 2 approaches which both work in Tomcat 5.0.27. I am using the same configuration on the 5.5.4 version (that is my libraries and context files have not changed) 1) DBCP with MySql 2) c3p0 with MySql With DBCP I get: JDBC driver of class '' for connect URL 'null' With c3p0 I get: javax.naming.NamingException: Cannot create resource instance I am more interested in resolving the c3p0 JNDI datasource setup. So let me share that setup: Here are the details of what I am running: c3p0-0.8.5pre4 mysql-connector-java-3.0.15-ga-bin JDK 1.5.0 Tomcat 5.5.4 On Windows Inside of common/lib I have placed the above JDBC related libraries. Here is my context file (which is placed in the conf\Catalina\localhost directory): Context path=/myapp docBase=myapp.war debug=5 reloadable=true override=true crossContext=true Resource name=jdbc/DCCDS auth=Container type=com.mchange.v2.c3p0.ComboPooledDataSource/ ResourceParams name=jdbc/DCCDS parameter namefactory/name valueorg.apache.naming.factory.BeanFactory/value /parameter parameter namedriverClass/name valuecom.mysql.jdbc.Driver/value /parameter parameter namejdbcUrl/name valuejdbc:mysql://192.168.1.60:3306/dcc_dev?autoReconnect=true;/valu e /parameter parameter nameuser/name valuemark/value /parameter parameter namepassword/name valuexxx/value /parameter parameter nameminPoolSize/name value5/value /parameter parameter namemaxPoolSize/name value15/value /parameter parameter nameacquireIncrement/name value5/value /parameter /ResourceParams /Context Here the relevant part of the web.xml file: resource-ref descriptionDB Connection On My Sql/description res-ref-namejdbc/DCCDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I make the following call in java: envCtx.lookup(jdbc/DCCDS); I get the exception: javax.naming.NamingException: Cannot create resource instance org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFac tory . java:132) javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) Any help would be greatly appreciated. Thanks, Mark This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Certificate configuration
The CN is the name of the machine, i.e. mis1. I haven't tried the IP yet, but as people will connect via the DNS entry will that resolve to a correct certificate entry in people's browsers? Yes, I know they will have to import the root CA but that's for later. Thanks, Rob Cole +44 (0)20 754 51117 Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 15:19 Please respond to Tomcat Users List BTW, I believe that the CN of your cert needs to be your machines IP or domain, whichever is used to connect. -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I finally managed to shut Tomcat down again after a large number of errors flooded the log file. 4) I've used the Keytool export and printcert switches to check that the signed certificate in the keystore is the right one, and it is. So, my question is, how is tomcat using a self
RE: SSL Certificate configuration
The machine name should work as long as they're connecting via DNS. Is your test case using the IP or DNS? -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 12:42 PM To: Tomcat Users List Subject: Re: SSL Certificate configuration The CN is the name of the machine, i.e. mis1. I haven't tried the IP yet, but as people will connect via the DNS entry will that resolve to a correct certificate entry in people's browsers? Yes, I know they will have to import the root CA but that's for later. Thanks, Rob Cole +44 (0)20 754 51117 Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 15:19 Please respond to Tomcat Users List BTW, I believe that the CN of your cert needs to be your machines IP or domain, whichever is used to connect. -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it. Robert, are you using a password for your keystore? I've never tried it without a password. Chris -Original Message- From: David Goodenough [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:23 AM To: [EMAIL PROTECTED] Subject: Re: SSL Certificate configuration Maybe its different on Windows, I only use Linux. Certainly on Linux the file is called .keystore, and of course as that is a hidden file one could create keystore files till the sky turned yellow before Tomcat would take any notice of them, i.e. it would use whatever was in the .keystore file. David On Thursday 11 November 2004 11:47, Robert Cole wrote: Hi David, I'm unfortunately on a Wintel server and the OS has problems with files named with a preceding. My connector references the 'keystore' and accessing the keystore via keytool. I've tried it with the .keystore name as an early solution but it didn't make any difference. If the .keystore name is mandatory I can try it again, but it still doesn't explain where the self-signed certificate is coming from. Thanks, Rob Cole +44 (0)20 754 51117 David Goodenough [EMAIL PROTECTED]To: [EMAIL PROTECTED] onnect.com cc: Subject: Re: SSL Certificate configuration 09/11/2004 11:33 Please respond to Tomcat Users List On Thursday 11 November 2004 11:04, Robert Cole wrote: Hi, I'm having some fun and games getting Tomcat 5.0.19 to use a non-self signed certificate. I've done the following: 1) Using Keytool, generated a new key pair using the genkey switch, into a new keystore 2) Generated a CSR using the new keystore created above 3) Using OpenSSL, where I've created a certificate authority to sign my CSRs, I've then generated a signed certificate valid for 365 days, signed by my root authority 4) I've then imported the Root CA into the keystore created in 1 5) Then I've imported the new, signed certificate into the keystore from 1 6) I've then enabled by HTTPS connector in server.xml, with the keystore entry pointing to the keystore from 1. I bounced Tomcat afterwards I can then connect to Tomcat on port 8443 but when I examine the certificate it is a self signed certificate that expired after 3 months. There is no evidence of the signed certificate. So far I have: 1) Removed the keystore file to check that Tomcat is picking up the correct file. It is as I get loads of errors in the std.out file 2) Listed the contents of the keystore. I can see in the following order, the root CA certificate, the generated keypair and then the signed certificate. 3) I made a copy of the keystore, changed the configuration to use the copy and then fired Tomcat up again. I
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
You have to configure IE6 to know what svg is and how to display it. From: d~l [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6 Date: Tue, 09 Nov 2004 16:25:15 - Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. _ I have Tomcat 5.0.24 running on my localhost - Win XP Pro SP1 I am trying out the JSP 2.0 SVG example found here . http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html and then to view the SVG file .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX to dynamically render and display an SVG object in browser .. quote from above page ... _ JSP 2.0 SVG Example This example uses JSP 2.0's new, simplified JSPX syntax to render a Scalable Vector Graphics (SVG) document. When you view the source, notice the lack of a jsp:root element! The text to be rendered can be modified by changing the value of the name parameter. SVG has many potential uses, such as searchable images, or images customized with the name of your site's visitor (e.g. a Susan's Store tab image). JSPX is a natural fit for generating dynamic XML content such as SVG. _ I am testing this jspx example across several browsers ... IE / Opera / Mozilla IE 6 and Opera 7 both have Adobe SVG plugin, Mozilla has its native SVG reader. These browsers all open and display static *.svg files correctly (with no file download? prompt as reported below with IE 6). ... The problem arises with IE 6 trying to open the dynamically generated textRotate.jspx.svg file. In IE 6, instead of opening the rendered SVG object I see a file download pop-up window some files can harm your computer etc. etc. File name: textRotate.jspx File type: SVG Document from: localhost Would you like to open the file or save? ... But in Opera, Mozilla and Firefox the jspx generated SVG (from above JSP example) opens in the browser window. And the URL opens SVG file in a Batik SVG viewer. So this is more of a cross-browser problem than a server problem. IE 6 in particular. ### Q. How can I get IE 6 browser to open and display this JSP 2.0 SVG example - on the fly - without need for SVG file download? ### This same JSP 2.0 SVG test file can be seen online here .. Jetty server site .. http://jetty.mortbay.org/jsp-examples/jsp2/jspx/svgexample.html Perhaps an IE 6 / Tomcat 5.0.x (localhost) user can go to this standard JSP 2.0 SVG Example and compare results? http://localhost:8080/jsp-examples/jsp2/jspx/svgexample.html then .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX But this preview does require an Adobe SVG plugin to be installed in your IE browser. Here is the SVG plug-in test site to check if you have this plugin installed .. http://www.adobe.com/svg/viewer/install/svgtest.html. ___ Finally, here are the My Computer | Tools | Folder Options | File Type settings .. for SVG document * Action: open * Application used to perform action: C:\Program Files\Internet Explorer\iexplore.exe -nohome %1 * Use DDE:ticked * DDE Message:file:%1,,-1, * Application:Iexplore * DDE Application not running:blank * Topic: WWW_OpenURL ___ Thanks for any insights into solving this IE6 / jspx.SVG display problem. d~l _ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: connection pooling
I've been dealing with similar issues recently. Basically your reference in web.xml is not 'pointing' to the resource you defined in server.xml for some reason, which is why if you examine the datasource you get, you will see all the fields set to null (as indicated by the error). Try to create a context for your webapp in server.xml and put your resource in there as a first step to debug. If this doesn't work, check your server.xml is being read - i think the log will tell you (?) and / or try with a simple server.xml to eliminate any xml errors. On Tue, 9 Nov 2004 14:25:41 +0100, Akacem Mohammed [EMAIL PROTECTED] wrote: Hello, I am stuck in the same Probleme as Erik. I did exactly what in the e-mails suggested is with no success. I am runing TC 5.0.28 und try to get a connection to an informix database. I got the following Error Message: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' mycode : try { initCtx = new InitialContext(); envCtx = (Context) initCtx.lookup(java:comp/env); ds = (DataSource) envCtx.lookup(jdbc/SteaDB); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { conn=ds.getConnection(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } My Configuration is as follow: web.xml : resource-ref descriptionDB Connection to informix/description res-ref-namejdbc/SteaDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server.xml : DefaultContext Resource name=jdbc/SteaDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SteaDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- username and password for dB connections -- parameter nameusername/name valueunknown/value /parameter parameter namepassword/name valueunknown/value /parameter !-- Class name for the informix treiber -- parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name value jdbc:informix-sqli://s0062033.vt.bb.de:300056/coadb:informixserver=coadbzentral /value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value300/value !-- in second -- /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext thanks for any hint Mohammed -Ursprüngliche Nachricht- Von: Steve Kirk [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. November 2004 01:40 An: 'Eric Wulff'; 'Tomcat Users List' Betreff: RE: connection pooling Worth clarifyig what we are meaning by DBCP. The DBCP I was referring to was the specific implementation of connection pooling that is part of Jakarta Commons: http://jakarta.apache.org/commons/dbcp/ There are other pooling implementations which are alternatives to Commons DBCP. Some DB drivers included pooling support as-is. Others do not. For those that do not, you need to implement pooling by building code around the standard driver. You used to have to do this yourself, but now there is DBCP to take care of this for you. DBCP is a wrapper used around a non-pooling DB driver. So, hence my question, are you intending to use DBCP, or does your Informix driver include pooling? From the JNDI/JDBC guides it appears that you have the choice of using DBCP or not (although there is one aspect of the docs that seem slightly unclear on that, which I am going start another thread to clear up). The configs are similar. Personally I have only got the DBCP approach to work, hence my suggestion of using that, for which you need to include the factory parameter. What this does is basically tells TC to call DBCP rather than your database driver when making a connection - DBCP then calls your DB driver if and when it needs to. I think I'm right in saying that if you don't explcitly use DBCP, and your DB driver does not support pooling, you will end up with non-pooled connections. The webapp will still work but you will not have the
RE: SSL Certificate configuration
I'm not an old-hand in this arena myself -- I don't know how to get TC to log anything that would indicate how it locates/loads the certificate on startup. I think that's a good approach though ... From the perspective of a client browser navigating to a resource via https, both the CA and Server certs are in the chain of trust (and perhaps other intermediaries). So, if neither has been encountered before, you might legitimately and correctly be seeing details for not only the server's cert but also that of the CA. So, yes, it'd be nice to see it from the server's perspective. -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 7:50 AM To: Tomcat Users List Cc: Tomcat Users List Subject: RE: SSL Certificate configuration Thanks Ken. That looks exactly like what I did. I suppose the only difference is that our OpenSSL is on Linux and the keystore and Tomcat is on Wintel. I could understand if the certificate didn't work at all (i.e. some dodgy characters when copying/ftping information) but its not that. Is there a debug switch that I could use when starting the container to get information on what Tomcat is actually using? I.e. the keystore, certificate alias etc? Thanks for all of the suggestions so far, please keep them coming. Rob Cole +44 (0)20 754 51117 Ken Sims [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] m cc: Subject: RE: SSL Certificate configuration 09/11/2004 15:36 Please respond to Tomcat Users List The steps you list worked for me. ... That makes me think that we used keytool or OpenSSL differently somehow. I'm attaching a batch (DOS) script that I used to set myself up for testing. Note that I'm not using the default locations and file names for the keystore and truststore (some adjustment is in order either in this snippet or in your server.xml SSL connector setup). @echo off cd \openssl\bin md ca_cert md server_cert md client_cert md C:\server_truststore md C:\server_keystore md client_truststore md client_keystore echo * echo * * echo * Enter Info for CA Certificate* echo * * echo * openssl req -new -newkey rsa:1024 -nodes -out ca_cert\ca.csr -keyout ca_cert\ca.key openssl x509 -trustout -signkey ca_cert\ca.key -days 365 -req -in ca_cert\ca.csr -out ca_cert\ca.pem copy ca_cert\ca.pem ca_cert\ca.cer keytool -import -keystore C:\server_truststore\cacerts -file ca_cert\ca.cer -alias my_ca -storepass changeit -keypass changeit echo 02 ca_cert\ca.srl echo * echo * * echo * Enter Info for Server Certificate * echo * * echo * IMPORTANT: use the server's * echo * IP address for the common name * echo * * echo * keytool -genkey -alias my_server -keyalg RSA -keysize 1024 -keystore c:\server_keystore\keystore -storetype JKS -storepass changeit -keypass changeit keytool -certreq -keyalg RSA -alias my_server -file server_cert\server.csr -keystore c:\server_keystore\keystore -storepass changeit -keypass changeit openssl x509 -CA ca_cert\ca.pem -CAkey ca_cert\ca.key -CAserial ca_cert\ca.srl -req -in server_cert\server.csr -out server_cert\server.cer -days 365 keytool -import -alias my_ca -keystore C:\server_keystore\keystore -trustcacerts -file ca_cert\ca.cer -storepass changeit -keypass changeit keytool -import -alias my_server -keystore C:\server_keystore\keystore -trustcacerts -file server_cert\server.cer -storepass changeit -keypass changeit -Original Message- From: Robert Cole [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 6:59 AM To: Tomcat Users List Cc: 'Tomcat Users List' Subject: RE: SSL Certificate configuration There is a password specified, I just didn't fancy including it in a publically available mail archive. It is specified at the keystore creation and also specified in the connector. Sorry for any confustion this may have caused. Hubble, ChristopherTo: 'Tomcat Users List' [EMAIL PROTECTED] CHRISTOPHER.L.HUBBLcc: [EMAIL PROTECTED] Subject: RE: SSL Certificate configuration 09/11/2004 13:53 Please respond to Tomcat Users List It doesn't matter what your keystore is named(at least in windows). I usually use a keystore convention of appname.ks Haven't had a problem with it.
RE: ISAPI redirector warnings
Given all the problems that people have had with getting ISAPI redirector to work correctly I'd just be happy if it works and not worry about errors in the log. I say that after many attempts at tracking down errors in logs when I couldn't get it working correctly. Though I've always been a believer in using logs to solve problems I seem to recall that they never really helped in this instance. I believe DEBUG will give you the most verbose log. So it's probably: DEBUG-INFO-WARN-ERROR in terms of verbosity. -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 11:15 AM To: 'Tomcat Users List' Subject: RE: ISAPI redirector warnings By setting the LogLevel to INFO, I get more entries in the Event log. By setting the logLevel to ERROR, I still get the following Warnings in the Application log. Each of the entries starts with the word Error so they must be errors, not warnings. Does anybody know what the root cause of these errors/warnings are? There is nothing in the way of documentation for the JK2 connector that talks about this in detail. I have gone through this site, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html, and found absolutely nothing about these errors. They happen regularly as requests are made to the server, and are unacceptable to many of my customers. Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:58 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings i don't know much about jk2 logging. I don't think it can use log4j or commons-logging as it's just a DLL. the theory is the same I imagine, i.e the amount of logging gets narrower info/warn/debug/error. Setting it at ERROR will mean only errors come out and remove all the other stuff. -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:54 To: 'Tomcat Users List' Subject: RE: ISAPI redirector warnings Do you know any more information about the 3 logLevels? I see an ERROR, DEBUG, and INFO. I currently set it to DEBUG, which is the default and is not necessary. I would guess that INFO would give you more warnings, and ERROR would give you less warnings. Does this make sense? Eric Sandusky 630.368.9950x233 [EMAIL PROTECTED] -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 9:50 AM To: Tomcat Users List Subject: RE: ISAPI redirector warnings you could reduce it by setting logLevel=info in the registry settings. You can also specify logging in the workers2.properties file with an info level. [logger.win32] level=INFO ADC -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 15:38 To: [EMAIL PROTECTED] Cc: Eric Sandusky Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. What is the reason for these log entries? How can I reduce or eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
On 9 Nov 2004 at 17:56, Didier McGillis codesmoker-at-hotmail.com wrote: You have to configure IE6 to know what svg is and how to display it. Thanks for your reply .. I tried to explain in my post that SVG files (stand alone) display absolutely fine in IE 6 .. no problems there .. IE 6 just does not display JSP 2.0 rendered jspx.svg .. as in the JSP 2.0 SVG example in Tomcat perhaps you can help by explaining how to setup IE 6 to display that particular textRotate.jspx.svg extension .. without the file download prompt? In my post I included the SVG file type configuration I am using. and/or .. confirm that you can see the JSP 2.0 SVG example content in IE 6 .. see links in my post .. and I'll take it from there if you confirm that it works for you? here is the localhost link again .. JSP 2.0 SVG Example .. open in IE 6 .. http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX thanks for your interest .. d~l
My Context don't workie
Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out !
Re: My Context don't workie
I wonder if it is the docBase=../../webroot thingy. Use a full path, and see if it works. [EMAIL PROTECTED] 11/09/04 12:01 PM Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: connection pooling
Hi Mohammed, The resource-ref of your web.xml looks alright. While the DefaultContext should work if you place it in the correct location(see notes below) within your server.xml, I doubt you want this to be your final solution. My final fix was suggested by Steve and noted here... Copy the Context... (you need to change your DefaultContext tag to a Context tag) from your server.xml to a file all its own and name that file myapp.xml(in your case I guess that would be SteaDB.xml). Then mv that file to $CATALINA_HOME/conf/Catalina/localhost/ Restart your app or shutdown and startup Tomcat and you should be all set. Let me know how it goes. Eric Notes: - I'm not sure if DefaultContext or Context within your server.xml have any effect once you have a myapp.xml at $CATALINA_HOME/conf/Catalina/localhost/. I still have a Context in my server.xml. - I don't think it matters but fyi, my Context only includes a Resource, and then Resource-Params as follows: username, password, driverClass, and url. - When working with the DefaultContext, location for that tag should be within the Engine... tag having the Standalone attribute. This likely needs to be un-commented, hence you will need to comment out the Engine... tag with the Catlina attribute, which is likely just below in the server.xml. On Tue, 9 Nov 2004 14:25:41 +0100, Akacem Mohammed [EMAIL PROTECTED] wrote: Hello, I am stuck in the same Probleme as Erik. I did exactly what in the e-mails suggested is with no success. I am runing TC 5.0.28 und try to get a connection to an informix database. I got the following Error Message: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' mycode : try { initCtx = new InitialContext(); envCtx = (Context) initCtx.lookup(java:comp/env); ds = (DataSource) envCtx.lookup(jdbc/SteaDB); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { conn=ds.getConnection(); } catch (SQLException e2) { // TODO Auto-generated catch block e2.printStackTrace(); } My Configuration is as follow: web.xml : resource-ref descriptionDB Connection to informix/description res-ref-namejdbc/SteaDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref server.xml : DefaultContext Resource name=jdbc/SteaDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/SteaDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- username and password for dB connections -- parameter nameusername/name valueunknown/value /parameter parameter namepassword/name valueunknown/value /parameter !-- Class name for the informix treiber -- parameter namedriverClassName/name valuecom.informix.jdbc.IfxDriver/value /parameter parameter nameurl/name value jdbc:informix-sqli://s0062033.vt.bb.de:300056/coadb:informixserver=coadbzentral /value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value300/value !-- in second -- /parameter parameter namelogAbandoned/name valuetrue/value /parameter /ResourceParams /DefaultContext thanks for any hint Mohammed -Ursprüngliche Nachricht- Von: Steve Kirk [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. November 2004 01:40 An: 'Eric Wulff'; 'Tomcat Users List' Betreff: RE: connection pooling Worth clarifyig what we are meaning by DBCP. The DBCP I was referring to was the specific implementation of connection pooling that is part of Jakarta Commons: http://jakarta.apache.org/commons/dbcp/ There are other pooling implementations which are alternatives to Commons DBCP. Some DB drivers included pooling support as-is. Others do not. For those that do not, you need to implement pooling by building code around the standard driver. You used to have to do this yourself, but now there is DBCP to take care of this for you. DBCP is a wrapper used around a non-pooling DB driver. So, hence my question, are you intending to use DBCP, or does your Informix driver include pooling? From the JNDI/JDBC
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
From: d~l [mailto:[EMAIL PROTECTED] Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. Just check whether there's a blank line before the ?xml...? in the generated file. I had the same problem in ASPX with Adobe's 3.01 SVG viewer - it won't work at all unless the is the first character in the returned file. Just a guess. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: exception in clustering
Yes, I understand that, but I was wondering if there is more experience with using a cluster under load. I am thinking about timeout settings? Or maybe something else. I have everything as default now. Ronald. On Tue Nov 09 17:21:47 CET 2004 Filip Hanik - Dev [EMAIL PROTECTED] wrote: looks pretty normal, this shows that a connection was broken between one server and the other, you need to figure out why it breaks? restart? network? Filip - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 10:02 AM Subject: exception in clustering Hello, I've a cluster of two nodes with 5.0.25 running on Linux. Everythings works fine for most of the day, but we are now getting this a lot on one server. After shutting down this server, the other one still runs. Nov 9, 2004 4:50:24 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) and I also see this: SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Can I solve this by tweaking some timeouts? I'm about to upgrade to 5.0.28 soon. Is this going to help? Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: exception in clustering
here's the deal, the error is on the receiving side. ie, the server printing the error is the on the receiving side getting data. So the sending server closes its connections, and the receiving server prints this message. If the network times out, then this is fine, its more an info message than severe, but it could also be telling you that your network wont allow TCP connections to stay open. and for that, there is no setting inside tomcat. if you do find an option that you would need to set, but its not available, just let us know and we'll expose it for you. Filip - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:09 PM Subject: Re: exception in clustering Yes, I understand that, but I was wondering if there is more experience with using a cluster under load. I am thinking about timeout settings? Or maybe something else. I have everything as default now. Ronald. On Tue Nov 09 17:21:47 CET 2004 Filip Hanik - Dev [EMAIL PROTECTED] wrote: looks pretty normal, this shows that a connection was broken between one server and the other, you need to figure out why it breaks? restart? network? Filip - Original Message - From: Ronald Klop [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 10:02 AM Subject: exception in clustering Hello, I've a cluster of two nodes with 5.0.25 running on Linux. Everythings works fine for most of the day, but we are now getting this a lot on one server. After shutting down this server, the other one still runs. Nov 9, 2004 4:50:24 PM org.apache.catalina.cluster.tcp.TcpReplicationThread run SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) and I also see this: SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: Connection reset by peer' closing channel java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233) at sun.nio.ch.IOUtil.read(IOUtil.java:206) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) at org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:123) at org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:626) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) at java.lang.Thread.run(Thread.java:534) Can I solve this by tweaking some timeouts? I'm about to upgrade to 5.0.28 soon. Is this going to help? Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
On 9 Nov 2004 at 20:04, Peter Crowther Peter.Crowther-at-melandra wrote: Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. Just check whether there's a blank line before the ?xml...? in the generated file. I had the same problem in ASPX with Adobe's 3.01 SVG viewer - it won't work at all unless the is the first character in the returned file. Just a guess. - Peter _ Thanks for the guess .. but I have just checked the textRotate.jspx file which IE is prompting to be downloaded .. and there is no white space before the ? xml header .. here are the first few lines of textRotate.jspx . no leading whitespace ?xml version=1.0 encoding=UTF-8? svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 450 500 height=500 width=450 titleJSP 2.0 JSPX/title g id=testContenttext text-anchor=middle font-size=15 y=10% x=50% class=title JSP 2.0 XML Syntax (.jspx) Demo/texttext text-anchor=middle font- size=15 y=15% x=50% class=title Try changing the name parameter!/text g id=rotatedText transform=translate(225, 250) opacity=1.0 g opacity=0.95 transform=scale(1.05) rotate(15) snip /svg __ anybody got Tomcat 5.0.x in localhost just to try out this JSP 2.0 SVG example ? http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX d~l
Re: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
extra lines before ?xml .. can cause some XML parser to fail, so they should be removed. peter On Tue, 09 Nov 2004 20:53:04 -, d~l [EMAIL PROTECTED] wrote: On 9 Nov 2004 at 20:04, Peter Crowther Peter.Crowther-at-melandra wrote: Problem summary: Tomcat 5.0.24 JSP 2.0 SVG example does not display JSPX rendered SVG file in IE 6 browser. O.k. in Opera and Mozilla. Just check whether there's a blank line before the ?xml...? in the generated file. I had the same problem in ASPX with Adobe's 3.01 SVG viewer - it won't work at all unless the is the first character in the returned file. Just a guess. - Peter _ Thanks for the guess .. but I have just checked the textRotate.jspx file which IE is prompting to be downloaded .. and there is no white space before the ? xml header .. here are the first few lines of textRotate.jspx . no leading whitespace ?xml version=1.0 encoding=UTF-8? svg xmlns=http://www.w3.org/2000/svg; viewBox=0 0 450 500 height=500 width=450 titleJSP 2.0 JSPX/title g id=testContenttext text-anchor=middle font-size=15 y=10% x=50% class=title JSP 2.0 XML Syntax (.jspx) Demo/texttext text-anchor=middle font- size=15 y=15% x=50% class=title Try changing the name parameter!/text g id=rotatedText transform=translate(225, 250) opacity=1.0 g opacity=0.95 transform=scale(1.05) rotate(15) snip /svg __ anybody got Tomcat 5.0.x in localhost just to try out this JSP 2.0 SVG example ? http://localhost:8080/jsp-examples/jsp2/jspx/textRotate.jspx?name=JSPX d~l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
I will try that but the path is correct. Don't know why Gentoo would choke on that. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: Re: My Context don't workie I wonder if it is the docBase=../../webroot thingy. Use a full path, and see if it works. [EMAIL PROTECTED] 11/09/04 12:01 PM Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
Hi, Maybe a permissions issue? Make sure the user running Tomcat on Gentoo has the write permissions to the conf, work, temp directories, and read permissions on your webapps, etc. Yoav Shapira http://www.yoavshapira.com -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:05 PM To: 'Tomcat Users List' Subject: RE: My Context don't workie I will try that but the path is correct. Don't know why Gentoo would choke on that. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: Re: My Context don't workie I wonder if it is the docBase=../../webroot thingy. Use a full path, and see if it works. [EMAIL PROTECTED] 11/09/04 12:01 PM Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
Thanks but I am logged on as root. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:06 PM To: Tomcat Users List Subject: RE: My Context don't workie Hi, Maybe a permissions issue? Make sure the user running Tomcat on Gentoo has the write permissions to the conf, work, temp directories, and read permissions on your webapps, etc. Yoav Shapira http://www.yoavshapira.com -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:05 PM To: 'Tomcat Users List' Subject: RE: My Context don't workie I will try that but the path is correct. Don't know why Gentoo would choke on that. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: Re: My Context don't workie I wonder if it is the docBase=../../webroot thingy. Use a full path, and see if it works. [EMAIL PROTECTED] 11/09/04 12:01 PM Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
No difference. This is really weird. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: Re: My Context don't workie I wonder if it is the docBase=../../webroot thingy. Use a full path, and see if it works. [EMAIL PROTECTED] 11/09/04 12:01 PM Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
From: d~l [mailto:[EMAIL PROTECTED] Thanks for the guess .. but I have just checked the textRotate.jspx file which IE is prompting to be downloaded .. and there is no white space before the ? xml header If you download and save it as file.svg on your desktop, then double-click it, does it load? If so, I suspect a content-type issue. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
Is there any way to turn on some sort of debugging? BTW here is mt entire server.xml ?xml version=1.0 encoding=UTF-8? !-- Webserver Configuration File WARNING ** Don't edit this file directly, use the command 'config' from the installation directory-- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort$ !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Engine name=Standalone defaultHost=localhost debug=0 !-- This is a replacement logger written for the CJGreen project by copying the FileLogger class and making slight modifications. The need was to provide a default verbosity to messages that are logged without a specific verbosity. FileLogger ALWAYS logs these messages, but they occur frequently and are usually (always?) informational in nature. A defaultVerbosity of 3 makes these messages informational and the verbosity setting of less than 3 then makes sure that we never log any informational messages. There is a quirk to how this works, however. Tomcat executes each element as it reads it from this file. Therefore, any logging done during startup (before this element) will not use the default verbosity specified by the attribute defaultVerbosity. Instead, it uses the hard-coded default of 3 (INFORMATIONAL). Therefore, to see logged messages during startup, you must use the original FileLogger and not use CJFileLogger. -- Logger className=com.controlj.green.jakarta.catalina.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0 defaultVerbosity=3 / !-- This is the default logging for Tomcat. We have replaced it with CJFileLogger above to suppress log messages that don't have a verbosity level. This logger will ALWAYS log messages without a verbosity level and there are quite a few of these message. Uncomment this logger (and also comment out the above logger) to revert to the previous amount of logging. -- !-- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0/ -- !-- Because this Realm is here, an instance will be shared globally -- Realm digest=SHA-1 className=com.controlj.green.jakarta.catalina.Realm hostPort=80 ssl=off / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- WebCTRL Context -- Context path= docBase=/opt/WebCTRL2.5/webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context /Host /Engine /Service /Server -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: My Context don't workie Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue? I am pulling my hair out ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
Hi, You can add debug=99 attributes to all the containers in server.xml to get additional debugging data. Tomcat 5.x has better debugging support via commons-logging. Try commenting out pieces, like the Realm, to maybe isolate the problem component further. Yoav Shapira http://www.yoavshapira.com -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:16 PM To: 'Tomcat Users List' Subject: RE: My Context don't workie Is there any way to turn on some sort of debugging? BTW here is mt entire server.xml ?xml version=1.0 encoding=UTF-8? !-- Webserver Configuration File WARNING ** Don't edit this file directly, use the command 'config' from the installation directory-- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort$ !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Engine name=Standalone defaultHost=localhost debug=0 !-- This is a replacement logger written for the CJGreen project by copying the FileLogger class and making slight modifications. The need was to provide a default verbosity to messages that are logged without a specific verbosity. FileLogger ALWAYS logs these messages, but they occur frequently and are usually (always?) informational in nature. A defaultVerbosity of 3 makes these messages informational and the verbosity setting of less than 3 then makes sure that we never log any informational messages. There is a quirk to how this works, however. Tomcat executes each element as it reads it from this file. Therefore, any logging done during startup (before this element) will not use the default verbosity specified by the attribute defaultVerbosity. Instead, it uses the hard-coded default of 3 (INFORMATIONAL). Therefore, to see logged messages during startup, you must use the original FileLogger and not use CJFileLogger. -- Logger className=com.controlj.green.jakarta.catalina.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0 defaultVerbosity=3 / !-- This is the default logging for Tomcat. We have replaced it with CJFileLogger above to suppress log messages that don't have a verbosity level. This logger will ALWAYS log messages without a verbosity level and there are quite a few of these message. Uncomment this logger (and also comment out the above logger) to revert to the previous amount of logging. -- !-- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0/ -- !-- Because this Realm is here, an instance will be shared globally -- Realm digest=SHA-1 className=com.controlj.green.jakarta.catalina.Realm hostPort=80 ssl=off / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- WebCTRL Context -- Context path= docBase=/opt/WebCTRL2.5/webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context /Host /Engine /Service /Server -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: My Context don't workie Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context Again this works on any other linux box but my new Gentoo. When TomCat runs I get: Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 80 Everything is ok except the webapp normally adds several lines of text under Apache Tomcat/4.1 and the app is not up. Could there be some sort of dependency issue?
TC 4.1_05
I have just installed Tomcat 4.1_05 on my win2000 box and I am having trouble adding web Contexts. Here is the original server.xml entry. Context path=/ docBase=ROOT debug=0 reloadable=true / Now, on all my old Tomcat installs, when I needed to add a new Context I would add another line like this: Context path=/ docBase=ROOT debug=0 reloadable=true / Context path=/tagexample docBase=tagexample debug=0 reloadable=true / But when I add another context, the server will not start. When I execute %CATALINA_HOME%\bin\startup another window begins to display info, then just exits. I personally do not like using the Manager which works, and would like to know why this does not work anymore? Thanks Scott
jsp-config for pages under WEB-INF is not working
Hello, I'm using Tomcat-5.0.28. In my web.xml I have the following: jsp-config jsp-property-group url-pattern/WEB-INF/pages/*/url-pattern el-ignoredtrue/el-ignored page-encodingwindows-1254/page-encoding scripting-invalidtrue/scripting-invalid is-xmlfalse/is-xml include-prelude/WEB-INF/pages/templ/prelude.jspf/include-prelude include-coda/WEB-INF/pages/templ/coda.jspf/include-coda /jsp-property-group /jsp-config My *.jsp pages are in WEB-INF/pages directory and there are some servlets that performs controller stuff and forwards requests (with RequestDispatcher.forward) to those pages. My aim is to avoid using: %@ page contentType=text/html; charset=windows-1254 % in each JSP. For some reason this doesn't work. I always get response header: Content-Type: text/html;charset=ISO-8859-1 I played with include-prelude and include-coda values (like entering non-existent paths) and I'm sure Tomcat doesn't take the configuration directives above. What can be the problem? -- /tb. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 4.1_05
Hi, I have just installed Tomcat 4.1_05 on my win2000 box and I am having trouble adding web Contexts. We don't use the same version conventions as Sun, there are no underscores in Tomcat version numbers. So there's Tomcat 4.1.5 and 4.1.15, but no 4.1_05 exists. Both these versions are ancient and unstable, and there's no good reason to install them now. Here is the original server.xml entry. Context path=/ docBase=ROOT debug=0 reloadable=true / Really? It's not path= for the ROOT app? But when I add another context, the server will not start. When I execute %CATALINA_HOME%\bin\startup another window begins to display info, then just exits. You can use catalina.bat run (instead of startup.bat, which calls catalina.bat start) to keep the DOS window open and observe messages. I personally do not like using the Manager which works, and would like to know why this does not work anymore? I personally don't like wasting time on ancient releases. I suggest you try 4.1.31 if you must use Tomcat 4.x, or 5.0.28 if you want a more actively supported Tomcat release. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 4.1_05 sb 4.1.31
I am stressing and writing the wrong info. I apologize Here is the startup info C:\Documents and Settings\spurcell%CATALINA_HOME%\bin\startu Using CATALINA_BASE: C:\jakarta-tomcat-4.1.31 Using CATALINA_HOME: C:\jakarta-tomcat-4.1.31 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.31\temp Using JAVA_HOME: C:\j2sdk1.4.1_05 So it is Tomcat 4.1.31. Does the rest hold true? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 3:25 PM To: Tomcat Users List Subject: RE: TC 4.1_05 Hi, I have just installed Tomcat 4.1_05 on my win2000 box and I am having trouble adding web Contexts. We don't use the same version conventions as Sun, there are no underscores in Tomcat version numbers. So there's Tomcat 4.1.5 and 4.1.15, but no 4.1_05 exists. Both these versions are ancient and unstable, and there's no good reason to install them now. Here is the original server.xml entry. Context path=/ docBase=ROOT debug=0 reloadable=true / Really? It's not path= for the ROOT app? But when I add another context, the server will not start. When I execute %CATALINA_HOME%\bin\startup another window begins to display info, then just exits. You can use catalina.bat run (instead of startup.bat, which calls catalina.bat start) to keep the DOS window open and observe messages. I personally do not like using the Manager which works, and would like to know why this does not work anymore? I personally don't like wasting time on ancient releases. I suggest you try 4.1.31 if you must use Tomcat 4.x, or 5.0.28 if you want a more actively supported Tomcat release. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp-config for pages under WEB-INF is not working
My bad.. I haven't yet understood what happened but it seems to be working now.. -- /tb. On Tue, 9 Nov 2004 23:21:31 +0200, Tuncay Baskan [EMAIL PROTECTED] wrote: Hello, I'm using Tomcat-5.0.28. In my web.xml I have the following: jsp-config jsp-property-group url-pattern/WEB-INF/pages/*/url-pattern el-ignoredtrue/el-ignored page-encodingwindows-1254/page-encoding scripting-invalidtrue/scripting-invalid is-xmlfalse/is-xml include-prelude/WEB-INF/pages/templ/prelude.jspf/include-prelude include-coda/WEB-INF/pages/templ/coda.jspf/include-coda /jsp-property-group /jsp-config My *.jsp pages are in WEB-INF/pages directory and there are some servlets that performs controller stuff and forwards requests (with RequestDispatcher.forward) to those pages. My aim is to avoid using: %@ page contentType=text/html; charset=windows-1254 % in each JSP. For some reason this doesn't work. I always get response header: Content-Type: text/html;charset=ISO-8859-1 I played with include-prelude and include-coda values (like entering non-existent paths) and I'm sure Tomcat doesn't take the configuration directives above. What can be the problem? -- /tb. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.24 - JSP 2.0 SVG example (JSPX) - not opening rendered SVG object in IE 6
On 9 Nov 2004 at 21:13, Peter Crowther Peter.Crowther-at-melandra wrote: If you download and save it as file.svg on your desktop, then double-click it, does it load? If so, I suspect a content-type issue. - Peter yes .. if I save textRotate.jspx (in IE 6) as textRotate.svg .. into my Tomcat wepapps I can open it correctly in IE 6 .. ... this is an article I'm reading on JSPX .. http://www.onjava.com/pub/a/onjava/2004/04/21/JSP2part3.html talks about a property group declaration in web.xml .. or is this a red herring? d~l - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting filepath of webapp without using Reqeust or Response
Hi, I'm trying to figure out how I can lookup the real file path of my webapp in code without using the HttpServletResponse or HttpServletRequest. I have a lot of classes calling other classes and its annoying to always have to pass the request objects as parameters. Does anyone know if this is possible? Thanks - Duncan
Killing threads during context restart
I have a background thread object in my tomcat application that performs some garbage-collection like functions (i.e., wakes up periodically and does some application specific cleanup). I have tomcat configured to restart the context when I drop new class files in the WEB-INF/classes directory. Recently I have discovered multiple copies of my these background threads running simultaneously. Further investigation has shown that I get an additional copy with each context restart. I guess I don't even know what a context is, but I assumed that a context restart would kill off all application threads. How am I supposed to get all my application threads to die when the context restarts? Checking instance variables don't work since the data from the old context and the new does not appear to be shared. Thanks much, Matt __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Killing threads during context restart
you can setup context listeners, and when the context is stopped you will receive an event and can stop your bg thread Filip - Original Message - From: TK Banks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:40 PM Subject: Killing threads during context restart I have a background thread object in my tomcat application that performs some garbage-collection like functions (i.e., wakes up periodically and does some application specific cleanup). I have tomcat configured to restart the context when I drop new class files in the WEB-INF/classes directory. Recently I have discovered multiple copies of my these background threads running simultaneously. Further investigation has shown that I get an additional copy with each context restart. I guess I don't even know what a context is, but I assumed that a context restart would kill off all application threads. How am I supposed to get all my application threads to die when the context restarts? Checking instance variables don't work since the data from the old context and the new does not appear to be shared. Thanks much, Matt __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Killing threads during context restart
From: TK Banks [EMAIL PROTECTED] I guess I don't even know what a context is, but I assumed that a context restart would kill off all application threads. How am I supposed to get all my application threads to die when the context restarts? What about creating a ServletContextListener? With that you will be notified when the context is initialized and destroyed, and you have the opportunity to start and stop your background process. I think, though, that you're officially discouraged from starting additional threads... at least that's the impression I've always gotten. I looked in the specification, and found that containers are allowed to restrict you from creating Thread objects, (Servlet 2.3, SRV.1.2) though I don't think Tomcat does. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: comparison of Type 4 JDBC drivers
Interesting. I'm using com.microsoft.jdbc.sqlserver.SQLServerDriver which is a type 4 driver and I am also getting ex VM errors: any ideas? An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at PC=0x77F46A07 Function=RtlFreeHeap+0x322 Library=C:\WINDOWS\system32\ntdll.dll Current Java thread: at java.util.zip.ZipFile.getEntry(Native Method) at java.util.zip.ZipFile.getEntry(ZipFile.java:146) - locked 0x10b26c90 (a java.util.jar.JarFile) at java.util.jar.JarFile.getEntry(JarFile.java:194) at java.util.jar.JarFile.getJarEntry(JarFile.java:181) at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:668) at sun.misc.URLClassPath.getResource(URLClassPath.java:157) at java.net.URLClassLoader$1.run(URLClassLoader.java:191) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) - locked 0x10b322d8 (a sun.misc.Launcher$ExtClassLoader) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) - locked 0x10b322d8 (a sun.misc.Launcher$ExtClassLoader) at com.abnamrocraigs.listings.IressNewListingsListener.addListings(IressNewList ingsListener.java:147) at com.abnamrocraigs.listings.IressNewListingsListener.notify(IressNewListingsL istener.java:66) at com.abnamrocraigs.tasks.TaskScheduler.propagate(TaskScheduler.java:68) - locked 0x110be650 (a com.abnamrocraigs.tasks.TaskScheduler) at com.abnamrocraigs.tasks.ScheduledTask.run(ScheduledTask.java:21) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382) Dynamic libraries: 0x0040 - 0x00406000 C:\WINDOWS\system32\java.exe 0x77F4 - 0x77FFA000 C:\WINDOWS\system32\ntdll.dll 0x77E4 - 0x77F34000 C:\WINDOWS\system32\kernel32.dll 0x77DA - 0x77E3 C:\WINDOWS\system32\ADVAPI32.dll 0x77C5 - 0x77CF5000 C:\WINDOWS\system32\RPCRT4.dll 0x77BA - 0x77BF4000 C:\WINDOWS\system32\MSVCRT.dll 0x0800 - 0x082A7000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\server\jvm.dll 0x77D0 - 0x77D8F000 C:\WINDOWS\system32\USER32.dll 0x77C0 - 0x77C44000 C:\WINDOWS\system32\GDI32.dll 0x76AA - 0x76ACC000 C:\WINDOWS\system32\WINMM.dll 0x1000 - 0x10007000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\hpi.dll 0x0038 - 0x0038E000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\verify.dll 0x003B - 0x003C8000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\java.dll 0x0039 - 0x0039D000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\zip.dll 0x008D - 0x008DF000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\net.dll 0x71C0 - 0x71C18000 C:\WINDOWS\system32\WS2_32.dll 0x71BF - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll 0x008E - 0x008E8000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\nio.dll 0x71B2 - 0x71B63000 C:\WINDOWS\System32\mswsock.dll 0x76ED - 0x76EF7000 C:\WINDOWS\system32\DNSAPI.dll 0x76F7 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll 0x76F1 - 0x76F3F000 C:\WINDOWS\system32\WLDAP32.dll 0x76F8 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll 0x71AE - 0x71AE8000 C:\WINDOWS\System32\wshtcpip.dll 0x0340 - 0x03406000 C:\jintegra\bin\ntvauth.dll 0x73D2 - 0x73E13000 C:\WINDOWS\system32\MFC42.DLL 0x0341 - 0x03417000 C:\jintegra\bin\International\ntvauthEnglishResourceDll.dll 0x71F6 - 0x71F64000 C:\WINDOWS\system32\SECURITY.dll 0x76F5 - 0x76F63000 C:\WINDOWS\system32\SECUR32.dll 0x76C9 - 0x76CB4000 C:\WINDOWS\system32\msv1_0.dll 0x76C1 - 0x76C38000 C:\WINDOWS\system32\imagehlp.dll 0x6D58 - 0x6D621000 C:\WINDOWS\system32\dbghelp.dll 0x77B9 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll 0x76B7 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL Heap at VM Abort: Heap def new generation total 5184K, used 967K [0x1001, 0x105a, 0x10b2) eden space 4672K, 15% used [0x1001, 0x100c4580, 0x104a) from space 512K, 48% used [0x1052, 0x1055da28, 0x105a) to space 512K, 0% used [0x104a, 0x104a, 0x1052) tenured generation total 44240K, used 27306K [0x10b2, 0x13654000, 0x1641) the space 44240K, 61% used [0x10b2, 0x125ca930, 0x125caa00, 0x13654000) compacting perm gen total 18432K, used 18373K [0x1641, 0x1761, 0x1a41) the space 18432K, 99% used [0x1641, 0x17601738, 0x17601800, 0x1761) Local Time = Wed Nov 10 07:28:56 2004 Elapsed Time = 65227 # # The exception above was detected in native code
RE: My Context don't workie
Thanks but this is a tried and true app that has been out for two years now. It works on windows, multiple Linux and Solaris Just this one Gentoo box (my first actually). The vendor provides a config util which I have run a million times after deleting the server.xml file. It regenerates a server.xml which I ran on another box fine. It can't be the app it has to be the box. I will try to set debug and enable the default logger. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:20 PM To: Tomcat Users List Subject: RE: My Context don't workie Hi, You can add debug=99 attributes to all the containers in server.xml to get additional debugging data. Tomcat 5.x has better debugging support via commons-logging. Try commenting out pieces, like the Realm, to maybe isolate the problem component further. Yoav Shapira http://www.yoavshapira.com -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:16 PM To: 'Tomcat Users List' Subject: RE: My Context don't workie Is there any way to turn on some sort of debugging? BTW here is mt entire server.xml ?xml version=1.0 encoding=UTF-8? !-- Webserver Configuration File WARNING ** Don't edit this file directly, use the command 'config' from the installation directory-- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort$ !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Engine name=Standalone defaultHost=localhost debug=0 !-- This is a replacement logger written for the CJGreen project by copying the FileLogger class and making slight modifications. The need was to provide a default verbosity to messages that are logged without a specific verbosity. FileLogger ALWAYS logs these messages, but they occur frequently and are usually (always?) informational in nature. A defaultVerbosity of 3 makes these messages informational and the verbosity setting of less than 3 then makes sure that we never log any informational messages. There is a quirk to how this works, however. Tomcat executes each element as it reads it from this file. Therefore, any logging done during startup (before this element) will not use the default verbosity specified by the attribute defaultVerbosity. Instead, it uses the hard-coded default of 3 (INFORMATIONAL). Therefore, to see logged messages during startup, you must use the original FileLogger and not use CJFileLogger. -- Logger className=com.controlj.green.jakarta.catalina.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0 defaultVerbosity=3 / !-- This is the default logging for Tomcat. We have replaced it with CJFileLogger above to suppress log messages that don't have a verbosity level. This logger will ALWAYS log messages without a verbosity level and there are quite a few of these message. Uncomment this logger (and also comment out the above logger) to revert to the previous amount of logging. -- !-- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0/ -- !-- Because this Realm is here, an instance will be shared globally -- Realm digest=SHA-1 className=com.controlj.green.jakarta.catalina.Realm hostPort=80 ssl=off / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- WebCTRL Context -- Context path= docBase=/opt/WebCTRL2.5/webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context /Host /Engine /Service /Server -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: My Context don't workie Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The Server.xml has: !-- WebCTRL Context -- Context path= docBase=../../webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false
RE: comparison of Type 4 JDBC drivers
This is the JVM catching an exception/access violation in the native code outside of the JVM. The problem is probably in native code in the driver or any jni code you may be using. If you are not using any jni to wrap native code that is custom to your site, you should look at how you are calling the JDBC. You may be sending NULL values or incorrect format for what the ODBC driver is expecting and causing the access violation. I had something similar and it was stack corruption in my native code. Robert S. Harper 801.265.8800 ex. 255 -Original Message- From: Craig Collings [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:18 PM To: tomcat-user ([EMAIL PROTECTED]) Subject: RE: comparison of Type 4 JDBC drivers Interesting. I'm using com.microsoft.jdbc.sqlserver.SQLServerDriver which is a type 4 driver and I am also getting ex VM errors: any ideas? An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at PC=0x77F46A07 Function=RtlFreeHeap+0x322 Library=C:\WINDOWS\system32\ntdll.dll Current Java thread: at java.util.zip.ZipFile.getEntry(Native Method) at java.util.zip.ZipFile.getEntry(ZipFile.java:146) - locked 0x10b26c90 (a java.util.jar.JarFile) at java.util.jar.JarFile.getEntry(JarFile.java:194) at java.util.jar.JarFile.getJarEntry(JarFile.java:181) at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:668) at sun.misc.URLClassPath.getResource(URLClassPath.java:157) at java.net.URLClassLoader$1.run(URLClassLoader.java:191) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) - locked 0x10b322d8 (a sun.misc.Launcher$ExtClassLoader) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) - locked 0x10b322d8 (a sun.misc.Launcher$ExtClassLoader) at com.abnamrocraigs.listings.IressNewListingsListener.addListings(IressNewList ingsListener.java:147) at com.abnamrocraigs.listings.IressNewListingsListener.notify(IressNewListingsL istener.java:66) at com.abnamrocraigs.tasks.TaskScheduler.propagate(TaskScheduler.java:68) - locked 0x110be650 (a com.abnamrocraigs.tasks.TaskScheduler) at com.abnamrocraigs.tasks.ScheduledTask.run(ScheduledTask.java:21) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382) Dynamic libraries: 0x0040 - 0x00406000 C:\WINDOWS\system32\java.exe 0x77F4 - 0x77FFA000 C:\WINDOWS\system32\ntdll.dll 0x77E4 - 0x77F34000 C:\WINDOWS\system32\kernel32.dll 0x77DA - 0x77E3 C:\WINDOWS\system32\ADVAPI32.dll 0x77C5 - 0x77CF5000 C:\WINDOWS\system32\RPCRT4.dll 0x77BA - 0x77BF4000 C:\WINDOWS\system32\MSVCRT.dll 0x0800 - 0x082A7000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\server\jvm.dll 0x77D0 - 0x77D8F000 C:\WINDOWS\system32\USER32.dll 0x77C0 - 0x77C44000 C:\WINDOWS\system32\GDI32.dll 0x76AA - 0x76ACC000 C:\WINDOWS\system32\WINMM.dll 0x1000 - 0x10007000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\hpi.dll 0x0038 - 0x0038E000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\verify.dll 0x003B - 0x003C8000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\java.dll 0x0039 - 0x0039D000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\zip.dll 0x008D - 0x008DF000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\net.dll 0x71C0 - 0x71C18000 C:\WINDOWS\system32\WS2_32.dll 0x71BF - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll 0x008E - 0x008E8000 C:\Program Files\Java\j2sdk1.4.2\jre\bin\nio.dll 0x71B2 - 0x71B63000 C:\WINDOWS\System32\mswsock.dll 0x76ED - 0x76EF7000 C:\WINDOWS\system32\DNSAPI.dll 0x76F7 - 0x76F77000 C:\WINDOWS\System32\winrnr.dll 0x76F1 - 0x76F3F000 C:\WINDOWS\system32\WLDAP32.dll 0x76F8 - 0x76F85000 C:\WINDOWS\system32\rasadhlp.dll 0x71AE - 0x71AE8000 C:\WINDOWS\System32\wshtcpip.dll 0x0340 - 0x03406000 C:\jintegra\bin\ntvauth.dll 0x73D2 - 0x73E13000 C:\WINDOWS\system32\MFC42.DLL 0x0341 - 0x03417000 C:\jintegra\bin\International\ntvauthEnglishResourceDll.dll 0x71F6 - 0x71F64000 C:\WINDOWS\system32\SECURITY.dll 0x76F5 - 0x76F63000 C:\WINDOWS\system32\SECUR32.dll 0x76C9 - 0x76CB4000 C:\WINDOWS\system32\msv1_0.dll 0x76C1 - 0x76C38000 C:\WINDOWS\system32\imagehlp.dll 0x6D58 - 0x6D621000 C:\WINDOWS\system32\dbghelp.dll 0x77B9 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll 0x76B7 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL Heap at VM Abort:
Re: comparison of Type 4 JDBC drivers
On Wed, 10 Nov 2004 12:18:20 +1300, Craig Collings [EMAIL PROTECTED] wrote: Interesting. I'm using com.microsoft.jdbc.sqlserver.SQLServerDriver which is a type 4 driver and I am also getting ex VM errors: any ideas? I don't know if it's helps.. We tried to use Microsoft JDBC drivers in our applications but because of its troubles we decided to use jTds, which is a but rock-solid free driver.. You can get it from http://jtds.sourceforge.net/. -- /tb. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: My Context don't workie
Is this using gentoo's tomcat install? If so, you may want to download and setup tomcat manually, to see if the problem persists. Gentoo's java tools are...umm..interesting at times. Larry [EMAIL PROTECTED] 11/09/04 4:24 PM Thanks but this is a tried and true app that has been out for two years now. It works on windows, multiple Linux and Solaris Just this one Gentoo box (my first actually). The vendor provides a config util which I have run a million times after deleting the server.xml file. It regenerates a server.xml which I ran on another box fine. It can't be the app it has to be the box. I will try to set debug and enable the default logger. Thanks. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:20 PM To: Tomcat Users List Subject: RE: My Context don't workie Hi, You can add debug=99 attributes to all the containers in server.xml to get additional debugging data. Tomcat 5.x has better debugging support via commons-logging. Try commenting out pieces, like the Realm, to maybe isolate the problem component further. Yoav Shapira http://www.yoavshapira.com -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:16 PM To: 'Tomcat Users List' Subject: RE: My Context don't workie Is there any way to turn on some sort of debugging? BTW here is mt entire server.xml ?xml version=1.0 encoding=UTF-8? !-- Webserver Configuration File WARNING ** Don't edit this file directly, use the command 'config' from the installation directory-- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort$ !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -- Engine name=Standalone defaultHost=localhost debug=0 !-- This is a replacement logger written for the CJGreen project by copying the FileLogger class and making slight modifications. The need was to provide a default verbosity to messages that are logged without a specific verbosity. FileLogger ALWAYS logs these messages, but they occur frequently and are usually (always?) informational in nature. A defaultVerbosity of 3 makes these messages informational and the verbosity setting of less than 3 then makes sure that we never log any informational messages. There is a quirk to how this works, however. Tomcat executes each element as it reads it from this file. Therefore, any logging done during startup (before this element) will not use the default verbosity specified by the attribute defaultVerbosity. Instead, it uses the hard-coded default of 3 (INFORMATIONAL). Therefore, to see logged messages during startup, you must use the original FileLogger and not use CJFileLogger. -- Logger className=com.controlj.green.jakarta.catalina.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0 defaultVerbosity=3 / !-- This is the default logging for Tomcat. We have replaced it with CJFileLogger above to suppress log messages that don't have a verbosity level. This logger will ALWAYS log messages without a verbosity level and there are quite a few of these message. Uncomment this logger (and also comment out the above logger) to revert to the previous amount of logging. -- !-- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosity=0/ -- !-- Because this Realm is here, an instance will be shared globally -- Realm digest=SHA-1 className=com.controlj.green.jakarta.catalina.Realm hostPort=80 ssl=off / !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true !-- WebCTRL Context -- Context path= docBase=/opt/WebCTRL2.5/webroot debug=1 Manager distributable=false className=org.apache.catalina.session.PersistentManager saveOnRestart=false Store className=org.apache.catalina.session.FileStore / /Manager /Context /Host /Engine /Service /Server -Original Message- From: K. Mike Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: My Context don't workie Hello to all, I have an app that works fine on Red Hat, Susie, Debian, or even Windows. I built a Gentoo box and it wont work. TomCat runs but the webapp is ignored. The
RE: comparison of Type 4 JDBC drivers
cheers guys. To be fair, there is no real indication that it _is_ the jdbc driver. In fact the satck trace seems to indicate an interation between sun's code and ntdll.dll which is rather more scary :) Its only happened once - we'll see. jtds looks good though... /disco : : I don't know if it's helps.. We tried to use Microsoft JDBC : drivers in our applications but because of its troubles we : decided to use jTds, which is a but rock-solid free driver.. : : You can get it from http://jtds.sourceforge.net/. : : -- : /tb. : # Notice of Confidential information The information contained in this electronic mail is CONFIDENTIAL INFORMATION and may be LEGALLY PRIVILEGED, intended only for the individual or entity named above. If you are not the intended recipient, you are hereby notified that the use, dissemination, distribution, or copying of this document is strictly prohibited. If you have received this electronic message in error, please immediately notify us by return or telephone call collect to 07 577 6049) and destroy the original message. Thank you, ABN AMRO Craigs Limited. This e-mail message has been scanned and cleared by MailMarshal www.marshalsoftware.com # - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat is Good Enough for Game Performances
Dear all, I have a lot of Java programming over Tomcat. But I don't have such experiences to use Tomcat commercially. I heard that Tomcat could only be used for a laboratory environment and it was not mature enough for real commercial applications. Is it right or not? Now I attempt to use Tomcat as a game server. Is it a correct choice? What about the performance to use Tomcat for real time applications? When a lot of customers sign in, what about the efficiency issue? By the way, if Tomcat is not good for game applications, is it good enough for e-business applications, such as a large scale online shopping Web site? Thanks so much for your help! Bing
Re: exception in clustering
Hi, I am using Apache - modjk -Tomcat 5 configuration. The tomcat manager app uses BASIC authentication. When I point my browser to /myurl/manager the browser pops up a dialog box for the username and password. Upon entering the correct information it logs me into the manager app. I am trying to now use JMeter to log in to the manager app: URL: my.machine.com port: 80 path:/manager username u1 password p1 When I try to execute the above in JMeter it fails. How do I log into the manager app using JMeter? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Killing threads during context restart
Thanks all. I have the threads dying cleanly now. --- Filip Hanik - Dev [EMAIL PROTECTED] wrote: you can setup context listeners, and when the context is stopped you will receive an event and can stop your bg thread Filip - Original Message - From: TK Banks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:40 PM Subject: Killing threads during context restart I have a background thread object in my tomcat application that performs some garbage-collection like functions (i.e., wakes up periodically and does some application specific cleanup). I have tomcat configured to restart the context when I drop new class files in the WEB-INF/classes directory. Recently I have discovered multiple copies of my these background threads running simultaneously. Further investigation has shown that I get an additional copy with each context restart. I guess I don't even know what a context is, but I assumed that a context restart would kill off all application threads. How am I supposed to get all my application threads to die when the context restarts? Checking instance variables don't work since the data from the old context and the new does not appear to be shared. Thanks much, Matt __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: comparison of Type 4 JDBC drivers
On Wed, Nov 10, 2004 at 01:29:34AM +0200, Tuncay Baskan wrote: On Wed, 10 Nov 2004 12:18:20 +1300, Craig Collings [EMAIL PROTECTED] wrote: I'm using com.microsoft.jdbc.sqlserver.SQLServerDriver which is a type 4 driver and I am also getting ex VM errors: any ideas? I don't know if it's helps.. We tried to use Microsoft JDBC drivers in our applications but because of its troubles we decided to use jTds, which is a but rock-solid free driver.. You can get it from http://jtds.sourceforge.net/. I don't do SQLServer at all, but a friend who has a J2EE app using SQLServer (JBoss using tomcat, I believe) told me the other day that they're using some third-party JDBC drivers, DataDirect I think. It's apparently pricey as hell (enterprise licensing) but it cut their server load in half. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - http://darksleep.com/notablog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat is Good Enough for Game Performances
in this day, most of the servlet containers are about the same in terms of performance. What matters most is your design and implementation. there are plenty of sites getting 10million+ page views a day with tomcat. who ever told you tomcat is only for lab use is totally clueless. there's an article about performance on tomcat's resource page. these kinds of question are asked frequently. People really should look at the tomcat faq and resource pages. there's already information there. http://jakarta.apache.org/tomcat/faq/performance.html http://wiki.apache.org/jakarta-tomcat/PoweredBy there's quite a few sites that use Tomcat, but do not publicize it. all you have to do is use netcraft to hit some popular sites and you'll see if they are using Tomcat. Some people will go as far as to hide tomcat behind a load balancer and have it return Apache or some other webserver. peter On Tue, 09 Nov 2004 16:51:45 -0700, Bing Li [EMAIL PROTECTED] wrote: Dear all, I have a lot of Java programming over Tomcat. But I don't have such experiences to use Tomcat commercially. I heard that Tomcat could only be used for a laboratory environment and it was not mature enough for real commercial applications. Is it right or not? Now I attempt to use Tomcat as a game server. Is it a correct choice? What about the performance to use Tomcat for real time applications? When a lot of customers sign in, what about the efficiency issue? By the way, if Tomcat is not good for game applications, is it good enough for e-business applications, such as a large scale online shopping Web site? Thanks so much for your help! Bing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manager App and basic authentication
Hi, (Sorry, I posted this message under the wrong thread before) I am using Apache - modjk -Tomcat 5 configuration. The tomcat manager app uses BASIC authentication. When I point my browser to /myurl/manager the browser pops up a dialog box for the username and password. Upon entering the correct information it logs me into the manager app. I am trying to now use JMeter to log in to the manager app: URL: my.machine.com port: 80 path:/manager username u1 password p1 When I try to execute the above in JMeter it fails. How do I log into the manager app using JMeter? Thanks. Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone knows how to deal with mail session -security error for TC5.5.4
if running tomcat5.5.4 without turning on -security, everything works fine for jndi context mail session and DBCP. But if -security turned on, I got the following errors. If anyone can point to me what I missed or did wrong, greatly appreciated. Thanks David 1. TC errors access: access allowed (java.util.PropertyPermission line.separator read) Nov 8, 2004 9:55:25 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.security.AccessControlException: access denied (java.util.PropertyPermission javax.mail.Session.Factory read) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:264) at java.security.AccessController.checkPermission(AccessController.java:427 ) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) 2. catalina.policy: grant codeBase file:${catalina.home}/webapps/javaxml2/WEB-INF/classes/UpdateItemServle t.class { permission java.net.SocketPermission localhost:1521,connect,resolve; permission java.util.PropertyPermission javax.mail.Session.Factory,read; permission java.net.SocketPermission localhost:25,connect,resolve; };
Re: Manager App and basic authentication
I think you should post this to the [EMAIL PROTECTED] mailing list. to get it to work with JMeter, you'll need to add auth manager to your test plan. add an entry in the auth manager url - leave blank username - yourUser password - yourPassword The documentation for it is here. http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_Authorization_Manager peter On Tue, 9 Nov 2004 17:09:19 -0700, Mufaddal Khumri [EMAIL PROTECTED] wrote: Hi, (Sorry, I posted this message under the wrong thread before) I am using Apache - modjk -Tomcat 5 configuration. The tomcat manager app uses BASIC authentication. When I point my browser to /myurl/manager the browser pops up a dialog box for the username and password. Upon entering the correct information it logs me into the manager app. I am trying to now use JMeter to log in to the manager app: URL: my.machine.com port: 80 path:/manager username u1 password p1 When I try to execute the above in JMeter it fails. How do I log into the manager app using JMeter? Thanks. Mufaddal Khumri Software Developer Waves In Motion Phone: 602 956 7080 x 26 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS 6 - IIS 5 Isolation mode with JK2 ISAPI.dll
I also run Tomcat 5.0.28 with IIS 6 using the JK2 Connector without turning on Isolation Mode... and our app works fine. I suspect people turn this setting on to disable functionality in IIS 6 that they don't understand or know how to configure properly. Brad -Original Message- From: Matteo Turra [mailto:[EMAIL PROTECTED] Sent: Tuesday, 9 November 2004 9:30 PM To: Tomcat Users List Subject: IIS 6 - IIS 5 Isolation mode with JK2 ISAPI.dll I read some post about it, but I cannot understood if and why Isolation Mode is to be set to work properly with JK2 Connector. I tried in both Isolation Mode and without, and everything seems to work. Can somebody explain me? Thanks, Matteo. Everything should be made as simple as possible, but not simpler. -- Albert Einstein _ Matteo TURRA mail: [EMAIL PROTECTED] Analisi sviluppo WEB tel: +39 051 61.11.430 KION Srl web: www.kion.it Via Cristoni, 86 tel: +39 051 61.11.411 40033 Casalecchio di Reno (BO) fax: +39 051 57.04.23 ITALIA _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Counting Page Hits
What is the easiest way to monitor hits to resources (files or pages) on my tomcat 5 server? Do I write my own ticker into each page I want to monitor and store the incremented value to a database? Or is there a much simpler solution already implimented in some tomcat management software (I have never used any of the pre-installed software, and have actually been disabling it. A book recommended it not be installed for security purposes on a production server-- they could be wrong, I know). Any suggestions? Justin Jaynes __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNI Error with Tomcat
Hello, I am having trouble loading a native library for use within Tomcat web applications. I read the wiki entry and found the latest JNI posts - but I still don't quite get it and still have an error. I'm hoping someone out there has been through this and has some suggestions. My environment is Tomcat 5.0.28, Fedora Core 2, JDK 1.5.0, Apache 2.0.52 connecting to Tomcat with jk2. I created a wrapper class to load the library libmpascript.so and placed the class file into the tomcat-root/shared/classes directory so it would load with the built in tomcat shared classloader and be available for all web applications. This sound correct? public class MapScriptWrapper { static { System.loadLibrary(mapscript); } native void load(); } The library lives in /usr/local/lib/special and when starting up tomcat I set JAVA_OPTS=-Djava.library.path=/usr/local/lib/special in the /etc/init.d/tomcat script. Does this need to be in tomcat-root/bin/catalina.sh? I could also make it a global variable in /etc/profile but have not tried that yet. excerpt from /etc/init.d/tomcat ... start() { echo -n Starting tomcat: JAVA_OPTS='-Djava.library.path=/usr/local/lib/special' export JAVA_OPTS set | grep JAVA chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat/* su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/startup.sh' RETVAL=$? echo [ $RETVAL = 0 ] touch /var/lock/subsys/tomcat return $RETVAL } ... There is a correpsonding mapscript.jar file which maps obejcts to the library that is available via the CLASSPATH and when I create a jsp file and try to create an object that points to the library I get the dreaded UnsatisfiedLinkError - which tells me the library is not loaded and available. java.lang.UnsatisfiedLinkError: new_mapObj edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(NativeMethod) edu.umn.gis.mapscript.mapObj.init(mapObj.java:334) org.apache.jsp.mapscript_002dtest_jsp._jspService(mapscript_002dtest_jsp.java:52) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any ideas would be appreciated! Thanks! Dan Barron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]