SV: Running tomcat as a service on 64 bit windows

2007-11-19 Thread Wilhelmsen Tor Iver
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

Re: tomcat mod_jk error log

2007-11-19 Thread Rainer Jung
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

Re: UTF-8 charset encoding

2007-11-19 Thread Tremal Naik
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

Re: UTF-8 charset encoding

2007-11-19 Thread Ognjen Blagojevic
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

Re: Running tomcat as a service on 64 bit windows

2007-11-19 Thread Johnny Kewl
--- 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

Re: UTF-8 charset encoding

2007-11-19 Thread Tremal Naik
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

IIS + tomcat running on different machine (linux or aix)

2007-11-19 Thread Niki Diulgerov
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

Re: UTF-8 charset encoding

2007-11-19 Thread Ognjen Blagojevic
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

Re: Running tomcat as a service on 64 bit windows

2007-11-19 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Johnny

Re: tomcat mod_jk error log

2007-11-19 Thread lanes
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 =

Re: Setting Java property inside a webapp

2007-11-19 Thread Konstantin Kolinko
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

Re: UTF-8 charset encoding

2007-11-19 Thread Tremal Naik
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

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread Jim Jagielski
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 - Proxy balancer://myclusterclear BalancerMember ajp://localhost:8009 route=server1 min=0

Re: Upgrade from mod_jk to mod_proxy_ajp

2007-11-19 Thread Jim Jagielski
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

Re: mod_proxy or mod_jk?

2007-11-19 Thread Jim Jagielski
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

Enqueuing users requests

2007-11-19 Thread Stéphane Hanser
Hi everybody, I’m managing a web application written with Spring. I’m 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 I’d prefer if the server drops any new request if the first one is not

tomcat 4 doesn't start properly

2007-11-19 Thread Hamid Rahman Mohmand
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,

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread Rainer Jung
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

Re: mod_proxy or mod_jk?

2007-11-19 Thread Rainer Jung
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

Re: IIS + tomcat running on different machine (linux or aix)

2007-11-19 Thread Rainer Jung
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

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread David Cassidy
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 url then I get alot of connections from apache to tomcat that are in

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread Rainer Jung
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 url then I get alot of connections from apache to

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread David Cassidy
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

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread Rainer Jung
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

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread David Cassidy
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

RE: simple question on Tomcat-apache

2007-11-19 Thread Shekhar . Dhotre
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

RE: simple question on Tomcat-apache

2007-11-19 Thread Shekhar . Dhotre
Thanks for the reply Timothy. Timothy Wonil Lee [EMAIL PROTECTED] 11/18/2007 10:12 PM Please respond to Tomcat Users List users@tomcat.apache.org To 'Tomcat Users List' users@tomcat.apache.org cc Subject RE: simple question on Tomcat-apache Tomcat and HTTP Server are completely

MemoryRealm question

2007-11-19 Thread Bárbara Vieira
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?! I’m

Application redeployment on Tomcat startup only

2007-11-19 Thread Beth Hechanova
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

Re: Application redeployment on Tomcat startup only

2007-11-19 Thread david delbecq
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

Re: Application redeployment on Tomcat startup only

2007-11-19 Thread mgainty
handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: users@tomcat.apache.org Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment

Re: make error : during apache install.

2007-11-19 Thread Mark Thomas
[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.

RE: Application redeployment on Tomcat startup only

2007-11-19 Thread Beth Hechanova
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.

Re: [server.xml]Is there a file that defines the server.xml of tomcat?

2007-11-19 Thread Mark Thomas
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

Re: tomcat 4 doesn't start properly

2007-11-19 Thread Mark Thomas
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,

RE: Application redeployment on Tomcat startup only

2007-11-19 Thread Beth Hechanova
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

Re: MemoryRealm question

2007-11-19 Thread Mark Thomas
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

How to Deploy WAR using a sub-context path?

2007-11-19 Thread Eric B.
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

RE: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Caldarale, Charles R
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:

Re: mod_proxy_ajp TIME_WAIT

2007-11-19 Thread Jim Jagielski
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

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Eric B.
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:

RE: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Caldarale, Charles R
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

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Eric B.
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

Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-19 Thread K S
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.

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- Chuck is right... the application has to be

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Eric B.
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

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Johnny

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Mark Thomas
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.

Re: Need my Protocol to be Seen in Tomcat!!

2007-11-19 Thread Christopher Schultz
-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

How Do I use Tomcat 6.0.14 as a http Proxy?

2007-11-19 Thread Tony Anecito
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

Does mod_jk work with basic Apache Authentication?

2007-11-19 Thread Paul Boone
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

Re: mod_proxy or mod_jk?

2007-11-19 Thread Rocco Scappatura
put this in your servlet.xml file Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false !-- Added this for JK THIS-- Listener className=org.apache.jk.config.ApacheConfig append=true forwardAll=false modJk=Path/To/mod_jk.so /

Re: How to Deploy WAR using a sub-context path?

2007-11-19 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- - Original Message - From: Eric B.

Re: Does mod_jk work with basic Apache Authentication?

2007-11-19 Thread Paul Boone
Sorry, figured out the problem. If you see this behavior, try using Apache Locationelements instead of Directory 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

What causes OutOfMemoryError ?

2007-11-19 Thread zero args
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)

object binding exception on startup (javax.naming.NamingException)

2007-11-19 Thread Ravish Bhagdev
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

Re: Application redeployment on Tomcat startup only

2007-11-19 Thread Martin Gainty
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

[CLOSED] [server.xml]Is there a file that defines the server.xml of tomcat?

2007-11-19 Thread zhongliang zhang
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

Re: What causes OutOfMemoryError ?

2007-11-19 Thread Mark Thomas
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: