Importing server certificate
Hi. I'm creating a client web service against an external server through https. I have the server certificate (.cer) but I don´t know how to import it into tomcat. Thanks. Responses to [EMAIL PROTECTED]
Interrupted system call and Tomcat dies
Hi, I have 2 webapps, one of them is file upload/download application. Both apps use single sign on. If I go to this file manager app from another webapp and don't do anything; leave it idle, Tomcat server occasionaly shutsdown with the following Exception: StandardServer.await: accept: java.io.IOException: Interrupted system call java.io.IOException: Interrupted system call at gnu.java.net.PlainSocketImpl.accept(gnu.java.net.PlainSocketImpl) (/usr/lib/libgcj.so.6.0.0) at gnu.java.net.PlainSocketImpl.accept(java.net.SocketImpl) (/usr/lib/libgcj.so.6.0.0) at java.net.ServerSocket.implAccept(java.net.Socket) (/usr/lib/libgcj.so.6.0.0) at java.net.ServerSocket.accept() (/usr/lib/libgcj.so.6.0.0) at org.apache.catalina.core.StandardServer.await() (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.startup.Catalina.await() (/usr/lib/libcatalina-5.0.30.jar.so) at org.apache.catalina.startup.Catalina.start() (/usr/lib/libcatalina-5.0.30.jar.so) at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (/usr/lib/libgcj.so.6.0.0) at org.apache.catalina.startup.Bootstrap.start() (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) at org.apache.catalina.startup.Bootstrap.main(java.lang.String[]) (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) 9-Jul-06 6:29:32 AM org.apache.catalina.core.StandardService stop() INFO: Stopping service Tomcat-Apache Anyone could give me a hint? I have the following versions: jdk: 1.4.2 Linux Fedora Core 4 Tomcat 5.0.30 Thanks very much for any input Seetha - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: users digest attachment problem
Eickvonder Bjoern wrote: > Hi, > > I've subscribed the tomcat users digest mailing list, so that I regulary > receive one mail containing the single messages as attachments. > Now since the 26.06.2006 the attachments do neither show the subject, > nor the from-address any more. All attachments are listed as "Unbenannte > Anlage" (unnamed attachment). The last digest I received where this was > working correctly is dated 24 Jun 2006 16:42:08. > I'm using Windows 2000, MS Outlook 2003. Did something change within the > tomcats mailing list around that date? All other digests I receive like > jakarta commons or struts are just working fine. Yes it did. There was a change made that was meant to add the in-reply-to header so you could follow threads. That part of ezmlm wasn't too well documented and what ended up happening was that only the in-reply-to header is now included on the digest. There is a JIRA issue about this (http://issues.apache.org/jira/browse/INFRA-793?page=all) and it should be fixed soon. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Interrupted system call and Tomcat dies
> -Original Message- > From: Seetha Rao [mailto:[EMAIL PROTECTED] > Sent: Monday, July 10, 2006 7:09 AM > To: users@tomcat.apache.org > Subject: Interrupted system call and Tomcat dies > > Hi, > > I have 2 webapps, one of them is file upload/download application. Both > apps > use single sign on. > If I go to this file manager app from another webapp and don't do > anything; > leave it idle, Tomcat server occasionaly shutsdown with the following > Exception: > > StandardServer.await: accept: java.io.IOException: Interrupted system call > java.io.IOException: Interrupted system call >at gnu.java.net.PlainSocketImpl.accept(gnu.java.net.PlainSocketImpl) > (/usr/lib/libgcj.so.6.0.0) >at gnu.java.net.PlainSocketImpl.accept(java.net.SocketImpl) > (/usr/lib/libgcj.so.6.0.0) >at java.net.ServerSocket.implAccept(java.net.Socket) > (/usr/lib/libgcj.so.6.0.0) >at java.net.ServerSocket.accept() (/usr/lib/libgcj.so.6.0.0) >at org.apache.catalina.core.StandardServer.await() > (/usr/lib/libcatalina-5.0.30.jar.so) >at org.apache.catalina.startup.Catalina.await() > (/usr/lib/libcatalina-5.0.30.jar.so) >at org.apache.catalina.startup.Catalina.start() > (/usr/lib/libcatalina-5.0.30.jar.so) >at java.lang.reflect.Method.invoke(java.lang.Object, > java.lang.Object[]) > (/usr/lib/libgcj.so.6.0.0) >at org.apache.catalina.startup.Bootstrap.start() > (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) >at org.apache.catalina.startup.Bootstrap.main(java.lang.String[]) > (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) >at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) >at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) > 9-Jul-06 6:29:32 AM org.apache.catalina.core.StandardService stop() > INFO: Stopping service Tomcat-Apache > > Anyone could give me a hint? > > I have the following versions: > > jdk: 1.4.2 Are you certain? The stack trace indicates the gnu JVM. Use the Sun JVM instead. > Linux Fedora Core 4 > Tomcat 5.0.30 > > Thanks very much for any input > Seetha > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Tim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URGENT HELP NEEDED: mod_jk loadbalancing issues
Each Tomcat machine is running in 512 MB Max. (We recently increased that to ~850 MB. We are trying not to go up to far to avoid prolonged garbage collector pauses) CPU, I/O utilization under heavy loads is not excessive. 80% max usually 60% Max. thread settings are default. I was thinking to bump it by 35-50% as well as the backlog. BTW - What would be the impoact/side effects of increasing the Connectors max threads and backlog size. Thanks, Edmon _ What is your load average under these circumstance? Is each of the 10 tomcats on a seperate physical machine? What are your max thread settings in Tomcat? Are your tomcat machines CPU bound or I/O bound under full load? Alex On 7/9/06, Edmon Begoli <[EMAIL PROTECTED]> wrote: > > Hi, > > First of all - thanks Rainer for willing to look into this issue. > > Environment description: > > Web Server: Apache 2.0.52 > mod_jk: 1.2.15 > OS: RedHat ES 4.2 > App. Server: Tomcat 5.5.15 > > Cluster topology: 4 webservers with mod_jk doing sticky loadbalancing into > 10 tomcats > > MOD_JK Configuration: Pretty much basic mod_jk and Tomcat settings for > AJP13 > > Description of the issue: > > Under very heavy loads for our standards (about thousand of concurrent > users) > we start seeing errors (listed at end botton of this e-mail) in the mod_jk > error log. > > Our concern is mod_jk behavior on the web server. We closely monitor > apache > and Apache itself is not under heavy stress. However, shortly after we > start > seeing these messages in the mod_jk's error log, web server becomes > unresponsive > and we have to re-start it. > > While the web server server is unresponsive we monitor 8009 port - nothing > is going on it. > > We monitor Tomcats and they are fine. > > As soon as we re-start web servers traffic resumes. Then under heavy loads > things break again > > We are planning on increasing the number of max threads on the Tomcats' > AJP connector to imrpove the throughput of the Tomcats. > > However, our concern is with the web server side lock ups. It seems that > mod_jk cannot > recover after this oversaturation. > > > TAIL -F FROM THE MOD_JK LOG RIGHT BEFORE IT "DIES" > __ > > > [Fri Jul 07 09:59:43 2006] [info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recoverable operation attempt=0 > > [Fri Jul 07 09:59:43 2006] [info] ajp_service::jk_ajp_common.c (1749): > Sending request to tomcat failed, recoverable operation attempt=1 > > [Fri Jul 07 09:59:44 2006] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the > response message from tomcat, network problems or tomcat is down ( REMOVED>:8009), err=-110 > > [Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503): > Tomcat is down or refused connection. No response has been sent to the > client (yet) > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recoverable operation attempt=0 > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1749): > Sending request to tomcat failed, recoverable operation attempt=1 > > [Fri Jul 07 09:59:44 2006] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the > response message from tomcat, network problems or tomcat is down ( REMOVED>:8009), err=-110 > > [Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503): > Tomcat is down or refused connection. No response has been sent to the > client (yet) > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recoverable operation attempt=0 > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1749): > Sending request to tomcat failed, recoverable operation attempt=1 > > [Fri Jul 07 09:59:44 2006] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the > response message from tomcat, network problems or tomcat is down ( REMOVED>:8009), err=-110 > > [Fri Jul 07 09:59:44 2006] [error] ajp_get_reply::jk_ajp_common.c (1503): > Tomcat is down or refused connection. No response has been sent to the > client (yet) > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recoverable operation attempt=0 > > [Fri Jul 07 09:59:44 2006] [info] ajp_service::jk_ajp_common.c (1749): > Sending request to tomcat failed, recoverable operation attempt=1 > > [Fri Jul 07 09:59:45 2006] [error] > ajp_connection_tcp_get_message::jk_ajp_common.c (961): Can't receive the > response message from tomcat, network problems or tomcat is down ( REMOVED>:8009), err=-110 > > [Fri Jul 07 09:59:45 2006] [error] ajp_get_reply::jk_ajp_common.c (1503): > Tomcat is down or refused connection. No response has been sent to the > client (yet) > > [Fri Jul 07 09:59:45 2006] [info] ajp_service::jk_ajp_common.c (1721): > Receiving from tomcat failed, recove
Installing My Own DirContext
Hi, I need to be able to install my own DirContext into all applications that start within Tomcat so that I can get content that is outside the web app globally for all web apps. Also I would like to be able to install one as well for each web app independent of each other. How would I go about doing this? Mike Wannamaker Senior Software Developer Hummingbird Ltd. 552 Princess St, Kingston, ON, K7L 1C7 Tel: (613) 548-4355 x4535 Fax (613) 548-7801 E-Mail: Mike Wannamaker www.hummingbird.com IMPORTANT NOTICE: This communication is privileged and contains confidential information for the sole use of the intended recipient(s). Any unauthorized disclosure, copying or use of this communication is strictly prohibited. If you have received this message in error, please contact the sender and delete this message without printing it or otherwise retaining a copy. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Interrupted system call and Tomcat dies
Thanks for your reply. I had overlooked that it is refering to gnu java classes. Trying to get Sun's JVM installed Regards Seetha -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 4:41 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Interrupted system call and Tomcat dies > -Original Message- > From: Seetha Rao [mailto:[EMAIL PROTECTED] > Sent: Monday, July 10, 2006 7:09 AM > To: users@tomcat.apache.org > Subject: Interrupted system call and Tomcat dies > > Hi, > > I have 2 webapps, one of them is file upload/download application. Both > apps > use single sign on. > If I go to this file manager app from another webapp and don't do > anything; > leave it idle, Tomcat server occasionaly shutsdown with the following > Exception: > > StandardServer.await: accept: java.io.IOException: Interrupted system call > java.io.IOException: Interrupted system call >at gnu.java.net.PlainSocketImpl.accept(gnu.java.net.PlainSocketImpl) > (/usr/lib/libgcj.so.6.0.0) >at gnu.java.net.PlainSocketImpl.accept(java.net.SocketImpl) > (/usr/lib/libgcj.so.6.0.0) >at java.net.ServerSocket.implAccept(java.net.Socket) > (/usr/lib/libgcj.so.6.0.0) >at java.net.ServerSocket.accept() (/usr/lib/libgcj.so.6.0.0) >at org.apache.catalina.core.StandardServer.await() > (/usr/lib/libcatalina-5.0.30.jar.so) >at org.apache.catalina.startup.Catalina.await() > (/usr/lib/libcatalina-5.0.30.jar.so) >at org.apache.catalina.startup.Catalina.start() > (/usr/lib/libcatalina-5.0.30.jar.so) >at java.lang.reflect.Method.invoke(java.lang.Object, > java.lang.Object[]) > (/usr/lib/libgcj.so.6.0.0) >at org.apache.catalina.startup.Bootstrap.start() > (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) >at org.apache.catalina.startup.Bootstrap.main(java.lang.String[]) > (/usr/lib/libtomcat-bootstrap-5.0.30.jar.so) >at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) >at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) > 9-Jul-06 6:29:32 AM org.apache.catalina.core.StandardService stop() > INFO: Stopping service Tomcat-Apache > > Anyone could give me a hint? > > I have the following versions: > > jdk: 1.4.2 Are you certain? The stack trace indicates the gnu JVM. Use the Sun JVM instead. > Linux Fedora Core 4 > Tomcat 5.0.30 > > Thanks very much for any input > Seetha > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Tim - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Request forwarding ...
Hi, Is there a way to forward a request to another URL by changing Tomcat configuration file(s)? For example, the MyServlet.class used to be in old.war and the user can execute the servlet by http://host/old/servlet/MyServlet Now, the MyServlet.class has been moved to new.war. Is there a way to map http://host/old/servlet/MyServlet to http://host/new/servlet/MyServlet by changing Tomcat configuration file(s)? Thank you in advance for your help. _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection in tomcat
Look into mod_rewrite. On 6/29/06, santhoshs <[EMAIL PROTECTED]> wrote: Hi Everybody, Am using Tomcat 5.0 . My requirement is to redirect the URL "http://username.mysite.com"; to "http://username.site.com/application.do?login_name=username";. The URL should be nice URL , in the sense the New URL should not be reflected in the address bar. My Question is whether should i use apache for this redirection or can i achieve this using tomcat itself ? If so what should I do to achieve this ? Thanks and Regards, Santhosh -- View this message in context: http://www.nabble.com/URL-Redirection-in-tomcat-tf1867090.html#a5101383 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing My Own DirContext
Good Morning Mike For listing applications and determining properties/attributes for each take a look at the features and functions available thru the Manager webapp http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#List%20Currently%20Deployed%20and%20Installed%20Applications HTH, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Mike Wannamaker" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Monday, July 10, 2006 8:29 AM Subject: Installing My Own DirContext > Hi, > > I need to be able to install my own DirContext into all applications that > start within Tomcat so that I can get content that is outside the web app > globally for all web apps. Also I would like to be able to install one as > well for each web app independent of each other. > > How would I go about doing this? > > Mike Wannamaker > Senior Software Developer > Hummingbird Ltd. > 552 Princess St, Kingston, ON, K7L 1C7 > Tel: (613) 548-4355 x4535 > Fax (613) 548-7801 > E-Mail: Mike Wannamaker > > www.hummingbird.com > > IMPORTANT NOTICE: This communication is privileged and contains confidential > information for the sole use of the intended recipient(s). Any unauthorized > disclosure, copying or use of this communication is strictly prohibited. If > you have received this message in error, please contact the sender and > delete this message without printing it or otherwise retaining a copy. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: Installing My Own DirContext
I'm not sure I understand. That shows installed applications? What I want is through some config settings install my own DirContext.class so that when the web app is trying to get resources like pages, it'll use my DirContext to try to find them. This way I can have some common files located outside each web application and not have to have them installed within the web app itself. IE: My DirContext will provide aliasing so that I can do this Alias "login=c:\tomcat\webres\login" so that a request to something like http://myapp/mycontext/login/login.jsp will be given to my DirContext class and I'll look for c:\tomcat\webres\login\login.jsp and return it if found. Mike Wannamaker Senior Software Developer Hummingbird Ltd. 552 Princess St, Kingston, ON, K7L 1C7 Tel: (613) 548-4355 x4535 Fax (613) 548-7801 E-Mail: Mike Wannamaker www.hummingbird.com IMPORTANT NOTICE: This communication is privileged and contains confidential information for the sole use of the intended recipient(s). Any unauthorized disclosure, copying or use of this communication is strictly prohibited. If you have received this message in error, please contact the sender and delete this message without printing it or otherwise retaining a copy. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: July 10, 2006 9:28 AM To: [EMAIL PROTECTED] Cc: Tomcat Users List Subject: Re: Installing My Own DirContext Good Morning Mike For listing applications and determining properties/attributes for each take a look at the features and functions available thru the Manager webapp http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#List%20Currently% 20Deployed%20and%20Installed%20Applications HTH, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Mike Wannamaker" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Monday, July 10, 2006 8:29 AM Subject: Installing My Own DirContext > Hi, > > I need to be able to install my own DirContext into all applications that > start within Tomcat so that I can get content that is outside the web app > globally for all web apps. Also I would like to be able to install one as > well for each web app independent of each other. > > How would I go about doing this? > > Mike Wannamaker > Senior Software Developer > Hummingbird Ltd. > 552 Princess St, Kingston, ON, K7L 1C7 > Tel: (613) 548-4355 x4535 > Fax (613) 548-7801 > E-Mail: Mike Wannamaker > > www.hummingbird.com > > IMPORTANT NOTICE: This communication is privileged and contains confidential > information for the sole use of the intended recipient(s). Any unauthorized > disclosure, copying or use of this communication is strictly prohibited. If > you have received this message in error, please contact the sender and > delete this message without printing it or otherwise retaining a copy. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat Embedded
I wish to run Tomcat from within my own JVM. I would like it to run just like Tomcat does today, however I'd just like to setup the various paths, for like web app root directory, config directory, lib directory etc Is there anyway to do this easily? Like I said I just want to create an instance of Tomcat/Catalina and setProperties(...); and then call start(); Any help is appreciated. Mike Wannamaker Senior Software Developer Hummingbird Ltd. 552 Princess St, Kingston, ON, K7L 1C7 Tel: (613) 548-4355 x4535 Fax (613) 548-7801 E-Mail: Mike Wannamaker www.hummingbird.com IMPORTANT NOTICE: This communication is privileged and contains confidential information for the sole use of the intended recipient(s). Any unauthorized disclosure, copying or use of this communication is strictly prohibited. If you have received this message in error, please contact the sender and delete this message without printing it or otherwise retaining a copy. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
forward SSL-Certificate to ActionContext with Tomcat Native
Hello guys, I verify clients by Certificate in my Application. X509Certificate[] certs = (X509Certificate[])context.getRequest().getAttribute("javax.servlet.request.X509Certificate"); this works fine with connector like: but i want to use Apache Portable Runtime with Tomcat (libtcnative). because APR comes with OpenSSL specific Connector attributes i have to change connector to: ClientAuth works fine with Tomcat but Certificate got not forwarded to ActionContext: so X509Certificate[] certs = (X509Certificate[])context.getRequest().getAttribute("javax.servlet.request.X509Certificate"); returns null. i use: Apache Tomcat 5.5.17 OpenSSL 0.9.7e Tomcat Native 1.1.3 greets Florian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using "java -server" in Tomcat start-up script
Hi, I saw a performance gain by using "java -server" compared to "java". I also searched on google and found that it increase performance of application by providing more resources to program (CPU, RAM, etc.) I was wonder why it is not used in starting up Tomcat (by default). Any one has experienced performace gain by doing that? Thanks. Regards, Dhaval __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error configuring SSL with Tomcat
Hi, I am trying to get Tomcat to work with SSL on a Windows machine. I have a root certificate and site certificte from Equifax which i converted to binary and stored it in the keystore . I stored the root certificate under the alias geotrust and the site certificate with alias tomcat. I have also modified the server.xml mentioning where the keystore file is and the password. Now, i get the following error dumped into the catalina log file... Any insight on what has gone wrong here ? Jul 10, 2006 1:21:31 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-80 Jul 10, 2006 1:21:31 AM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-443 Jul 10, 2006 1:21:31 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:113) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) Jul 10, 2006 1:21:31 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket Jul 10, 2006 1:21:31 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:113) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:407) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:70) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running multiple instances of 5.5x as Win services
Hi all, I would like to run multiple instances of Tomcat on a single Windows box for the purposes of instantiating multiple jvm's (to keep the heap small and use more of the system's available memory and cpu) and then balance between them. I currently have one instance setup as a service - this was put in at install time by the 5.5x installer, but I would like to add an additional service that will run the same web apps and use the same binaries, while using alternate configuration files. Any tips? Thanks, -marc __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(assunto em branco)
Hello, I don't English very well neither about Tomcat. I have a problem with my application and I am not finding nothing to help me. My application when I log in creates 3 sessions and because of this I can´t restore the informations about the user. When I log in localy I don't have any problem. What could be happening? thanks Jose - Mensagem verificada pelo software de Anti-Virus McAfee. FAMERP - STI - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of 5.5x as Win services
Hi again, sorry, but I forgot to mention that my distribution did not include the frequently mentioned service.bat. I would be willing to give this a shot if anybody would be so kind as to provide a link. Also, can someone explain the difference between CATALINA_HOME and CATALINA_BASE environment variables? Thanks, -marc --- Marc Richards <[EMAIL PROTECTED]> wrote: > Hi all, I would like to run multiple instances of > Tomcat on a single Windows box for the purposes of > instantiating multiple jvm's (to keep the heap small > and use more of the system's available memory and > cpu) > and then balance between them. I currently have one > instance setup as a service - this was put in at > install time by the 5.5x installer, but I would like > to add an additional service that will run the same > web apps and use the same binaries, while using > alternate configuration files. > > Any tips? > > Thanks, > > -marc > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running multiple instances of 5.5x as Win services
> From: Marc Richards [mailto:[EMAIL PROTECTED] > Also, can someone explain the difference between > CATALINA_HOME and CATALINA_BASE environment variables? Best done with an example - here's a snippet of my startup script for one of my Tomcat instances. -- snip -- set JAVA_HOME=C:\java\jdk1.5.0_04 set CATALINA_HOME=C:\java\Tomcat50 set CATALINA_BASE=c:\cattery\bodington2 cd %CATALINA_HOME%\bin start catalina run -- snip -- CATALINA_HOME is where the Tomcat distribution is placed. CATALINA_BASE is where your instance files are stored - conf, logs, temp, webapps and work directories should be under here. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 Load Balancing Rule Classes
Hi, Greetings to all in my first mail on the list. I've read the article on "How To Ask Questions The Smart Way" - will try to adhere to it, but please don't mind a few misses :). First with some background. This request is regarding the classes that implements the rules, as used in the rules.xml file in the balancer webapp that ships with Tomcat 5.5. I'm configuring a Tomcat setup with one load balancer and 3 workers in one cluster. The setup details are : OS : Linux (2.6.11-1.1369_FC4) Tomcat : 5.5 (all) JDK : 1.5 I've being studying through the configuration references from :- - the Tomcat load balancing HOW-To - http://tomcat.apache.org/tomcat-5.5-doc/printer/balancer-howto.html - the Tomcat clustering HOW-To - http://tomcat.apache.org/tomcat-5.5-doc/printer/cluster-howto.html - an article on OnJava.com - http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html (for Tomcat 5) However, what I find is that Tomcat 5.5 by defaults supports basic Rule Classes like AcceptEverythingRule, URLStringMatchRule etc. I am trying to build a load balancer which enforces the following :- - chooses from the available "alive" workers from the cluster, in a Round-Robin / Least-Load-First manner - implements session affinity - includes fail over support with session replication, so there is no loss of session data - The transition is transparent to the user. Hence, whatever be the "redirectURL", the URL in the browser should not change As you might expect, the problem is that, this kind of behavior is not available with the the standard Tomcat installation. Also, is the transparent transition possible? I read in the load balancer HOW-To that this list is the best place to inquire for latest Rule classes and details. I've also browsed through the archives, till April 2006 (it was then that I realized that a search feature there would greatly help!), but did not get this answer. I also realize that I can implement the org.apache.webapp.balancer.Rule interface to generate Rules that I want (in fact that is what the article on OnJava has provided). But what I was inquisitive about was whether such standard Rule classes have been implemented? Are there any pointers to such resources? On another note, I wanted to ask the clustering and load-balancing gurus, whether I've taken up the correct approach. I see that many load balancing tutorials focus on Apache as the load balancer with Tomcat as the worker in clusters. But since most of them are old, I assume the new Tomcat 5.5 features did not make it then - hence the question. Please could anyone on the list, help me with these problems? Any pointers to resources would be a great help. In case there is anything else that must have mentioned that would ease thinking on the problem, do ask me for it. Thanks a lot, -- __ Madhur Kumar Tanwani - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of 5.5x as Win services
Instructions for running multiple Tomcat services have been posted to this list before: http://www.nabble.com/Re%3A-running-two-instances-of-tomcat-p3560229.html service.bat and other useful batch files are not included in the Windows setup program, for some reason. Download the .zip Tomcat distribution and copy any .bat files you're missing from the bin directory. These questions have been asked several times before. You can save time by searching the mailing list archives here: http://www.nabble.com/Tomcat---User-f342.html or here: http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2 -- Len On 7/10/06, Marc Richards <[EMAIL PROTECTED]> wrote: Hi again, sorry, but I forgot to mention that my distribution did not include the frequently mentioned service.bat. I would be willing to give this a shot if anybody would be so kind as to provide a link. Also, can someone explain the difference between CATALINA_HOME and CATALINA_BASE environment variables? Thanks, -marc --- Marc Richards <[EMAIL PROTECTED]> wrote: > Hi all, I would like to run multiple instances of > Tomcat on a single Windows box for the purposes of > instantiating multiple jvm's (to keep the heap small > and use more of the system's available memory and > cpu) > and then balance between them. I currently have one > instance setup as a service - this was put in at > install time by the 5.5x installer, but I would like > to add an additional service that will run the same > web apps and use the same binaries, while using > alternate configuration files. > > Any tips? > > Thanks, > > -marc > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with sessions
Hi all, First: I don't know English very well. Second: I am using Tomcat 5.5.17 and when I run my application I notice that Tomcat creates more than 1 session when an user log in my application. And when this happen I can't recover information about the users and the application's applets can't load correctly. My doubt is if I have to make some configurations in Tomcat. Localy and accessing the server by the ip address plus the port plus the applications's name the application runs normally. The problem just happen when I access my application by a virtual host installed in my network(another server). What could be happening? thanks Jose - Mensagem verificada pelo software de Anti-Virus McAfee. FAMERP - STI - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running multiple instances of 5.5x as Win services
Thanks so much. I did search google of course, but did not know the location of these archives - I notice there are instructions at the bottom of distribution emails detailing how to post new items and get help, perhaps a link to the searchable archives would be a helpful addition to that list? -marc --- Len Popp <[EMAIL PROTECTED]> wrote: > Instructions for running multiple Tomcat services > have been posted to > this list before: > http://www.nabble.com/Re%3A-running-two-instances-of-tomcat-p3560229.html > > service.bat and other useful batch files are not > included in the > Windows setup program, for some reason. Download the > .zip Tomcat > distribution and copy any .bat files you're missing > from the bin > directory. > > These questions have been asked several times > before. You can save > time by searching the mailing list archives here: > http://www.nabble.com/Tomcat---User-f342.html > or here: > http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2 > > -- > Len > > On 7/10/06, Marc Richards <[EMAIL PROTECTED]> wrote: > > Hi again, sorry, but I forgot to mention that my > > distribution did not include the frequently > mentioned > > service.bat. I would be willing to give this a > shot > > if anybody would be so kind as to provide a link. > > > > Also, can someone explain the difference between > > CATALINA_HOME and CATALINA_BASE environment > variables? > > > > Thanks, > > > > -marc > > > > --- Marc Richards <[EMAIL PROTECTED]> wrote: > > > > > Hi all, I would like to run multiple instances > of > > > Tomcat on a single Windows box for the purposes > of > > > instantiating multiple jvm's (to keep the heap > small > > > and use more of the system's available memory > and > > > cpu) > > > and then balance between them. I currently have > one > > > instance setup as a service - this was put in at > > > install time by the 5.5x installer, but I would > like > > > to add an additional service that will run the > same > > > web apps and use the same binaries, while using > > > alternate configuration files. > > > > > > Any tips? > > > > > > Thanks, > > > > > > -marc > > > > > > > __ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > > protection around > > > http://mail.yahoo.com > > > > > > > > > - > > > To start a new topic, e-mail: > > > users@tomcat.apache.org > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > __ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > - > > To start a new topic, e-mail: > users@tomcat.apache.org > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running multiple instances of 5.5x as Win services
Thanks for the quick answer Peter, this was my suspicion - glad to have it confirmed. -marc --- Peter Crowther <[EMAIL PROTECTED]> wrote: > > From: Marc Richards [mailto:[EMAIL PROTECTED] > > Also, can someone explain the difference between > > CATALINA_HOME and CATALINA_BASE environment > variables? > > Best done with an example - here's a snippet of my > startup script for > one of my Tomcat instances. > > -- snip -- > set JAVA_HOME=C:\java\jdk1.5.0_04 > set CATALINA_HOME=C:\java\Tomcat50 > set CATALINA_BASE=c:\cattery\bodington2 > cd %CATALINA_HOME%\bin > start catalina run > -- snip -- > > CATALINA_HOME is where the Tomcat distribution is > placed. CATALINA_BASE > is where your instance files are stored - conf, > logs, temp, webapps and > work directories should be under here. > > - Peter > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirection in tomcat
On 6/29/06, santhoshs <[EMAIL PROTECTED]> wrote: Am using Tomcat 5.0 . My requirement is to redirect the URL "http://username.mysite.com"; to "http://username.site.com/application.do?login_name=username";. My Question is whether should i use apache for this redirection or can i achieve this using tomcat itself ? If so what should I do to achieve this ? You certainly don't need apache, but you do need to read the servlet spec about welcome files and forwarding. :-) Also, if the originating URL is the root of your site, where is the value "username" coming from?? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error configuring SSL with Tomcat
Did you put the keystore file in correct location? Have you followed the steps properly as mentioned in the Tomcat - SSL Documentaion? - Manivannan Palanichamy http://geocities.com/manivannan57 -- View this message in context: http://www.nabble.com/Error-configuring-SSL-with-Tomcat-tf1918879.html#a5254675 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error configuring SSL with Tomcat
Yes, the keystore file is in C:\Documents And Settings\user\.keystore . I have followed the steps in configuring SSL . --- manivannan_palanichamy <[EMAIL PROTECTED]> wrote: > > Did you put the keystore file in correct location? > Have you followed the steps properly as mentioned in > the Tomcat - SSL > Documentaion? > > - > Manivannan Palanichamy > http://geocities.com/manivannan57 > > > -- > View this message in context: > http://www.nabble.com/Error-configuring-SSL-with-Tomcat-tf1918879.html#a5254675 > Sent from the Tomcat - User forum at Nabble.com. > > > - > To start a new topic, e-mail: > users@tomcat.apache.org > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk
I'm still scheming up a way to handle this. One idea was to try and copy the manager web application from server/webapps and place it in to the regular webapps directory as manager-5028/ I don't know if this is any kind of security risk, but I'll worry about that after I get things working. Anyway, I also copied all the *.jar from server/lib and placed them in webapps/manager-5028/lib since I don't necessarily want to put them in shared/lib or common/lib in case I clobber something. It doesn't seem to work, I am getting a classNoFound Error stack trace, anyone got any ideas? java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) thanks -- brian On 7/8/06, Brian Munroe <[EMAIL PROTECTED]> wrote: I am trying to set up an environment that has both a Tomcat 5.5.17 and a Tomcat 5.0.28 instance running, accessed via Apache 2.0.58 + mod_jk. Can anyone recommend a URL layout to access the different Tomcat managers? My current configuration looks like this In httpd.conf - JkMount /manager/html* tc5028 In workers.properties worker.tc5028.type=ajp13 worker.tc5028.host=localhost worker.tc5028.port=8093 ... Which works great to access the 5.0.x manager, but how can set up a JkMount to hit the 5.5.x manager? thanks -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk
No, that won't work. Copying jar files from server/lib will cause classloader problems. There is a simpler way: 1. Rename manager.xml in conf/Catalina/localhost to manager-5028.xml 2. Change the path attribute in manager-5028.xml to manager-5028 3. Restart tomcat (or start if it's already stopped). 4. Change JkMount in httpd.conf to JkMount /manager-5028/html* tc5028 5. Do apachectl graceful to make httpd read the new config. When done, the manager for 5.0.28 will be http://localhost/manager-5028/html --David Brian Munroe wrote: I'm still scheming up a way to handle this. One idea was to try and copy the manager web application from server/webapps and place it in to the regular webapps directory as manager-5028/ I don't know if this is any kind of security risk, but I'll worry about that after I get things working. Anyway, I also copied all the *.jar from server/lib and placed them in webapps/manager-5028/lib since I don't necessarily want to put them in shared/lib or common/lib in case I clobber something. It doesn't seem to work, I am getting a classNoFound Error stack trace, anyone got any ideas? java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) thanks -- brian On 7/8/06, Brian Munroe <[EMAIL PROTECTED]> wrote: I am trying to set up an environment that has both a Tomcat 5.5.17 and a Tomcat 5.0.28 instance running, accessed via Apache 2.0.58 + mod_jk. Can anyone recommend a URL layout to access the different Tomcat managers? My current configuration looks like this In httpd.conf - JkMount /manager/html* tc5028 In workers.properties worker.tc5028.type=ajp13 worker.tc5028.host=localhost worker.tc5028.port=8093 ... Which works great to access the 5.0.x manager, but how can set up a JkMount to hit the 5.5.x manager? thanks -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk
On 7/10/06, David Smith <[EMAIL PROTECTED]> wrote: No, that won't work. Copying jar files from server/lib will cause classloader problems. There is a simpler way: 1. Rename manager.xml in conf/Catalina/localhost to manager-5028.xml 2. Change the path attribute in manager-5028.xml to manager-5028 3. Restart tomcat (or start if it's already stopped). 4. Change JkMount in httpd.conf to JkMount /manager-5028/html* tc5028 5. Do apachectl graceful to make httpd read the new config. When done, the manager for 5.0.28 will be http://localhost/manager-5028/html Nice, works like a champ. Thank you very much for your help! -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 Load Balancing Rule Classes
Madhur K Tanwani wrote: > I am trying to build a > load balancer which enforces the following :- >- chooses from the available "alive" workers from the cluster, > in a Round-Robin / Least-Load-First manner >- implements session affinity See: http://tomcat.apache.org/connectors-doc/ >- includes fail over support with session replication, so there is no > loss > of session data >- The transition is transparent to the user. Hence, whatever be the > "redirectURL", the URL in the browser should not change See: http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html > > On another note, I wanted to ask the clustering and load-balancing gurus, > whether I've taken up the correct approach. I see that many load balancing > tutorials focus on Apache as the load balancer with Tomcat as the worker > in clusters. But since most of them are old, I assume the new Tomcat 5.5 > features did not make it then - hence the question. You can use Apache2, mod_jk1.2 and Tomcat's session replication for what you plan to do. However session replication looks as easy as putting into web.xml, but actually keeping the webapp session serializable and small has to be kept in mind always. Cheers, Michael - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question on client authentication
Hi All, I've got a couple of questions on using client authentication with Tomcat. I have multiple clients that need to communicate with a single Tomcat server. It would be ideal if those clients could be authenticated before data is exchanged. 1) Does each client need a certificate signed by a trusted Certificate Authority, or can self signed certificates be used? 2) Is a client certificate bound to one particular hostname or IP address? In my case the clients would most likely be using DHCP. Thanks for any responses, Sean - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Not able to start server
I have two separate installations of tomcat. One is version 5.5 and the other is something I downloaded from www.coreservlets.com that is a preconfigured version of tomcat 5.5.9. I have two separate errors with these programs when I go to start up the server. A solution to either would be great. So which ever one seems like the best one to reply on. With the regular full version I get an error of the start up hangs after this line is printed: (Date and Time) org.apache.catalina.startup.Catalina start This happens early in the start up process and couldn't be more than 10 lines like that deep into the program. I think I managed to get all of the proper changes implemented to make the tomcat server run but I may have missed one. I've looked over the list on www.coreservlets.com website and I think I got all modifications placed correctly but I am a little grey in there in places. On the preconfigured version I get a different sort of error. The server runs through all of its set up lines from what I can tell but the program just runs straight through and I'm left with out a window for my server. I just tried running the program and I got the same hang state on the same line as I get for the full version of tomcat. I'm using port 80. Brian McRaven
url changes
I am setting up a website. Part of the site is employee blogs. As well as the blogs there will be forums, products, etc. making: http://www.company.com/blogs/employee.name http://www.company.com/forums/ http://www.company.com/products/product.name For the blogging software I chose Blojsom. Normally it installs into a blojsom folder in webapps. However its url is: http://www.company.com/blojsom/blogs/employee.name I would like to remove the blojsom folder. One way would be to install it to the root webapp folder. This however, is undesirable as it makes setting up the rest of the site difficult. I feel that there should be a way of configuring the web.xml in the WEB-INF file to give me the results I want. Also we don't have access to the server as they are using 3rd party hosting. If you need the web.xml (or any other file) posted then please ask. Thanks, Graham. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
starting with windows service
Recently i take over project developed by servlet. Currently whenever start the web server I have to click on the mycompany.bat file in CATALINA_HOME/bin folder mycompany.bat=== @echo off rem set CATALINA_OPTS=-Djava.security.debug=all cd %CATALINA_HOME%\bin\ catalina start -security pause === This way is different from how the tomcat starts up when starting tomcat from windows menu? How can I change the configuration so that the tomcat is going to start up just like when i click on mycompany.bat file? SK
problem accessing the webpages using specific hostname
Hi, I installed the tomcat server as a standalone server. I could access all the pages through the url http://localhost:8080.. but I cannot access it using the hostname(say http://xyz.abc.edu:8080) of the host on which I installed tomcat. Is there any configuration file in which I have to specify the hostname to get this to work? Thanks, Sruthi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem accessing the webpages using specific hostname
Hi, I installed the tomcat server as a standalone server. I could access all the pages through the url http://localhost:8080.. but I cannot access it using the hostname(say http://xyz.abc.edu:8080) of the host on which I installed tomcat. Is there any configuration file in which I have to specify the hostname to get this to work? Thanks, Sruthi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
Can you ping "xyz.ab.edu" from your pc? I am thinking the name resolutoin( ip -> pc name) is not working properly. SK - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, July 10, 2006 3:49 PM Subject: problem accessing the webpages using specific hostname > Hi, > > I installed the tomcat server as a standalone server. I could > access all the pages through the url http://localhost:8080.. > but I cannot access it using the hostname(say > http://xyz.abc.edu:8080) of the host on which I installed > tomcat. Is there any configuration file in which I have to > specify the hostname to get this to work? > > Thanks, > Sruthi > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
Yes, I could ping "xyz.ab.edu" from my pc, but not "xyz.ab.edu:8181" (8181 is the port number on which tomcat is receiving requests). If I use "telnet localhost 8181" from xyz.ab.edu, it lets me in... but "telnet xyz.ab.edu 8181" doesnt work. Thanks, Sruthi Can you ping "xyz.ab.edu" from your pc? I am thinking the name resolutoin( ip -> pc name) is not working properly. SK - Hide quoted text - - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Monday, July 10, 2006 3:49 PM Subject: problem accessing the webpages using specific hostname > Hi, > > I installed the tomcat server as a standalone server. I could > access all the pages through the url http://localhost:8080.. > but I cannot access it using the hostname(say > http://xyz.abc.edu:8080) of the host on which I installed > tomcat. Is there any configuration file in which I have to > specify the hostname to get this to work? > > Thanks, > Sruthi > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Yes, I could ping "xyz.ab.edu" from my pc, but not "xyz.ab.edu:8181" (8181 is the port number on which tomcat is receiving requests). If I use "telnet localhost 8181" from xyz.ab.edu, it lets me in... but "telnet xyz.ab.edu 8181" doesnt work. Are you running a firewall? What OS are you using? -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
If the firewall is on, won't be able to pin. SK - Original Message - From: "Brian Munroe" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, July 10, 2006 4:33 PM Subject: Re: problem accessing the webpages using specific hostname > On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Yes, I could ping "xyz.ab.edu" from my pc, but not > > "xyz.ab.edu:8181" (8181 is the port number on which tomcat is > > receiving requests). If I use "telnet localhost 8181" from > > xyz.ab.edu, it lets me in... but "telnet xyz.ab.edu 8181" > > doesnt work. > > > > Are you running a firewall? What OS are you using? > > -- brian > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
I am using Suse Linux 9.0 and I might be behind a firewall. I will try to see if I can open up this port. Thanks, Sruthi Original message >Date: Mon, 10 Jul 2006 16:33:45 -0700 >From: "Brian Munroe" <[EMAIL PROTECTED]> >Subject: Re: problem accessing the webpages using specific hostname >To: "Tomcat Users List" > >On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Yes, I could ping "xyz.ab.edu" from my pc, but not >> "xyz.ab.edu:8181" (8181 is the port number on which tomcat is >> receiving requests). If I use "telnet localhost 8181" from >> xyz.ab.edu, it lets me in... but "telnet xyz.ab.edu 8181" >> doesnt work. >> > >Are you running a firewall? What OS are you using? > >-- brian > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am using Suse Linux 9.0 and I might be behind a firewall. I will try to see if I can open up this port. Also if you do a 'netstat -a | grep -i listen' as root, it may show you what is running on which ports. If you see anything like: tcp0 0 localhost.localdom:4700 *:* LISTEN Then it is bound to localhost only, whereas something like tcp 0 0 *:www *:* Is bound to any interface. You might try checking that too, but I'm willing to bet you are being blocked a local OS firewall or something. -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem accessing the webpages using specific hostname
Locate the hosts file and place this entry in your hosts file 127.0.0.1 xyz.abc.edu and you will resolve that name Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Shinya Koizumi" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, July 10, 2006 6:54 PM Subject: Re: problem accessing the webpages using specific hostname > Can you ping "xyz.ab.edu" from your pc? > I am thinking the name resolutoin( ip -> pc name) is not working properly. > > SK > > > - Original Message - > From: <[EMAIL PROTECTED]> > To: > Sent: Monday, July 10, 2006 3:49 PM > Subject: problem accessing the webpages using specific hostname > > >> Hi, >> >> I installed the tomcat server as a standalone server. I could >> access all the pages through the url http://localhost:8080.. >> but I cannot access it using the hostname(say >> http://xyz.abc.edu:8080) of the host on which I installed >> tomcat. Is there any configuration file in which I have to >> specify the hostname to get this to work? >> >> Thanks, >> Sruthi >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: problem accessing the webpages using specific hostname
I opened the port in the firewall and its now working. Thanks for all the help. -Sruthi Original message >Date: Mon, 10 Jul 2006 16:33:45 -0700 >From: "Brian Munroe" <[EMAIL PROTECTED]> >Subject: Re: problem accessing the webpages using specific hostname >To: "Tomcat Users List" > >On 7/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Yes, I could ping "xyz.ab.edu" from my pc, but not >> "xyz.ab.edu:8181" (8181 is the port number on which tomcat is >> receiving requests). If I use "telnet localhost 8181" from >> xyz.ab.edu, it lets me in... but "telnet xyz.ab.edu 8181" >> doesnt work. >> > >Are you running a firewall? What OS are you using? > >-- brian > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
302 Redirect on Tomcat 5.x+
I heard somewhere that tomcat 4 and below uses a 302 redirect on the home (index) page. Is this still the case with 5.x+? Thanks! _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat Embedded
"Mike Wannamaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I wish to run Tomcat from within my own JVM. I would like it to run just > like Tomcat does today, however I'd just like to setup the various paths, > for like web app root directory, config directory, lib directory etc > > Is there anyway to do this easily? Like I said I just want to create an > instance of Tomcat/Catalina and setProperties(...); and then call start(); > > Any help is appreciated. > Most people use Embedded (http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/startup/Embedded.html) since it at least has some documentation. Commons-modeler has a simple (if slightly out of date :) example of how to embed Tomcat using JMX. This is useful if you want Tomcat to run in a different ClassLoader than the rest of your application (and at least personally, I find it easier to use). In either case, you need to set the properties on the sub-components (e.g. Engine, Host, Contex(s)) yourself, so you are responsible for creating them. > > Mike Wannamaker > Senior Software Developer > Hummingbird Ltd. > 552 Princess St, Kingston, ON, K7L 1C7 > Tel: (613) 548-4355 x4535 > Fax (613) 548-7801 > E-Mail: Mike Wannamaker > > www.hummingbird.com > > IMPORTANT NOTICE: This communication is privileged and contains > confidential > information for the sole use of the intended recipient(s). Any > unauthorized > disclosure, copying or use of this communication is strictly prohibited. > If > you have received this message in error, please contact the sender and > delete this message without printing it or otherwise retaining a copy. > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 302 Redirect on Tomcat 5.x+
"Rob L" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I heard somewhere that tomcat 4 and below uses a 302 redirect on the home >(index) page. Is this still the case with 5.x+? > No. Tomcat 5.x+ serves http://www.myserver.com/myapp/ directly. However, it will 302 a request for http://www.myserver.com/myapp to http://www.myserver.com/myapp/ (similar to what Apache Httpd does). > Thanks! > > _ > Dont just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: url changes
"Graham Reeds" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am setting up a website. Part of the site is employee blogs. As well as >the blogs there will be forums, products, etc. making: > > http://www.company.com/blogs/employee.name > http://www.company.com/forums/ > http://www.company.com/products/product.name > > For the blogging software I chose Blojsom. Normally it installs into a > blojsom folder in webapps. However its url is: > > http://www.company.com/blojsom/blogs/employee.name > > I would like to remove the blojsom folder. One way would be to install it > to the root webapp folder. This however, is undesirable as it makes > setting up the rest of the site difficult. I feel that there should be a > way of configuring the web.xml in the WEB-INF file to give me the results > I want. > Can't be done in web.xml, since you can't configure the context path there. > Also we don't have access to the server as they are using 3rd party > hosting. > If your hosting service will allow you to configure a cross-context app, then it is simply a matter of adding a cross-context app with context path /blog and a single servlet (mapped to /*) that does a cross-context rd.forward to the /blogjsom app. > If you need the web.xml (or any other file) posted then please ask. > > Thanks, Graham. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]