Re: Tomcat 5.0 rolling stdout

2008-07-07 Thread Puneet C Mathur
Sorry mate, 'due' to :) I wish I could tell the vendor .. Puneet On 08/07/2008, Steve Ochani <[EMAIL PROTECTED]> wrote: > > On 8 Jul 2008 at 9:39, Puneet C Mathur wrote: > > Date sent: Tue, 08 Jul 2008 09:39:10 +1000 > From: Puneet C Mathur <[EMAIL PROTECTED]> > Subject:

RE: tomcat with jcaptcha

2008-07-07 Thread Sameer Acharya
Hi, Directories and Web Applications are different things. In case of Tomcat , a directory is created for each web application deployed on the server, all these go under the webapps directory. so for example you have 2 applications say app1 and app2 running inside Tomcat then you will see two d

RE: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
MY webapps tree: eCom-Admin -Login.jsp -Account - some .jsp -Other directory I think Admin and eCom are not two webapps And Admin is not a webapps deployed inside eCom, right? Caldarale, Charles R wrote: > >> From: WILLIAMer [

RE: tomcat with jcaptcha

2008-07-07 Thread Caldarale, Charles R
> From: WILLIAMer [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat with jcaptcha > > Now, i think i just only one question :) > I know the sessions cant share with two directory(apps). > But iinclude parent and child directory? > The dir "Admin" just under the dir "eCom". If you're asking if one we

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
Thanks for replies :) Sorry, my english is hard to read! I google for how to set the "apps" to default(ROOT) though chinese keywords, there are kinds of lists. However, i read different version have different approach. I try some and get useful with add one line code that i wrote that post befor

Valid parameters for executable init parameter for cgi servlet

2008-07-07 Thread sridharmnj
Hi, Can anyone please explain me the valid values for excutable init parameter for cgi servlet. When I see the CGIServlet source code, its default value is "perl". What are the other valid values, for other than perl scripts? Thanks, Sridhar -- View this message in context: http://www.nabble.com

RE: tomcat 6 and docBase problem

2008-07-07 Thread Angelo Chen
Hi, I updated context.xml in the webapp and also the ROOT.xml in the conf/Catalina/abc.com/ROOT.xml, all has this: and still getting this error: SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /usr/local/apache-tomcat-6.0.16/webapp/abc does not exis

Exceptions in Servlet when flushing response to a client having closed the connection?

2008-07-07 Thread Morten Mortensen
Hi Having created a Servlet, I want to be sure, that the content written to the HTTP-response is flushed all the way through the TCP connection carrying the HTTP-request and -response. In case the TCP connection to the HTTP-client has been closed - e.g. if the client has timed out - I would like

Re: Tomcat 5.0 rolling stdout

2008-07-07 Thread Steve Ochani
On 8 Jul 2008 at 9:39, Puneet C Mathur wrote: Date sent: Tue, 08 Jul 2008 09:39:10 +1000 From: Puneet C Mathur <[EMAIL PROTECTED]> Subject:Tomcat 5.0 rolling stdout To: users@tomcat.apache.org Send reply to: Tomcat Users List > Hi > > The stdout log file on a tomcat server

Tomcat 5.0 rolling stdout

2008-07-07 Thread Puneet C Mathur
Hi The stdout log file on a tomcat server is getting pretty full do to the amount of data being written out by a third party application. Is there a way to have stdout.log rolling every day/limited by size, rather than having one big file? (using log4j.properties or something). We are running T

Re: Access Local File System

2008-07-07 Thread Johnny Kewl
- Original Message - From: "bperquku" <[EMAIL PROTECTED]> To: Sent: Monday, July 07, 2008 8:25 PM Subject: Re: Access Local File System Hi, I managed to create the second webapp that points on c:/. BUT, now i face another problem. Now i have to webapps, first one VideoWebApp, and

Problem with Context Parameters

2008-07-07 Thread Jean-François Ménard
Hi all, Using Tomcat 6.0.13, I try to define some context parameters in my context file (in conf/Cataline/localhost/.xml) as described in the documentation (http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) but it simply doesn't work! I can see the parameters defined in my web.xml, but

Re: mod_jk connection error?

2008-07-07 Thread Tom Cat
Thanks Changing ajp12 to ajp13 did the trick. I will try to remove all the deprecated references but honestly, at this point, I am just happy it is working. On 7/7/08, Steve Ochani <[EMAIL PROTECTED]> wrote: > On 7 Jul 2008 at 17:33, Tom Cat wrote: > > Date sent: Mon, 07 Jul 2008 1

