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
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.
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
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
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
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
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
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
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.
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:
-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.
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
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
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
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
*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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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:
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]
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
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
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
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
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
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
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
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:
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
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]
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?
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
-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
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
-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?
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
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
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
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
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
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
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
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
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
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
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
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
86 matches
Mail list logo