Re: How to change effective user id on Windows

2010-01-07 Thread Amit Agarwal
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 wrote: > 2010/1/7 Looijmans, Mike : > > The current configuration is correct in terms of security - the 'SYSTEM' > > user is a limited account that has n

Incompatabilities?

2010-01-07 Thread Alexander Skwar
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 righ

Re: Cross Context Session Creation-

2010-01-07 Thread Arnab Ghosh
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 r

Re: Running two tomcat servers on same system?

2010-01-07 Thread Konstantin Kolinko
2010/1/8 Dean Chester : > 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

Re: How to prevent Tomcat 5.5 from undeploying applications

2010-01-07 Thread Konstantin Kolinko
2010/1/7 Mark Thomas : > 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.apa

Re: How to JSF 2.0 (Mojarra-2.0.2) with Facelets on Tomcat?

2010-01-07 Thread Zacheusz Siedlecki
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

Re: High Load examples?

2010-01-07 Thread Pierre Goupil
+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'

RE: Running two tomcat servers on same system?

2010-01-07 Thread Caldarale, Charles R
> 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 CONFIDENTI

Re: Running two tomcat servers on same system?

2010-01-07 Thread Dean Chester
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 wrote: > Dean, > > > On Jan 7, 2010, at 1:47 PM, Dean Ches

RE: Running two tomcat servers on same system?

2010-01-07 Thread Caldarale, Charles R
> 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 W

Re: Running two tomcat servers on same system?

2010-01-07 Thread John Tangney
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 possi

Running two tomcat servers on same system?

2010-01-07 Thread Dean Chester
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. T

Re: High Load examples?

2010-01-07 Thread Leon Rosenberg
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

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Caldarale, Charles R
> 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,

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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

Re: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread David kerber
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 w

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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:ch

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Caldarale, Charles R
> 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 chang

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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 Messa

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Caldarale, Charles R
> 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 ap

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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, J

Re: ArrayIndexOutOfBoundsException

2010-01-07 Thread geoffrey
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 O

RE: fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Caldarale, Charles R
> 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

RE: Cross Context Session Creation-

2010-01-07 Thread Caldarale, Charles R
> 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 shou

Re: How to prevent Tomcat 5.5 from undeploying applications

2010-01-07 Thread Mark Thomas
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 --

Re: How to prevent Tomcat 5.5 from undeploying applications

2010-01-07 Thread Peter Crowther
2010/1/7 : > 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

How to prevent Tomcat 5.5 from undeploying applications

2010-01-07 Thread Jean-Claude_Carriere
We have a Tomcat 5.5.17 with a approot.xml file in conf\Catalina\localhost just pointing to a shared disk location 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 jan

fatal error LNK1181: cannot open input file 'libeay32.lib'

2010-01-07 Thread Joshua_Korn-Heilner
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 alr

Cross Context Session Creation-

2010-01-07 Thread Arnab Ghosh
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 sessi

Re: How to change effective user id on Windows

2010-01-07 Thread Peter Crowther
2010/1/7 Looijmans, Mike : > 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*Syste

RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
> 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 MAT

RE: How to change effective user id on Windows

2010-01-07 Thread Looijmans, Mike
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

Re: Load balancing questions

2010-01-07 Thread assan alhamoud
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] >

RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
> 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 CONFID

Re: How to change effective user id on Windows

2010-01-07 Thread Ziggy
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 wrote: > Tomat on Linux starts as root to bind to > port 80, and then switches effective user id to nobody. Win

RE: java shutdown hook and classpath

2010-01-07 Thread Caldarale, Charles R
> 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 th

Re: How to change effective user id on Windows

2010-01-07 Thread Peter Crowther
2010/1/7 Amit Agarwal : > 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 t

Re: Load balancing questions

2010-01-07 Thread assan alhamoud
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 beli

How to change effective user id on Windows

2010-01-07 Thread Amit Agarwal
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 achiev

RE: Load balancing questions

2010-01-07 Thread Caldarale, Charles R
> 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 M

RE: connect tomcat and apache by mod_jk2

2010-01-07 Thread Caldarale, Charles R
> 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. N

Re: java shutdown hook and classpath

2010-01-07 Thread Ziggy
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 wrote: > Hi and Happy New Year! >

java shutdown hook and classpath

2010-01-07 Thread David Wood
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'

Re: add port number to rul after login or logout

2010-01-07 Thread pionier
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 arc

Re: add port number to rul after login or logout

2010-01-07 Thread Mark Thomas
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 > > ServerName example.

add port number to rul after login or logout

2010-01-07 Thread pionier
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 ServerName example.com Include /etc/apache2/vhosts.d/default_vhos

Re: High Load examples?

2010-01-07 Thread Mark Thomas
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.

Disable redirecting System.out and System.err

2010-01-07 Thread Michal Padera
Hi , I need to write in my webapp log4j to stderr but when starting Catalina, stderr is redirected to stdout (see Catalina.initStreams()). I am unable to set redirectStreams (attribute in Embedded.java) to false. Is there a configurtion parameter where I can turn this off or is this a bug in Tomca

Re: High Load examples?

2010-01-07 Thread Peter Crowther
2010/1/7 Alexander Skwar : > 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

High Load examples?

2010-01-07 Thread Alexander Skwar
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 "m

Re: Load balancing questions

2010-01-07 Thread assan alhamoud
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 wrote: > --- On Wed, 1/6/10 at 7:54 AM, assan alhamoud > wrote: > > > any suggestion ? > > > > Upgrade to a more recent version of JBoss/Tomc

RE: Comet and thread binding

2010-01-07 Thread tbee
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 quest

RE: Comet and thread binding

2010-01-07 Thread Bob Hall
--- On Thu, 1/7/10 at 12:02 AM, tbee 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 t

RE: Comet and thread binding

2010-01-07 Thread tbee
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