soTimeout not worked on channelNioSocket

2007-10-08 Thread William Leung
I have configuared tomcat to use the NIO impl over AJP, here are the lines in server.xml Connector address=127.0.0.1 port=0 channelNioSocket.port=8009 channelNioSocket.soTimeout=60 channelNioSocket.bufferSize=16384

Re: Problems with DBCP in tomcat6

2007-10-08 Thread Josué Alcalde González
El jue, 04-10-2007 a las 05:38 -0400, David Smith escribió: Add validationQuery=select 1 to your Resource .../ definition to cause the database pool to test connections and regenerate them as necessary before your code gets a connection. --David Perfect. It works. That was the solution.

Re: Why Net use ... does not work with WebDAV servlet

2007-10-08 Thread shahab
Hi Mark, I also monitored the request/response between WebDAV servlet in Tomcate and MS Mini Redirector and compared it with Apache (mod_dav) and MS Mini Redirector. I can say no difference. But I don't know what it works with Apache but not for Tomcat one . Do you have any idea? can it be

Over 70 instances of Tomcat after startup

2007-10-08 Thread Ray Statham
Afternoon, This is my first posting to this list and after breifly checking the archives I hope this question is not a duplicate: - I have an unusual problem with my previously stable container which now generates over 70 instance on startup. This container has been working correctly for

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread ben short
Probably worth posting the /rel/tomcat/bin/start_apps.sh script as it sounds like it could be suspect. On 10/8/07, Ray Statham [EMAIL PROTECTED] wrote: Afternoon, This is my first posting to this list and after breifly checking the archives I hope this question is not a duplicate: - I have

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Ray Statham
Hi Ben, thanks for your very speedy reply. Please find the full file listing below: - #!/bin/bash APPS_BASE=/rel/apps OLD_PWD=`pwd` case $1 in ) echo $0 [all | app1 [app2]..[appN] ]; exit 0; ;; all) echo Starting all. for i in ${APPS_BASE}/[-A-Za-z0-9_]* do

RE: Trouble running tomcat on Ubuntu Linux OS X Tiger

