Re: What causes OutOfMemoryError ?
zero args wrote: > I don't what can cause the exception and why other apps can still > work.Help please! http://tomcat.apache.org/faq/memory.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CLOSED] [server.xml]Is there a file that defines the server.xml of tomcat?
thanks a lot. I got it. > Date: Mon, 19 Nov 2007 18:45:58 + > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > Subject: Re: [server.xml]Is there a file that defines the server.xml of > tomcat? > > zhongliang zhang wrote: >> As the thread title,is there a file(xsd or dtd)that defines the syntax of >> the server.xml of tomcat? >> if there is one,can anybody send it to me? > > No. Because it is impossible to know in advance what custom valve, realm, > manager etc may be used and what the attributes are to configure it. > > The best you will get is: > http://tomcat.apache.org/tomcat-6.0-doc/config/index.html > > 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] > _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx - 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: Application redeployment on Tomcat startup only
Always a good idea to read the manual http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html also a good idea to read the comments carefully Autodeploy "If the Host autoDeploy attribute is "true", the Host will attempt to deploy and update web applications dynamically, as needed, for example if a new WAR is dropped into the appBase. For this to work, the Host needs to have background processing enabled which is the default configuration." so leave autodeploy=false "deployonStartup will be deployed on Tomcat startup only if the Host's deployOnStartup attribute is "true"." so leave deployOnStartup = true M- - Original Message - From: "Beth Hechanova" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 1:50 PM Subject: RE: Application redeployment on Tomcat startup only If I set the autoDeploy attribute to "true", then the application gets dynamically deployed - I do NOT want that behavior. So I've set that attribute to "false". But I would like the war file to be deployed when tomcat is restarted - that is the behavior I'm trying to get, and hoping to configure via configuration parameters. Maybe the only way to accomplish this is by deleting the directory at startup? Thanks, Beth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:38 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
object binding exception on startup (javax.naming.NamingException)
Hi All, I get following exception every time I start my tomcat (version 5.5.20): SEVERE: Failed to bind object: javax.naming.NamingException: Name is not valid INFO [main] (ApplicationContext.java:646) - cgi: init: loglevel set to 0 20-Nov-2007 00:54:45 org.apache.catalina.core.NamingContextListener addResourceEnvRef SEVERE: Failed to bind object: javax.naming.NamingException: Name is not valid INFO [main] (ApplicationContext.java:646) - cgi: init: loglevel set to 0 INFO [main] (ApplicationContext.java:646) - cgi: init: loglevel set to 0 20-Nov-2007 00:54:47 org.apache.catalina.core.NamingContextListener addResourceEnvRef SEVERE: Failed to bind object: javax.naming.NamingException: Name is not valid I don't have a clue what it means and why I'm getting it. I will appreciate any pointers. Thanks, Ravi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What causes OutOfMemoryError ?
Hi Right now I was using tomcat 5.5.25 and got the exception as shown below: 2007/11/16 21:44:01 org.apache.coyote.http11.Http11Processor process 致命的: Error processing request java.lang.OutOfMemoryError: Java heap space at org.apache.tomcat.util.buf.ByteChunk.allocate(ByteChunk.java:159) at org.apache.tomcat.util.buf.ByteChunk.(ByteChunk.java:124) at org.apache.catalina.connector.OutputBuffer.(OutputBuffer.java :170) at org.apache.catalina.connector.OutputBuffer.(OutputBuffer.java :158) at org.apache.catalina.connector.Response.setConnector(Response.java :138) at org.apache.catalina.connector.Connector.createResponse(Connector.java :923) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:124) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) 2007/11/16 21:44:27 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run 致命的: [EMAIL PROTECTED] を�g行中に例外 ( java.lang.OutOfMemoryError: Java heap space) をキャッチしたので、スレッドを�K了します After the exception occur ,any request to my app1 was refused while other app deployed on the same tomcat server worked well. I don't what can cause the exception and why other apps can still work.Help please!
Re: Does mod_jk work with basic Apache Authentication?
Sorry, figured out the problem. If you see this behavior, try using Apache elements instead of elements. Paul Boone wrote: > > I've tried using variations of JkMount / JkUnmount to forward requests on > to Tomcat, but what always happens is that: > * any file served by Tomcat bypasses the apache authentication system. > * any file not served by Tomcat uses the apache authentication system. > -- View this message in context: http://www.nabble.com/Does-mod_jk-work-with-basic-Apache-Authentication--tf4840253.html#a13848845 Sent from the Tomcat - User mailing list archive 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: How to Deploy WAR using a sub-context path?
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: "Eric B." <[EMAIL PROTECTED]> To: Sent: Tuesday, November 20, 2007 12:34 AM Subject: Re: How to Deploy WAR using a sub-context path? >"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. Subject: Re: How to Deploy WAR using a sub-context path? Is it really with a # in the file name?? Yup. Is there anyway to instruct tomcat to rename the META-INF/context.xml file to be demo#application.xml instead of application.xml? The manager isn't actually part of Tomcat proper, but rather it's just an application that ships with Tomcat. It's all open-source, so you're free to make it work as you wish. Shouldn't be too hard to parse the optional "Context Path" field to handle slash delimiters. Sure. I realize that. But after more fishing around in the auto deployer of Tomcat, it seems that there are greater issues within Tomcat itself. If I rename the war to demo#application.war, with unpackWAR set to true, I get the following error: SEVERE: Exception fixing docBase: {0} java.net.MalformedURLException: no !/ in spec at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:889) The application still tries to launch, but fails miserably: java.lang.IllegalArgumentException: Document base /usr/local/tomcat/apache-tomcat-6.0/demo/webapps/demo/application does not exist or is not a readable directory If I turn off the unpackWAR setting, the first error goes away (as it is no longer trying to unpack the war), but it still fails on the second error - it is still looking for the war as demo/application.war instead of demo#application.war. From a cursory inspection, it looks like the # naming convention wasn't thoroughly tested out for these types of scenarios in Tomcat's autodeployer. Either that, or I am missing something somewhere obvious. No, I dont think so, I think this is just an incredibly complex area with a million tradeoffs. IDE's have to use it. It must be able to send a war from a remote machine, or install it locally, or run one that is unpacked already, sometimes ignore the context, sometimes not. Allow an IDE to test complex context paths but discourage it from use. Like I dont know, we figured out how to make it do /Demo/TheWebApp, what happens if someone drops in a WebApp called Demo now? Its just complicated. When the contexts break, but its convenient, we dont mind. Like when we just change the WebApp name and magic... the /NewName just happens. That actually breaks the internal context.xml... but the alternative is to unpack, change, repack... what user is going to do that I think its a very complicated area... "fix" something like this, you'll have an issue with an IDE, or something. Scary stuff ;) - 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: mod_proxy or mod_jk?
> put this in your servlet.xml file > > autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > >forwardAll="false" modJk="Path/To/mod_jk.so" /> > OK. > Start Tomcat it will generate the mod_jk.conf file under > Tomcat/conf/auto OK > In the apache httpd.cong file... somewhere near the bottom... > add > # I added this for connector == > Include "Path/To/Tomcat 5.5/conf/auto/mod_jk.conf" Done. > That will make apache front end tomcat...I It was already? > Then just study those files... > It generates all the core stuff... all the JKMounts folder protection etc > for all your webapps. ?? What files do you refer? > Then you can edit as required... add aliases etc. > > Load sharing is different again... but the generated file comes in handy > there as well. > Remember that everytime you start tomcat this is generated... so remove > the > listener if you dont want it to change, or copy it and point apache at > that. ??? I don't unserstandvery well.. Thanks, rocsca - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does mod_jk work with basic Apache Authentication?
I'm trying to get basic Apache authentication on Apache 2.0.59 to work with Tomcat 5.5.25 using mod_jk 1.2.25. I've tried using variations of JkMount / JkUnmount to forward requests on to Tomcat, but what always happens is that: * any file served by Tomcat bypasses the apache authentication system. * any file not served by Tomcat uses the apache authentication system. Is it possible to use Apache HTTP server to secure files served by Tomcat? Is there an alternative I should be looking at, such as using Apache 2.2, mod_proxy_ajp? Any advice would be greatly appreciated as I've been experimenting, examining the source, and scouring the internet for the last few days and so far I haven't determined if this should even work, let alone how to get it to work. Thanks, -- Paul Boone -- View this message in context: http://www.nabble.com/Does-mod_jk-work-with-basic-Apache-Authentication--tf4840253.html#a13848029 Sent from the Tomcat - User mailing list archive 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]
How Do I use Tomcat 6.0.14 as a http Proxy?
Hi All, I found some old documentation and looking for something more current than 2004 about how to use Tomcat as a http proxy to say Apache. I am running a test and want to keep Tomcat in front of Apache. Thanks, -Tony Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs - 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: Need my Protocol to be Seen in Tomcat!!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Mike Wannamaker [mailto:[EMAIL PROTECTED] >> Subject: RE: Need my Protocol to be Seen in Tomcat!! >> >> I thought it was the other way around? Common is visible >> to tomcat and web apps and shared was for just webapps? > > You're correct; I think Chris must have been in a bit of a rush when he > wrote that. Maybe more or a haze than a rush ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHQhl29CaO5/Lv0PARAhHQAKCZP5RlVz0FWLQia3x96mfDDdEY+wCgqX7O yKP4KU8/Q1aFkmkFvapqXhM= =bTlF -END PGP SIGNATURE- - 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: How to Deploy WAR using a sub-context path?
Eric B. wrote: >>From a cursory inspection, it looks like the # naming convention wasn't > thoroughly tested out for these types of scenarios in Tomcat's autodeployer. > Either that, or I am missing something somewhere obvious. What you are missing is that it was never intended to work in this way. The # convention is currently only for webapps hosted outside the appBase. If you'd like to submit a patch... 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: How to Deploy WAR using a sub-context path?
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, November 20, 2007 12:31 AM Subject: Re: How to Deploy WAR using a sub-context path? --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- Chuck is right... the application has to be there already. Another slight variation on what Chuck is saying is this... http://localhost:8080/manager/deploy?config=file://D:\\GARBAGE\\TestSite\\META-INF\\context.xml&path=/demo/test The above URL will deploy it...BUT Unpack the war file at a "TestSite" location outside of Tomcat/WebApps Make the context.xml file in that unpacked file look like this. It will become /demo/test NOT /Ignored I think you could deliver the WAR to "TestSite" And just a reference context.xml file and do it as well... it will ignore the internal context, I think. YES! that works as well... If its a WAR... it unpacks it in WEB-Apps If its unpacked already... it runs that... interesting because this is exactly how Netbeans makes TC use the build code in a project. Its weird because it picks up docBase from the context, but looks at the path (context) in the URL. I tried it, normal deployment does not work with a sub context... as soon as you do that it looks for a docBase. Two ways... but not as slick as the normal deployer... not too Auto ;) - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 9:41 PM Subject: RE: How to Deploy WAR using a sub-context path? From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. Subject: How to Deploy WAR using a sub-context path? However, I now have a need to deploy my WAR under a context path that is not at the root level of my tomcat server. For example, I need to deploy my application.war under: http://www.domain.com/demo/application You need to put your element in conf/Catalina/[hostname]/demo#application.xml; include a docBase attribute to point to the location of the appropriate war file (or directory). Do not put the application under the appBase directory, or it will be deployed twice. I don't know if you can do this with the autodeployer, but a simple script should suffice. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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] - 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: How to Deploy WAR using a sub-context path?
>"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. >> Subject: Re: How to Deploy WAR using a sub-context path? >> >> Is it really with a # in the file name?? > >Yup. > >> Is there anyway to instruct tomcat to rename the >> META-INF/context.xml file to be demo#application.xml >> instead of application.xml? > >The manager isn't actually part of Tomcat proper, but rather it's just >an application that ships with Tomcat. It's all open-source, so you're >free to make it work as you wish. Shouldn't be too hard to parse the >optional "Context Path" field to handle slash delimiters. Sure. I realize that. But after more fishing around in the auto deployer of Tomcat, it seems that there are greater issues within Tomcat itself. If I rename the war to demo#application.war, with unpackWAR set to true, I get the following error: SEVERE: Exception fixing docBase: {0} java.net.MalformedURLException: no !/ in spec at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at java.net.URL.(Unknown Source) at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:889) The application still tries to launch, but fails miserably: java.lang.IllegalArgumentException: Document base /usr/local/tomcat/apache-tomcat-6.0/demo/webapps/demo/application does not exist or is not a readable directory If I turn off the unpackWAR setting, the first error goes away (as it is no longer trying to unpack the war), but it still fails on the second error - it is still looking for the war as demo/application.war instead of demo#application.war. >From a cursory inspection, it looks like the # naming convention wasn't thoroughly tested out for these types of scenarios in Tomcat's autodeployer. Either that, or I am missing something somewhere obvious. Thanks, Eric - 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: How to Deploy WAR using a sub-context path?
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- Chuck is right... the application has to be there already. Another slight variation on what Chuck is saying is this... http://localhost:8080/manager/deploy?config=file://D:\\GARBAGE\\TestSite\\META-INF\\context.xml&path=/demo/test The above URL will deploy it...BUT Unpack the war file at a "TestSite" location outside of Tomcat/WebApps Make the context.xml file in that unpacked file look like this. It will become /demo/test NOT /Ignored I think you could deliver the WAR to "TestSite" And just a reference context.xml file and do it as well... it will ignore the internal context, I think. Its weird because it picks up docBase from the context, but looks at the path (context) in the URL. I tried it, normal deployment does not work with a sub context... as soon as you do that it looks for a docBase. Two ways... but not as slick as the normal deployer... not too Auto ;) - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 9:41 PM Subject: RE: How to Deploy WAR using a sub-context path? From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. Subject: How to Deploy WAR using a sub-context path? However, I now have a need to deploy my WAR under a context path that is not at the root level of my tomcat server. For example, I need to deploy my application.war under: http://www.domain.com/demo/application You need to put your element in conf/Catalina/[hostname]/demo#application.xml; include a docBase attribute to point to the location of the appropriate war file (or directory). Do not put the application under the appBase directory, or it will be deployed twice. I don't know if you can do this with the autodeployer, but a simple script should suffice. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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]
Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory
Hi, I am a newbie to both Apache and Tomcat. I am using Apache 2.0.55, Tomcat 5.5.25, mod_jk 1.2.25 and Ubuntu ( 2.6.17-10-server) It seemed like I had the complete redirection working at one point, but unfortunately after no apparent change (that I can recollect), things just stopped working. I started troubleshooting by collecting detailed logs both in Apache and Tomcat but the log information hasn't helped me much. So I was wondering if anyone could suggest how I can go about finding what the issue is. My set up involved: 1. mod_jk.conf LoadModule jk_module /YYY/lib/ApacheTomcat/mod_jk.so JkWorkersFile /XXX/apache-tomcat-5.5.25/conf/jk/workers.properties JkShmFile /XXX/apache-tomcat-5.5.25 /conf/jk/mod_jk.shm JkLogFile /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.log JkLogLevel trace JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %V %T" ServerName my.machine.name JkMount /servlets-examples worker1 JkMount /servlets-examples/* worker1 2. workers.properties workers.tomcat_home=/XXX/apache-tomcat-5.5.25 workers.java_home=/XXX/Java/jdk1.6.0_03 worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=9009 3. apached.conf - Additions/Changes to the default file (A) Include /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.conf (B) LogFormat "%v %V %h %l %u %t \"%r\" %>s %b status-%s port-%p filename-%f reqMethod %m \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%v %V %h %l %u %t \"%r\" %>s %b" common LogFormat "%v %V %{Referer}i -> %U" referer LogFormat "%v %V %{User-agent}i" agent 4. Tomcat server.xml - Additions/Changes to the default (A) (B) (C) (D) (E) Here are the contents of mod_jk.log after I restart both Apache and Tomcat and then make a request through my browser for http://my.machine.name/servlets-examples. This URL used to (when things were working) show me the standard Tomcat page with servlets examples such as HelloWorld AND all the servlets worked. [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] ' [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (182): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (407): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 0 [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (479): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (198): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] ' [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (182): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (407): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 0 [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (479): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (198): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S %Y] ' [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (182): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (407): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2 [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_add::jk_uri_worker_map.c (315): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] uri_worker_map_add::jk_uri_worker_map.c (372): exact rule '/servlets-examples=worker1' source 'JkMount' was added [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_add::jk_uri_worker_map.c (398): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_add::jk_uri_worker_map.c (315): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule '/servlets-examples/*=worker1' source 'JkMount' was added [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_add::jk_uri_worker_map.c (398): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_open::jk_uri_worker_map.c (479): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (198): exit [Mon Nov 19 16:15:12 2007] [4067:3080226480] [trace] do_shm_open::jk_shm.c (337): enter [Mon Nov 19 16:15:12 2007] [4067:3080226480] [debug] do_shm_open::jk_shm.c (402): Truncated shared memory to 28800 [Mon Nov 19 1
Re: How to Deploy WAR using a sub-context path?
"Eric B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] >>> However, I now have a need to deploy my WAR under a context >>> path that is not at the root level of my tomcat server. >>> >>> For example, I need to deploy my application.war under: >>> http://www.domain.com/demo/application >> >>You need to put your element in >>conf/Catalina/[hostname]/demo#application.xml; include a docBase >>attribute to point to the location of the appropriate war file (or >>directory). Do not put the application under the appBase >>directory, or it will be deployed twice. >> >>I don't know if you can do this with the autodeployer, but a simple >>script should suffice. > > Yeah - that much I had somewhat figured out. Although, I have to admit, > the naming convention of the context file is really bizarre. Is it really > with a # in the file name?? > > My bigger problem, however, is that I am starting to really push ppl to > use the tomcat manager as much as possible to avoid manual manipulations > on the server itself; ideally I would like everything packaged in the war > file to limit the number of potential mistakes and problems that can arise > when you work directly on the server's filesystem. > > Is there anyway to instruct tomcat to rename the META-INF/context.xml file > to be demo#application.xml instead of application.xml? Maybe an > instruction within the context tag itself or even somewhere else (another > file, or in the server.xml file)? > I had the brilliant idea of trying to name my war as demo#application.war, but the auto-deployer rejected it upon startup. It did extract the META-INF/context.xml to conf/Catalina/[hostname]/demo#application.xml properly, but couldn't unpack the war the demo/application directory. (Currently have unpackWARs=true in my Host tag). Still open to ideas / suggestions if anyone has any. Thanks, Eric - 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: How to Deploy WAR using a sub-context path?
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. > Subject: Re: How to Deploy WAR using a sub-context path? > > Is it really with a # in the file name?? Yup. > Is there anyway to instruct tomcat to rename the > META-INF/context.xml file to be demo#application.xml > instead of application.xml? The manager isn't actually part of Tomcat proper, but rather it's just an application that ships with Tomcat. It's all open-source, so you're free to make it work as you wish. Shouldn't be too hard to parse the optional "Context Path" field to handle slash delimiters. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: How to Deploy WAR using a sub-context path?
>"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> However, I now have a need to deploy my WAR under a context >> path that is not at the root level of my tomcat server. >> >> For example, I need to deploy my application.war under: >> http://www.domain.com/demo/application > >You need to put your element in >conf/Catalina/[hostname]/demo#application.xml; include a docBase >attribute to point to the location of the appropriate war file (or >directory). Do not put the application under the appBase >directory, or it will be deployed twice. > >I don't know if you can do this with the autodeployer, but a simple >script should suffice. Yeah - that much I had somewhat figured out. Although, I have to admit, the naming convention of the context file is really bizarre. Is it really with a # in the file name?? My bigger problem, however, is that I am starting to really push ppl to use the tomcat manager as much as possible to avoid manual manipulations on the server itself; ideally I would like everything packaged in the war file to limit the number of potential mistakes and problems that can arise when you work directly on the server's filesystem. Is there anyway to instruct tomcat to rename the META-INF/context.xml file to be demo#application.xml instead of application.xml? Maybe an instruction within the context tag itself or even somewhere else (another file, or in the server.xml file)? Thanks! Eric - 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: mod_proxy_ajp & TIME_WAIT
2.2.6 has a nasty bug were AJP connections are being closed when they shouldn't. 2.2.7 will fix that. In the meantime, trying building httpd with USE_ALTERNATE_IS_CONNECTED defined as 0 (proxy_util.c). On Nov 19, 2007, at 9:07 AM, Rainer Jung wrote: Hi David, TIME_WAIT is a normal TCP state after a connection was successfully closed. Only one side of the connection goes into TIME_WAIT, namely the side that sent the first FIN. So since you've got httpd and Tomcat on the same server, you first need to find out, which side of the conection is in TIME_WAIT. In netstat, usually the left hand IP:PORT is the local side, and the right IP:PORT the remote side. In case the left pair of the TIME_WAIT line includes the port 8009, this would mean, that Tomcat closed the connection first, in case 8009 is on the right side, it would mean, that Apache httpd closed the connection first. Maybe you could show us some of the TIME_WAIT netstat lines. Both could be OK, so we could ask ourselves, if we expect such behaviour. In general AJP connections should be used persistently and only closed, if they have been idle for to long. Is the number of TIME_WAIT connections much larger, than the concurrency ("-c") used with ab? Regards, Rainer David Cassidy wrote: Guys, I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. apache config - BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On ProxyPass // balancer://myclusterclear/ stickysession=JSESSIONID|jsessionid Tomcat config (Using the native apr libs) After running a few hits with ab to give it some load there are a very large number of connections between apache and tomcat in a TIME_WAIT status. Is this a common happening ? Is there something that can be configured to prevent this from appearing ? Thanks David - 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: How to Deploy WAR using a sub-context path?
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Eric B. > Subject: How to Deploy WAR using a sub-context path? > > However, I now have a need to deploy my WAR under a context > path that is not at the root level of my tomcat server. > > For example, I need to deploy my application.war under: > http://www.domain.com/demo/application You need to put your element in conf/Catalina/[hostname]/demo#application.xml; include a docBase attribute to point to the location of the appropriate war file (or directory). Do not put the application under the appBase directory, or it will be deployed twice. I don't know if you can do this with the autodeployer, but a simple script should suffice. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to Deploy WAR using a sub-context path?
Hi, I have a Tomcat 6 server that is mapped to my httpd server using jkmounts. Under normal conditions, everything is working fine. I am able to deploy my wars as webapps using Tomcat's maanger & autodeployer without any issues. However, I now have a need to deploy my WAR under a context path that is not at the root level of my tomcat server. For example, I need to deploy my application.war under: http://www.domain.com/demo/application When I was configuring all my contexts manually directly in server.xml, I would be able to specify that the context path was /demo/application. However, when I am now using the autodeployer, is there any way to specify that the path should be /demo/application? I have tried putting my context.xml file into Meta-Inf/demo/context.xml, but Tomcat doesnt even recognize it when it is there. I tried to create a directory demo under webapps and put my war there, but that doesn't work either. Are there any settings that I can set/create in tomcat to allow me to do something like this? Short of that, is there anyway I could remap my JkMount in httpd to point from /demo/application to /application in my tomcat instance? Currently, my JkMount is the following: JkMount /demo/application/* JkDemo Although, this mount redirects application correctly over the jk connection, Tomcat ends up looking for the /demo/application context, which I am having trouble creating. Any help / suggestions and/or ideas would be greatly appreciated! Thanks! Eric - 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: MemoryRealm question
Bárbara Vieira wrote: > When I use that Realm, how the principals variable, that is declared in that > class(MemoryRealm) as a HashMap, is loaded? Configure Tomcat to use the MemoryRealm. Start tomcat with JPDA debugging enabled. Set a break point at the start of the authenticate() method. Access a protected resource. Use the debugger to step through the authentication process. You might want to set some break points in RealmBase as well. 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: Application redeployment on Tomcat startup only
If I set the autoDeploy attribute to "true", then the application gets dynamically deployed - I do NOT want that behavior. So I've set that attribute to "false". But I would like the war file to be deployed when tomcat is restarted - that is the behavior I'm trying to get, and hoping to configure via configuration parameters. Maybe the only way to accomplish this is by deleting the directory at startup? Thanks, Beth -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:38 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - 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 4 doesn't start properly
Hamid Rahman Mohmand wrote: > can some one tell me what might be the propbable causes and how can i get > them sorted out? Have you looked in logs? 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: [server.xml]Is there a file that defines the server.xml of tomcat?
zhongliang zhang wrote: > As the thread title,is there a file(xsd or dtd)that defines the syntax of the > server.xml of tomcat? > if there is one,can anybody send it to me? No. Because it is impossible to know in advance what custom valve, realm, manager etc may be used and what the attributes are to configure it. The best you will get is: http://tomcat.apache.org/tomcat-6.0-doc/config/index.html 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: Application redeployment on Tomcat startup only
I was going to go down that path if I couldn't find some combination of parameters to get the war file deployed on startup. It seems preferable (to me, anyway) to be able to accomplish this via the parameters rather than modifying the startup script, but if that is the only way, then so be it. Thanks, Beth Btw, I forgot to mention that I'm running Tomcat 6.0.14 on a Linux machine. -Original Message- From: david delbecq [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:20 AM To: Tomcat Users List Subject: Re: Application redeployment on Tomcat startup only If all you need to redeploy to occur is remove directories, just modify the statup script so it deleted the webapps directories. Beth Hechanova a écrit : > Hi, > > > > I am trying to configure Tomcat to only reploy my application war file > when Tomcat is started up. I have set the autoDeploy attribute in > server.xml to false - this prevents my application from deploying > dynamically, which is the behavior that I want. But then when I restart > Tomcat I would like my new war file to be deployed at that time, but > that is not happening (unless I delete the associated directory first). > > > > Are there any configuration parameters that will ensure the war file > gets deployed at startup, but NOT dynamically when the application is > running? > > > > Thanks, > > Beth > > > - 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: make error : during apache install.
[EMAIL PROTECTED] wrote: > Hello , > I`m trying to install and configure apache http server on AIX . Running > into error below . Please advise . When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. This is known as thread hijacking and to many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Thanks, 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: Application redeployment on Tomcat startup only
handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - 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: Application redeployment on Tomcat startup only
If all you need to redeploy to occur is remove directories, just modify the statup script so it deleted the webapps directories. Beth Hechanova a écrit : Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application redeployment on Tomcat startup only
Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth
MemoryRealm question
Hi everyone!! I have a question about org.apache.catalina.realm.MemoryRealm. When I use that Realm, how the principals variable, that is declared in that class(MemoryRealm) as a HashMap, is loaded? I.e. How the data that is in the file (ex. Tomcat-users.xml) is loaded to that variable?! Im trying to implement my own realm, but using that MemoryRealm as a model. However when I run my program with my own realm, the principals variable is null. If anyone can help, I appreciate. Regards from Braga, Portugal Bárbara Vieira
RE: simple question on Tomcat-apache
Thanks for the reply Timothy. "Timothy Wonil Lee" <[EMAIL PROTECTED]> 11/18/2007 10:12 PM Please respond to "Tomcat Users List" To "'Tomcat Users List'" cc Subject RE: simple question on Tomcat-apache Tomcat and HTTP Server are completely different product, and when you download Tomcat, it does not include http server. The only reason why "Tomcat" is also called "Apache Tomcat" is because it is a product/project under Apache Software Foundation. Apache HTTP server: http://httpd.apache.org/ Apache Tomcat: http://tomcat.apache.org/ Regards, Timothy Wonil Lee Java Developer Koorong Books (http://www.koorong.com/) email: [EMAIL PROTECTED] direct ph: (+612) 9857 4448 direct fax: (+612) 9857 6648 http://www.google.com/reader/shared/16849249410805339619 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, 19 November 2007 1:57 PM To: Tomcat Users List Subject: simple question on Tomcat-apache Hello , does Tomcat -apache contains http server bundled in or Do I have to install apache-tomcat and http server separately ? I can browse the default web page when I started apache-tomcat server ,but could`nt locate the httpd.conf file . So downloaded http server . Can someone clarify the differences between apache-tomcat for me ? I`m newbee to it . Thanks . I have downloaded both : [EMAIL PROTECTED] /mnt/apache-tomcat]: ls -lrt total 51200 -rw-r- 1 root system 10731520 Oct 25 09:43 apache-tomcat-6.0.14.tar -rw-r- 1 root system 5888526 Nov 17 16:54 httpd-2.0.61.tar.gz -rw-r- 1 root system 9579283 Nov 17 16:55 apache-tomcat-4.1.36.tar.gz [EMAIL PROTECTED] /mnt/apache-tomcat]: !DSPAM:4740fbec128211562027968! - 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: simple question on Tomcat-apache
I`m trying to setup it for lawson app server (ERP) ,which does not officially support 6.0 version (as per lawson admin) . Is anyone out there using 6.0 with lawson ? Thanks Shekhar "Caldarale, Charles R" <[EMAIL PROTECTED]> 11/18/2007 10:47 PM Please respond to "Tomcat Users List" To "Tomcat Users List" cc Subject RE: simple question on Tomcat-apache > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: RE: simple question on Tomcat-apache > > Does 5.5 version falls into newer version ? Yes, but 6.0 is better for several reasons, including simplified classloading and the availability of an NIO connector. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: mod_proxy_ajp & TIME_WAIT
OK I'll give that a go ! Thanks Rainer for your help D On Mon, 2007-11-19 at 16:09 +0100, Rainer Jung wrote: > David Cassidy wrote: > > Hi Rainer, > > > > I've set the ttl to 120 > > re-run the last test with 30 concurrent connections > > > > 1 LISTEN > > 25 CLOSE_WAIT > > 26 FIN_WAIT2 > > 104 ESTABLISHED > > 924 TIME_WAIT > > > > Not made too much difference. But as the test is only taking 20 secs max > > none of the connections should have reached the ttl unless ttl is not > > seconds. > > > > Do you think I should be asking this on the httpd dev mailing list as > > its an apache prob and not tomcat ? > > Yes, maybe starting with the httpd user list, before going to dev. > > > > > Thanks > > > > David > > > > > > > > > > On Mon, 2007-11-19 at 15:47 +0100, Rainer Jung wrote: > >> David Cassidy wrote: > >>> Hi ! > >>> > >>> This is using worker rather than prefork - apache 2.2.6 as comes with > >>> fedora 7. I've changed /usr/sbin/httpd to be /usr/sbin/httpd.worker. > >>> > >>> If I make a 1000 requests with ab with keep alive to apache - eg > >>> ab -k -n 1000 > >>> then I get alot of connections from apache to tomcat that are in > >>> TIME_WAIT - eg > >>> > >>> tcp0 0 127.0.0.1:46284 127.0.0.1:8009 > >>> TIME_WAIT > >>> tcp0 0 127.0.0.1:46374 127.0.0.1:8009 > >>> TIME_WAIT > >>> tcp0 0 127.0.0.1:46306 127.0.0.1:8009 > >>> TIME_WAIT > >>> tcp0 0 127.0.0.1:46396 127.0.0.1:8009 > >>> TIME_WAIT > >>> > >>> the counts look like > >>> 1 LISTEN > >>> 2 ESTABLISHED > >>> 999 TIME_WAIT > >>> > >>> ie 999 connections in TIME_WAIT > >>> Is there anyway to tell Apache to keep the connections alive for a more > >>> connections ? > >> First of all, for me this looks like really Apache httpd is closing the > >> connections (you ask later, if Tomcat can be told to keep the connection > >> open, but this doesn't help, because httpd closes it). > >> > >> Does setting a ttl help (see > >> http://httpd.apache.org/docs/2.2/mod/mod_proxy.html)? > >> > >> Regards, > >> > >> Rainer > >> > >>> Apache config is : > >>> > >>> ProxyPass / balancer://myclusterclear/ stickysession=JSESSIONID| > >>> jsessionid > >>> > >>> BalancerMember ajp://localhost:8009 route=server1 min=0 > >>> smax=1000 max=1000 keepalive=On > >>> > >>> > >>> > >>> Tomcat is > >>> > >>> >>> protocol="AJP/1.3" enableLookups="false" proxyPort="80" > >>> redirectPort="443" maxKeepAliveRequests="2000" tcpNoDelay="true" > >>> keepAliveTimeout="1" connectionTimeout="60"/> > >>> > >>> > >>> If I increase the concurrency to 10 from 1 and re-run the same 1,000 > >>> tests I get > >>> > >>> 1 LISTEN > >>> 20 ESTABLISHED > >>> 990 TIME_WAIT > >>> > >>> Slightly better but i'd have liked to see there be more ESTABLISHED > >>> connections. > >>> > >>> Running with 30 concurrency i get > >>> > >>> 1 LISTEN > >>> 60 ESTABLISHED > >>> 970 TIME_WAIT > >>> > >>> With 50 concurrency I get > >>> > >>> 1 LISTEN > >>> 28 CLOSE_WAIT > >>> 28 FIN_WAIT2 > >>> 66 ESTABLISHED > >>> 939 TIME_WAIT > >>> > >>> In each case the netstat is performed immediately after the test has > >>> finished and before each test run the netstat only has the 1 listen > >>> socket for 8009. In each case the netstat is from apache to tomcat > >>> > >>> So any ideas why tomcat would close the connections ? > >>> > >>> Many thanks > >>> > >>> David > >>> > >>> > >>> On Mon, 2007-11-19 at 15:07 +0100, Rainer Jung wrote: > Hi David, > > TIME_WAIT is a normal TCP state after a connection was successfully > closed. Only one side of the connection goes into TIME_WAIT, namely the > side that sent the first FIN. > > So since you've got httpd and Tomcat on the same server, you first need > to find out, which side of the conection is in TIME_WAIT. In netstat, > usually the left hand IP:PORT is the local side, and the right IP:PORT > the remote side. In case the left pair of the TIME_WAIT line includes > the port 8009, this would mean, that Tomcat closed the connection first, > in case 8009 is on the right side, it would mean, that Apache httpd > closed the connection first. Maybe you could show us some of the > TIME_WAIT netstat lines. > > Both could be OK, so we could ask ourselves, if we expect such > behaviour. In general AJP connections should be used persistently and > only closed, if they have been idle for to long. > > Is the number of TIME_WAIT connections much larger, than the concurrency > ("-c") used with ab? > > Regards, > > Rainer > > David Cassidy wrote: > > Guys, > > > > I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. > > > > apache config > > --
Re: mod_proxy_ajp & TIME_WAIT
David Cassidy wrote: Hi Rainer, I've set the ttl to 120 re-run the last test with 30 concurrent connections 1 LISTEN 25 CLOSE_WAIT 26 FIN_WAIT2 104 ESTABLISHED 924 TIME_WAIT Not made too much difference. But as the test is only taking 20 secs max none of the connections should have reached the ttl unless ttl is not seconds. Do you think I should be asking this on the httpd dev mailing list as its an apache prob and not tomcat ? Yes, maybe starting with the httpd user list, before going to dev. Thanks David On Mon, 2007-11-19 at 15:47 +0100, Rainer Jung wrote: David Cassidy wrote: Hi ! This is using worker rather than prefork - apache 2.2.6 as comes with fedora 7. I've changed /usr/sbin/httpd to be /usr/sbin/httpd.worker. If I make a 1000 requests with ab with keep alive to apache - eg ab -k -n 1000 then I get alot of connections from apache to tomcat that are in TIME_WAIT - eg tcp0 0 127.0.0.1:46284 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46374 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46306 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46396 127.0.0.1:8009 TIME_WAIT the counts look like 1 LISTEN 2 ESTABLISHED 999 TIME_WAIT ie 999 connections in TIME_WAIT Is there anyway to tell Apache to keep the connections alive for a more connections ? First of all, for me this looks like really Apache httpd is closing the connections (you ask later, if Tomcat can be told to keep the connection open, but this doesn't help, because httpd closes it). Does setting a ttl help (see http://httpd.apache.org/docs/2.2/mod/mod_proxy.html)? Regards, Rainer Apache config is : ProxyPass / balancer://myclusterclear/ stickysession=JSESSIONID| jsessionid BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On Tomcat is If I increase the concurrency to 10 from 1 and re-run the same 1,000 tests I get 1 LISTEN 20 ESTABLISHED 990 TIME_WAIT Slightly better but i'd have liked to see there be more ESTABLISHED connections. Running with 30 concurrency i get 1 LISTEN 60 ESTABLISHED 970 TIME_WAIT With 50 concurrency I get 1 LISTEN 28 CLOSE_WAIT 28 FIN_WAIT2 66 ESTABLISHED 939 TIME_WAIT In each case the netstat is performed immediately after the test has finished and before each test run the netstat only has the 1 listen socket for 8009. In each case the netstat is from apache to tomcat So any ideas why tomcat would close the connections ? Many thanks David On Mon, 2007-11-19 at 15:07 +0100, Rainer Jung wrote: Hi David, TIME_WAIT is a normal TCP state after a connection was successfully closed. Only one side of the connection goes into TIME_WAIT, namely the side that sent the first FIN. So since you've got httpd and Tomcat on the same server, you first need to find out, which side of the conection is in TIME_WAIT. In netstat, usually the left hand IP:PORT is the local side, and the right IP:PORT the remote side. In case the left pair of the TIME_WAIT line includes the port 8009, this would mean, that Tomcat closed the connection first, in case 8009 is on the right side, it would mean, that Apache httpd closed the connection first. Maybe you could show us some of the TIME_WAIT netstat lines. Both could be OK, so we could ask ourselves, if we expect such behaviour. In general AJP connections should be used persistently and only closed, if they have been idle for to long. Is the number of TIME_WAIT connections much larger, than the concurrency ("-c") used with ab? Regards, Rainer David Cassidy wrote: Guys, I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. apache config - BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On ProxyPass // balancer://myclusterclear/ stickysession=JSESSIONID|jsessionid Tomcat config (Using the native apr libs) After running a few hits with ab to give it some load there are a very large number of connections between apache and tomcat in a TIME_WAIT status. Is this a common happening ? Is there something that can be configured to prevent this from appearing ? Thanks David - 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: mod_proxy_ajp & TIME_WAIT
Hi Rainer, I've set the ttl to 120 re-run the last test with 30 concurrent connections 1 LISTEN 25 CLOSE_WAIT 26 FIN_WAIT2 104 ESTABLISHED 924 TIME_WAIT Not made too much difference. But as the test is only taking 20 secs max none of the connections should have reached the ttl unless ttl is not seconds. Do you think I should be asking this on the httpd dev mailing list as its an apache prob and not tomcat ? Thanks David On Mon, 2007-11-19 at 15:47 +0100, Rainer Jung wrote: > David Cassidy wrote: > > Hi ! > > > > This is using worker rather than prefork - apache 2.2.6 as comes with > > fedora 7. I've changed /usr/sbin/httpd to be /usr/sbin/httpd.worker. > > > > If I make a 1000 requests with ab with keep alive to apache - eg > > ab -k -n 1000 > > then I get alot of connections from apache to tomcat that are in > > TIME_WAIT - eg > > > > tcp0 0 127.0.0.1:46284 127.0.0.1:8009 > > TIME_WAIT > > tcp0 0 127.0.0.1:46374 127.0.0.1:8009 > > TIME_WAIT > > tcp0 0 127.0.0.1:46306 127.0.0.1:8009 > > TIME_WAIT > > tcp0 0 127.0.0.1:46396 127.0.0.1:8009 > > TIME_WAIT > > > > the counts look like > > 1 LISTEN > > 2 ESTABLISHED > > 999 TIME_WAIT > > > > ie 999 connections in TIME_WAIT > > Is there anyway to tell Apache to keep the connections alive for a more > > connections ? > > First of all, for me this looks like really Apache httpd is closing the > connections (you ask later, if Tomcat can be told to keep the connection > open, but this doesn't help, because httpd closes it). > > Does setting a ttl help (see > http://httpd.apache.org/docs/2.2/mod/mod_proxy.html)? > > Regards, > > Rainer > > > > > Apache config is : > > > > ProxyPass / balancer://myclusterclear/ stickysession=JSESSIONID| > > jsessionid > > > > BalancerMember ajp://localhost:8009 route=server1 min=0 > > smax=1000 max=1000 keepalive=On > > > > > > > > Tomcat is > > > > > protocol="AJP/1.3" enableLookups="false" proxyPort="80" > > redirectPort="443" maxKeepAliveRequests="2000" tcpNoDelay="true" > > keepAliveTimeout="1" connectionTimeout="60"/> > > > > > > If I increase the concurrency to 10 from 1 and re-run the same 1,000 > > tests I get > > > > 1 LISTEN > > 20 ESTABLISHED > > 990 TIME_WAIT > > > > Slightly better but i'd have liked to see there be more ESTABLISHED > > connections. > > > > Running with 30 concurrency i get > > > > 1 LISTEN > > 60 ESTABLISHED > > 970 TIME_WAIT > > > > With 50 concurrency I get > > > > 1 LISTEN > > 28 CLOSE_WAIT > > 28 FIN_WAIT2 > > 66 ESTABLISHED > > 939 TIME_WAIT > > > > In each case the netstat is performed immediately after the test has > > finished and before each test run the netstat only has the 1 listen > > socket for 8009. In each case the netstat is from apache to tomcat > > > > So any ideas why tomcat would close the connections ? > > > > Many thanks > > > > David > > > > > > On Mon, 2007-11-19 at 15:07 +0100, Rainer Jung wrote: > >> Hi David, > >> > >> TIME_WAIT is a normal TCP state after a connection was successfully > >> closed. Only one side of the connection goes into TIME_WAIT, namely the > >> side that sent the first FIN. > >> > >> So since you've got httpd and Tomcat on the same server, you first need > >> to find out, which side of the conection is in TIME_WAIT. In netstat, > >> usually the left hand IP:PORT is the local side, and the right IP:PORT > >> the remote side. In case the left pair of the TIME_WAIT line includes > >> the port 8009, this would mean, that Tomcat closed the connection first, > >> in case 8009 is on the right side, it would mean, that Apache httpd > >> closed the connection first. Maybe you could show us some of the > >> TIME_WAIT netstat lines. > >> > >> Both could be OK, so we could ask ourselves, if we expect such > >> behaviour. In general AJP connections should be used persistently and > >> only closed, if they have been idle for to long. > >> > >> Is the number of TIME_WAIT connections much larger, than the concurrency > >> ("-c") used with ab? > >> > >> Regards, > >> > >> Rainer > >> > >> David Cassidy wrote: > >>> Guys, > >>> > >>> I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. > >>> > >>> apache config > >>> - > >>> > >>> BalancerMember ajp://localhost:8009 route=server1 min=0 > >>> smax=1000 max=1000 keepalive=On > >>> > >>> ProxyPass // balancer://myclusterclear/ > >>> stickysession=JSESSIONID|jsessionid > >>> > >>> > >>> Tomcat config (Using the native apr libs) > >>> > >>> >>> maxThreads="150" minSpareThreads="4"/> > >>> > >>> >>> protocol="AJP/1.3" enableLookups="false" proxyPort="80" > >>> redirectPort="443" maxKeepAliveRequests="2000" tcpNoDelay="true" > >>> keepAliveTimeout="1" connectionTi
Re: mod_proxy_ajp & TIME_WAIT
David Cassidy wrote: Hi ! This is using worker rather than prefork - apache 2.2.6 as comes with fedora 7. I've changed /usr/sbin/httpd to be /usr/sbin/httpd.worker. If I make a 1000 requests with ab with keep alive to apache - eg ab -k -n 1000 then I get alot of connections from apache to tomcat that are in TIME_WAIT - eg tcp0 0 127.0.0.1:46284 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46374 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46306 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46396 127.0.0.1:8009 TIME_WAIT the counts look like 1 LISTEN 2 ESTABLISHED 999 TIME_WAIT ie 999 connections in TIME_WAIT Is there anyway to tell Apache to keep the connections alive for a more connections ? First of all, for me this looks like really Apache httpd is closing the connections (you ask later, if Tomcat can be told to keep the connection open, but this doesn't help, because httpd closes it). Does setting a ttl help (see http://httpd.apache.org/docs/2.2/mod/mod_proxy.html)? Regards, Rainer Apache config is : ProxyPass / balancer://myclusterclear/ stickysession=JSESSIONID| jsessionid BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On Tomcat is If I increase the concurrency to 10 from 1 and re-run the same 1,000 tests I get 1 LISTEN 20 ESTABLISHED 990 TIME_WAIT Slightly better but i'd have liked to see there be more ESTABLISHED connections. Running with 30 concurrency i get 1 LISTEN 60 ESTABLISHED 970 TIME_WAIT With 50 concurrency I get 1 LISTEN 28 CLOSE_WAIT 28 FIN_WAIT2 66 ESTABLISHED 939 TIME_WAIT In each case the netstat is performed immediately after the test has finished and before each test run the netstat only has the 1 listen socket for 8009. In each case the netstat is from apache to tomcat So any ideas why tomcat would close the connections ? Many thanks David On Mon, 2007-11-19 at 15:07 +0100, Rainer Jung wrote: Hi David, TIME_WAIT is a normal TCP state after a connection was successfully closed. Only one side of the connection goes into TIME_WAIT, namely the side that sent the first FIN. So since you've got httpd and Tomcat on the same server, you first need to find out, which side of the conection is in TIME_WAIT. In netstat, usually the left hand IP:PORT is the local side, and the right IP:PORT the remote side. In case the left pair of the TIME_WAIT line includes the port 8009, this would mean, that Tomcat closed the connection first, in case 8009 is on the right side, it would mean, that Apache httpd closed the connection first. Maybe you could show us some of the TIME_WAIT netstat lines. Both could be OK, so we could ask ourselves, if we expect such behaviour. In general AJP connections should be used persistently and only closed, if they have been idle for to long. Is the number of TIME_WAIT connections much larger, than the concurrency ("-c") used with ab? Regards, Rainer David Cassidy wrote: Guys, I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. apache config - BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On ProxyPass // balancer://myclusterclear/ stickysession=JSESSIONID|jsessionid Tomcat config (Using the native apr libs) After running a few hits with ab to give it some load there are a very large number of connections between apache and tomcat in a TIME_WAIT status. Is this a common happening ? Is there something that can be configured to prevent this from appearing ? Thanks David - 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: mod_proxy_ajp & TIME_WAIT
Hi ! This is using worker rather than prefork - apache 2.2.6 as comes with fedora 7. I've changed /usr/sbin/httpd to be /usr/sbin/httpd.worker. If I make a 1000 requests with ab with keep alive to apache - eg ab -k -n 1000 then I get alot of connections from apache to tomcat that are in TIME_WAIT - eg tcp0 0 127.0.0.1:46284 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46374 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46306 127.0.0.1:8009 TIME_WAIT tcp0 0 127.0.0.1:46396 127.0.0.1:8009 TIME_WAIT the counts look like 1 LISTEN 2 ESTABLISHED 999 TIME_WAIT ie 999 connections in TIME_WAIT Is there anyway to tell Apache to keep the connections alive for a more connections ? Apache config is : ProxyPass / balancer://myclusterclear/ stickysession=JSESSIONID| jsessionid BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On Tomcat is If I increase the concurrency to 10 from 1 and re-run the same 1,000 tests I get 1 LISTEN 20 ESTABLISHED 990 TIME_WAIT Slightly better but i'd have liked to see there be more ESTABLISHED connections. Running with 30 concurrency i get 1 LISTEN 60 ESTABLISHED 970 TIME_WAIT With 50 concurrency I get 1 LISTEN 28 CLOSE_WAIT 28 FIN_WAIT2 66 ESTABLISHED 939 TIME_WAIT In each case the netstat is performed immediately after the test has finished and before each test run the netstat only has the 1 listen socket for 8009. In each case the netstat is from apache to tomcat So any ideas why tomcat would close the connections ? Many thanks David On Mon, 2007-11-19 at 15:07 +0100, Rainer Jung wrote: > Hi David, > > TIME_WAIT is a normal TCP state after a connection was successfully > closed. Only one side of the connection goes into TIME_WAIT, namely the > side that sent the first FIN. > > So since you've got httpd and Tomcat on the same server, you first need > to find out, which side of the conection is in TIME_WAIT. In netstat, > usually the left hand IP:PORT is the local side, and the right IP:PORT > the remote side. In case the left pair of the TIME_WAIT line includes > the port 8009, this would mean, that Tomcat closed the connection first, > in case 8009 is on the right side, it would mean, that Apache httpd > closed the connection first. Maybe you could show us some of the > TIME_WAIT netstat lines. > > Both could be OK, so we could ask ourselves, if we expect such > behaviour. In general AJP connections should be used persistently and > only closed, if they have been idle for to long. > > Is the number of TIME_WAIT connections much larger, than the concurrency > ("-c") used with ab? > > Regards, > > Rainer > > David Cassidy wrote: > > Guys, > > > > I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. > > > > apache config > > - > > > > BalancerMember ajp://localhost:8009 route=server1 min=0 > > smax=1000 max=1000 keepalive=On > > > > ProxyPass // balancer://myclusterclear/ > > stickysession=JSESSIONID|jsessionid > > > > > > Tomcat config (Using the native apr libs) > > > > > maxThreads="150" minSpareThreads="4"/> > > > > > protocol="AJP/1.3" enableLookups="false" proxyPort="80" > > redirectPort="443" maxKeepAliveRequests="2000" tcpNoDelay="true" > > keepAliveTimeout="1" connectionTimeout="60"/> > > > > After running a few hits with ab to give it some load > > there are a very large number of connections between apache and tomcat > > in a TIME_WAIT status. > > > > Is this a common happening ? Is there something that can be configured > > to prevent this from appearing ? > > > > Thanks > > > > David > > - > 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: IIS + tomcat running on different machine (linux or aix)
Niki Diulgerov wrote: Hello there, I was wonder if someone succeeded to implement this? I can find many HOWTOs in internet describing how to setup IIS 4,5,6 + tomcat but all are about IIS and tomcat running on the same machine. Any link or advice will be appreciated. Havin the web server and Tomcat on different machines is no more difficult, than on the same machine. The only difference is, that the worker definition in workers.properties will contain a real host name instead of localhost in the worker definition. Of course trying to run IIS on Linux or AIX doesn't make sense, because it's a Microsoft product only available for Windows. You can either use Apache httpd or Sun web server on a non Windows platform, or stick with IIS on Windows and nevertheless run Tomcat on a totally different platform. Regards, Rainerv - 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: mod_proxy or mod_jk?
Rocco Scappatura wrote: Hello. I would like to publish a Web application running under Tomcat. I'm using Apache 2 as Web server. Basically, I have two opportunities: 1) mod_jk 2) mod_proxy I've tried the first. So I discover that I ve: - Create an alias in httpd.conf so that al static pages are processed directly by Apache2. - Use JkMount directive so that path is mapped to worker (and so to Tomcat) I don't know I have well understod the concept, but I have noted that application doesn't work correcltly. For example, assuming that the path of the application is '/path'. When I accesst to http:///path all works fine. But if I access to http:///path/subpath I get Visualizzation errors (It seems tome that it misses CSS.. and so on). I read that it is possible to use mod proxy. Now, I would like to know from mailing list if mod_proxy is the best choice or otherwise if I have to solve problem similiar to the one I ve pointed out above, and to use mod_jk. Your problem sounds like a simple config issue, but since you didn't show us your config, who knows ... mod_proxy_* vs. mod_jk: mod_proxy_* comes automatically with httpd and is more tightly integrated into it, mod_jk is still more powerful especially concerning complex instance topologies. So your decision might depend on how complex you expect your final setup to be. Thanks, rocsca Regards, Rainer - 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: mod_proxy_ajp & TIME_WAIT
Hi David, TIME_WAIT is a normal TCP state after a connection was successfully closed. Only one side of the connection goes into TIME_WAIT, namely the side that sent the first FIN. So since you've got httpd and Tomcat on the same server, you first need to find out, which side of the conection is in TIME_WAIT. In netstat, usually the left hand IP:PORT is the local side, and the right IP:PORT the remote side. In case the left pair of the TIME_WAIT line includes the port 8009, this would mean, that Tomcat closed the connection first, in case 8009 is on the right side, it would mean, that Apache httpd closed the connection first. Maybe you could show us some of the TIME_WAIT netstat lines. Both could be OK, so we could ask ourselves, if we expect such behaviour. In general AJP connections should be used persistently and only closed, if they have been idle for to long. Is the number of TIME_WAIT connections much larger, than the concurrency ("-c") used with ab? Regards, Rainer David Cassidy wrote: Guys, I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. apache config - BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On ProxyPass // balancer://myclusterclear/ stickysession=JSESSIONID|jsessionid Tomcat config (Using the native apr libs) After running a few hits with ab to give it some load there are a very large number of connections between apache and tomcat in a TIME_WAIT status. Is this a common happening ? Is there something that can be configured to prevent this from appearing ? Thanks David - 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 4 doesn't start properly
Dears, I have installed Tomcat version 4 using the windows installer. It is installed and i tested the server once. I didn't see much problems using the server. but now I have got a problem. The server is on and i have its icon in the system tray, but it is stopped. When I try to start it again, it deosnt' start anymore and starting process halts in between and as a result I don't have a running server any more. can some one tell me what might be the propbable causes and how can i get them sorted out? regards hamid PS. I have no option except tomcat version 4, so i can't switch to the newer versions.
Enqueuing users requests
Hi everybody, Im managing a web application written with Spring. Im using Apache 2 -> mod_jk as a load balancer -> Tomcat 5.5 I noticed that users are able to click several times at times and their actions are queued. But Id prefer if the server drops any new request if the first one is not completed. Do you know if it is possible to configure the system to behave this way ? Thanks in advance, Stéphane Hanser
Re: mod_proxy or mod_jk?
It almost sounds like it's more a config issue than a module one... Using mod_proxy_ajp is nice because you use normal httpd directives (ProxyPass. etc..) to handle the stuff that TC needs to handle. On Nov 17, 2007, at 8:20 PM, Rocco Scappatura wrote: Hello. I would like to publish a Web application running under Tomcat. I'm using Apache 2 as Web server. Basically, I have two opportunities: 1) mod_jk 2) mod_proxy I've tried the first. So I discover that I ve: - Create an alias in httpd.conf so that al static pages are processed directly by Apache2. - Use JkMount directive so that path is mapped to worker (and so to Tomcat) I don't know I have well understod the concept, but I have noted that application doesn't work correcltly. For example, assuming that the path of the application is '/path'. When I accesst to http:/// path all works fine. But if I access to http:///path/subpath I get Visualizzation errors (It seems tome that it misses CSS.. and so on). I read that it is possible to use mod proxy. Now, I would like to know from mailing list if mod_proxy is the best choice or otherwise if I have to solve problem similiar to the one I ve pointed out above, and to use mod_jk. Thanks, rocsca - 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: Upgrade from mod_jk to mod_proxy_ajp
On Nov 17, 2007, at 5:15 PM, Pid wrote: Gmail User wrote: On Nov 9, 2007 11:19 PM, Gmail User <[EMAIL PROTECTED]> wrote: Any ideas would be appreciated. Just a follow-up since I never got a reply to this--or Gmail is hiding replies from me again. As I found out, Tomcat always worked and going back to mod_jk on httpd-2.2.6 side fixed the problem. So either it is a mod_proxy_ajp or mod_proxy_balancer problem. Ed No replies yet. I'm using proxy_ajp/balancer with no issues either in upload or download. I'd suggest that you upgrade to the most recent version of Tomcat 5.5.25, (I think you said you have 5.5.15), as it does contain bug fixes, which may improve matters. I'm not sure who maintains mod_proxy stuff, but you may get better answers on the HTTPD list. Most likely, yeah... Even though I'm subscribed to [EMAIL PROTECTED], I don't follow it as much as [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: mod_proxy_ajp & TIME_WAIT
Is this worker or prefork MPM? On Nov 15, 2007, at 4:03 AM, David Cassidy wrote: Guys, I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat. apache config - BalancerMember ajp://localhost:8009 route=server1 min=0 smax=1000 max=1000 keepalive=On ProxyPass // balancer://myclusterclear/ stickysession=JSESSIONID|jsessionid Tomcat config (Using the native apr libs) After running a few hits with ab to give it some load there are a very large number of connections between apache and tomcat in a TIME_WAIT status. Is this a common happening ? Is there something that can be configured to prevent this from appearing ? Thanks David - 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: UTF-8 charset encoding
2007/11/19, Ognjen Blagojevic <[EMAIL PROTECTED]>: > I suppose you are using ActionForms. Try to extend ActionForm overriding > your reset method which will set the character encoding, before the > parameters are processed. Something like this: well, I solved with a Valve that impose a default encoding of "UTF-8. This is the perfect solution for me since I read request parameters in other valves that come after in the chain, and I want them correctly encoded. Hence, when the Struts takes control of the application, the request parameters are parsed with the already set correct encoding. Thanks, TN - 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: Setting Java property inside a webapp
For tomcat you can define JAVA_OPTS system variable to supply additional parameters for the java machine. That includes the possibility to define -Dyour.property= See the comments at the begin of catalina.bat or catalina.sh. You can either modify catalina.bat/.sh or whatever bat file that is used to start tomcat. If you running Tomcat as a service (under Windows), the JVM options are specified through the configuration dialog (on the Java tab of it). If you running Tomcat from an IDE, there are IDE-specific ways to customize launching configuration and supply those options to java. Of course, these settings are global for the tomcat instance. There does not exist any way to specify different system property values for different web applications. Other tricks include modifying/updating system properties values on the fly. As far as SecurityManager allows you to do that (IMHO, it should not). Best regards, K. 2007/11/14, Kaj Kandler <[EMAIL PROTECTED]>: > Hi there, > I do have a library, that uses a property to determine some > configuration. As a straight Java program I would call > > java -dmy.property=/my/value ... > > How can I set this property in the context of a tomcat webapp, like in > the web.xml or context.xml? > > Thanks for the help > > K > -- - 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 mod_jk error log
Hi Rainer, Thanks a lot for quick response. Let me try to follow your suggestion first. I will update you later. Again, thank you :) Regards, Martin Rainer Jung-3 wrote: > > Hi Martin, > > lanes wrote: >> Hi Rainer, >> >> my os is Red Hat Linux v7.3 2.96-112. >> >> this my workers.properties = > > Delete the next 3 lines, they are useless. > >> workers.tomcat_home=/usr/local/tomcat >> workers.java_home=/usr/java/j2sdk1.4.1_02 >> ps=/ > > I hope you are not really trying to do ajp12? > If you are only using ajp13, then delete ajp12 from the worker list and > all lines of the form worker.ajp12=... from the workers.properties > file. > >> worker.list=ajp12, ajp13 >> worker.ajp12.port=8007 >> worker.ajp12.host=localhost >> worker.ajp12.type=ajp12 >> worker.ajp12.lbfactor=1 >> worker.ajp13.port=8009 >> worker.ajp13.host=localhost >> worker.ajp13.type=ajp13 >> worker.ajp13.lbfactor=1 > > Read the docs about the more up-to-date names of the directives > cachesize and cache_timeout (the page on workers.properties containes a > list of deprecated attributes and their replacements). > >> worker.ajp13.cachesize=10 >> worker.ajp13.cache_timeout=600 >> worker.ajp13.socket_keepalive=1 >> worker.ajp13.socket_timeout=300 >> worker.ajp13.reply_timeout=6 >> worker.loadbalancer.type=lb > > It doesn't really make sense to balance between an ajp12 and an ajp13 > worker (it should work, but I see no real reason for it). > >> worker.loadbalancer.balanced_workers=ajp12, ajp13 > > Delete all the worker.inprocess, I hope you are not really trying to use > them. > >> worker.inprocess.type=jni >> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar >> worker.inprocess.cmd_line=start >> worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll >> worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout >> worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr >> > > Which version of mod_jk? Modern version will log an info message during > startup, for older ones you can do > > strings modules/mod_jk.so | fgrep 1.2. > > Version 1.2.25 is the most recent (and recommended). > >> below is my apache conf file to load mod_jk = >> LoadModulejk_module modules/mod_jk.so >> JkWorkersFile /usr/local/tomcat/conf/workers.properties >> JkLogFile /etc/httpd/logs/mod_jk.log >> JkLogLevelinfo > > Better use the default JkLogStampFormat, then you will profit from > improvements there (e.g. since version 1.2.25 we log milliseconds by > default, unless you are using an old hard-coded JkLogStampFormat). > >> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " >> Alias /testPortal /usr/local/tomcat/webapps/testPortal >> JkMount /*.jsp ajp13 >> JkMount /*/servlet/ ajp13 > > OK, so you are not usiung ajp12 and inprocess workers (good) and you can > delete the respective config items in workers.properties. > > Since you don't use the loadbalancer either, you can also delete those > lines (or instead replace "ajp13" in the JkMount by "loadbalancer"). > >> >> >> My tomcat version is 4.1.12 > > Oops, that's very outdated, and maybe here's the reason for the error > messages. It could very well be, that Cping/Cpong were invented after > 4.1.12, so the Tomcat connector might not know about this protocol. If > you need to stick to 4.1, that version is still well maintaoined. Please > update to 4.1.36 and try again. > >> >> Thank you very much. >> >> Regards, >> Martin > > Regards, > > Rainer > >> >> Rainer Jung-3 wrote: >>> Hi, >>> >>> we can't identify your problem without knowing your configuration. >>> >>> Please give us >>> >>> - your operating system >>> - your Tomcat connector configuration for the connector you talk to via >>> mod_jk >>> - your workers.properties >>> - your httpd JK-directives >>> - your Tomcat-version and mod_jk-version >>> >>> You can furthermore improve the chance of finding your problem by >>> running your test case when having "JkLogLevel debug" and posting >>> the full jk log file in addition. >>> >>> I would guess, the problem could have to do with a firewall dropping >>> idle connections between Apache and Tomcat? If so, look at the Timeouts >>> documentation page of mod_jk. >>> >>> Regards, >>> >>> Rainer >>> >>> >>> Marthen LT schrieb: hi all, i have a live production server running tomcat & apache under linux. but recently my cpu usage is being consumed by the mod_jk log file. it keep logging and saying below warning/error messages: [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (819)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1 [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (717)]: Error ajp13:cping: awaited reply cpong, not received [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (1026)]: Error sending request try another pooled connection what is hap
Re: Running tomcat as a service on 64 bit windows
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 19, 2007 12:01 PM Subject: Re: Running tomcat as a service on 64 bit windows Oops I see thats what you trying that already.. Rather look at this message (from a guy that develops this area of TC) http://www.nabble.com/running-tomcat-5.5-as-a-service-on-64bit-windows-t2447172.html I read somewhere else that tomcat5 and tomcat5w are misneamed in the SVN http://svn.apache.org/viewvc/tomcat/connectors/tags/tc5.5.x/TOMCAT_5_5_23/procrun/bin/ They should be swapped... but first follow the instruction of the guru... and only try that if it doesnt work. Also go to the manager services panel and make sure the old service is stopped. then run "sc delete tomcat_whatever" to remove the service then do the guru thing... good luck == dont use this guy is renaming tomcat 5 to 6 -> that cant be good This guy seems have located a 64 bit windows service. http://blog.granilus.com/2007/06/running-tomcat-as-64-bit-windows.html - Original Message - From: "Asawari" <[EMAIL PROTECTED]> To: Sent: Monday, November 19, 2007 9:49 AM Subject: Running tomcat as a service on 64 bit windows Hi , I want to run tomcat as a service on 64 bit windows XP. I followed the following link http://blog.granilus.com/2007/06/running-tomcat-as-64-bit-windows.html I downloaded the tomcat binaries and renamed them appropriately. My service gets installed, however when i try to start the service it does not get started. Can anyone tell me why this is happening.. Thanks! -- View this message in context: http://www.nabble.com/Running-tomcat-as-a-service-on-64-bit-windows-tf4833862.html#a13829107 Sent from the Tomcat - User mailing list archive 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] - 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: UTF-8 charset encoding
Tremal Naik wrote: Oh, yes, you're right. I'm using version 1.1, that's why probably I don't have that option available. Unfortunately I'm not allowed to upgrade to a newer version... I suppose you are using ActionForms. Try to extend ActionForm overriding your reset method which will set the character encoding, before the parameters are processed. Something like this: public class UTF8ActionForm extends ActionForm { public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); try { request.setCharacterEncoding("UTF-8"); } catch (UnsupportedEncodingException ioe) { throw new RuntimeException(ioe.getMessage()); } } } And then just instead of using ActionForm use UTF8ActionForm. And try asking on Struts mailing list, there should be more people who solved the same problem. Regards, Ognjen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS + tomcat running on different machine (linux or aix)
Hello there, I was wonder if someone succeeded to implement this? I can find many HOWTOs in internet describing how to setup IIS 4,5,6 + tomcat but all are about IIS and tomcat running on the same machine. Any link or advice will be appreciated. -- Best regards, Nikolay Diulgerov Network Administrator E-mail: [EMAIL PROTECTED] Telephone : +33 4 89 87 77 77 Fax : +33 4 89 87 77 00 Web: http://www.codix-france.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: UTF-8 charset encoding
2007/11/19, Ognjen Blagojevic <[EMAIL PROTECTED]>: > Which version of Struts are you using? 1.2.7 does support acceptCharset, > as you can see here: Oh, yes, you're right. I'm using version 1.1, that's why probably I don't have that option available. Unfortunately I'm not allowed to upgrade to a newer version... Thanks, again TN - 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 as a service on 64 bit windows
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- This guy seems have located a 64 bit windows service. http://blog.granilus.com/2007/06/running-tomcat-as-64-bit-windows.html - Original Message - From: "Asawari" <[EMAIL PROTECTED]> To: Sent: Monday, November 19, 2007 9:49 AM Subject: Running tomcat as a service on 64 bit windows Hi , I want to run tomcat as a service on 64 bit windows XP. I followed the following link http://blog.granilus.com/2007/06/running-tomcat-as-64-bit-windows.html I downloaded the tomcat binaries and renamed them appropriately. My service gets installed, however when i try to start the service it does not get started. Can anyone tell me why this is happening.. Thanks! -- View this message in context: http://www.nabble.com/Running-tomcat-as-a-service-on-64-bit-windows-tf4833862.html#a13829107 Sent from the Tomcat - User mailing list archive 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] - 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: UTF-8 charset encoding
Tremal Naik wrote: 2007/11/16, Ognjen Blagojevic <[EMAIL PROTECTED]>: Did you try to put acceptCharset="UTF-8" in the form tag? well, I'm using Struts and it looks the html:form tag doesn't allow any acceptCharset attribute. I tried to set the enctype attribute, but with no effect. Which version of Struts are you using? 1.2.7 does support acceptCharset, as you can see here: http://struts.apache.org/1.2.7/userGuide/struts-html.html#form Regards, Ognjen - 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: UTF-8 charset encoding
2007/11/16, Mark Thomas <[EMAIL PROTECTED]>: > > Some standard text I wrote a while ago follows. The most useful bit is > probably the URIEncoding attribute on the connector. Thanks Mark, I think I read your paper somewhere before I decided to write to this help request. In fact, if you read carefully the last paragraph of my original post, I said that I already tried setting the connector parameter URIEncoding="UTF-8". Unfortunately, this parameter is read after the first parse occurred, as I explained there, making the subsequent setting useless in terms of request body parsing. I think (I didn't investigate further) this is due a Valve I wrote that accesses the request parameters before the Connector.getURIEncoding() is invoked the first time. I solved this with another Valve (which code is copy/pasted from the SetCharacterEncodingFilter) that is invoked as the first in the chain. Thanks, TN - 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 mod_jk error log
Hi Martin, lanes wrote: Hi Rainer, my os is Red Hat Linux v7.3 2.96-112. this my workers.properties = Delete the next 3 lines, they are useless. workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/java/j2sdk1.4.1_02 ps=/ I hope you are not really trying to do ajp12? If you are only using ajp13, then delete ajp12 from the worker list and all lines of the form worker.ajp12=... from the workers.properties file. worker.list=ajp12, ajp13 worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 Read the docs about the more up-to-date names of the directives cachesize and cache_timeout (the page on workers.properties containes a list of deprecated attributes and their replacements). worker.ajp13.cachesize=10 worker.ajp13.cache_timeout=600 worker.ajp13.socket_keepalive=1 worker.ajp13.socket_timeout=300 worker.ajp13.reply_timeout=6 worker.loadbalancer.type=lb It doesn't really make sense to balance between an ajp12 and an ajp13 worker (it should work, but I see no real reason for it). worker.loadbalancer.balanced_workers=ajp12, ajp13 Delete all the worker.inprocess, I hope you are not really trying to use them. worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr Which version of mod_jk? Modern version will log an info message during startup, for older ones you can do strings modules/mod_jk.so | fgrep 1.2. Version 1.2.25 is the most recent (and recommended). below is my apache conf file to load mod_jk = LoadModulejk_module modules/mod_jk.so JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo Better use the default JkLogStampFormat, then you will profit from improvements there (e.g. since version 1.2.25 we log milliseconds by default, unless you are using an old hard-coded JkLogStampFormat). JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " Alias /testPortal /usr/local/tomcat/webapps/testPortal JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 OK, so you are not usiung ajp12 and inprocess workers (good) and you can delete the respective config items in workers.properties. Since you don't use the loadbalancer either, you can also delete those lines (or instead replace "ajp13" in the JkMount by "loadbalancer"). My tomcat version is 4.1.12 Oops, that's very outdated, and maybe here's the reason for the error messages. It could very well be, that Cping/Cpong were invented after 4.1.12, so the Tomcat connector might not know about this protocol. If you need to stick to 4.1, that version is still well maintaoined. Please update to 4.1.36 and try again. Thank you very much. Regards, Martin Regards, Rainer Rainer Jung-3 wrote: Hi, we can't identify your problem without knowing your configuration. Please give us - your operating system - your Tomcat connector configuration for the connector you talk to via mod_jk - your workers.properties - your httpd JK-directives - your Tomcat-version and mod_jk-version You can furthermore improve the chance of finding your problem by running your test case when having "JkLogLevel debug" and posting the full jk log file in addition. I would guess, the problem could have to do with a firewall dropping idle connections between Apache and Tomcat? If so, look at the Timeouts documentation page of mod_jk. Regards, Rainer Marthen LT schrieb: hi all, i have a live production server running tomcat & apache under linux. but recently my cpu usage is being consumed by the mod_jk log file. it keep logging and saying below warning/error messages: [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (819)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. err=-1 [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (717)]: Error ajp13:cping: awaited reply cpong, not received [Fri Nov 16 15:02:13 2007] [jk_ajp_common.c (1026)]: Error sending request try another pooled connection what is happening? i try to restart my tomcat also didn't give me a solution. any help will be appreciated. thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Running tomcat as a service on 64 bit windows
> My service gets installed, however when i try to start the service it does not get started. AFAIK the 64-bit versions of Windows will not start 32-bit apps as services. (I ran into the same problem trying to use Vista-64 under Boot Camp on a Mac: Apple's drivers only support 32-bit Windows versions so the auto-installer failed at trying to start the two services it tries at the end of the setup.) So you probably need to be sure you get a 64-bit JVM in order to run it as a service using srvany or the like, or a 64-bit exe for Tomcat when using those binaries for the service. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]