Re: mod_jk connection error?

2008-07-07 Thread Steve Ochani
On 7 Jul 2008 at 17:33, Tom Cat wrote: Date sent: Mon, 07 Jul 2008 17:33:50 -0400 From: Tom Cat <[EMAIL PROTECTED]> Subject:mod_jk connection error? To: users@tomcat.apache.org Send reply to: Tomcat Users List > Hello, >

mod_jk connection error?

2008-07-07 Thread Tom Cat
Hello, I am new to Tomcat and apache. I have successfully install both the apache webserver and tomcat, and now wish to link them together. Here is my system info: mod_jk version 1.2.26 apache version 2.2.9 tomcat verison 6.0.16 Ubuntu Linux kernel 2.6.24-19-generic I can successfully view html

RE: Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Replogle, Andrew
Thanks Rainer, I'll see if I can't get what we need in that var and recompile. I'll also submit a feature request, and if I can figure it out, submit a solution for referencing a file. Thanks for the prompt reply, It's greatly appreciated. Andrew -Original Message- From: Rainer Jung [mai

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread Len Popp
That doesn't solve the problem of using different versions of Java. To use different Javas you have to either set the JAVA_HOME variable or change the Tomcat service settings, whichever is appropriate in your environment. -- Len On Mon, Jul 7, 2008 at 13:42, David Smith <[EMAIL PROTECTED]> wrote

Re: Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Rainer Jung
Replogle, Andrew wrote: Unfortunately, in IIS, 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505 codes are all uncustomizable, so if I were going to do this anywhere, it would have to be done at the plugin level =[ Does anyone know if its possible to change the default page of

Re: Access Local File System

2008-07-07 Thread bperquku
Hi, I managed to create the second webapp that points on c:/. BUT, now i face another problem. Now i have to webapps, first one VideoWebApp, and the second one VideoServer (which i use for flv files located on c:/video). I'm not able to upload files from VideoWebApp to VideoServer. Does anyone ha

RE: Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Replogle, Andrew
Unfortunately, in IIS, 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505 codes are all uncustomizable, so if I were going to do this anywhere, it would have to be done at the plugin level =[ Does anyone know if its possible to change the default page of: "Service temporary unav

Fwd: javajni.c] [error] Could not create instance of java/io/FileOutputStream

2008-07-07 Thread alla winter
I will answer on this question myself just in case if somebody else hit this problem: file system security was updated incorrectly: the user SYSTEM was removed. As soon as it was fixed, everything went normal thanks -- Forwarded message -- From: alla winter <[EMAIL PROTECTED]> Da

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread David Smith
Yes it's possible. Just install each in it's own directory and alter each tomcat's server.xml to elliminate port conflicts and that includes the shutdown port. --David sridharmnj wrote: I will explain the need clearly. We have a system with java 1.3 and tomcat 5.0.27. Some applications x an

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread Len Popp
Yes, you can do that. The exact procedure depends on what OS you're using and how you're starting Tomcat. -- Len On Mon, Jul 7, 2008 at 13:30, sridharmnj <[EMAIL PROTECTED]> wrote: > > I will explain the need clearly. > > We have a system with java 1.3 and tomcat 5.0.27. Some applications x and

Re: Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Len Popp
Since you're running Tomcat behind IIS, you should be able to configure a custom page in IIS for HTTP 503 errors. I know this is possible with the Apache web server, I suppose IIS can do it too. (Tomcat's error-page directive doesn't work because the webapp, or all of Tomcat, is down so it can't g

Re: Multiple tomcat versions in a same machine

2008-07-07 Thread sridharmnj
I will explain the need clearly. We have a system with java 1.3 and tomcat 5.0.27. Some applications x and y are running on this configuration. Now we are developing another application which runs on java 1.5 and tomcat 6.0. Can we have this entire setup in one machine only? I mean, my system s

Multiple tomcat versions in a same machine

2008-07-07 Thread sridharmnj
Hi, Is it possible to have two different tomcat versions servers in one machine. Like.. Tomcat 5.0.27 and Tomcat 6.0 in the same machine. If yes, please let me know the configuration process. Thanks, Sridhar -- View this message in context: http://www.nabble.com/Multiple-tomcat-versions-in-a-s

Mod_JK / Tomcat Connector Default Maintenance Page

2008-07-07 Thread Replogle, Andrew
Hello, I've noticed that when my tomcat instances are down and the ajp transports unreachable the tomcat connector displays a generic maintenace page. Is there a way to tell the tomcat connector to point to a custom site-down / maintenance page? I'm using version 1.2.26 of the Isapi redirector

javajni.c] [error] Could not create instance of java/io/FileOutputStream

2008-07-07 Thread alla winter
Hello, I am running Tomcat 5.5.25 on Win64 2003 server as a service It was running ok till now. The following error appears in the log: [2008-07-07 11:14:47] [info] Procrun (2.0.3.0) started [2008-07-07 11:14:47] [info] Running Service... [2008-07-07 11:14:47] [info] Starting service... [2008-07-0

Re: OutOfMemoryError happening in embedded instance of Tomcat 6 (Apache OFBiz project)

2008-07-07 Thread Filip Hanik - Dev Lists
just use the -XX:+HeapDumpOnOutOfMemoryError and see what is causing the OOME Filip Jacopo Cappellato wrote: Hi all, I am one of the committers and PMC member of the Apache OFBiz project (ofbiz.apache.org). Our project is using an embedded instance of Tomcat to run the web applications that

Creation of datasource using JMX programmatically

2008-07-07 Thread Thierry Templier
Hello, I need to dynamically create a datasource within Tomcat (5.5 or 6.0) using the JMX service of the server. Firstly I activate the service using the following parameters: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false At this

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
The last answer of F. Schumacher was the right. I was messing with David Smith a écrit : Check to be sure the proper environment variables are set when the script runs. When I read the error message, I understand the error to be more like "I can't find rt.sh from line 1 of /usr/local/tomcat/b

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Felix, Felix Schumacher a écrit : Have you transferred the restart.sh from a windows box? Maybe you have dos/windows line breaks, which are CR+LF. Such a combination can kill a innocent looking shell script. thank you, that was exactly what was wrong. I was using CR/LF-windows style E

Re: Restart TC with cron/sh

2008-07-07 Thread David Smith
Check to be sure the proper environment variables are set when the script runs. When I read the error message, I understand the error to be more like "I can't find rt.sh from line 1 of /usr/local/tomcat/bin/shutdown.sh". You can test to confirm that suspicion by just dropping in an echo line

How to enable crossContext="true"?

2008-07-07 Thread bladu
Hi, I am a user of Apache Tomcat 6.0.16 in Netbeans 6.1 and I would want to know where I have to put the crossContext=true to run applications that are in different context Thanks with anticipation -- View this message in context: http://www.nabble.com/How-to-enable-crossContext%3D%22true%

Re: Restart TC with cron/sh

2008-07-07 Thread Andrew Miehs
On 07/07/2008, at 4:11 PM, Piller Sébastien wrote: Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. It's po

Re: Restart TC with cron/sh

2008-07-07 Thread Felix Schumacher
On Mon, July 7, 2008 4:11 pm, Piller Sébastien wrote: > Yes, we're running Linux. I'm not sure what's my distrib. I'm using our > dedicated hosting, administrated via ssh. When I need to start tomcat, I > just use the startup.sh script (the one in /bin/). Same to shutdown: use > shutdown.sh. Have y

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Yes, we're running Linux. I'm not sure what's my distrib. I'm using our dedicated hosting, administrated via ssh. When I need to start tomcat, I just use the startup.sh script (the one in /bin/). Same to shutdown: use shutdown.sh. It's possible to restart TC with a .sh, isn't it? Edoardo Pan

Re: Restart TC with cron/sh

2008-07-07 Thread Edoardo Panfili
Piller Sébastien ha scritto: Sorry, I've no "tomcat" in /etc/init.d/. Are you using linux? if so, what distribution? How do you start Tomcat at startup time? edoardo Edoardo Panfili a écrit : If you are using debian (and other linux versions)maybe /etc/init.d/tomcat restart Edoardo

Re: Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Sorry, I've no "tomcat" in /etc/init.d/. Edoardo Panfili a écrit : If you are using debian (and other linux versions)maybe /etc/init.d/tomcat restart Edoardo - To start a new topic, e-mail: users@tomcat.apache.org To unsub

Re: Restart TC with cron/sh

2008-07-07 Thread Edoardo Panfili
Piller Sébastien ha scritto: Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. I'm trying to automate this operation with a cron that runs a *.sh file. But I don't know how what to write in it. Actually, I'v

Restart TC with cron/sh

2008-07-07 Thread Piller Sébastien
Hello, I have my application in production for a month now. I've some problem of memory leak that force me to restart TC each few days. I'm trying to automate this operation with a cron that runs a *.sh file. But I don't know how what to write in it. Actually, I've this: /usr/local/tomcat/bi

OutOfMemoryError happening in embedded instance of Tomcat 6 (Apache OFBiz project)

2008-07-07 Thread Jacopo Cappellato
Hi all, I am one of the committers and PMC member of the Apache OFBiz project (ofbiz.apache.org). Our project is using an embedded instance of Tomcat to run the web applications that compose the OFBiz suite of ERP applications. A few weeks ago, with rev. 659490, we have upgraded Tomcat from

Re: tomcat with jcaptcha

2008-07-07 Thread Johnny Kewl
- Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, July 07, 2008 2:53 PM Subject: Re: tomcat with jcaptcha - Original Message - From: "WILLIAMer" <[EMAIL PROTECTED]> To: Sent: Monday, July 07, 2008 5:51 AM Subject: tomcat w

Some PHP files redirect?

2008-07-07 Thread logicalpat
I setup PHP to work with Tomcat according to http://nexus.zteo.com/2008/02/15/how-to-setup-php5-with-tomcat-5/ these instructions and it seems to work fine if I try to view a simple .php page. However, I downloaded the Drupal CMS and tried to go to http://localhost:8080/phptest/drupal/index.php

Re: tomcat with jcaptcha

2008-07-07 Thread Johnny Kewl
- Original Message - From: "WILLIAMer" <[EMAIL PROTECTED]> To: Sent: Monday, July 07, 2008 5:51 AM Subject: tomcat with jcaptcha Hi! all, I have an application named "eCom" unnder the tomcat/webapps and using jcatpcha with the login page. I set the eCom becomes the root dir(path) w

RE: tomcat with jcaptcha

2008-07-07 Thread Caldarale, Charles R
> From: WILLIAMer [mailto:[EMAIL PROTECTED] > Subject: Re: tomcat with jcaptcha > > Sorry my english is poor. Better than my Mandarin or Taiwanese. > tomcat/conf/server.xml > "" before tag That is wrong, for a couple of reasons. First, putting elements in server.xml is strongly discouraged,

RE: tomcat 6 and docBase problem

2008-07-07 Thread Caldarale, Charles R
> From: Angelo Chen [mailto:[EMAIL PROTECTED] > Subject: RE: tomcat 6 and docBase problem > > I updated context.xml to be like this : > > > The above is flawed, regardless of which context.xml you're referring to. In the first place, a path attribute of "/" is never correct; in the second, a

Re: nsapi_redirector.so file

2008-07-07 Thread Rainer Jung
sandeep gelli wrote: Hi Rainer, Finally got it. I have changed my page redirection from response.redirect() to requestDispatcher.forward() and it worked. This was actually a trail and Thanks for letting us know. error that i did, any logic behind this? No, not really. Do you see the final

Re: Tomcat bottleneck on InternalInputBuffer.parseRequestLine

2008-07-07 Thread Christophe Fondacci
Hi Clovis, Thanks for your answers. Open files on our production servers are 1024. Here is the complete output of ulimit -a : core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice(-e) 0 file size (blocks, -f) unlimite

Re: nsapi_redirector.so file

2008-07-07 Thread sandeep gelli
Hi Rainer, Finally got it. I have changed my page redirection from response.redirect() to requestDispatcher.forward() and it worked. This was actually a trail and error that i did, any logic behind this? Thanks Sandeep On 7/5/08, Rainer Jung <[EMAIL PROTECTED]> wrote: > > sandeep gelli schrieb:

Re: tomcat with jcaptcha

2008-07-07 Thread WILLIAMer
I think i find why the sessions are different. The Login.jsp i put in eCom/Admin/. for example: link "http://myDomain/";, the session is "A", link "http://myDomain/Admin/";, the session is "B", link "http://myDomain/eCom/Admin/, ths session is "B", link "http://myDomain/eCom/";, the session is "B

RE: Configuring DataSources using jsp: reload context.xml?

2008-07-07 Thread Jonas Wagner
Good morning, I'm still trying to figure out how I can cause tomcat to re-read JNDI resources. Here is one way I found out earlier: > After further tests I found out that the server will reload JNDI data > sources if all the following steps are performed: > 1. Change the configuration > 2. Execut

Re: Graceful shutdown

2008-07-07 Thread Antonio Parolini
Hi, Ben > 1) Define a status worker [1] and one (or more) workers. Interresting. Will this status worker thing work -without- a webserver as Frontend (like Apache) ? I'm looking now into the use of JMX to solve this issue, by trying to block new HTTP requests using the /manager/jmxproxy/ befo