2007-10-08 Thread Caldarale, Charles R
From: Unnsse Khan [mailto:[EMAIL PROTECTED] Subject: Re: Trouble running tomcat on Ubuntu Linux OS X Tiger It was the tar.gz package that is downloadable from: http://tomcat.apache.org/download-55.cgi#5.5.25 I am guessing that I only downloaded the Core distribution... Is this the

Re: Disable HTTP TRACE and DELETE methods

2007-10-08 Thread Bj
if you use virtual hosts, you should add in each one : RewriteEngine on RewriteOptions inherit Because rewrite rules are not inherited by default. -- Bj On 10/5/07, David Delbecq [EMAIL PROTECTED] wrote: Hi, This is a mailing list about tomcat J2EE server, not about apache webserver. You

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Konstantin Kolinko
It looks like ps ax | grep ... lists several processes for the same JVM, due to threads behavior is Linux, (see 1. http://tomcat.apache.org/faq/unix.html#ps 2. http://java.sun.com/developer/technicalArticles/Programming/linux/index.html (scroll down to About Linux Threads) 3.

Re: Error track can't track the exact line and display the bug line number

2007-10-08 Thread Konstantin Kolinko
When compiling with Ant the debug information is off by default. Look for the debug option of javac task in Ant manual here: http://ant.apache.org/manual/CoreTasks/javac.html - To start a new topic, e-mail:

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ray, Ray Statham wrote: procid=`ps ax | grep -Dcatalina.base=${appname} | grep -v grep | awk '{print $1}'` Are you sure this is line 36? It seems like this wouldn't be the one failing, but one where you were trying to use the value of $procid.

How can I specify the Tomcat directory?

2007-10-08 Thread Jaime Almeida
Hello. I've reinstalled the Tomcat server v6.0 on my computer, but when I try to run my application on the Eclipse, I get the error: 'The specified Tomcat installation directory does not exist'. How can I specify the Tomcat installation directory? What am I missing in the configurations of the

RE: How can I specify the Tomcat directory?

2007-10-08 Thread Larry Isaacs
I've reinstalled the Tomcat server isn't much detail to go on. See if the following link helps by explaining the Tomcat support in Eclipse: http://www.eclipse.org/webtools/faq/TomcatServerFAQ.php It covers WTP 1.5.x, but the majority of the info applies to WTP 2.0.x as well. Cheers, Larry

Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
Hi , My webapp hangs on tomcat. I have struts,spring and hibernate on it. I was getting an OutOfMemory error initially, on clicking each of the links. I thought the problem could be jvm's . when I did ls -alt /usr/bin/java , it pointed to /usr/local../alternatives/java.. and java -version

Re: Tomcat connections not closing.

2007-10-08 Thread Filip Hanik - Dev Lists
connectionTimeout - gets set to your sockets SO_TIMEOUT, but disableUploadTimeout=true unsets the value in the line above, causing socketWrite0 to not have a timeout, hence if you set disableUploadTimeout=false, then you will make sure that socket read and writes from your servlets/jsps, will

Re: My own web page as tomcat default web page

2007-10-08 Thread Pavan Singaraju
*Keep your .war file outside of Tomcat's directory structure and create a file in conf/Catalina/[host] named ROOT.xml; this file must contain a Context element with a docBase attribute that gives the location of your .war file* I tried doing this. But its not working, and the page is still going

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread ben short
I have tomcat 6 running on fiesty with jdk 1.6 and have the following in my init script... JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00 On 10/8/07, Arun [EMAIL PROTECTED] wrote: Hi , My webapp hangs on tomcat. I have struts,spring and hibernate on it. I was getting an OutOfMemory error

Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Hi, I'm trying to run a Perl script on Tomcat 5.5.8 -- I've managed to successfully run read-only Perl script, but the script I'm trying to run connects to the database and needs to write to the local hard drive. Whenever I try to execute the script, it creates a Perl.exe thread on my

RE: My own web page as tomcat default web page

2007-10-08 Thread Caldarale, Charles R
From: Pavan Singaraju [mailto:[EMAIL PROTECTED] Subject: Re: My own web page as tomcat default web page Its actually not going to 'manager/html' but the url is still 'http://localhost/'. You seem to be contradicting your earlier posting. What are we to believe? what i want is if if

Re: Perl Permissions on Tomcat

2007-10-08 Thread Mark Thomas
Li Ye Chen wrote: // Give all permission to servlets-cgi.jar grant codeBase file:${catalina.home}/server/lib/servlets-cgi.jar { permission java.security.AllPermission; }; Are you running with a security manger? If so, try running without and get things working that way first. Then we

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
Ben, I installed jdk from jdk-6u1-linux-i586.bin. Still my path has not updated, I have to manually point the symlink . Is this not suns's jdk? Am I not using the correct jdk? grep -r -i JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00 -l /usr did not give me a valid entry either. ? [EMAIL

RE: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Caldarale, Charles R
From: Arun [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 on ubuntu linux(Fiesty Fawn) [EMAIL PROTECTED]:~/downloads# cd /usr/lib/jvm/ java-1.4.2-gcj-4.1-1.4.2.0/ java-gcj/ .java-gcj.jinfo That's the semi-functional GNU JVM implementation. Strongly suggest you

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread ben short
Right I installed the jdk from apt as follows.. sudo apt-get install sun-java6-jdk Much easier that messing about with a bin file.. Then set it up using the following command... sudo update-java-alternatives -s java-6-sun How are you starting tomcat? From a script in /etc/init.d ? How did

Re: Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Will it pose a security risk if I disable the Security Manager? I am running an enterprise firewall on the server... -Original Message- Date: Mon Oct 08 12:03:37 EDT 2007 From: Mark Thomas [EMAIL PROTECTED] Subject: Re: Perl Permissions on Tomcat To: Tomcat Users List

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
How to remove ? apt-get remove? what is the name for this? I dont know the name.. Am I using the right jdk? On 10/8/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Arun [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 on ubuntu linux(Fiesty Fawn) [EMAIL PROTECTED]:~/downloads# cd

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread ben short
Don't worry about removing it for now follow the steps i showed you to install jdk 1.6 and then set it as what gets executed when you type java at the prompt On 10/8/07, Arun [EMAIL PROTECTED] wrote: How to remove ? apt-get remove? what is the name for this? I dont know the name.. Am I using

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
sorry, you did not include the steps to install jdk1.6 in this conversation. On 10/8/07, ben short [EMAIL PROTECTED] wrote: Don't worry about removing it for now follow the steps i showed you to install jdk 1.6 and then set it as what gets executed when you type java at the prompt On

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread ben short
Hmm, Well here they are again... Right I installed the jdk from apt as follows.. sudo apt-get install sun-java6-jdk Much easier that messing about with a bin file.. Then set it up using the following command... sudo update-java-alternatives -s java-6-sun How are you starting tomcat? From a

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
Ben, Sorry, I replied a bit fast. I got it. I got the steps. That is correct. Using apt is better. Yes, I got tomcat from that website. I did a tar -xvvf and copied it to /usr/local/bin. Is that correct ? Hold on a second anyway. Why do you prefer sunjdk other than the normal one. Or are they

Re: How can I specify the Tomcat directory?

2007-10-08 Thread Jaime Almeida
I still have the problem with the Tomcat Server when I try to run my application. Now I don't have the 'run on server' selection on the 'Run As' menu in my video.jsp that I have to run for the sake of my Final Project... I have to open the 'Open Run Dialog' to run my application, but always get

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
For running I linked catalina.sh by ln ln -s /usr/local/apache-tomcat-6.0.13/bin/catalina.sh catalina. And I start the server by catalina start and stop it by catalina stop. On 10/8/07, ben short [EMAIL PROTECTED] wrote: Right I installed the jdk from apt as follows.. sudo apt-get install

Re: FindClass org/apache/catalina/startup/Bootstrap failed

2007-10-08 Thread Marlin Pierce
Marlin Pierce schrieb: I downloaded the zip file, followed the instructions, and startup.bat gave the following in stdout Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14 Using CATALINA_HOME: C:\Program Files\Apache Software

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
Ben , Ding On 10/8/07, ben short [EMAIL PROTECTED] wrote: Hmm, Well here they are again... Right I installed the jdk from apt as follows.. sudo apt-get install sun-java6-jdk Much easier that messing about with a bin file.. Then set it up using the following command... sudo

Re: Perl Permissions on Tomcat

2007-10-08 Thread Mark Thomas
Li Ye Chen wrote: Will it pose a security risk if I disable the Security Manager? I am running an enterprise firewall on the server... That depends on your environment. But you have a separate machine for development and/or testing - right? Right now we need to figure out if it is the

Very Long Full GC after Inactivity

2007-10-08 Thread Bill Clarke-Fields
Hi, We are running an application on Tomcat 5.0.28 with Java 1.4.2. The usage of the application is very cyclical. It is used heavily during the day, and lightly at night. During peak daytime hours, a full garbage collection takes less than 2 seconds, which is fine. However, after a long

Re: Very Long Full GC after Inactivity

2007-10-08 Thread David Delbecq
Hi, check the jvm runs in server mode (check there is a '-server' parameter given to jvm startup). Server and client mode have different GC mecanisms. Bill Clarke-Fields a écrit : Hi, We are running an application on Tomcat 5.0.28 with Java 1.4.2. The usage of the application is very

Exception in thread main????

2007-10-08 Thread Jaime Almeida
Hello. I've already solved the problem with the Tomcat specified directory, but now I have a new problem: 'Excpetion in thread main'. What thread main? My application doesn't have any main - It's a jsp application and it doesn't need any main. What is causing this problem? Can you tell me?

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
Thanks Ben , Now my weapp is running. On 10/8/07, ben short [EMAIL PROTECTED] wrote: Hmm, Well here they are again... Right I installed the jdk from apt as follows.. sudo apt-get install sun-java6-jdk Much easier that messing about with a bin file.. Then set it up using the following

RE: Problem with session

2007-10-08 Thread Alex79
Hi, thanks for the reply. I checked the log in the logs directory, there's nothing that says tomcat has been restarted. I run tomcat 5.0. It's an internal session id that is stored in the session. I run on windows xp pro. The JRE says version 6 in the readme. I'm going to have a look at the

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Caldarale, Charles R
From: David Delbecq [mailto:[EMAIL PROTECTED] Subject: Re: Very Long Full GC after Inactivity check the jvm runs in server mode (check there is a '-server' parameter given to jvm startup). Server and client mode have different GC mecanisms. That's not correct; the set of GC algorithms

RE: How can I specify the Tomcat directory?

2007-10-08 Thread Caldarale, Charles R
From: Jaime Almeida [mailto:[EMAIL PROTECTED] Subject: Re: How can I specify the Tomcat directory? Now I don't have the 'run on server' selection on the 'Run As' menu in my video.jsp that I have to run for the sake of my Final Project... I have to open the 'Open Run Dialog' to run my

RE: Exception in thread main????

2007-10-08 Thread Caldarale, Charles R
From: Jaime Almeida [mailto:[EMAIL PROTECTED] Subject: Exception in thread main I have a new problem: 'Excpetion in thread main'. What thread main? The main thread is just the initial one that creates the JVM and calls the initial class; all Java programs have one. What is causing

RE: FindClass org/apache/catalina/startup/Bootstrap failed

2007-10-08 Thread Caldarale, Charles R
From: Marlin Pierce [mailto:[EMAIL PROTECTED] Subject: Re: FindClass org/apache/catalina/startup/Bootstrap failed Exception in thread main java.lang.NoClassDefFoundError: java/la/g ClassLoader Is the above an accurate representation of the message? If so, an n has been replaced by a

Re: Perl Permissions on Tomcat

2007-10-08 Thread Li Ye Chen
Yes, it's on a separate machine... -Original Message- Date: Mon Oct 08 12:52:23 EDT 2007 From: Mark Thomas [EMAIL PROTECTED] Subject: Re: Perl Permissions on Tomcat To: Tomcat Users List users@tomcat.apache.org Li Ye Chen wrote: Will it pose a security risk if I disable the

Re: Very Long Full GC after Inactivity

2007-10-08 Thread Bill Clarke-Fields
David, Tomcat is running as a Windows service, and the jvm startup parameter is set to: C:\j2sdk1.4.2_11\jre\bin\server\jvm.dll. Do I also need to pass a -server parameter? Thanks, -Bill David Delbecq-2 wrote: Hi, check the jvm runs in server mode (check there is a '-server' parameter

RE: Problem with session

2007-10-08 Thread Caldarale, Charles R
From: Alex79 [mailto:[EMAIL PROTECTED] Subject: RE: Problem with session I checked the log in the logs directory, there's nothing that says tomcat has been restarted. What about the webapp being restarted? (Not likely either.) I run tomcat 5.0. Tomcat 5.0.what? It's an internal

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Bill Clarke-Fields
Charles, I have tuned the heap size based on what is ideal during peak hours. The problem is that off-hours usage is very different, and leads to these very long full GCs. Does it sound like an application problem? I have not done any analysis to determine what kind of objects are hanging

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Caldarale, Charles R
From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] Subject: Re: Very Long Full GC after Inactivity Tomcat is running as a Windows service, and the jvm startup parameter is set to: C:\j2sdk1.4.2_11\jre\bin\server\jvm.dll. Do I also need to pass a -server parameter? No, there are no such

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Caldarale, Charles R
From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] Subject: RE: Very Long Full GC after Inactivity The problem is that off-hours usage is very different, and leads to these very long full GCs. GC pause time is largely dependent on the number of live objects existing at the time of the GC,

RE: Problem with session

2007-10-08 Thread Alex79
Java version: Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode) I modified the log4j.properties file to receive all logs from INFO. When the problem occurs, I see a WARN level message that says that there is no header (custom info

RE: Problem with session

2007-10-08 Thread Caldarale, Charles R
From: Alex79 [mailto:[EMAIL PROTECTED] Subject: RE: Problem with session Java(TM) SE Runtime Environment (build 1.6.0_01-b06) That's a couple of updates old, but very unlikely to be an issue. When the problem occurs, I see a WARN level message that says that there is no header (custom

Form based auth - Not working

2007-10-08 Thread Nicolas Gonzalez
Hi, I'm experiencing a problem with the FORM based authentication provided by Tomcat. I've done almost (I think that everything!) that the doc requires to configure a FORM based authentication and doesn't work. I have a DB with users and user-roles tables and data in those tables but every time I

Re: Form based auth - Not working

2007-10-08 Thread Mark Thomas
Nicolas Gonzalez wrote: I've done almost (I think that everything!) that the doc requires to configure a FORM based authentication and doesn't work. I have a DB with users and user-roles tables and data in those tables but every time I try to log in my application it will fail with no

Re: Form based auth - Not working

2007-10-08 Thread David Delbecq
Please provide web.xml login form file (most probaly something like login.jsp) url you typed in browser what you see on screen `Nicolas Gonzalez a écrit : Hi, I'm experiencing a problem with the FORM based authentication provided by Tomcat. I've done almost (I think that everything!) that the

Re: Form based auth - Not working

2007-10-08 Thread Nicolas Gonzalez
Hi Mark and David! See my response inline On 10/8/07, Mark Thomas [EMAIL PROTECTED] wrote: Nicolas Gonzalez wrote: I've done almost (I think that everything!) that the doc requires to configure a FORM based authentication and doesn't work. I have a DB with users and user-roles tables

Re: My own web page as tomcat default web page

2007-10-08 Thread Pavan Singaraju
I forgot to remove the ROOT directory from the TOMCAT. Its working now. Thanks guys. -- Pavan S. Kumar On 10/8/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Pavan Singaraju [mailto:[EMAIL PROTECTED] Subject: Re: My own web page as tomcat default web page Its actually not going

Multi-thread issue on redeploy of application

2007-10-08 Thread Cool Coder
It may not related to tomcat directly but I would appreciate if you can help me to find the problem with my web app. The web app creates number of threads, and on each deployement, web app should close threads and create new threads but it instead of closing/reusing old threads, it creates new

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Bill Clarke-Fields
I'm just throwing ideas out now, but would it help to set a lower value for the -Xms parameter? Would the JVM shrink the heap size down when usage is low? (I'm guessing not.) Or, is there a way to schedule (or force) full garbage collections? Thanks, -Bill Caldarale, Charles R wrote:

Re: Multi-thread issue on redeploy of application

2007-10-08 Thread Hassan Schroeder
On 10/8/07, Cool Coder [EMAIL PROTECTED] wrote: I use struts and ..and there *is* a Struts mailing list, eh? Which would probably offer a much better chance of getting app-specific help. I'm just sayin' -- Hassan Schroeder [EMAIL PROTECTED]

RE: Very Long Full GC after Inactivity

2007-10-08 Thread Caldarale, Charles R
From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] Subject: RE: Very Long Full GC after Inactivity I'm just throwing ideas out now, but would it help to set a lower value for the -Xms parameter? Probably not. For best throughput, you generally want -Xms and -Xmx to be the same, and as

Re: How can I specify the Tomcat directory?

2007-10-08 Thread Konstantin Kolinko
How can I specify the Tomcat installation directory? What am I missing in the configurations of the Eclipse? The answer is that you specify the Tomcat installation directory when you are configuring Server Runtime Environment. It is like Java Runtime Environment, but for Java EE. In the main

Re: Multi-thread issue on redeploy of application

2007-10-08 Thread Cool Coder
Thanks buddy. - Original Message From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, October 8, 2007 3:53:20 PM Subject: Re: Multi-thread issue on redeploy of application On 10/8/07, Cool Coder [EMAIL PROTECTED] wrote: I use struts

Re: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Arun
My Project Manager has added Quartz/Rome. The OutOfMemory error comes from that. Exception in thread DefaultQuartzScheduler_Worker-1 java.lang.OutOfMemoryError: PermGen space Do you guys know why the QuartzScheduler does this? On 10/8/07, ben short [EMAIL PROTECTED] wrote: Hmm, Well here they

Re: Error track can't track the exact line and display the bug line number

2007-10-08 Thread Oliver Yang
Thanks, Konstantin. Yes you are right. Now it is fine. If using Ant, the default is off, otherwise using command javac directly, by default it is on. On Mon, 2007-10-08 at 18:14 +0400, Konstantin Kolinko wrote: When compiling with Ant the debug information is off by default. Look for the

Re: Very Long Full GC after Inactivity

2007-10-08 Thread Filip Hanik - Dev Lists
garbage collection is a reactive process, ie, it wont kick in until it really needs to. and the time it takes for the GC, depends on your java heap size, -Xmx, in JDK 1.5 you can specify GC goals like -XX:MaxGCMinorPauseMillis=value -XX:MaxGCPauseMillis=value to tell the JVM to try to align

RE: Tomcat 6 on ubuntu linux(Fiesty Fawn)

2007-10-08 Thread Caldarale, Charles R
From: Arun [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 on ubuntu linux(Fiesty Fawn) Exception in thread DefaultQuartzScheduler_Worker-1 java.lang.OutOfMemoryError: PermGen space http://tomcat.apache.org/faq/memory.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

How to create/setup a referer log on Tomcat 5.5 server?

2007-10-08 Thread nguyen
My company is using Tomcat 5.5 server to host several websites. Right now, we want to track the stats of web traffic, and a referer log on the server is required for some traffic analyzers. How do we setup such a log? -- View this message in context:

Linking external website as a default page on Tomcat 5

2007-10-08 Thread Sridhar Kulkarni
Hi, I am running tomcat5 version on ubuntu. I want to link external website, say google as my default page served by my tomcat. say when i connect to my tomcat using http://localhost/ then google should open as default page. Any idea? Rgds, -SK

Re: How to create/setup a referer log on Tomcat 5.5 server?

2007-10-08 Thread Hassan Schroeder
On 10/8/07, nguyen [EMAIL PROTECTED] wrote: and a referer log How do we setup such a log? Read the doc? :-) http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html HTH, -- Hassan Schroeder [EMAIL PROTECTED]

Re: Linking external website as a default page on Tomcat 5

2007-10-08 Thread Hassan Schroeder
On 10/8/07, Sridhar Kulkarni [EMAIL PROTECTED] wrote: I am running tomcat5 version on ubuntu. I want to link external website, say google as my default page served by my tomcat. say when i connect to my tomcat using http://localhost/ then google should open as default page. Any idea?

RE: Linking external website as a default page on Tomcat 5

2007-10-08 Thread Caldarale, Charles R
From: Sridhar Kulkarni [mailto:[EMAIL PROTECTED] Subject: Linking external website as a default page on Tomcat 5 I want to link external website, say google as my default page served by my tomcat. I'm curious - other than spoofing, why would you want to do this? - Chuck THIS

Re: Very Long Full GC after Inactivity

2007-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Clarke-Fields wrote: Or, is there a way to schedule (or force) full garbage collections? Not really. You can issue a call to Runtime.gc(), but it's not guaranteed to do anything at all. My experience has been that the JVM does respect

RE: Problem with session

2007-10-08 Thread Alex79
Thanks Chuck, I'll check out for a call to the invalidate method of the session. I'll also give a try to the maxKeepAliveRequests, sounds like a good call to me. I read about it in the doc, it says that if there are more than 100 (default value as you mentionned) unprocessed queries in the

Re: Form based auth - Not working

2007-10-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicolas, Nicolas Gonzalez wrote: I have a DB with users and user-roles tables and data in those tables but every time I try to log in my application it will fail with no reason, nor log either! Care to give us the database schema you are using?

Re: Very Long Full GC after Inactivity

2007-10-08 Thread Konstantin Kolinko
Just a hypothesis. During these off-peak hours some other applications are actively running (maintenance etc.), and as java is not intensively used, its memory is swapped to the hard disks. Thus, when it awakens and does the GC, it takes so much time to wake up the memory walking through it to

Re: Tomcat 5.5.25 - 6.0.14 upgrade problem

2007-10-08 Thread aku1234
I added: org.apache.naming.level=FINE org.apache.tomcat.dbcp.level=FINE to the bottom of my TC_HOME/conf/logging.properties, but the logging output didn't change. Is there something else that needs to be changed to enable logging? Here's the complete log file below: Oct 8, 2007 2:58:03 PM

Context path

2007-10-08 Thread Kwok Ng
Hi folks, I am trying to deploy webapps with context xml file. I have a context xml in the tomcat/conf/locahost/www.xml. The content is: Context path=abc docBase=C:/webapps/www/ When I start the tomcat, I can't access the anything with http://localhost/abc, but I can access

Re: Multi-thread issue on redeploy of application

2007-10-08 Thread David Smith
It's been a while, but last I checked Struts didn't generate it's own threads. I'm guessing by your description that your code is generating threads. In that case, you need to maintain a reference to each thread and end them when the app stops. You can take a look at the various listener

Re: Context path

2007-10-08 Thread Mark Thomas
Kwok Ng wrote: I am trying to deploy webapps with context xml file. I have a context xml in the tomcat/conf/locahost/www.xml. The content is: Context path=abc docBase=C:/webapps/www/ When I start the tomcat, I can't access the anything with http://localhost/abc, but I can access

Re: Context path

2007-10-08 Thread David Smith
Because your webapp's context.xml is named www.xml. The path spec in your Context ... ... /Context element is ignored in favor of the name of the xml file. I'd go further in saying you should also change the name of your webapp (C:\webapps\www - C:\webapps\abc). --David Kwok Ng wrote: Hi

Re: Form based auth - Not working

2007-10-08 Thread Nicolas Gonzalez
Hi all, Thx for all the answers. I deleted my context file, the login.jsp, the data from the db and configured everything again (using localDataSource=true to be able to use the local data source) . Now the auth is working!!! I'm pretty sure, as u said, that I had a problem or in my jsp login

Re: soTimeout not worked on channelNioSocket

2007-10-08 Thread Bill Barker
More generally, it looks like it isn't handling the case where Apache drops the connection in mid-request well :(. Oh, well, there is a reason that the NIO impl over AJP is experimental (and thus not documented). Yes, it should probably throw an exception when the wait() returns without any

Re: Multi-thread issue on redeploy of application

2007-10-08 Thread Cool Coder
Yes it has something to do with my application. Let me tell you that this occurs when I hot deploy my application without restarting tomcat. Let me do a minute check. Thanks for your help. - RB Be a

Re: Trouble running tomcat on Ubuntu Linux OS X Tiger

2007-10-08 Thread Unnsse Khan
Chuck, It can't be a permissions problem, because I conducted a chmod +x *.sh inside $CATALINA_HOME/bin Hence: /DevTools/Java/Tomcat/apache-tomcat-5.5.25/bin untz$ ls -al *.sh -rwxr-xr-x 1 untz untz 12044 Aug 24 17:34 catalina.sh -rwxr-xr-x 1 untz untz841 Aug 24 17:34

Re: Trouble running tomcat on Ubuntu Linux OS X Tiger

2007-10-08 Thread Unnsse Khan
Hi Mark, I just tried that and it worked! Then, I tried it by issuing: sh $CATALINA_HOME/bin/startup.sh and it worked again! I don't know what was wrong with it (I did reboot my computer, but don't know how much that helps)... Well, it wasn't working before, so I don't know what fixed

Re: soTimeout not worked on channelNioSocket

2007-10-08 Thread William Leung
Thanks for reply. It seems that neither the NIO impl nor the standard impl of AJP Connector do not handle the case where Apache drops the connection in mid-request well. I had try the standard way first, and still notice some requests blocks for hours (socket timeout is not setted). As busy