RE: Comet and thread binding
Bob Hall wrote: Have you considered using ThreadLocal? Yes. But the problem with comet is that it may switch threads mid request; a request can be suspended, the thread freed up, and after a while the request is resumed, but by probably a different thread. So I cannot bind the request to the thread anymore. -- View this message in context: http://old.nabble.com/Comet-and-thread-binding-tp27026574p27056330.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Comet and thread binding
--- On Thu, 1/7/10 at 12:02 AM, tbee t...@tbee.org wrote: Yes. But the problem with comet is that it may switch threads mid request; a request can be suspended, the thread freed up, and after a while the request is resumed, but by probably a different thread. So I cannot bind the request to the thread anymore. I don't have much Comet experience but given that it can pause and resume processing of a given request, would it be possible to bind your execution context to that 'request' and re-bind it to the 'new' Thread when request processing resumes? - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Comet and thread binding
Bob Hall wrote: I don't have much Comet experience but given that it can pause and resume processing of a given request, would it be possible to bind your execution context to that 'request' and re-bind it to the 'new' Thread when request processing resumes? That would be my question exactly :-) There probably would a suspend and resume listener for then the threads are suspended and resumed in a comet scenario, but it has to be standarized. I see there is something defined in Servlet 3.0 (JSR 315, http://jcp.org/en/jsr/detail?id=315) -- View this message in context: http://old.nabble.com/Comet-and-thread-binding-tp27026574p27057207.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Load balancing questions
The application is not compatible with Jboss 5 ,so I could not make the upgrade. And I don't have the source. On Wed, Jan 6, 2010 at 10:09 PM, Bob Hall rfha...@yahoo.com wrote: --- On Wed, 1/6/10 at 7:54 AM, assan alhamoud hamoudas...@gmail.com wrote: any suggestion ? Upgrade to a more recent version of JBoss/Tomcat, like JBoss 5.1.0. - Bob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- وداعاً ميخائيل
High Load examples?
Hello. Right now, we're using Bea WebLogic as our application server. We'd like to change to Tomcat 6. Now the creator of the application being run on the App Server said, that Tomcat works very well under low usage / low load situations. But if there are many (unsure about the definition of many...) users, Tomcat might tend to not perform so well anymore. I suppose many might mean like 50-100+ concurrent users using the App or system at the same time. Now I'm wondering, if that's actually true - does Tomcat not perform well anymore, if there are many users using it? Does anyone of you maybe have real world examples of high profile / high load sites using Tomcat (6)? Best regards, Alexander -- View this message in context: http://old.nabble.com/High-Load-examples--tp27058015p27058015.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: High Load examples?
2010/1/7 Alexander Skwar alexanders.mailinglists+nos...@gmail.com: Right now, we're using Bea WebLogic as our application server. We'd like to change to Tomcat 6. Now the creator of the application being run on the App Server said, that Tomcat works very well under low usage / low load situations. But if there are many (unsure about the definition of many...) users, Tomcat might tend to not perform so well anymore. I suppose many might mean like 50-100+ concurrent users using the App or system at the same time. Now I'm wondering, if that's actually true - does Tomcat not perform well anymore, if there are many users using it? Does anyone of you maybe have real world examples of high profile / high load sites using Tomcat (6)? University of Leeds routinely had 100+ active users on its Bodington VLE, and I'm aware of Sakai sites that load-balance across 4-8 Tomcat application servers that can serve around 5,000 concurrent users. A correctly configured Tomcat has no problem at high loads. It's barely possible your application creator might be talking in code for the following: Something in WebLogic means that our application runs fine, whereas something in Tomcat tickles a bug in our application that means it doesn't scale. This isn't unusual - unless an application is tested under many containers, it's very common for a platform dependence to creep in. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: High Load examples?
On 07/01/2010 11:24, Alexander Skwar wrote: Hello. Right now, we're using Bea WebLogic as our application server. We'd like to change to Tomcat 6. Now the creator of the application being run on the App Server said, that Tomcat works very well under low usage / low load situations. But if there are many (unsure about the definition of many...) users, Tomcat might tend to not perform so well anymore. I suppose many might mean like 50-100+ concurrent users using the App or system at the same time. Now I'm wondering, if that's actually true - does Tomcat not perform well anymore, if there are many users using it? Does anyone of you maybe have real world examples of high profile / high load sites using Tomcat (6)? The powered by list [1] is a good place to start. The reference I usually use (because I work for SpringSource) is actually a tc Server reference [2] but all the stuff that matters (the nice things they say about increased throughput, lower server load and improved scalability) is pure Tomcat. In my experience if an app performs badly under load it doesn't matter what application server you run it on it will always perform badly under load. With well written applications I have seen a single Tomcat instance handle 1600 concurrent requests all with sub-second response time quite happily with 1GB RAM and ~5% CPU. In that case the load testing framework fell over long before Tomcat even looked like it might be struggling - but it was a *very* well written application. Equally, I have seen applications with issues struggle to manage 10 concurrent users. Keep in mind that you may need to tune threads, memory and GC settings to suit your app and the associated load. HTH, Mark [1] http://wiki.apache.org/tomcat/PoweredBy [2] http://www.springsource.com/files/uploads/all/pdf_files/customer/Associated%20Newspapers%20Case%20Study1.pdf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
add port number to rul after login or logout
Hi, I dont know where to ask or exacly what is source of this problem but... I deployed my grails + acegi application on tomcat6 i bought a domain and point it to ip of my serwer in apatch i placed connfiguration VirtualHost *:80 ServerName example.com Include /etc/apache2/vhosts.d/default_vhost.include ProxyRequests On ProxyPass / http://www.example.com:8080/ IfModule mpm_peruser_module ServerEnvironment apache apache /IfModule /VirtualHost and when i enter my domain address everything works fine, but when i try to login or logout application add to my url addres tomcat port number ie: im entering address www.example.com i try to login in and im redirected to my domain name addres but with default tomcat port number www.example.com:8080 -- View this message in context: http://old.nabble.com/add-port-number-to-rul-after-login-or-logout-tp27059426p27059426.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: add port number to rul after login or logout
On 07/01/2010 12:47, pionier wrote: Hi, I dont know where to ask or exacly what is source of this problem but... I deployed my grails + acegi application on tomcat6 i bought a domain and point it to ip of my serwer in apatch i placed connfiguration VirtualHost *:80 ServerName example.com Include /etc/apache2/vhosts.d/default_vhost.include ProxyRequests On ProxyPass / http://www.example.com:8080/ IfModule mpm_peruser_module ServerEnvironment apache apache /IfModule /VirtualHost and when i enter my domain address everything works fine, but when i try to login or logout application add to my url addres tomcat port number ie: im entering address www.example.com i try to login in and im redirected to my domain name addres but with default tomcat port number www.example.com:8080 Try adding: ProxyPassReverse / http://www.example.com:8080/ Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: add port number to rul after login or logout
markt-2 wrote: Try adding: ProxyPassReverse / http://www.example.com:8080/ Mark Thx it helped!! :* :] -- View this message in context: http://old.nabble.com/add-port-number-to-rul-after-login-or-logout-tp27059426p27059649.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
java shutdown hook and classpath
Hi and Happy New Year! I have a library that uses JDBC and is being used within a my web app. The library and JDBC driver jars are in the web app's WEB-INF/lib directory. The library installs a Java shutdown hook, which ultimately uses the JDBC driver to do some clean ups in the database. I'm getting a class not found error when trying to load the JDBC driver (in this case derby) in the hook. I suspect this is because the shutdown hook has been called with a class loader that does not have access to WEB-INF/lib. Any thoughts or solutions? Thanks. David Wood Policy Technologies Group IBM TJ Watson Research Center daw...@us.ibm.com 914-784-5123 (office), 914-396-6515 (mobile)
Re: java shutdown hook and classpath
Usually when i get these kind of problems i try and put the jar files in the tomcat common/lib folder to rule out class loader issues. Try and put the libraries there as all jar files in that folder will be picked up. On Thu, Jan 7, 2010 at 1:16 PM, David Wood daw...@us.ibm.com wrote: Hi and Happy New Year! I have a library that uses JDBC and is being used within a my web app. The library and JDBC driver jars are in the web app's WEB-INF/lib directory. The library installs a Java shutdown hook, which ultimately uses the JDBC driver to do some clean ups in the database. I'm getting a class not found error when trying to load the JDBC driver (in this case derby) in the hook. I suspect this is because the shutdown hook has been called with a class loader that does not have access to WEB-INF/lib. Any thoughts or solutions? Thanks. David Wood Policy Technologies Group IBM TJ Watson Research Center daw...@us.ibm.com 914-784-5123 (office), 914-396-6515 (mobile)
RE: connect tomcat and apache by mod_jk2
From: WILLIAMer [mailto:william.tz...@echannelopen.com.tw] Subject: connect tomcat and apache by mod_jk2 I have connect tomcat and apache by mod_jk2 That was a mistake. mod_jk2 has been deprecated for many years. Please try again with supported versions of Tomcat, httpd, and mod_jk. Note that unless you're using httpd for something serious (e.g., PHP, load balancing), front-ending Tomcat with it is a waste of time. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Load balancing questions
From: assan alhamoud [mailto:hamoudas...@gmail.com] Subject: Re: Load balancing questions The application is not compatible with Jboss 5 That's difficult to believe. We haven't found anything from JBoss 4.x that didn't work with 5.x. Have you tried it? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to change effective user id on Windows
Tomat on Linux starts as root to bind to port 80, and then switches effective user id to nobody. Windows does not appear to have concept of changing effective user. Tomcat service runs as a local system on Windows. Need to change the user for Tomcat after binding to port 80. How can this be achieved? -- Sent from Karnataka, India
Re: Load balancing questions
we are using jboss-3.2.5 On Thu, Jan 7, 2010 at 5:05 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: assan alhamoud [mailto:hamoudas...@gmail.com] Subject: Re: Load balancing questions The application is not compatible with Jboss 5 That's difficult to believe. We haven't found anything from JBoss 4.x that didn't work with 5.x. Have you tried it? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- وداعاً ميخائيل
Re: How to change effective user id on Windows
2010/1/7 Amit Agarwal ami@gmail.com: Tomat on Linux starts as root to bind to port 80, and then switches effective user id to nobody. Windows does not appear to have concept of changing effective user. Tomcat service runs as a local system on Windows. Need to change the user for Tomcat after binding to port 80. How can this be achieved? Just start Tomcat as the non-system user on Windows. Windows does not prevent any process binding to privileged ports. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: java shutdown hook and classpath
From: David Wood [mailto:daw...@us.ibm.com] Subject: java shutdown hook and classpath The library installs a Java shutdown hook, which ultimately uses the JDBC driver to do some clean ups in the database. If you have access to the library source, you might want to consider replacing the JVM shutdown hook with a ServletContextListener. This will do the appropriate cleanup whenever the webapp is stopped (e.g., redeployment), rather than just when Tomcat terminates - and get rid of the class not found problem. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to change effective user id on Windows
Look at http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.htmland see the --user parameter under command line parameters. -- D On Thu, Jan 7, 2010 at 2:07 PM, Amit Agarwal ami@gmail.com wrote: Tomat on Linux starts as root to bind to port 80, and then switches effective user id to nobody. Windows does not appear to have concept of changing effective user. Tomcat service runs as a local system on Windows. Need to change the user for Tomcat after binding to port 80. How can this be achieved? -- Sent from Karnataka, India
RE: Load balancing questions
From: assan alhamoud [mailto:hamoudas...@gmail.com] Subject: Re: Load balancing questions we are using jboss-3.2.5 That's 5.5 years old; you should try to keep up a bit more often than that. Regardless, have you tried moving to Jboss 5.x? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Load balancing questions
Not yet , I am going to test although the company that made the product says it is not possible . Is there any link that help me in this upgrade ? On Thu, Jan 7, 2010 at 5:18 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: assan alhamoud [mailto:hamoudas...@gmail.com] Subject: Re: Load balancing questions we are using jboss-3.2.5 That's 5.5 years old; you should try to keep up a bit more often than that. Regardless, have you tried moving to Jboss 5.x? - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- وداعاً ميخائيل
RE: How to change effective user id on Windows
The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Be warned that running a service under other credentials than the system user is likely to lead to a less secure configuration, instead of improving. M. -Original Message- From: Amit Agarwal [mailto:ami@gmail.com] Sent: donderdag 07 januari 2010 15:08 To: users@tomcat.apache.org Subject: How to change effective user id on Windows Tomat on Linux starts as root to bind to port 80, and then switches effective user id to nobody. Windows does not appear to have concept of changing effective user. Tomcat service runs as a local system on Windows. Need to change the user for Tomcat after binding to port 80. How can this be achieved? -- Sent from Karnataka, India This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law. If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message. Thank you for your co-operation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Load balancing questions
From: assan alhamoud [mailto:hamoudas...@gmail.com] Subject: Re: Load balancing questions Is there any link that help me in this upgrade ? I'd look at jboss.org and browse the community support area. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to change effective user id on Windows
2010/1/7 Looijmans, Mike mike.looijm...@oce.com: The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Sorry to pick you up on this one, Mike, but I think you're thinking of Local*Service*, not Local*System*. LocalSystem has full administrative access to the local computer, including (for example) being able to write a rogue DLL to a spare directory, then amend the registry so that that DLL is loaded by every process that runs on the machine from this point onwards. Or create a new local account that *does* have desktop access and spawn a process running as that user. If you can compromise LocalSystem, you've got the machine. Windows' LocalSystem is very, very close to Unix's root. If you want a non-privileged account, use LocalService not LocalSystem. See, for example http://blogs.msdn.com/jmanning/archive/2008/04/06/localsystem-root-localservice-nobody.aspx - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Cross Context Session Creation-
Hello Friends, I am using a cross context mode in my web application. Suppose there are 3 web conext A , B, C. They will access another web application D through cross context forwarding. Now I want to know while forwarding a request from A to D , whether session will go from A to D or a new session will be created under D. Also I want to know how many active session I can create under a web application/context in tomcat?? I am using tomcat 6.x and java 6. Thanks, Ghosh
fatal error LNK1181: cannot open input file 'libeay32.lib'
Hello, I realize this might be a stupid question but I'm just an intern and have almost no idea what I'm doing and could really use any help. I am following the directions given on the apache website on how to download and compile the tomcat native using MS Visual Studio on a windows. I have already downloaded the native and OpenSSL and the APR. But I'm new to this and when it says adjust the OpenSSL includes and libraries location it doesn't say where to put them. I figured out to put the includes into the native includes folder but where do I put the Libraries? Also it says to change the names of the libraries libeay32 and libssleay to libeay32MT and libssleayMT, but there is no libssleay in the lib folder. Am I looking in the wrong place or am I just doing it wrong? Any help would be greatly appreciated. Thanks Josh
How to prevent Tomcat 5.5 from undeploying applications
We have a Tomcat 5.5.17 with a approot.xml file in conf\Catalina\localhost just pointing to a shared disk location ?xml version=1.0 encoding=UTF-8? Context docBase=G:/ibi/apps /Context If for any reason/technical problem this disk is temporarily not available Tomcat undeploy the application and deletes the approot.xml with the following message 7 janv. 2010 16:27:31 org.apache.catalina.startup.HostConfig checkResources INFO: Repli (undeploy) de l'application web ayant pour chemin de contexte /approot How can we prevent this from happening, because whenever the disk is back online, someone has to manually copy back the context root into the location. Thanks.
Re: How to prevent Tomcat 5.5 from undeploying applications
2010/1/7 jean-claude_carri...@ibi.com: We have a Tomcat 5.5.17 with a approot.xml file in conf\Catalina\localhost just pointing to a shared disk location [...] How can we prevent this from happening, because whenever the disk is back online, someone has to manually copy back the context root into the location. Use reliable, and hence local, storage. If you *have* to have the master copy on a network drive, you could keep your applications on G:\ibi but set up Windows file replication so that there's a replica on the Tomcat server. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to prevent Tomcat 5.5 from undeploying applications
On 07/01/2010 16:49, jean-claude_carri...@ibi.com wrote: How can we prevent this from happening, because whenever the disk is back online, someone has to manually copy back the context root into the location. Turn off autoDeploy Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Cross Context Session Creation-
From: Arnab Ghosh [mailto:gh...@glenwoodsystems.com] Subject: Cross Context Session Creation- Now I want to know while forwarding a request from A to D , whether session will go from A to D or a new session will be created under D. To quote from 7.3 of the servlet spec (which you should read): HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container. To illustrate this requirement with an example: if a servlet uses the RequestDispatcher to call a servlet in another Web application, any sessions created for and visible to the servlet being called must be different from those visible to the calling servlet. Also I want to know how many active session I can create under a web application/context in tomcat?? Whatever your heap size allows. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: fatal error LNK1181: cannot open input file 'libeay32.lib' Am I looking in the wrong place or am I just doing it wrong? Any help would be greatly appreciated. Do you need to rebuild the tcnative DLL? If not, just download the binaries from: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.18/binaries/win32/ or http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.18/binaries/win64/ depending on architecture in use. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: ArrayIndexOutOfBoundsException
Hi everyone. Sorry it took some time but here it is. It actually looks like changing the variables to method variables fixed the problem. It has been running for 3 days now without any problems. Thanks everyone. Best Regards Geoffrey Phone Norway: +47 45 86 53 83 Fileflow Technologies AS Ole Deviks vei 35, 0668 Oslo, Norway - On 25 Nov 2009, at 15:39, Pid wrote: On 25/11/2009 14:05, geoff...@fileflow.com wrote: On 25 Nov 2009, at 14:34, Felix Schumacher wrote: Am Dienstag, den 24.11.2009, 17:57 +0100 schrieb geoff...@fileflow.com: Hi everyone. I'm stuck with a problem I don't understand. We have a tomcat server and after redeploying our war file, we get this error: ... Are in and out instance variables? They should be method variables, like public void doGet(...) { ServletOutputStream out; InputStream in; ... in = new FileInputStream(tmp); ... } else concurrent calls to your servlet will mixup your out and in variables. They are actually instance variable. I'll check if moving them solves the problem. Mmm. Yes... p Hth Felix Notice that there are no number on the first line and it is usually the case. The code that is responsible is: private ServletOutputStream out; private InputStream in; ... in = new FileInputStream(tmp); ... out = response.getOutputStream(); byte[] buf = new byte[8 * 1024]; // 8K buffer int bytesRead; while((bytesRead = in.read(buf)) 0) { out.write(buf, 0, bytesRead); } The updated code didn't change anything in that Servlet so I really have no clue what happened. It happens on tomcat 6.0.18 and 6.0.20. Java is 1.6.0_11. Thanks for any help. Best Regards Geoffrey - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org smime.p7s Description: S/MIME cryptographic signature
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
It won't let me open it in MS Visual, it says the file cannot be open with the selected editor. Please choose another editor. Or am I supposed to open it with something else? Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:03 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: fatal error LNK1181: cannot open input file 'libeay32.lib' Am I looking in the wrong place or am I just doing it wrong? Any help would be greatly appreciated. Do you need to rebuild the tcnative DLL? If not, just download the binaries from: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.18/binaries/win32/ or http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.18/binaries/win64/ depending on architecture in use. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' It won't let me open it in MS Visual, it says the file cannot be open with the selected editor. They're binaries, not source. Just place the appropriate one in Tomcat's bin directory and you're good to go. No mucking around with VisualStudio (or whatever that abomination is called this week). - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
Oh I'm sorry for not being more specific in my original post, I'm looking for the source code for Tomcat that I can compile and then make changes to, that is the point of the native and all those instructions right, to get a working version of the Tomcat source? Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:19 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' It won't let me open it in MS Visual, it says the file cannot be open with the selected editor. They're binaries, not source. Just place the appropriate one in Tomcat's bin directory and you're good to go. No mucking around with VisualStudio (or whatever that abomination is called this week). - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' Oh I'm sorry for not being more specific in my original post, I'm looking for the source code for Tomcat that I can compile and then make changes to, that is the point of the native and all those instructions right, to get a working version of the Tomcat source? True, but almost all of Tomcat proper is in Java, not native code. Only the APR connector is in C, the other connectors are pure Java. Unless you are narrowly focused on that one connector, don't bother with it, and just use a better IDE (or a plain editor) to fiddle with the guts of Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
I think I am though, I'm sorry I'm not very descriptive but all I know is that I'm looking for something called tomcat6w.exe and from what I understand it's supposed to be in c code, or at least that's what I was told. Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:29 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' Oh I'm sorry for not being more specific in my original post, I'm looking for the source code for Tomcat that I can compile and then make changes to, that is the point of the native and all those instructions right, to get a working version of the Tomcat source? True, but almost all of Tomcat proper is in Java, not native code. Only the APR connector is in C, the other connectors are pure Java. Unless you are narrowly focused on that one connector, don't bother with it, and just use a better IDE (or a plain editor) to fiddle with the guts of Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: fatal error LNK1181: cannot open input file 'libeay32.lib'
joshua_korn-heil...@ibi.com wrote: I think I am though, I'm sorry I'm not very descriptive but all I know is that I'm looking for something called tomcat6w.exe and from what I understand it's supposed to be in c code, or at least that's what I was told. Tomcat6w monitoring app for tomcat on windows. It's not tomcat itself, nor is it tcnative.dll. Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:29 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' Oh I'm sorry for not being more specific in my original post, I'm looking for the source code for Tomcat that I can compile and then make changes to, that is the point of the native and all those instructions right, to get a working version of the Tomcat source? True, but almost all of Tomcat proper is in Java, not native code. Only the APR connector is in C, the other connectors are pure Java. Unless you are narrowly focused on that one connector, don't bother with it, and just use a better IDE (or a plain editor) to fiddle with the guts of Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
Where could I find the source code that calls it then? Thanks Josh -Original Message- From: David kerber [mailto:dcker...@verizon.net] Sent: Thursday, January 07, 2010 2:43 PM To: Tomcat Users List Subject: Re: fatal error LNK1181: cannot open input file 'libeay32.lib' joshua_korn-heil...@ibi.com wrote: I think I am though, I'm sorry I'm not very descriptive but all I know is that I'm looking for something called tomcat6w.exe and from what I understand it's supposed to be in c code, or at least that's what I was told. Tomcat6w monitoring app for tomcat on windows. It's not tomcat itself, nor is it tcnative.dll. Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:29 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' Oh I'm sorry for not being more specific in my original post, I'm looking for the source code for Tomcat that I can compile and then make changes to, that is the point of the native and all those instructions right, to get a working version of the Tomcat source? True, but almost all of Tomcat proper is in Java, not native code. Only the APR connector is in C, the other connectors are pure Java. Unless you are narrowly focused on that one connector, don't bother with it, and just use a better IDE (or a plain editor) to fiddle with the guts of Tomcat. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' all I know is that I'm looking for something called tomcat6w.exe and from what I understand it's supposed to be in c code Yes, that is C code, but it's not part of the Tomcat source. It's a GUI service monitor and configuration utility that is actually a renamed version of the Windows part of Apache Commons daemon. You can find more information about that (including download links) here: http://commons.apache.org/daemon/procrun.html - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: fatal error LNK1181: cannot open input file 'libeay32.lib'
Thank you so much you have been a big help! Thanks Josh -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, January 07, 2010 2:46 PM To: Tomcat Users List Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' From: joshua_korn-heil...@ibi.com [mailto:joshua_korn-heil...@ibi.com] Subject: RE: fatal error LNK1181: cannot open input file 'libeay32.lib' all I know is that I'm looking for something called tomcat6w.exe and from what I understand it's supposed to be in c code Yes, that is C code, but it's not part of the Tomcat source. It's a GUI service monitor and configuration utility that is actually a renamed version of the Windows part of Apache Commons daemon. You can find more information about that (including download links) here: http://commons.apache.org/daemon/procrun.html - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: High Load examples?
of course there can't be a high-load thread without me, so here are my 2 cents: 2 cents I'm working in high-performance high-portal environment since 2004, and i must say that starting with tomcat 5 i've never experienced any performance problems caused by tomcat itself. The number of concurrent users and, more important, concurrent requests on a tomcat instance are limited by your network bandwidth, your cpu, your ram and, first of all, your application but not tomcat. My largest installation served more than 30.000 concurrent users, which produced about 4.000 requests per second (cumulated over few machines) all well under 500 ms delivery time. However the application was optimized for performance and scaleability. So, with 95% certainty your problem won't be tomcat! :-) Go for the kitty ;-) /2cents regards Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Running two tomcat servers on same system?
Hi, I am wondering if it would be possible to have two tomcat servers running on the same system this is because some features of my software have to be on the internal network and there is a set directory that is accessible to the outside world. And my idea is to split the application in to two. This is so that the public stuff can run along side the private stuff and not interfere with each other. At present I have the IP address allowed to access the application unblocked from accessing the port of my internal network, which has to be changed every time the IP address changes of the one server allowed to access it. However I could open another set of ports run another tomcat server and host my private stuff there. Also is it possible to share shutdown ports of tomcat servers? Thanks in Advance Dean Chester
Re: Running two tomcat servers on same system?
Dean, On Jan 7, 2010, at 1:47 PM, Dean Chester wrote: I am wondering if it would be possible to have two tomcat servers running on the same system Yeah, we do this all the time. All you gave to do is to make sure that all the ports listed in your server.xml are unique. Also is it possible to share shutdown ports of tomcat servers? I am not sure. It's easy enough to give it a try. --johnt - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running two tomcat servers on same system?
From: John Tangney [mailto:jo...@industriallogic.com] Subject: Re: Running two tomcat servers on same system? Also is it possible to share shutdown ports of tomcat servers? I am not sure. It's easy enough to give it a try. No, it is not possible. However if you're running on Windows, you don't actually need the shutdown port; a CTRL-C in the command prompt window or stopping the service will suffice. Not sure about running on Linux. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running two tomcat servers on same system?
What is usage like on the server running two application servers. Please bare in mind my admin/private application might get 10 users a month. While the public stuff we hope more frequent. Dean On Thu, Jan 7, 2010 at 9:51 PM, John Tangney jo...@industriallogic.comwrote: Dean, On Jan 7, 2010, at 1:47 PM, Dean Chester wrote: I am wondering if it would be possible to have two tomcat servers running on the same system Yeah, we do this all the time. All you gave to do is to make sure that all the ports listed in your server.xml are unique. Also is it possible to share shutdown ports of tomcat servers? I am not sure. It's easy enough to give it a try. --johnt - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running two tomcat servers on same system?
From: Dean Chester [mailto:dean.g.ches...@googlemail.com] Subject: Re: Running two tomcat servers on same system? What is usage like on the server running two application servers. That's determined entirely by the webapps you're using. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: High Load examples?
+1 As usual it depends highly how well your app is written and where your bottleneck is. On a project, our very poorly-written Tomcat app was failing at ~50 concurrent users. BUT it was always because of the Oracle DB being starved on its 4 cores - 8GB of RAM machine. :-( On another project, we've written an app without any real concern for scalability at coding-time and it was easily able to accept ~2000 concurrent users on each of our 8 cores - 32GB of RAM machines on an ISP connection. It was more than asked, so we didn't try to benchmark the app more than that. But it was without any doubt and from the very beginning a better skilled team. So your mileage may vary and I'd advise to try and benchmark it using a load-testing tool. Regards, Pierre On Thu, Jan 7, 2010 at 9:40 PM, Leon Rosenberg rosenberg.l...@googlemail.com wrote: of course there can't be a high-load thread without me, so here are my 2 cents: 2 cents I'm working in high-performance high-portal environment since 2004, and i must say that starting with tomcat 5 i've never experienced any performance problems caused by tomcat itself. The number of concurrent users and, more important, concurrent requests on a tomcat instance are limited by your network bandwidth, your cpu, your ram and, first of all, your application but not tomcat. My largest installation served more than 30.000 concurrent users, which produced about 4.000 requests per second (cumulated over few machines) all well under 500 ms delivery time. However the application was optimized for performance and scaleability. So, with 95% certainty your problem won't be tomcat! :-) Go for the kitty ;-) /2cents regards Leon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ad augusta per angusta Des résultats grandioses par des voies étroites
Re: How to JSF 2.0 (Mojarra-2.0.2) with Facelets on Tomcat?
It's not a problem exactly with Mojarra. It's a conflict between new EL JARs (el-api-1.1.jar, el-impl-1.1.jar) and Tomcat's el jars (el-impl.jar in Tomcat 6 and commons-el.jar in 5.5). The problem is that Tomcat's jars are required by Jasper and I need JSP implementation as well. When I add EL JARs to WEB-INF\lib I get this exception: javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause: java.lang.LinkageError: loader constraint violation: when resolving interface method javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory; the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature org.apache.jsp.index_jsp._jspInit(index_jsp.java:22) org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52) org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) Can You help with this? Regards, Zacheusz On Sat, Dec 19, 2009 at 10:03 AM, Zacheusz Siedlecki zacheu...@gmail.com wrote: First of all thanks for your replay. I hoped that there is known problem with Tomcat and Mojjara 2.0.2. I tried on Tomcat 6.0.20 but target Tomcat version should be 5.5. Java: HotSpot 1.6.0_16 OS: Windows 2003 Server. Regards, Zacheusz On Wed, Dec 16, 2009 at 3:51 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: zacheu...@gmail.com [mailto:zacheu...@gmail.com] On Behalf Of Zacheusz Siedlecki Subject: Re: How to JSF 2.0 (Mojarra-2.0.2) with Facelets on Tomcat? Nobody knows? Probably not, since you got zero responses to your original query - but then it contained pretty much zero useful information. Looks like a configuration error in Mojarra, but that's just a guess. If you want help with the Tomcat aspects, you'll need to supply at least the basics: Tomcat version, JVM version, platform you're on, your server.xml, the web.xml for Mojarra, and its Context element (if it has one). - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to prevent Tomcat 5.5 from undeploying applications
2010/1/7 Mark Thomas ma...@apache.org: On 07/01/2010 16:49, jean-claude_carri...@ibi.com wrote: How can we prevent this from happening, because whenever the disk is back online, someone has to manually copy back the context root into the location. Turn off autoDeploy Documentation: http://tomcat.apache.org/tomcat-5.5-doc/config/host.html Even if Tomcat won't undeploy your application, there still will be questions on how it will behave if your disk will suddenly disappear. There might be 404/500/503 errors showing up. You may need to restart your application to get rid of some of them. See also - reloadable attribute of Context http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - development mode of Jasper http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running two tomcat servers on same system?
2010/1/8 Dean Chester dean.g.ches...@googlemail.com: Hi, I am wondering if it would be possible to have two tomcat servers running on the same system Yes, it is possible. See Multiple Tomcat Instances in file RUNNING.txt that comes with a Tomcat distributive. The next 6.0.x version will allow even more options to be configurable per-instance. this is because some features of my software have to be on the internal network and there is a set directory that is accessible to the outside world. And my idea is to split the application in to two. That is your decision. I cannot comment much on this. One thing that you cannot achieve running a single Tomcat instance is to use different system users to run it. From the operating system point of view, there is a single user that runs a Java VM that executes Tomcat. If you need different OS users, you will need different instances of Tomcat. If you need to limit system access from inside a single Tomcat instance (e.g. which web applications have read/write access to which file paths), you can run with a SecurityManager and configure your policy according to your needs, see: http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cross Context Session Creation-
Dear Friends, *To quote from 7.3 of the servlet spec (which you should read): HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container. To illustrate this requirement with an example: if a servlet uses the RequestDispatcher to call a servlet in another Web application, any sessions created for and visible to the servlet being called must be different from those visible to the calling servlet. * Actually I have an doubt . I ran a test cycle. I cleared all cookies and then I sent a request to context A then from there it will forward to context B. I have added session listener in both context. See the below result - I am in a servlet of *context A* Calling *request.getSession(true);* Session Created in A *D52869941C38BC234CD9A940429C403A* ( session listener in context A) Session ID*D52869941C38BC234CD9A940429C403A* Forwarding to another servlet *of context B* session Created in B-*D52869941C38BC234CD9A940429C403A* ( session listener in context B) Request Forwarded I found that session created in A and B are different and invisible to each other. But the session ID is same. I want to know is there any chance of overriding existing session in context B?? Is it a mere coincidence or is there any logic behind this same session Id scenario?? Thanks, Ghosh On Thu, Jan 7, 2010 at 11:50 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Arnab Ghosh [mailto:gh...@glenwoodsystems.com] Subject: Cross Context Session Creation- Now I want to know while forwarding a request from A to D , whether session will go from A to D or a new session will be created under D. To quote from 7.3 of the servlet spec (which you should read): HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container. To illustrate this requirement with an example: if a servlet uses the RequestDispatcher to call a servlet in another Web application, any sessions created for and visible to the servlet being called must be different from those visible to the calling servlet. Also I want to know how many active session I can create under a web application/context in tomcat?? Whatever your heap size allows. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Incompatabilities?
Good Morning! Thanks a lot for all the answers you provided yesterday in my other thread, asking about scalability of Tomcat. Appreciate it! Besides the load issue, they claim, that a different app of theirs doesn't work with Tomcat, but it's supposed to work with WebLogic and jBoss. Am I right in assuming, that this is most probably caused by bugs in their app, which (somehow only) get triggered by Tomcat? Can't be any more specific here, sorry. I don't know what kind of errors these (supposedly...) are and I'd rather also not name the App and Manufacturer (only so much: it's by far not a small company making the app and the app is used quite a lot in its field and, of course, it ain't cheap...). I'm simply asking to figure out the validity of their claims. Thanks a lot again, Alexander -- View this message in context: http://old.nabble.com/Incompatabilities--tp27072171p27072171.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to change effective user id on Windows
HOw do we start TOmcat programatically using Bootstrap.start() API if we need to pass the user ? On Thu, Jan 7, 2010 at 8:30 PM, Peter Crowther peter.crowt...@melandra.comwrote: 2010/1/7 Looijmans, Mike mike.looijm...@oce.com: The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Sorry to pick you up on this one, Mike, but I think you're thinking of Local*Service*, not Local*System*. LocalSystem has full administrative access to the local computer, including (for example) being able to write a rogue DLL to a spare directory, then amend the registry so that that DLL is loaded by every process that runs on the machine from this point onwards. Or create a new local account that *does* have desktop access and spawn a process running as that user. If you can compromise LocalSystem, you've got the machine. Windows' LocalSystem is very, very close to Unix's root. If you want a non-privileged account, use LocalService not LocalSystem. See, for example http://blogs.msdn.com/jmanning/archive/2008/04/06/localsystem-root-localservice-nobody.aspx - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Sent from Karnataka, India