finding number of threads being used by Tomcat
Hello - Is there a way (programmatically or otherwise) to find the number of threads being used by Tomcat while it's running ? This will be some number between minProcessors and maxProcessors. kill -3 on the JVM and getting the number of threads from the thread dump is not an option. Thanks Rau - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Client SSL certificates signed by Windows Certificate Server
Bill Barker wrote: Martin Jericho [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:03 PM Subject: Re: Client SSL certificates signed by Windows Certificate Server Martin Jericho [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to use Windows Certificate Server to sign my client certificates. First I tried to use a certificate that was generated in IE, but that didn't seem to work (has anyone gotten this to work before?), so now I am trying certificates generated by IBM's keyman program. These are the steps I take: 1. In keyman, generate a key pair in a PKCS#12 file. 2. Create a certificate request based on this key pair 3. In Microsoft Certificate Server's certsrv webpage, select the following options: - Request a certificate - Advanced Request - Submit a certificate request using a base64 encoded PKCS #10 file or a renewal request using a base64 encoded PKCS #7 file 4. Paste the certificate request into the window 5. Issue the certificate request on the server 6. In Microsoft Certificate Server's certsrv webpage, select Check on a pending certificate and select the saved-request certificate 7. Click on the Download CA Certification Path link, and save the certnew.p7b file to disk 8. In keyman, import the .p7b file. This attaches itself to the original key pair. 9. Save the keystore as a .p12 file 10. Import this .p12 file into IE 11. Export the signing certificate from IE into a file called MyCA.cer 12. Import this cer file into Java's cacerts keystore 13. Restart tomcat At this stage everything should work, but it doesn't. I can only get it to work by exporting the new certificate itself into a .cer file and importing that into the cacerts file. For some reason, tomcat doesn't trust Windows Certificate Server's root certificate, or at least doesn't trust any certificates signed by it, even after I have imported it into the cacerts file. Has anyone done this before? Yup, it should work as you've described. I don't know anything about WCS (or care to know :), but does it sign with an intermediate cert? If so, they you'll probably have to import the intermediate cert as well (so that Tomcat can verify BasicConstraints etc.). Of course it checks the entire cert chain. It would be a security hole if it didn't (e.g. anyone could simply issue themselves a cert, and login). All that should be required is that you have the root cert in cacerts, and then Tomcat should validate your client-certs (w/o requiring that they be imported). Sorry to bud into this thread... I use Apache + mod_ssl to talk with OpenSSL with Tomcat behind that. I have signed my own certificate. How do I know Apache is checking the imported certificate ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing IIS Certificates in Tomcat?
Robert J. Sanford, Jr. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That's great advice but it doesn't answer my basic question of whether or not I can import a certificate that was issued based on a request generated by IIS. Since I don't use IIS, I don't know the answer. However, if you can export the cert in pkcs12 format (which Windows usually does with the export private key option), then you should be able to use the resulting (either .p12 or .pfx) file as your keystore. You need to set 'keystoreType=pkcs12' on the Factory element. Sun's support for pkcs12 is a bit limited, so make certain that you only export your server's cert, and *not* the signers as well. Since you are using a Verisign cert, this should be enough (since the signer is already in cacerts). Alternatively, once you have your .p12 file, you can use OpenSSL or otherwise to split it out into a private-key and certificate file. You can then use the program at http://www.comu.de/docs/tomcat_ssl.htm to import them. rjsjr My experience was using IIS with Tomcat was very slow and it is pain in the neck to use tackle with ISAPI connector and the rest.. It is better to have either Apache or directly use Tomcat servers -Original Message- From: Robert J. Sanford, Jr. [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 6:11 PM To: [EMAIL PROTECTED] Subject: Installing IIS Certificates in Tomcat? I'm running Tomcat inside of jboss-3.2.1_tomcat-4.1.24 but I think the issue will be the same independent of that. The platform is Win2K SP3. The plan is to use Tomcat's HTTP server instead of IIS with the AJP ISAPI connector. Since all requests are being handled by servlets with no static content why even get IIS involved? Anyway... I attempted to take an existing certificate whose request was generated by IIS and import it into a keystore and use that as the basis for my SSL crypto. When I attempted to connect via IE the connection failed (a site not found error) and the exception tree at the bottom of this message was generated. I spent a lot of time reading the JBoss SSL docs, reading the Tomcat SSL docs, searching the Tomcat and JBoss archives, playing with my configuration, trying to figure out what ciphers were installed, making sure that the CA certificate (for testing we use an internal CA) was imported into the keystore, etc., etc., etc. None of it worked. Everything resulted in the exception chain below or something similar. Finally I just decided to go through the instructions for generating a new local key, a new certificate request, get the certificate from my internal certificate authority and import everything into a new keystore. It worked with a minor warning saying that the machine name on the certificate did not match the actual machine name. I'm not sure how to resolve that immediately but I don't see that as a major issue right now since this is only for testing purposes. My big questions are: 1) Is there any way that I can import an existing certificate that was generated based on a request originated in IIS into my keystore and have that be accepted by Tomcat? 2) Or, do I have to go to my IT manager and tell him that he needs to go to Verisign and get additional certificates for IP addresses that we already have certificates for? 3) Or, should I just use IIS and the existing certificates to front Tomcat? Many thanks for the assist! rjsjr 2003-08-07 14:22:55,919 DEBUG [org.apache.tomcat.util.net.PoolTcpEndpoint] Handshake failed javax.net.ssl.SSLHandshakeException: no cipher suites in common at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_aw.b(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(JS SESocketFactor y.java:290) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi nt.java:540) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) 2003-08-07 14:22:55,939 DEBUG [org.apache.tomcat.util.net.PoolTcpEndpoint] Handshake failed javax.net.ssl.SSLException: Unsupported SSL v2.0 ClientHello at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at
Any web hosting site can let me do this?
Hi.. Dear all, I am looking a free web hosting site that I can upload my homepage file? Any recommendation?? Besides, I want my homepage have this function like allow member to login or create a account and they can participate in forum or etc. sometime like www.channelnewsasia.com Can public web site allow me to do that? If yes, what kind of tool or knowledge that I have to have? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unexpected java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
Sheesh! Turned out, I was compiling Tomcat 4 against the wrong cvs branch of jakarta-tomcat-connectors. Once I checked out the TOMCAT_4_1_27 branch and recompiled, the error went away. Thanks for your help Dmitry At 10:39 AM 8/8/2003, Jeanfrancois.Arcand wrote: Try adding the mx4j jar file to the classpath command line to see if it work. Or start using Netbeans or Eclipse (just kidding :-) ) -- Jeanfrancois - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk v1.2.5
Good morning John. I had intended to effuse greatly if I actually got a reply but the breadth of it suggests such a response would be over-reaction. Than Norm - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:22 PM Subject: Re: mod_jk v1.2.5 AFAIK, still coming if ever. John NormW wrote: Good afternoon all. What has become of the mod_jk binaries for v1.2.5? Still coming or some place other than: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ ? TIA Norm - 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: ANT tasks for management console
note you can also define the classpath to the catalina-ant.jar from the taskdef itself: taskdef classname=org.apache.catalina.ant.InstallTask classpath=${tomcatAntLib} name=install/ this way you may wish to keep the path independant rather than copying the jar to the ant home! Steph Richardson wrote: Juraj Look for TOMCAT_HOME/server/lib/catalina-ant.jar and copy it to your ANT_HOME/lib directory. Then you need to define the targets, and add some tasks like this : !-- ** Tomcat / catalina.ant tasks ** -- taskdef name=deploy classname=org.apache.catalina.ant.DeployTask / taskdef name=undeploy classname=org.apache.catalina.ant.UndeployTask / taskdef name=list classname=org.apache.catalina.ant.ListTask / taskdef name=start classname=org.apache.catalina.ant.StartTask / taskdef name=stop classname=org.apache.catalina.ant.StopTask / taskdef name=reload classname=org.apache.catalina.ant.ReloadTask/ target name=reload !-- reload the web application in tomcat -- echo message=Reloading tomcat web app on port : ${tomcat.port} / reload url=${tomcat.manager} path=/${context-path} username=${tomcat.usr} password=${tomcat.pwd} / /target target name=war mkdir dir=${deploy}/ war warfile=${deploy}/${context-path}.war webxml=${dist}/web.xml fileset dir=${rootdir} exclude name=**/build.xml/ exclude name=**/web.xml/ exclude name=**/dev/**/ exclude name=**/temp/**/ exclude name=**/CVS/**/ exclude name=**/*.java/ /fileset /war /target target name=deploy description=Deploys a Web application deploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} war=file:${war-path} / /target target name=undeploy description=Undeploys a Web application undeploy url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=redeploy description=Undeploys and deploys a Web aplication antcall target=undeploy / antcall target=deploy / /target target name=list description=Lists Web applications echo message=Listing the applications/ list url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} / /target target name=start description=Starts a Web application echo message=Starting the application/ start url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target target name=stop description=Stops a Web application echo message=Stopping the application/ stop url=${tomcat.manager} username=${tomcat.usr} password=${tomcat.pwd} path=/${context-path} / /target -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 3:38 AM To: [EMAIL PROTECTED] Subject: ANT tasks for management console Hi, Catalina 4.1.24 contains some ANT-tasks to call the management application to deploy, reload and delete apps. Where can I find these tasks to include them in my build? Juraj Mit freundlichen Grüssen Juraj Lenharcik T-Systems International GmbH Systems Integration 1 eFactory Solutions Business Unit Manufacturing Solutions Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen phone: +49 (711) 972 46185 fax:+49 (711) 972 48109 mailto:[EMAIL PROTECTED] www.t-systems.com http://www.t-systems.com www.efactory-solutions.com http://www.efactory-solutions.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] -- V . . . . . . . . . tel:+34.918.131.331 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.2 and IIS
I haven't changed anything in these xml files except enableing invoker servlet and servlet reloading true. I was just trying to change worker.properties file and see if it works. But it's not working. what else could be wrong? I have following contents in worker.properties file worker.list=testWorker worker.testWorker.port=8009 worker.testWorker.host=localhost worker.testWorker.type=ajp13 and in the uriworkermap.properties: /examples/*=testWorker /examples/*.jsp=testWorker /examples/servlet/*=testWorker /*.jsp=ajp13 From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Thu, 07 Aug 2003 15:04:15 -0400 If your JK connector port in server.xml is 8009, then that is the port you should use in your properties files. Please understand that Tomcat works with JK and JK2 by default. Right out of the box, with no changes whatsoever to server.xml. You don't need to change anything until you are ready to do so. Don't change something because it looks wrong. John vikas jain wrote: I'm sorry about not telling you whole thing. But I was not aware of that. I looked into my server.xml and it says JK2 port is 8009. It's something like this: !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / But should I change the port to 8443 in properties file as it is saying redirectport = 8443. Thanks, From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.2 and IIS Date: Thu, 07 Aug 2003 12:08:57 -0400 Let's step back a little: CoyoteConnector is the default class that handled connections to Tomcat. By default, there are two connectors configured in server.xml. Both use CoyoteConnector. One is for HTTP and is on port 8080 by default. The other is for JK/JK2 and is on port 8009 by default. To use a web server redirector, you need a JK/JK2 connector configured in server.xml, and you need your .properties files to use the correct port number. Otherwise, nothing you do has a chance of working. Perhaps if you told us what you wanted to do, and what you have done (changed from the default) we could be of more help, but right now you are only giving us little tidbits of info in each post, making it pretty difficult to help you quickly. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] how to pronounce Apache ?
Ah-patch-ee? -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 11 August 2003 10:23 To: tomcat mail list Subject: Re: [OT] how to pronounce Apache ? On Mon, Aug 11, 2003 at 02:49:52PM +0530, Antony paul wrote: : : I would like to know how to pronoune Apache in US English. I found two : pronounciations at http://dictionary.reference.com/search?q=apache which one : is right ?. Or any other forms ? If we're talking about the web server, look at the pronunciation given for the definition of A Native American people. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - 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]
TOMCAT returning self signed cert
Hi all, Any idea why TOMCAT (4.1.12) /JBOSS (3.0.4) on Win2K thinks the certificate reply that I had imported (using keytool) into Tomcat's keystore, is a root CA cert, instead of a trusted cert? I have imported a certificate reply (created from my own CA) into a keystore used by Tomcat (successfully according to keytool). However, when I try to access the secure site with IE 5.5, I am prompted a security alert notifying that the security certificate is not trusted. When I click on 'View Certificate', it shows me that the certificate is an untrusted ROOT CA certificate, even though the Subject DN and Issuer DN are different. I had expected it to say something like: This certificate cannot be verified up to a trusted certification authority. ... since the cert was signed by my own CA. When I export the certificate assocated with this key entry, it shows up as a untrusted certificate, and not an untrusted CA certificate. Any idea why TOMCAT thinks the cert I imported is a root CA cert instead of a trusted cert? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletContext.getInitParameter() for a Bean?
I'm sure that other people will offer their favorites, but I'm going to offer: jsp:useBean id=foo class=com.ait-web.MyBean jsp:setProperty name=foo property=bar value=%= application.getAttribute(foobar) % / /jsp:useBean Rick Roberts [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is recomended technique for reading initialization parameters from a Bean? -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * * http://www.ait-web.com * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle connection pooling
I am having these exact problems with DBCP. How do you configure a JNDI database connection pool on Tomcat using these libs? Best regards, Eulogio Robles Metropolis Intercom On Sat, 09 Aug 2003 11:11:29 -0400 Mark [EMAIL PROTECTED] wrote: For what it's worth... in a webapp I wrote for my company we had flaky connection problems when using oracle.jdbc.pool.OracleConnectionPoolDataSource against 8i. I switched to oracle.jdbc.pool.OracleConnectionCacheImpl and all the problems magically disappeared (much to the delight of our dba's). http://otn.oracle.com/doc/oracle8i_816/java.816/a81354/samapp9.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confirm unsubscribe from tomcat-user@jakarta.apache.org
On Tuesday 05 August 2003 13:46, [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the tomcat-user mailing list, please send an empty reply to this address: tomcat-user-uc.1060087583.johegacmfgakbdcefkli-me=caoilte [EMAIL PROTECTED] Usually, this happens when you just hit the reply button. If this does not work, simply copy the address and paste it into the To: field of a new message. or click here: mailto:tomcat-user-uc.1060087583.johegacmfgakbdcefkli-me [EMAIL PROTECTED] I haven't checked whether your address is currently on the mailing list. To see what address you used to subscribe, look at the messages you are receiving from the mailing list. Each message has your address hidden inside its return path; for example, [EMAIL PROTECTED] receives messages with return path: tomcat-user-return-number[EMAIL PROTECTED] he.org. Some mail programs are broken and cannot handle long addresses. If you cannot reply to this request, instead send a message to [EMAIL PROTECTED] and put the entire address listed above into the Subject: line. --- Administrative commands for the tomcat-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] g To stop subscription for this address, mail: [EMAIL PROTECTED] org In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 28476 invoked from network); 5 Aug 2003 12:46:22 - Received: from zinc.btinternet.com (194.73.73.148) by daedalus.apache.org with SMTP; 5 Aug 2003 12:46:22 - Received: from host217-44-174-234.range217-44.btcentralplus.com ([217.44.174.234] helo=caryatin.mshome.net) by zinc.btinternet.com with esmtp (Exim 3.22 #23) id 19k1Cn-0002vI-00 for [EMAIL PROTECTED]; Tue, 05 Aug 2003 13:46:22 +0100 From: Caoilte O'Connor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 5 Aug 2003 13:46:21 +0100 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 and stickySession
Hi! I've configured jk2 with a loadbalancer and stickySession=1 and made a simple Testservlet with a getSession(). I can see the JSESSION cookie in my browser but the loadbalancer still uses all workers and not only the worker with my session. What is going wrong? Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WINXP + TOMCAT + apache
Hey I'm new to this list and apache and tomcat I'm trying to run apache 2.0.47 with tomcat 5.0 on xp i know there are issues witht his but i don't know how to fix them any help? Regards, David O'Sullivan __ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: integration of apache2.0.40 tomcat4.1.27
unplug wrote: I have installed RH9 and it contains apache2.0.40. Then I installed tomcat4.1.27 by binary. After that I want to integrate them to work together by using jk2. What is the easy way to integrate them? Use a connector. http://jakarta.apache.org/tomcat/faq/connectors.html Any document that shows step by step integration? http://jakarta.apache.org/tomcat/faq/connectors.html I found jakarta site have a related document about it. But I can't find the bin mod_jk2 for 2.0.40 in jakarta site. Where can I find mod_jk2 for 2.0.40? Any guide line to build it myself? I wonder why jakarta site doesn't have mod_jk2-2.0.40 for download. Because the 2.0.40 included with RH default installations is a munged Apache distribution. In my opinion, you shouldn't use it, and instead should build and install Apache from source. But that's me. If you want to use RH's 2.0.40, you will need to download the connector source from here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ and build your .so file yourself against the 2.0.40 distribution that you have. You will need to know the location of apxs. Typcially, the steps for building the .so files from source are: 1. unpack source 2. find buildconf.sh 3. execute buildconf.sh 4. execute configure like this: ./configure --with-apxs=/some/path/to/apxs 5. make 6. make install If step #6 doesn't work for you, and step #5 was successful, then do a find for mod_jk*.so and when you find it, copy it to your Apache modules directory. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Japanese Characters in JSP's
Hi Fred, In the html header u will have to set the char set as SHIFT JIS. And in the browser SHIFT JIS should be set. Regards, Punam -Original Message- From: Fred Whipple [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 8:01 PM To: [EMAIL PROTECTED] Subject: Japanese Characters in JSP's Hi All, I'm having a bit of trouble with getting JSP's with Japanese characters within them. I'm working with a Windows XP system with JDK 1.4.2 and Tomcat 4.1.24. The problem seems persistent, though, on RH Linux with JDK 1.4.1_03 as well. I have no problem with Russian, Arabic, Hebrew, and other non-Latin-1 character sets, just Japanese (so far). More confusing, my test file is a very simple HTML document that Tomcat services properly when I'm simply calling it as an HTML file, such as: http://localhost:8080/testfile.html All I do is rename it to testfile.jsp, and it comes out all garbled. I've done the same test with a myriad of HTML files with various character sets including cp1251, iso8859-5, etc. Everything works fine except for Japanese -- I believe my file uses Shift_JIS. I don't have test files for other multi-byte character sets so I've no idea if it's exclusive to Japanese or if, for example, Chinese would not work either. I've also tried adding response.setLocale (new java.util.Locale (ja)) to the top of the page; it made no difference. I've also tried reading everything I could find, and I'm empty handed. This seems like it shouldn't be quite as difficult as it is. TIA! -Fred - 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: How to configure to use tomcat and struts to use log4j?
Howdy, I have tried so many things to use log4j from tomcat and struts and finaly I found the solution that I have to copy log4.jar into common/lib server/lib and application/WEB-INF/lib (to be able to get jsp files compiled). I find it a bit complicated that I have to copy the same jar file into three different directories. Is there a better way? Simply put log4j.jar in WEB-INF/lib, and your log4j configuration file in WEB-INF/classes. That's it. Don't have copies of log4j in commons/lib or server/lib, nor a log4j configuration file there. Yoav Shapira 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: Can I get an answer please -- Re: Why integrate Tomcat with a web server?
Howdy, It actually makes since. Most web servers are in native code which is uasually faster, and tomcat is in java. You're right (in meaning if not in spelling ;)), it does make sense for native code to execute faster. But java performance has been continually improving so that it's no longer always a huge difference. Yoav Shapira 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]
[RePost] Tomcat+MySQL. Intermitent DbcpException: Server configuration denies access to data source
Hi! I haven't got any answers to my question and I'm really stuck with it. Please, could anybody give me some ideas or do you need any other information? Thansk a lot. Monica Hi! I'm using Tomcat 4.1.24 with Apache 2 and MySQL 4.0.13. I have the mysql- connector-java-2.0.14-bin.jar in commons/lib. The application runs normally, and usually about once or twice a day I get this exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server configuration denies access to data source. Once the exception occurs, it happens for every request and Tomcat needs restarting. Before getting this exception, I used to run out of connections, and therefore I added to the server.xml parameter namelogAbandoned/name valuetrue/value /parameter parameter nameremoveAbandoned/name valuetrue/value /parameter I guess it could be related... I include the exception and my server.xml file. Any help appreciated. Monica 2003-08-07 15:55:02 StandardWrapperValve[StructureServlet]: Servlet.service () for servlet StructureServlet threw exception org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server configuration denies access to data source at org.apache.commons.dbcp.DriverConnectionFactory.createConnection (DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject (PoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject (AbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:110) at org.apache.commons.dbcp.BasicDataSource.getConnection (BasicDataSource.java:312) at com.ah.auk.db.DBUtil.getDBConnection(DBUtil.java:54) at com.ah.auk.db.DB.checkDBCon(DB.java:34) at com.ah.auk.db.HotelDBReader.getHotelsInGeoEntry (HotelDBReader.java:64) at com.ah.auk.delegates.CountyHelper.getHotelsPerCounty (CountyHelper.java:100) at com.ah.auk.box.CountyListBox.getCounties(CountyListBox.java:118) at com.ah.auk.box.CountyListBox.configure(CountyListBox.java:63) at com.ah.auk.core.BoxManager.configureBoxes(BoxManager.java:41) at com.ah.auk.structure.StructureServlet.doGet (StructureServlet.java:74) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service
Re: [OT] how to pronounce Apache ?
On Mon, Aug 11, 2003 at 02:49:52PM +0530, Antony paul wrote: : : I would like to know how to pronoune Apache in US English. I found two : pronounciations at http://dictionary.reference.com/search?q=apache which one : is right ?. Or any other forms ? If we're talking about the web server, look at the pronunciation given for the definition of A Native American people. -- Eugene Lee http://www.coxar.pwp.blueyonder.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Automatic switch from http to https doesn't work for IE, does for Netscape
ÔÚ 2003-08-09 16:30:00 ÄúдµÀ£º Tomcat 4.0.6of you ? Could you tell me ? Thanks~~ Windows 2000 IE 5, SP3 Netscape 7.02 I have a website which is part public, part secure. There are html entries such as lt a href=members/index.jsp gt in the public area which will jump to the secure area. The site is entered, by default using http://localhost:8080 but the members area is protected via SSL and transport guarantee stanzas security-constraint web-resource-collection web-resource-nameScoutGroup-Secure/web-resource-name url-pattern/members/*/url-pattern /web-resource-collection auth-constraint role-namemember/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint I understand that this should force any http://localhost:8080/scoutgroup/members request to switch to https://localhost:8443/scoutgroup/members. Under Netscape it does and I am notified that I am going to a secure page, prompted to accept the SSL certificate then driven through my logon.jsp to response.encodeURL(j_security_check). Under IE, however, I am notified that I am going to a secure page, prompted to accept the SSL certificate then told the page cannot be found. For testing purposes, I tried putting http://localhost:8080/scoutgroup/members in the browser's address box. The access log contains the following (with my annotations prefixed with ) Using IE 127.0.0.1 - - [09/Aug/2003:15:09:28 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:09:30 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:09:30 1] a ] ?4? Yq8*+??R?I?T:??[EMAIL PROTECTED] /?4? HTTP/0.9 501 988 Using Netscape 127.0.0.1 - - [09/Aug/2003:15:59:48 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/members/index.jsp HTTP/1.1 302 654 127.0.0.1 - - [09/Aug/2003:15:59:50 1] GET /scoutgroup/logon.jsp HTTP/1.1 200 576 127.0.0.1 - - [09/Aug/2003:16:01:07 1] POST /scoutgroup/j_security_check HTTP/1.1 302 654 127.0.0.1 - nichm001 [09/Aug/2003:16:01:07 1] GET /scoutgroup/members/index.jsp HTTP/1.1 200 427 Both browsers caused the same response (SC_MOVED_TEMPORARILY/302) as they attempted to navigate to the security check but then IE generated something very peculiar and appeared to try to renegotiate the protocol to http/0.9 before giving up. I've checked the logs - can't find anything more informative than above. I've tried running Tomcat via the catalina run command line option but there is no extra info there either. I know I can modify my code to always force the full path into hyperlinks but that's not good programming and has enormous potential for maintenance problems. Where do I look now? Murray - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mqg - SOUVENIR --- . | Souvenir of China | | A Good Place for You | `-- http://www.souvenirchina.com -' mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomat and ssl
servelet should be servlet, I think, unless you also have it as servelet elsewhere in your config. The error message you're getting is the same one we discussed last week: are you sure you are loading mod_jk.so? Are your mod_jk directives like LaodModule and JkWorkersFile etc. in httpd.conf ABOVE your SSL virtual host block? Apache works top down through httpd.conf. John [EMAIL PROTECTED] wrote: Greetings, I've added the mod_jk to my apache httpd.conf file and I've placed the info from John Turner's How TO This is what my virtual host container but I'm getting an error when I try to restart apache Any ideas? VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/conf/ssl.crt/server1.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.crt/server1.key JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servelet/* ajp13 /VirtualHost -bash-2.05b# cd ../bin205C written -bash-2.05b# ./apachectl configtest Syntax error on line 1002 of /usr/local/apache/conf/httpd.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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]
Problem with Tomcat 4.1.27 version?
Hello, I shifted from Tomcat 4.0.4 and JDK 1.4 to Tomcat 4.1.27 and JDK 1.4.2 on my Windows 2000 Professional. My application works fine on the older Tomcat but when I run the application on Tomcat 4.1.27 I get an error - HTTP Status 404 - /netapsv1/servlet/EntryServlet type Status report message /netapsv1/servlet/EntryServlet description The requested resource (/netapsv1/servlet/EntryServlet) is not available. The index.jsp runs but can't get my servlet running. The same works fine with Tomcat 4.0.4 and JDK 1.4.2 What could be the problem? All help appreciated. Regards, Satish
RE: security hole on windows tomcat?
do you have apache on the front end and are you only mapping *.jsp where *.jsp%20 is not a match and apache would then serve the file as text? Charlie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 9:22 AM To: Tomcat Users List Subject: Re: security hole on windows tomcat? Appending %20 to my Tomcat 4.1.1x URLs generates a 404. John Paul Sundling(Webdaddy) wrote: I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? Paul Sundling - 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]
Passing Memory values with CATALINA_OPTS
As my programmer and I continue to troubleshoot our DBCP problems (thanks to everyone, especially Angus for all the feedback), I am looking at some other settings I have made from day 1, and wonder if there are any downsides or benefits to what I have done. First off, we're running Apache 1.3.27 and Tomcat 4.1.17 with j2sdk1.4.1_01 Everything is running on a Dual P4 1.8Ghz XEON supermicro system (so essentially 4 processors) with 4GB ram, U160 SCSI array, etc.. So, with my CATALINA_OPTS, I am passing the following: export CATALINA_OPTS=-server -Xms512m -Xmx512m -Dlog4j.configuration=file:///opt/tomcat/log4j.properties; From everything I have read, it seemed natural set the -server flag, and due to some performance issues we were having, I increased the max/min memory settings. I also get the impression that this creates issues with garbage collection, which Im thinking could relate back to some of our DBCP problems. I welcome any thoughts or suggestions on this. Additionally, running the version of the JDK that I am, M$'s website shows their JDBC driver compatible with up to 1.3, and I wonder if there is any reason to think that some of the problems are related to running a higher version than M$ says they support? Again, any and all suggestions are welcome Rob Engstrom --- robert engstrom CTO [EMAIL PROTECTED] --- Happy Puppy / iGames Publishing http://www.igames.com http://www.igames.com http://www.happypuppy.com http://www.happypuppy.com
better configuration for Apache and Tomcat?
Hi Im having some performance problems with my apache/tomcat setup and I'm looking for ideas. first, my setup. I'm running apache 2 with tomcat 4.1.24, mod_jk2. My webapp serves content over both http and https. 1 coyote connector is used to handle both secure and unsecure requests. Static content is served by apache, dynamic content by my webapp. I have 2 virtual hosts in apache, one for http and on for https. mod_jk2 loadmodule is declared in root host of apache, along with all directory directives for static content. the 2 virtualhosts(ip based) does very little. The https virtual host uses pretty much the default configuration that comes with the source(some basic sessioncache, really long chiperSuite directive and so on). Certificate is self signed based on 1024 bit RSA key. Now, even when I'm just loadtesting retrieval of an image(which should involve apache only), I see a lot of mod_jk errors of can't find child in scoreboard?? And, even when removing mod_jk the performance stinks. So what I'm looking for is the following: 1. A way to not have connector involved if request is only for static resources. 2. If request is for static resource(art, css, javascripts, which all have a defined alias and directory directive) ssl check should become really lax, no checking for much. I don't want to generate absolute URLs in my pages so that they can be retrieved over http, was hoping there was a way in apache to do this.(yes, I probably should have asked this in mod_ssl user group, but if anybody here konws a lot easier) 3. more of a question: should I configure 2 coyote connectors, one for http and one for https in tomcat? Even when apache is doing all the certificate management? hope someone can help Henrik Bentel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Integrating Tomcat with Apache
That's because my HOWTO only addresses setting up localhost and not some.other.host.com. You have to do the same that is done for localhost for every other host you want to use. You might want to read up a little on what a virtual host is, and how it is setup in Apache. It works with Tomcat because Tomcat has a defaultHost parameter in server.xml that is set equal to localhost by default, which is why your IP address works with Tomcat but not Apache. John Xingqun Jiang wrote: Hi, Mike I followed this article to do the set-up: http://www.johnturner.com/howto/winxp-howto.html But the problem still exists. I cannot open the jsp page from another computer, without adding port number. :-( The article you forwarded to me is for Linux, Is there any for WindowsXP? Thanks Lance - Original Message - From: Mike Millson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 1:51 PM Subject: Re: Problem in Integrating Tomcat with Apache - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomat and ssl
HI, Okay I restarted and it now works - Thanks. I now have the apache part working but when I go to https://placeanad.classifiedmarketplace.net:8080/AdWebster it doesn't work? What else do I need to add? Thanks, Bobbie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:53 AM To: Tomcat Users List Subject: Re: Tomat and ssl servelet should be servlet, I think, unless you also have it as servelet elsewhere in your config. The error message you're getting is the same one we discussed last week: are you sure you are loading mod_jk.so? Are your mod_jk directives like LaodModule and JkWorkersFile etc. in httpd.conf ABOVE your SSL virtual host block? Apache works top down through httpd.conf. John [EMAIL PROTECTED] wrote: Greetings, I've added the mod_jk to my apache httpd.conf file and I've placed the info from John Turner's How TO This is what my virtual host container but I'm getting an error when I try to restart apache Any ideas? VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache/conf/ssl.crt/server1.crt SSLCertificateKeyFile /usr/local/apache/conf/ssl.crt/server1.key JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servelet/* ajp13 /VirtualHost -bash-2.05b# cd ../bin205C written -bash-2.05b# ./apachectl configtest Syntax error on line 1002 of /usr/local/apache/conf/httpd.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: security hole on windows tomcat?
sorry, that should be http://localhost:8080/john/test.jsp%20 = 404 No Apache is involved. John John Turner wrote: Red Hat Linux. I just tried this on Windows 2000 Pro, Tomcat 4.1.27 (downloaded 30 minutes ago, .exe install, installed as service). http://localhost/john/test.jsp%20 = 404 John Paul Sundling wrote: which operating system? Paul John Turner wrote: Appending %20 to my Tomcat 4.1.1x URLs generates a 404. John Paul Sundling(Webdaddy) wrote: I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? Paul Sundling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security hole on windows tomcat?
http://localhost/examples/jsp/num/numguess.jsp%20 = 404 (my tomcat is running on port 80) --- Fabio Moraes [EMAIL PROTECTED] System Engineer Work Force Management System +55 21 3088 9548 -Original Message- From: Eric J. Pinnell [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 13:28 To: Tomcat Users List Subject: Re: security hole on windows tomcat? Interesting. WinXP Tomcat 4.1.24 http://localhost:8080/examples/jsp/num/numguess.jsp%20 I get the source. -e On Mon, 11 Aug 2003, John Turner wrote: Let's see the Tomcat-only link. John Angus Mezick wrote: Ok guys, What could I have turned on that would have allowed this bug to happen? I can make it happen in both tomcat and tomcat through apache. (Most recent of both) I can provide a site where it DOES happen so you guys can see what is happening. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:07 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? sorry, I don't know - I don't use Apache. This was just a thought that I had. I do not have this problem 4.1.24 on Win2k Charlie - 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: error-code 401
Ok, can we please stop poking the Unix geek? I'll say it for the record. Georges is using LINUX in both a server AND client capacity. Therefore, he is not using IE (Internet Explorer). SHEESH! Besides.. I've already linked the known issue. -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 7:55 AM To: Tomcat Users List Subject: RE: error-code 401 Are you using IE ?, and have you deselected Show friendly HTTP error messages under Tools-Internet Options-Advanced -Original Message- From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: 7. august 2003 14:39 To: Tomcat Users List Subject: error-code 401 Hi, I'm trying to display custom error pages. My https context is BASIC protected, and now the site is automatically redirecting to the error page before asking for authentification... I put this lines in web.xml error-page error-code401/error-code locationerror/401.jsp/location /error-page I m using tomcat 4.1.27 standalone on linux. I need your help please. -- Georges Roux - 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: Tomcat server shutsdown very often
ÔÚ 2003-08-08 22:29:00 ÄúдµÀ£º Hello,of you ? Could you tell me ? Thanks~~ We are running Apache/Tomcat/Mysql on linux. The site was working fine till a few days back. When we introduced a few services, the tomcat server hangs very often. Then we have to restart it using startup.sh. Sometimes it shutsdown. Any idea why. Before we had faced a similar problem with mysql then we increased the max limit to 1 users. Is there a similar problem with Tomcat. One other thing we did was turn off keep alives. Now the Tomcat does not shutdown but the jsp pages are very slow. The htm pages are ok. Kindly guide. Thanks Regards, Srinivasan. _ www.asianetglobal.com Get Free Email - Asianetglobal.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mqg - SOUVENIR --- . | Souvenir of China | | A Good Place for You | `-- http://www.souvenirchina.com -' mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A simple C++ client for mod_jk/ajp14
Having read the somewhat forbidding rules, I haven't found anywhere better to post this. Java fanatics please bear with me. I've made a simple attempt at the basics of a C++ client for ajp14. The source code, sample files, and a readme can be downloaded from http://www.opents.com/ajp14cc.tar.gz . This is intended to form a basis for persistent C++ applications that communicate with Apache using mod_jk. ;-) Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security hole on windows tomcat?
you can also turn on the AccessLogValve in server.xml to show if the request gets to tomcat from apache and to see what it looks like. -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:56 PM To: Tomcat Users List Subject: RE: security hole on windows tomcat? ARGH! This has gone to just being an apache problem. Tomcat seems to have self corrected. I am very confused but will keep looking. Apache still does it though. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:40 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? can you turn on debug for the defaultservlet - set it to 99 in conf/web.xml and post the log. -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:39 PM To: Tomcat Users List Subject: RE: security hole on windows tomcat? Nope, but this mime mapping exists. mime-mapping extensionjspf/extension mime-typetext/plain/mime-type /mime-mapping -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:15 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? did you change any mime-mappings in conf/web.xml? could you have a jsp in there somewhere defining it as text? -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:15 PM To: Tomcat Users List Subject: RE: security hole on windows tomcat? Ok guys, What could I have turned on that would have allowed this bug to happen? I can make it happen in both tomcat and tomcat through apache. (Most recent of both) I can provide a site where it DOES happen so you guys can see what is happening. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 12:07 PM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? sorry, I don't know - I don't use Apache. This was just a thought that I had. I do not have this problem 4.1.24 on Win2k Charlie -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 11:49 AM To: Tomcat Users List Subject: RE: security hole on windows tomcat? Charlie, How do you fix this within apache? -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 10:15 AM To: 'Tomcat Users List' Subject: RE: security hole on windows tomcat? do you have apache on the front end and are you only mapping *.jsp where *.jsp%20 is not a match and apache would then serve the file as text? Charlie -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 9:22 AM To: Tomcat Users List Subject: Re: security hole on windows tomcat? Appending %20 to my Tomcat 4.1.1x URLs generates a 404. John Paul Sundling(Webdaddy) wrote: I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? Paul Sundling - 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]
aliases under tomcat
Hello, In order to internationalize a web application I would like several hosts to map to a unique directory i.e. fr.localhost and en.localhost to map to localhost. I have created an alias under the localhost host of tomcat which I have called fr.localhost. When I type in http://fr.localhost:8080/ in the address bar I get nothing (impossible to find the server). Can anyone help? Julien.
Re: JkMount causing problems
One thing is that DocumentRoot is typically not webapps but some directory under webapps, like webapps/ROOT or webapps/myApp or whatever. What URL is causing the 500 error? What do Tomcat's logs say? Also, try setting JkLogLevel to info, restarting, and trying it then. Also, the JkMounts you have are redundant...if you have /*, there's no need for the other two, as /* means send everything to Tomcat. John [EMAIL PROTECTED] wrote: When I have the JkMount statements in my virtual host directives the server gives me a internal 500 server error message and the error log doesn't say anything This is what I have in my virtual host directives VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3 JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost Any ideas? Thanks, bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: Problem in Integrating Tomcat with Apache
I am saying that you only need what you want to resolve. If you want to serve requests for 1.2.3.4, then you have to set Tomcat to do so. If you want to serve requests for www.foobar.com then you have to set Tomcat to do so. Tomcat is only set to serve requests by default for localhost. Exactly localhost. Not the IP address that goes to the same machine as localhost but exactly localhost. Tomcat has a defaultHost in server.xml that will take unresolved requests. The problem is that people, especially newbies, do not understand that localhost in a URL will NEVER work from a remote node. If you want machine B to access Tomcat on machine A, then you must give Tomcat a virtual host name that is NOT localhost, and you must use that name in the URL in the browser on machine B. That's the only way it can work. This can be either an IP address or a name like www.foobar.com. How you set up your Tomcat virtual hosts is up to you, you can use the Host element or the Alias directive within Host. My point is that Tomcat is fairly literal...just because localhost works does not automatically mean any.name.I.choose will work. John Geralyn M Hollerman wrote: John Turner wrote: localhost is a distinct virtual host name that ONLY WORKS ON THE LOCAL COMPUTER. some.ip.address is a distinct virtual host name, just like localhost or my.host.com. If you don't have that IP address set up as a hostname in Apache's httpd.conf and Tomcat's server.xml, you will not get a successful request. But...one thing that was never clear to me - are you saying that you need to have BOTH localhost AND the IP address set up as hostnames in httpd.conf and server.xml? If there's no localhost defined, are there some particular repercussions? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x with IIS 6 on Windows server 2003
Bala Kiran wrote: Yes. I did reboot the system. Did you try with IIS 6 on Windows Server 2003? Kiran - Original Message - From: vikas jain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 11, 2003 8:44 AM Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Did you reboot the system? From: Bala Kiran [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Date: Mon, 11 Aug 2003 08:01:46 -0500 I guess it does. Here is a posting on JGURU.com : http://jguru.com/forums/view.jsp?EID=1098654 Anybody who tried similar setup? Pls advise me. Do I need to go back to IIS 5.0 on Windows Server 2003? How soon Tomcat will have support for IIS 6.0? Kiran - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 4:26 AM Subject: RE: Tomcat 4.1x with IIS 6 on Windows server 2003 Hi, I think IIS 6 is not supported yet, it may at somepoint, but it doesn't work right now. Bye -reynir -Original Message- From: Bala Kiran [mailto:[EMAIL PROTECTED] Sent: 10. ágúst 2003 20:47 To: Tomcat Users List Subject: Tomcat 4.1x with IIS 6 on Windows server 2003 Has anybody configured Tomcat 4.1x with IIS 6.0 on Windows server 2003? Please advise me. I'm trying to configure the same, but I'm getting 404 - Page Can not be displayed error. I checked the log. It does not seem like raising any red flags. But, here is the log info. Any help is highly appreciated: === [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1018)]: Using registry. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1020)]: Using log file D:\Apache Group\Tomcat 4.1\logs\jk_iis.log. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1021)]: Using log level 0. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirect.dll. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1023)]: Using worker file D:\Apache Group\Tomcat 4.1\conf\workers.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file D:\Apache Group\Tomcat 4.1\conf\uriworkermap.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (88)]: Into wc_open [Sun Aug 10 10:59:43 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Sun Aug 10 10:59:43 2003] [jk_worker.c (228)]: build_worker_map, creating worker testWorker [Sun Aug 10 10:59:43 2003] [jk_worker.c (148)]: Into wc_create_worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance testWorker of ajp13 [Sun Aug 10 10:59:43 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Sun Aug 10 10:59:43 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init testWorker [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker testWorker contact is localhost:8009 [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 [Sun Aug 10 10:59:43 2003] [jk_worker.c (187)]: wc_create_worker, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (238)]: build_worker_map, removing old testWorker worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (250)]: build_worker_map, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (111)]: wc_open, done 1 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c
Tomcat 4.1.18 and SQUID
Tomcat Experts, I have the following setup. (1) Client App -- SQUID -- Tomcat 4.1.18 and (2) Client App -- Tomcat 4.1.18 Where Client App is a program, not a webuser. When I remove SQUID, the Client App seems to function normally. With SQUID, I get an HTTP/1.0 100 Continue going back to the Client App, and then the Client App times out. I am not doing any special filtering on SQUID. I've searched Google, Squid FAQ, Squid-users, the Tomcat-users archive. I'm at a loss, anyone else seen this? Any ideas? Any help appreciated. Thanks in advance! Brian Peterson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to compile class for JSP Upgrade 4.0 to 4.1
Hi - This might help: http://jakarta.apache.org/tomcat/faq/misc.html#compile and http://jakarta.apache.org/tomcat/faq/classnotfound.html (especially all of the threads relating to packageless classes) John Susanne Munker wrote: Hello, I´m a newbie here and please excuse my english I have a problem with one application, that works fine under 4.0.6, but with the 4.1 version of Tomcat I get the following error msg --- HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/local/jakarta-tomcat-4.1.24/work/Standalone/localhost/vorfahrt-test/WEB-INF/jsp/InternetAuskunftSuche01_jsp.java:7: package de.akdb.ok.vorfahrt does not exist [javac] import de.akdb.ok.vorfahrt.*; [javac] ^ [javac] 1 error ~ - My Tomcat Installation (4.1.24) works fine with all examples. Perhaps someone knows about the problem... thank you and kindly regards Susanne Munker - 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: security hole on windows tomcat?
I also cannot see this on Windows 2000, or on NetWare, using Tomcat 4.1.18, 4.1.24, or 4.1.26. On NetWare I tried going through Apache and through 8080, on Windows port 8080. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/11/03 10:01:47 AM Red Hat Linux. I just tried this on Windows 2000 Pro, Tomcat 4.1.27 (downloaded 30 minutes ago, .exe install, installed as service). http://localhost/john/test.jsp%20 = 404 John Paul Sundling wrote: which operating system? Paul John Turner wrote: Appending %20 to my Tomcat 4.1.1x URLs generates a 404. John Paul Sundling(Webdaddy) wrote: I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp shows page as expected http://192.168.1.54:8080/index.jsp%20 shows source code of index.jsp So how widespread is this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to pronounce Apache ?
It's true. The name comes from A PatCHy server. It was first developed as a series of patches to the NCSA (National Center for Supercomputer Applications) httpd 1.3 web server, and was informally named A PatCHy server. The first stable release, V1.0, was released on 1 December, 1995. This was essentially the NCSA 1.3 server with a number of fixes and enhancements. http://www.zdnet.com/anchordesk/story/story_1284.html -- *** * Rick Roberts* * Advanced Information Technologies, Inc. * * http://www.ait-web.com * *** Yiannis Mavroukakis wrote: Yes, if memory serves me right the server name was a wordplay on A patchy server :) -Original Message- From: Stuart MacPherson [mailto:[EMAIL PROTECTED] Sent: 11 August 2003 10:23 To: 'Tomcat Users List' Subject: RE: [OT] how to pronounce Apache ? Ah-patch-ee? -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 11 August 2003 10:23 To: tomcat mail list Subject: Re: [OT] how to pronounce Apache ? On Mon, Aug 11, 2003 at 02:49:52PM +0530, Antony paul wrote: : : I would like to know how to pronoune Apache in US English. I found two : pronounciations at http://dictionary.reference.com/search?q=apache which one : is right ?. Or any other forms ? If we're talking about the web server, look at the pronunciation given for the definition of A Native American people. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Japanese Characters in JSP's
Thank you, Punam, for the suggestion -- However this is already specified both in the HTML file, and my browser is setup and capable of viewing x-sjis. This is illustrated by the fact that the exact same file works perfectly under Tomcat so long as its file extension is .html and not .jsp. Only when Tomcat tries to compile the file into a Servlet does it give me any trouble. -Fred Hi Fred, In the html header u will have to set the char set as SHIFT JIS. And in the browser SHIFT JIS should be set. Regards, Punam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JkMount causing problems
Are you sure its set to info? If you're using the auto-generation feature of Tomcat, then your change is probably getting overwritten. There should be something if JkLogLevel is set to info. John [EMAIL PROTECTED] wrote: Yes I don't have a mod_jk.log being created with the level set to info -Original Message- From: Atristain, Bobbie J. Sent: Monday, August 11, 2003 3:03 PM To: [EMAIL PROTECTED] Subject: RE: JkMount causing problems yes -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:41 PM To: Tomcat Users List Subject: Re: JkMount causing problems You have no mod_jk.log, even with JkLogLevel set to info? John [EMAIL PROTECTED] wrote: The local host file doesn't say anything and I don't have a mod_jk.log being created. But I can't see any reason for it to not work. I have removed the 2nd 2 JkMount statements but the same thing is happening at http://placeanad.classifiedmarketplace.net No idea what is going on? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:28 PM To: Tomcat Users List Subject: Re: JkMount causing problems One thing is that DocumentRoot is typically not webapps but some directory under webapps, like webapps/ROOT or webapps/myApp or whatever. What URL is causing the 500 error? What do Tomcat's logs say? Also, try setting JkLogLevel to info, restarting, and trying it then. Also, the JkMounts you have are redundant...if you have /*, there's no need for the other two, as /* means send everything to Tomcat. John [EMAIL PROTECTED] wrote: When I have the JkMount statements in my virtual host directives the server gives me a internal 500 server error message and the error log doesn't say anything This is what I have in my virtual host directives VirtualHost *:443 DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps ServerName placeanad.classifiedmarketplace.net ErrorLog logs/placeanadclassi.com-error_log CustomLog logs/placeanadclassi.com-access_log common SSLEnable SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3 JkMount /* ajp13 JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost Any ideas? Thanks, bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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] - 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: NetBeans Debug in JSP Tag Files
Not annoying at all, all advices are welcome... in fact, I'll give it a try... Any suggestions to start (tutorials, samples, whatever - I don't know much about Eclipse)? Regards, Carlos - Original Message - From: Angus Mezick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 08, 2003 3:23 PM Subject: RE: NetBeans Debug in JSP Tag Files Don't mean to be annoying but this is EXTREMELY easy to do in eclipse. -Original Message- From: Carlos Cajina - Hotmail [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 6:19 PM To: Tomcat Users List Subject: Re: NetBeans Debug in JSP Tag Files Hi Shawn... Do you happen to have a How-To somewhere about integrating Netbeans Tomcat? :-) I don't want to use Netbeans' internal Tomcat server and I've been struggling a little to use both together... Regards, Carlos *** Oh, about your question, there's information at http://developers.sun.com/tools/javatools/tips/tip02-05-17.htm l that I think might be useful to you even if it's related to Forte for Java/Sun ONE Studio (you might also want to check out the viewlet)... - Original Message - From: Shawn Zernik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 08, 2003 12:40 PM Subject: NetBeans Debug in JSP Tag Files Tomcat-Users: I have the tag lib working. Thanks again. I was wondering if anyone could point me to a good tutorial on how to use NetBeans with Tomcat that's running. I can configure tomcat to allow debug connections and connect using NetBeans, but once I'm online with the server how do I trace through a JSP page? Shawn - 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: dynamic install and reload (resend)
I'm not sure if this will solve your problems, but take a look at the changes made to Tomcat 5's manager application. It allows for versioning. I haven't read about this much so I can't tell you the details. I just thought I'd alert you to it. Grab the latest 5.0.7 version. Seems to be pretty stable. Jake At 12:26 PM 8/11/2003 -0700, you wrote: Greetings, all: I'm looking for help with the following deployment scenarios: 1. Install a web app (.war) into a running tomcat 4.1.x 2. reload same web app after arbitrary changes to it For both of these scenarios: 1. deployment activity driven from ant script 2. ant script executed on host that is NOT the same host as the host that tomcat 4.1.x is running on; in other words, deploy from one host to another, or from 'off-host'. My motivation: This is driven by the desire to deploy essentially the same war to multiple environments (ie, staging, production) without having to hop around from host to host, lugging the war each time (and then still having to install or redeploy). I've been researching this, including reviewing the how-to (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html) and the mail archive, as well as trial and error (in 4.1.24 and 4.1.27) ... The closest I see I can get to my goal is off-host install of a war *manually* (ie, via browser, not via ant script) using manager app of target host Install using the provided custom ant task says it succeeds, and it shows up in the manager list of apps, but it isnt 'started' and I cant start it clicking 'start'; just seems to do nothing. I assume that reload expects the stuff to be reloaded to be located on the target host itself, as theres no property like the @war to point at a war referenced in any of the docs, and the task java src doesnt seem to support it either... Any help? If not, am I the only one with this goal - I mean, I doubt my motiviation is unique... anyone in a similar boat solving this in some way? (It seems like theres already a lot of work done toward this end, and if anyone actually wanted to do what I'm trying to do the support would be there ...) Regardless of the outcome I'd be happy to update the how-to (or whatever) to clarify this point for future people who may be curious like I was here; just let me know if theres any interest. Thanks, Steve ps - i didnt see this go thru to the archives (never even got my BCC) so i'm resending; i apologize if duplication or other problems occur... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Conn Pooling in 4.0.4 - Very Slow?
Howdy, I don't see a factory defined in your server.xml, so you're not really using connection pooling (I think). You're getting a new conn each time. Verify this by logging connection.toString() every time you get one and watching the memory addresses. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 11:38 AM To: Tomcat Users List Subject: Tomcat Conn Pooling in 4.0.4 - Very Slow? Hello, I have changed my server's connection pooling from the connection pooling software which was shipped with the application to using the JNDI connection pooling in Tomcat 4.0.4. The applications database access has slowed down considerably now that this is implemented. The parts of the application that don't do database access work fine (or even faster than the old app.) but those that need to do db access are very slow comparatively. Is there something I am missing? Is this what others have found? My server.xml looks like below: Thanks, Andoni. Context path= docBase=../myfile.war debug=0 reloadable=false Resource name=jdbc/myname auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myname parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameuser/name valuemyusername/value /parameter parameter namepassword/name value***/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@troi.myserver.com:1521:oracle9i/value /parameter /ResourceParams /Context 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: Japanese Characters in JSP's
Hi Fred, Then you must try the -encoding option of java.exe in configuration file of tomcat. Also you can try setting the encoding type to ISO 8859 1. Regards, Punam -Original Message- From: Fred Whipple [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 11:30 PM To: 'Tomcat Users List' Subject: RE: Japanese Characters in JSP's Thank you, Punam, for the suggestion -- However this is already specified both in the HTML file, and my browser is setup and capable of viewing x-sjis. This is illustrated by the fact that the exact same file works perfectly under Tomcat so long as its file extension is .html and not .jsp. Only when Tomcat tries to compile the file into a Servlet does it give me any trouble. -Fred Hi Fred, In the html header u will have to set the char set as SHIFT JIS. And in the browser SHIFT JIS should be set. Regards, Punam - 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 4.1.18 and SQUID
Let me try again. I've done a lot of testing, and reading. Tomcat doesn't honor a HTTP/1.0 Connection: keep-alive when it comes from SQUID. I've upgraded Tomcat to 4.1.27 (latest stable), and I am still seeing these errors. Any ideas? Brian Peterson -Original Message- From: Brian Peterson [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 1:39 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.18 and SQUID Tomcat Experts, I have the following setup. (1) Client App -- SQUID -- Tomcat 4.1.18 and (2) Client App -- Tomcat 4.1.18 Where Client App is a program, not a webuser. When I remove SQUID, the Client App seems to function normally. With SQUID, I get an HTTP/1.0 100 Continue going back to the Client App, and then the Client App times out. I am not doing any special filtering on SQUID. I've searched Google, Squid FAQ, Squid-users, the Tomcat-users archive. I'm at a loss, anyone else seen this? Any ideas? Any help appreciated. Thanks in advance! Brian Peterson - 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]
is there a way to download a jsp file from server without executing it?
hi is there a way to download a .jsp file without executing it? ie i need the content od jsp file, not the result of that jsp file. same question goes with .cgi, .asp, .pl etc regds Prince - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 08, 2003 9:34 AM Subject: Re: Question about ssl and tomcat You need to set the redirectPort attribute on the Connector to point to Apache's SSL port. However, since this defaults to 443, I'm guessing that the real problem is that you don't have your JkMount statements defined in your SSL VirtualHost. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings, I'm hosting a ssl site with mod_ssl on the apache server and I need to have it to connect to tomcat can't I change one of the connector lines in server.xml to redirect the port? Such as redirectPort- If this Connector is supporting non-SSL requests, and a request is received for which a matching security-constraint requires SSL transport, Catalina will automatically redirect the request to the port number specified here. You see my website works fine going through 8080 but when I try to get the https site to go through it - I get page can't be found or it displays code instead of working. Thanks, Bobbie Bobbie Atristain Internet Systems Administrator Media General, INC. 804.649.6156 - 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: integration of apache2.0.40 tomcat4.1.27
Also, a suggestion: - add a cleanout of the work directory on restarts or stops. John Mike Millson wrote: Here is my documentation on integrating apache + tomcat on RH 9.0. For admin simplicity, I keep the RedHat apache install. http://www.meritonlinesystems.com/docs/ On Mon, 2003-08-11 at 09:18, John Turner wrote: unplug wrote: I have installed RH9 and it contains apache2.0.40. Then I installed tomcat4.1.27 by binary. After that I want to integrate them to work together by using jk2. What is the easy way to integrate them? Use a connector. http://jakarta.apache.org/tomcat/faq/connectors.html Any document that shows step by step integration? http://jakarta.apache.org/tomcat/faq/connectors.html I found jakarta site have a related document about it. But I can't find the bin mod_jk2 for 2.0.40 in jakarta site. Where can I find mod_jk2 for 2.0.40? Any guide line to build it myself? I wonder why jakarta site doesn't have mod_jk2-2.0.40 for download. Because the 2.0.40 included with RH default installations is a munged Apache distribution. In my opinion, you shouldn't use it, and instead should build and install Apache from source. But that's me. If you want to use RH's 2.0.40, you will need to download the connector source from here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/ and build your .so file yourself against the 2.0.40 distribution that you have. You will need to know the location of apxs. Typcially, the steps for building the .so files from source are: 1. unpack source 2. find buildconf.sh 3. execute buildconf.sh 4. execute configure like this: ./configure --with-apxs=/some/path/to/apxs 5. make 6. make install If step #6 doesn't work for you, and step #5 was successful, then do a find for mod_jk*.so and when you find it, copy it to your Apache modules directory. John - 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]
testing ezmlm - do not reply
tesing email manager ezmlm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1x with IIS 6 on Windows server 2003
Did you reboot the system? From: Bala Kiran [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 4.1x with IIS 6 on Windows server 2003 Date: Mon, 11 Aug 2003 08:01:46 -0500 I guess it does. Here is a posting on JGURU.com : http://jguru.com/forums/view.jsp?EID=1098654 Anybody who tried similar setup? Pls advise me. Do I need to go back to IIS 5.0 on Windows Server 2003? How soon Tomcat will have support for IIS 6.0? Kiran - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, August 11, 2003 4:26 AM Subject: RE: Tomcat 4.1x with IIS 6 on Windows server 2003 Hi, I think IIS 6 is not supported yet, it may at somepoint, but it doesn't work right now. Bye -reynir -Original Message- From: Bala Kiran [mailto:[EMAIL PROTECTED] Sent: 10. ágúst 2003 20:47 To: Tomcat Users List Subject: Tomcat 4.1x with IIS 6 on Windows server 2003 Has anybody configured Tomcat 4.1x with IIS 6.0 on Windows server 2003? Please advise me. I'm trying to configure the same, but I'm getting 404 - Page Can not be displayed error. I checked the log. It does not seem like raising any red flags. But, here is the log info. Any help is highly appreciated: === [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1018)]: Using registry. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1020)]: Using log file D:\Apache Group\Tomcat 4.1\logs\jk_iis.log. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1021)]: Using log level 0. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirect.dll. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1023)]: Using worker file D:\Apache Group\Tomcat 4.1\conf\workers.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1024)]: Using worker mount file D:\Apache Group\Tomcat 4.1\conf\uriworkermap.properties. [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 3 [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=testWorker was added [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 3 rules [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (88)]: Into wc_open [Sun Aug 10 10:59:43 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Sun Aug 10 10:59:43 2003] [jk_worker.c (228)]: build_worker_map, creating worker testWorker [Sun Aug 10 10:59:43 2003] [jk_worker.c (148)]: Into wc_create_worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance testWorker of ajp13 [Sun Aug 10 10:59:43 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Sun Aug 10 10:59:43 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init testWorker [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker testWorker contact is localhost:8009 [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init [Sun Aug 10 10:59:43 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 [Sun Aug 10 10:59:43 2003] [jk_worker.c (187)]: wc_create_worker, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (238)]: build_worker_map, removing old testWorker worker [Sun Aug 10 10:59:43 2003] [jk_worker.c (250)]: build_worker_map, done [Sun Aug 10 10:59:43 2003] [jk_worker.c (111)]: wc_open, done 1 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Sun Aug 10 10:59:43 2003] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /localhost/examples/jsp/index.html [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/localhost/examples/jsp/index.html' [Sun Aug 10 10:59:43 2003] [jk_uri_worker_map.c (599)]: