Depends on your viewpoint; for me, it's much more elegant and
straightforward to use the name of the webapp.
Thats definitly true for anything but the ROOT app. I can't see the elegance
in moving around multiple wars which are all called ROOT.war (One for each
Host)
I think I will just
Hi.
On a customer HPUX B.11.11 system that we are (remotely and partially)
managing, I would like to know with which java options (default or
otherwise) the JVM is being started, particularly the options regarding
memory usage by the JVM and Tomcat.
Tomcat runs as follows (ps -ex output) :
I add anything to support clustering, dont know if there is a special
configuration for JAAS,
you mean jaas.conf?
JaasConf {
package.MyLoginModule required;
};
thanks
Gustavo Araujo wrote:
Can you send us the logs and the conf. files?
Thanks
2008/11/14 lmk [EMAIL PROTECTED]
Thank you very much Bill for the useful update!
There is probably a typo below, request.getOutputStream().close()
would be request.getInputStream() or response.getOutputStream().
So, do you mean the request.getInputStream().close() actually closes the
underlying connection stream or that the
Michal Singer wrote:
Hi.
I am not sure the stuck as any thing to do with the Request Processor
accumulation.
I work with nio connector. I use acceptCount=200 so maybe this is why i
see the 200 Request Processors.
This is the full configuratin i use for connector:
Connector
Start by making sure there is only one copy of the javamail jar.
Remove either the one in tomcat's lib directory or your webapp's lib
directory.
-- David
On Nov 19, 2008, at 6:04 AM, Lyallex [EMAIL PROTECTED] wrote:
Hi
Tomcat 6.0.16
jdk1.6.0_06
javamail 1.4.1
I have a simple component
Thank you a lot Kees,
acctually I'm checking 2 possible implementations out. These two options
seems to be good.
1- to use Servlet Filters
2- to extend a AccessLogValve
Regarding CPU time I have searched deep in the link you have passed me and
I found something about
Hi
Tomcat 6.0.16
jdk1.6.0_06
javamail 1.4.1
I have a simple component that uses javamail 1.4.1 to send e-mail
It works perfectly 'standalone' (executed from Eclipse).
It connects to the server (mail.smtp.auth = false)
and sends the email
I've read the available docs at
If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here)
work? As far as I can read from the servlet spec, the servlet engine
_must_
resolve relative redirects before sending the redirect back to the
browser.
But as far as I can tell, Tomcat does not do this. And furthermore,
Most of these are set via catalina.sh (which you don't want to touch).
But if you wish to add your own -X params. See
/opt/hpws/tomcat/bin/setenv.sh
In there - you'll see that HP already has added
CATALINA_OPTS=-XdoCloseWithReadPending
-Tim
André Warnier wrote:
Hi.
On a customer HPUX
Stig Kleppe-Jørgensen wrote:
If not, why doesn't a HttpServletResponse.sendRedirect(../../go/here)
work? As far as I can read from the servlet spec, the servlet engine
_must_
resolve relative redirects before sending the redirect back to the
browser.
But as far as I can tell, Tomcat does not
Hi
Well I've had problems with this before.
As I'm sure you know, the JavaMail API 1.4.1 distribution contains
dsn.jar, imap.jar, mailapi.jar, pop3.jar and smtp.jar
I was very careful to make sure that I only had the above jars in
EITHER the web application's lib directory (WEB-INF/lib) OR
Dear Chris,
I am setting up a monitoring system for Tomcat servers and I am
looking
for hard limits in Tomcat servers in general.
I found a few so far: file descriptors, memory pools (ok, these are
jdk
limits) and thread pools.
Are there any other hard limits that I can run into?
I
I think the question you wanna ask yourself first is,
do you want to monitor tomcat or do you want to monitor your application?
regards
Leon
On Wed, Nov 19, 2008 at 3:18 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
Dear Chris,
I am setting up a monitoring system for Tomcat servers and I am
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nathan,
[EMAIL PROTECTED] wrote:
In my code, I have a ServletContextListener (configured in web.xml or
similar file, don't remember exactly), so when the servlet context is
created it calls contextInitialized(ServletContextEvent). In this
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michal,
Michal Singer wrote:
I am not sure the stuck as any thing to do with the Request Processor
accumulation.
I work with nio connector. I use acceptCount=200 so maybe this is why i
see the 200 Request Processors.
acceptCount=200 just means
Dear Leon,
I think the question you wanna ask yourself first is,
do you want to monitor tomcat or do you want to monitor your
application?
I want to monitor Tomcat, not the application. I'm using the
information to improve the Tomcat monitoring on Java-monitor.com.
Currently you can see
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stig,
Stig Kleppe-Jørgensen wrote:
I stand in this url:
http://host/servletpath/ication/test/fr/ca
and want to go to this url:
http://host/servletpath/ibs/name/test.jar
Why not just use absolute URLs?
is there a demo available on the java-monitor.com? sofar i only find a
php forum :-)
Leon
On Wed, Nov 19, 2008 at 3:31 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
Dear Leon,
I think the question you wanna ask yourself first is,
do you want to monitor tomcat or do you want to monitor your
http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6
.0.18.exe
Maybe the site is down?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Keen Jan,
Kees Jan Koster wrote:
Ah, sorry for the confusion. I should have asked for limits that are
hard at run-time. Thread pool sizes may be editable, but they are fixed
once Tomcat runs.
Gotcha. Hard runtime limits makes a whole lot more
Leo Donahue - PLANDEVX wrote:
http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6
.0.18.exe
Maybe the site is down?
Works for me.
Or you can just use a different mirror.
Mark
-
To start a new
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED]
Subject: 6.0.18 download link yeilds HTTP 404
http://www.devlib.org/apache/tomcat/tomcat-6/v6.0.18/bin/apach
e-tomcat-6.0.18.exe
Maybe the site is down?
It's unlikely the DevLib people are monitoring this mailing list, so you should
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Jonathan,
Jonathan Mast wrote:
I am writing a report generator that has the ability to generate Excel
files.
This question has already been answered by Youssef, Hassan, and Bill.
I'm going to add a few things that I think are worth mentioning.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Vasanth,
Vasanth Kumar ravi wrote:
We did many rounds of load/performance testing with 50 Virtual users, to
find bottlenecks with the application, major problem found was CPU
utilization.
1. We did load testing with 1 apache and 1 tomcat, the
Hi, thanks for the response.
I have A few questions regarding your comment:
1. request processors are equivalent to threads?
2. doesn't nio work with one thread? (I thougt that this thread
configuration is irrelevant since nio works with one thread to receive
requests.)
3. I shouldn't work with
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
André Warnier wrote:
On a customer HPUX B.11.11 system that we are (remotely and partially)
managing, I would like to know with which java options (default or
otherwise) the JVM is being started, particularly the options regarding
memory
Dear Leon,
is there a demo available on the java-monitor.com? sofar i only find a
php forum :-)
The forum has the monitoring tool built-in. A bit weird at forst, but
it makes it really simple to post questions, as you can just post
graphs from the tool right on the forum. No need to make
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Michal,
Michal Singer wrote:
1. request processors are equivalent to threads?
Yes. The only thing that can execute code is a thread. Given your
configuration, it appears that you will have 500 maximum threads.
I am a little unfamiliar with the NIO
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: JVM/Tomcat startup parameters, HPUX
I think the only way to observe effective memory settings is to either
run jmap against the running process, or examine it from within by
interrogating the Runtime object. You can also attach
Thanks again for the great response.
I am not worried about the request processors any more now that i understand
what they mean.
However, i see that when i use the nio, my application gets stuck. i think
working without nio is better.
I am not sure why, if as i know nio is supposed to improve
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat request processing gets stuck
2. doesn't nio work with one thread? (I thougt that this
thread configuration is irrelevant since nio works with
one thread to receive requests.)
Nope. The NIO connector is just a
From: Michal Singer [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat request processing gets stuck
I am not sure why, if as i know nio is supposed to improve
performance.
Not true; NIO improves *capacity*, but it will slightly degrade throughput due
to more thread switching.
I am checking my
Hi guys,
we're running Tomcat on Debian on port 80 using Tomcat Native (JSVC).
Now I'm wondering wether it's possible to get remote debugging working here.
I've adapted the the startup-script as follows:
code
#!/bin/sh
export
Dear Chris,
Ah, sorry for the confusion. I should have asked for limits that are
hard at run-time. Thread pool sizes may be editable, but they are
fixed
once Tomcat runs.
Gotcha. Hard runtime limits makes a whole lot more sense. Sorry for
not
jumping to that obvious conclusion. I wasn't
On Nov 18, 2008, at 7:58 , David Smith wrote:
Can you post your database config and code snippet for accessing the
db? Obfuscate the username/password info.
One immediate observation is the JDBC url should have the name of the
database you are trying to access like this:
On Nov 18, 2008, at 7:37 , André Warnier wrote:
Krapacs Ambrose wrote:
I have tried many different configurations and I have been unable
to get my Servlets / JSP to connect to MySQL server running. I am
trying to get this set up on my main server which is running Ubuntu
8.10 Server with
On Nov 18, 2008, at 7:36 , Antonio Vidal Ferrer wrote:
Hi,
It's your mysql listening on Localhost?
Have you tried to use the ip address instead of Localhost?
Best,
Toni
-Original Message-
From: Krapacs Ambrose [mailto:[EMAIL PROTECTED]
Sent: martes, 18 de noviembre de 2008 13:22
If you have command line access on the system, can you test your MySQL
connectivity by connecting this way?:
mysql -u inventory -h localhost -p
The -h option forces mysql command to connect via TCP/IP instead of unix
sockets.
--David
Ambrose Krapacs wrote:
On Nov 18, 2008, at 7:58 , David
well, downloaded, installed, started, klicked, ... deleted...
you should announce that your war is SENDING DATA to the central
server in LARGE letters :-)
which users are you targeting? No one i know (and i'm in the webapp
business for about 10 years) will ever going to use this stuff, since
its
Ambrose Krapacs wrote:
[...]
I have tried using telnet to connect to port 3306 and it does appear
that the server is listening because it refuses the telnet connection.
Well, that would tend to indicate exactly the opposite : either MySQL is
*not* listening on that port, or something is
Are you sure that the mail server, serving the host you are deploying to does
not require authentication? I got this same error trying to go through the
Google Mail Server without proper authentication.
when I invoke the component in the webapp I get
javax.mail.AuthenticationFailedException
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
acceptCount=200 just means that the socket will accept 200
clients /in
addition/ to those currently being served by RequestProcessor threads.
The only way to see those waiting clients would be to query
the socket itself (maybe only
Better yet do you want to know how the application uses Tomcat resources?
To do what Leon mentions requires a profilier that is approved for production
use or have the developers write timers in the code for critical measurements
say around time it takes for a request versus jdbc calls some may
Hi Filip,
Ok, my (partly) mistake. I've missread this comment:
///GET method or application/x-www-form-urlencoded/
in BayeuxServlet.checkBayeux...
Anyway, I can't change everything now and I need to read the request
input stream (I'm getting AMF3 binary data), not to get a request
parameter
On Nov 19, 2008, at 11:13 , David Smith wrote:
If you have command line access on the system, can you test your MySQL
connectivity by connecting this way?:
mysql -u inventory -h localhost -p
The -h option forces mysql command to connect via TCP/IP instead of
unix
sockets.
--David
Yes I
I am looking at having to support tens or even hundres of instances of our
web application in an ASP Model. We use Tomcat as our application server
and it seems to me that three possibilities as a base model for each
physical server
1. Have a single Tomcat instance per server with multiple
Dear Leon,
well, downloaded, installed, started, klicked, ... deleted...
you should announce that your war is SENDING DATA to the central
server in LARGE letters :-)
which users are you targeting? No one i know (and i'm in the webapp
business for about 10 years) will ever going to use this
Hi Everybody,
I have been using Apache Tomcat 5.5.23 with Java 1.5.0_12. OS is Windown Server
2003. Tomcat connects to an Informix database and I have been using this
application at my company without any major issues so far for more than 2
years. Lately we noticed some suspicious activities
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ambrose,
Ambrose Krapacs wrote:
catch( Exception e )
{
retVal = e.toString();
}
And this gives you CommunicationLinkFailure for every URL you are trying?
A few things about the URLs:
1. Don't
From: Toby Kurien [mailto:[EMAIL PROTECTED]
Subject: java.lang.Exception: Socket bind failed: [730048]
I have attached a log file of the errors I am
getting while trying to start Tomcat.
Nov 19, 2008 12:55:22 PM
org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
John,
John Shilling wrote:
Do people really do option #1 in a production environment?
Sure.
I can figure out how to set up realms for initialization parameters
but it is still a single class namespace within the Tomcat container,
right?
Not
I'm having an issue with clustering in tomcat and tribes.
I get this output, I'm not sure why Tribes can't bind to the multicast
address? It then binds to localhost which doesn't allow machines to see
each other.
Any help is appreciated.
19-Nov-2008 3:30:23 PM
Hello Kees Jan,
On Wed, Nov 19, 2008 at 8:25 PM, Kees Jan Koster [EMAIL PROTECTED] wrote:
Dear Leon,
Oh, don't be so dramatic. There is a whole world out there of smaller
companies that have one or two Tomcat servers in production, running on the
cheapest shared server environment they could
Instead of puting 127.0.0.1 in your conf file (server.xml) put the real ip
adress of your server.
Restart the server and look at catalina.out.
Regards.
2008/11/19 Mike Wannamaker [EMAIL PROTECTED]
I'm having an issue with clustering in tomcat and tribes.
I get this output, I'm not sure why
John Shilling wrote:
I am looking at having to support tens or even hundres of instances of our
web application in an ASP Model.
We basically do this now using a single Tomcat instance with multiple
webapps (https://host.com/App1/, https//host.com/App2/ etc) and
don't use virtual
hi Franck,
Franck Wolff wrote:
Hi Filip,
Ok, my (partly) mistake. I've missread this comment:
///GET method or application/x-www-form-urlencoded/
in BayeuxServlet.checkBayeux...
Anyway, I can't change everything now and I need to read the request
input stream (I'm getting AMF3 binary
just to make sure
1. you are using 6.0.18
and
2. the IP you are trying to bind to is valid
and
3. could you be using linux?
this is the code that is telling you about the failure
186 : fhanik 586228 if (mcastBindAddress != null) {
187 : try {
188 :
Hi,
I finally found an answer to my problem, thanks to a few posts
on the interenet.
Here they mention the fact that NETWORK SERVICE needs WRITE
access to the directory defined by the log_file key under
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Hi All,
There are certain requests that I don't want written to the AccessLog.
In Apache (httpd.conf) I can achieve this by:
SetEnvif Remote_Addr [regex] dontlog
CustomLog logs/access_log combined env=!dontlog
How do I achieve the same in Tomcat?
Thanks!
Jason
--
View this message in
Hi Christopher,
thanks for a long and detailed response.
Christopher Schultz schrieb am 18.11.2008 um 16:26:23 (-0500):
Michael Ludwig wrote:
I thought it helpful to have a trace of the methods getting called
One way to do it is to use a proxy object. If you haven't used proxies
before,
From: Michael Ludwig [mailto:[EMAIL PROTECTED]
Subject: Re: [Http]ServletResponseWrapper.getOutputStream()
Try/catch can't be that much of a problem, can it? Isn't it
just a fancy way of conditional branching with information
attached?
Sorry, but no. The throwing of an exception causes the
On Nov 19, 2008, at 14:53 , Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ambrose,
Ambrose Krapacs wrote:
catch( Exception e )
{
retVal = e.toString();
}
And this gives you CommunicationLinkFailure for every URL you
HI ,
The auth method is form based.
Regards,
Thangavel Sankaranarayanan
[EMAIL PROTECTED]
l.com
Hi ,
The Auth method is form based .
Regards,
Thangavel Sankaranarayanan
[EMAIL PROTECTED]
l.com
All-
I am facing one problem, i.e. I have to configure two
SSL certificates to JBoss server, I know they are internally using
Tomcat for web container.
Is it possible to add multiple Certificates to one
server instance itself? If so, then how?
66 matches
Mail list logo