How can you count incoming and outgoing traffic for an application?

2004-07-01 Thread Ivan Jouikov
I was wandering how can you count traffic in Tomcat? One way that I could think of, is to write a filter, and have it wrap the response output stream, and count the bytes. But that wont count the TCP IP headers size Is there any way to effectively count traffic for a given application

AW: Getting mad with jsp 2.0 jsp:directive.include file=file_to_include.jsp/

2004-07-01 Thread Martin Grüneberg
Thanks for the answer, but the jsp:directive.include ... is the xml-styled version of %@ include file=... so this should work equaly. Any other proposals? martin -Ursprüngliche Nachricht- Von: Woodchuck [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Juni 2004 16:23 An: Tomcat

Content compression in Tomcat

2004-07-01 Thread Gabi
Hi! I'm trying to compress the served jsp. As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip apache module, but this have some problems (I'll use SSL in apache too, and mod_ssl+mod_gzip does not work very well in combination) so I wonder how with my configuration can I

Re: Content compression in Tomcat

2004-07-01 Thread Pieter Vandepitte
Hi, why should you compress it? ssl does that job for you already... (I think ;)) But don't know how you can configure compression for ssl... On Thursday 01 July 2004 09:07, Gabi wrote: Hi! I'm trying to compress the served jsp. As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use

Tomcat 4.1.29 RMI White Spaces

2004-07-01 Thread PATTUS Jean-Philippe
Hello the list, I've got a rmi server and a web application under Tomcat 4.1.29 running on the same machine. When i run a sample test rmi client without Tomcat , i acces to my remorte object with no problem. Under Tomcat i have a remote exception : java.rmi.ServerException: RemoteException

Re: Content compression in Tomcat

2004-07-01 Thread Peter Rossbach
Hello, look at the Compression Filter example at the tomcat distribution webapps\examples\WEB-INF\classes\compressionFilters Also read some of the javaworld articles http://www.javaworld.com/channel_content/jw-servlets-index.shtml

RE: Content compression in Tomcat

2004-07-01 Thread Gabi
Not exactly, I don´t want to compress ssl, I want Tomcat to compress the jsp file, then Apache will make the SSL. Hi, why should you compress it? ssl does that job for you already... (I think ;)) But don't know how you can configure compression for ssl...

include ip in log

2004-07-01 Thread Hans Wichman
Hi, does anyone have a good tip how I can distinguish different clients logging to ServletContext.log() ? I don't want to make any changes that force me to pass additional parameters if this can be avoided, so I was thinking about using something like the current thread id or something like

Re: Tomcat process memory growth

2004-07-01 Thread Surendra Kumar
No I am using md_jk to connect to Apache. Any other thoughts on this. -Surendra - Original Message - From: Adrian Barnett [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 8:11 PM Subject: Re: Tomcat process memory growth On Wed, 30 Jun 2004

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Jan Behrens
David is right, you will need to rename {Catalina_Home}/webapps/DBTest/WEB-INF/DBTest.xml to {Catalina_Home}/webapps/DBTest/WEB-INF/web.xml and hopefully all will be up and running. Jan -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 3:56

Tomcat crashes randomly with an exception in native code

2004-07-01 Thread Mirjam Fredriksen
We are running Tomcat 5.0.19 on a 2003 Windows Server. We have installed jdk 1.4. Time to time (about once a week) Tomcat crashes and a hr_ess_pidxxx- error-message is placed under the /bin catalogue of Tomcat. This problem started after changing from a Windows NT server where we were using

default user for administrate and manage Tomcat

2004-07-01 Thread Luis Zorita
Hi list: I,ve just installed Tomcat 5.0.25 . My problem is that I don´t know the default user for administrate and manage de server. Do you know these values or where can I found it in the doc. Thanks in advance Luis Zorita - To

strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan

2004-07-01 Thread Martin Monsorno
Hi *, I get the following error when trying to transform a xml document with a XSLT stylesheet: ; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298; Column#: 66 javax.xml.transform.TransformerException: Unknown error in XPath at

RE: default user for administrate and manage Tomcat

2004-07-01 Thread Gabi
in the file tomcat-users.xml add: user username=manager password=manager roles=manager/ user username=admin password=admin roles=admin/ As you can imagine, you've two new users, named manager and admin, with pwd manager and admin and the role manager and admin. Of course change so obious name and

Re: strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan

2004-07-01 Thread Martin Monsorno
Martin Monsorno [EMAIL PROTECTED] writes: Hi *, I get the following error when trying to transform a xml document with a XSLT stylesheet: ; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298; Column#: 66 javax.xml.transform.TransformerException: Unknown error in XPath

Logging in Apache Tomcat

2004-07-01 Thread Robert Einsle
Hello List, How do i make logging in JAkarta Tomcat applications?? Does it exists an Howto for it?? Thanks for help \Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problems Starting Tomcat

2004-07-01 Thread Alvin Randolph
Hello; Whenever I click the Start Tomcat all I get is a flash of the Tomcat icon. When I click any of the links Tomcat Administration or Welcome, I get a panel requesting the User name Password before connecting me to http://127.0.0.1:8080/ADMIN/... After 3 tries, I get the Unauthorized

RE: Problems Starting Tomcat

2004-07-01 Thread PATTUS Jean-Philippe
check your JAVA_HOME variable. -Message d'origine- De : Alvin Randolph [mailto:[EMAIL PROTECTED] Envoyé : jeudi 1 juillet 2004 13:24 À : [EMAIL PROTECTED] Objet : Problems Starting Tomcat Hello; Whenever I click the Start Tomcat all I get is a flash of the Tomcat icon. When I click any

Re: How can i restart/reload a webapplication from within a servlet ?

2004-07-01 Thread alu, artifex
the tomcat distribution includes a manager webapplication which provides the functionality of starting, stopping and reloading specific web applications, take a look at the source code of this app to figure out how to achive such a behaviour. you may face some problems when the webapp tries to

Re: How can you count incoming and outgoing traffic for an application?

2004-07-01 Thread alu, artifex
tomcat doesnt know anything about tcp/ip traffic. go for a network analyzer or something similar. art Ivan Jouikov wrote: I was wandering how can you count traffic in Tomcat? One way that I could think of, is to write a filter, and have it wrap the response output stream, and count the

Re: Problems Starting Tomcat

2004-07-01 Thread alu, artifex
check if tomcat is already running as a system service, if it is it won't recognize changes to the tomcat-users.xml until you stop and restart the service. also you could try inserting a pause statement at the end of tomcat's startup.bat file to see tomcats console output which, most likley,

Re: default user for administrate and manage Tomcat

2004-07-01 Thread alu, artifex
further explanation follows: the manager webapp allows every user with the role manager to log in, the admin webapp requires the role admin - so you could have any number of users accessing the webapps, as long as they have the required roles. of course its also possible to have a single user

Re: Logging in Apache Tomcat

2004-07-01 Thread Harald Henkel
Use log4j, I would say. Robert Einsle wrote: Hello List, How do i make logging in JAkarta Tomcat applications?? Does it exists an Howto for it?? Thanks for help \Robert - To unsubscribe, e-mail: [EMAIL

RE: Problems Starting Tomcat

2004-07-01 Thread PATTUS Jean-Philippe
Nobody for my pb? -Message d'origine- De : PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED] Envoyé : jeudi 1 juillet 2004 13:52 À : Tomcat Users List Objet : RE: Problems Starting Tomcat check your JAVA_HOME variable. -Message d'origine- De : Alvin Randolph [mailto:[EMAIL

Tomcat 5 - Servlet action is currently unavailable

2004-07-01 Thread Andy Festa
Hi. I've recently upgraded to Tomcat 5.0.25 from Tomcat 4.1.24. I'm using Eclipse 3.0RC3 with the Sysdeo Tomcat Plugin V3. The directory for my web app is not under my tomcat directory. The servlet that I'm using now no longer works, whereas it did work under Tomcat 4. I'm getting this error:

Re: strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan

2004-07-01 Thread Dan Barron
Have you tried just testing (title) instead of (./title)? The added ./ seems unneceassry. At 02:25 AM 7/1/2004, you wrote: Hi *, I get the following error when trying to transform a xml document with a XSLT stylesheet: ; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298;

Upgrade Tomcat version in OS X Server

2004-07-01 Thread Jason Lane
Hi list, OK I've just taken possession of a G5 X Serve running OS X 10.3.4 Server. This version comes with Tomcat 4x but I really want to upgrade to Tomcat 5x. I have installed the binaries under /usr/local and created a sym from the existing install in /Library/Tomcat Tomcat still shows as

Re: strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan

2004-07-01 Thread Jacob Kjome
Quoting Martin Monsorno [EMAIL PROTECTED]: Martin Monsorno [EMAIL PROTECTED] writes: Hi *, I get the following error when trying to transform a xml document with a XSLT stylesheet: ; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298; Column#: 66

How to increase memory

2004-07-01 Thread Gunnar Pörschke
where and how do I increase memory (win2003Srv) for tomcat (4.1.30)?

Re: How to increase memory

2004-07-01 Thread alu, artifex
by setting the environment variable JAVA_OPTS to something like this: -Xms32m -Xmx512m this will cause the vm to allocate 32m at startup and limits the maximum java heap memory size to 512mb. you can set the environment variable by adding the following command somewhere at the beginning of

Re: How to increase memory

2004-07-01 Thread Thilo Krawietz
There is no possibility to increase memory quota for tomcat directly in tomcat's server settings. But you can set explicitly the amount of memory the VM, which is instanciated when you startup tomcat You do this in catalina.bat by adding two commandline options to %CATALINA_OPTS or %JAVA_OPTS

Unknown errors in Apache Log

2004-07-01 Thread Martens, Jason
Hey All, I got the following errors in my apache log, and I'm not sure what they mean. I tried googling, but didn't find anything. Can someone point me in the right direction? The BufferOverflowException is really the concerning part. Could this possibly be someone trying to hack my site?

Re: Tomcat 5 - Servlet action is currently unavailable

2004-07-01 Thread Andy Festa
Correction to my question... it doesn't work manually via startup.bat either. Oversight on my part. --- Andy Festa [EMAIL PROTECTED] wrote: Hi. I've recently upgraded to Tomcat 5.0.25 from Tomcat 4.1.24. I'm using Eclipse 3.0RC3 with the Sysdeo Tomcat Plugin V3. The directory for my web

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Briggs, Patrick
Ok, I tried as you suggested, I deleted DBTest.xml out of the conf/Catalina/localhost directory and placed it inside my web.xml for the webapp itself. I rebooted my machine, restarted Tomcat, same error. Still nothing. Here is what my web.xml looks like now: ?xml version=1.0 encoding=UTF-8?

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Briggs, Patrick
Yeah, I just tried that and still no go. Still getting: javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver -Original Message-

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Robert Harper
I have seen this one too many times. It usually has to do with the naming lookup. I have had to keep playing with the form of the name until it worked. Robert S. Harper 801.265.8800 ex. 255 -Original Message- From: Briggs, Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01,

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Briggs, Patrick
Why does it have to be so difficult? Pretty soon I'll have to give up and go back to PHP. What I really want to do is try out Javaserver Faces. -Original Message- From: Robert Harper [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 9:38 AM To: 'Tomcat Users List' Subject: RE:

Re: Upgrade Tomcat version in OS X Server

2004-07-01 Thread Mark Lowe
http://homepage.mac.com/melowe/iblog/B141099555/C760077128/E969031629/ index.html On 1 Jul 2004, at 16:04, Jason Lane wrote: Hi list, OK I've just taken possession of a G5 X Serve running OS X 10.3.4 Server. This version comes with Tomcat 4x but I really want to upgrade to Tomcat 5x. I have

Tomcat + Apache + SSL

2004-07-01 Thread Lorenzo A. Jimenez Briceno
Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno

Issue with JK2 IIS 5.0 and Tomcat 4.1.30

2004-07-01 Thread Sudhir Sudhir
Hello All, I am having a strange issue in that when I user Jk2 connector for IIS (isapi_redirector2.dll). Everything works fine in the sense that all my requests are by redirected to tomcat from the web server etc. But my app passes chunks of XML back and forth between requests and when I

Re: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread David Smith
Hold on a minute. I think we have a communication problem here. I wasn't recommending you do that. Slow down, take a breath and read my posts VERY carefully. We are looking at two different files here. DBTest.xml as a file containing the Context.../Context stuff should be in

RE: Tomcat + Apache + SSL

2004-07-01 Thread Lee, Paul NYC
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about

Re: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Hassan Schroeder
David Smith wrote: I was recommending you take the resource-ref.../resource-ref stuff you put in {TOMCAT_HOME}/webapps/DBTest/WEB-INF/DBTest.xml and put that in {TOMCAT_HOME}/webapps/DBTest/WEB-INF/web.xml. Yes, and in addition -- Here is what my web.xml looks like now: ?xml version=1.0

LDAP - newbee help

2004-07-01 Thread Kal Govindu
Hello all, I am trying to setup tomcat 5 to authenticate against Microsoft Directory Server through LDAP. I have found a very detailed document for tomcat 5 and JNDI realm. One question before I go any further: Is LDAP server a server that needs to be started separately from directory server?

RE: Tomcat - MySQL = No suitable driver ERROR

2004-07-01 Thread Briggs, Patrick
Ok, the contents of {TOMCAT_HOME}/conf/Catalina/localhost/DBTest.xml is: Context debug=5 displayName=DBtest docBase=DBTest path=/DBtest reloadable=true workDir=work\Catalina\localhost\DBTest Resource auth=Container name=jdbc/DBTest type=javax.sql.DataSource/ ResourceParams name=jdbc/DBTest

RE: LDAP - newbee help

2004-07-01 Thread Ross Rankin
LDAP, Lightweight Directory Access Protocol, is a protocol that other programs use to look up contact information from a server, such as Microsoft Active Directory. It is a service provided by a server, not a server. An LDAP server is a server that provides LDAP services... The Microsft AD

RE: Tomcat + Apache + SSL

2004-07-01 Thread Lorenzo A. Jimenez Briceno
Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo

RE: Tomcat + Apache + SSL

2004-07-01 Thread Casas, Claudia
I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno

Change to Port 80

2004-07-01 Thread Ryan McCain
How do I configure Tomcat to run on port 80 as opposed to 8080? I changed a few parameters in the xml config file, but nothing seemed to have took. OS=SUSE Linux Tomcat=4.x Thanks, Ryan - To unsubscribe, e-mail: [EMAIL

Re: Change to Port 80

2004-07-01 Thread Hassan Schroeder
Ryan McCain wrote: How do I configure Tomcat to run on port 80 as opposed to 8080? I changed a few parameters in the xml config file, but nothing seemed to have took. The Connector element contains a port attribute. Shouldn't be hard to grep '8080' in server.xml and change it :-) -- Hassan

Re: Change to Port 80

2004-07-01 Thread Ryan McCain
Thanks for the response. Thats what I thought it was, and when I changed it previously, my browser just hangs and says Waiting for connection Any ideas? Thanks, Ryan [EMAIL PROTECTED] 7/1/2004 3:56:49 PM Ryan McCain wrote: How do I configure Tomcat to run on port 80 as opposed to 8080? I

Re: Change to Port 80

2004-07-01 Thread QM
On Thu, Jul 01, 2004 at 03:50:49PM -0500, Ryan McCain wrote: : How do I configure Tomcat to run on port 80 as opposed to 8080? This has been discussed at length (some would say, ad nauseam) in the archives. There are several ways to do it, based on your needs and preferences. -QM --

RE: Change to Port 80

2004-07-01 Thread Patrick Glennon
Agreed. Go look at the docs. But just to get you started, if you are running tomcat as a non-root user, you CANNOT bind to port 80 unless you use something like JSVC ( go look that one up too ;) to launch it. -P -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, July

Problem with tomcat 4.1.24 : java.net.SocketException: Connection reset by peer: socket write error

2004-07-01 Thread RK
Hi All I get the following error and my webserver gets hung up. After restarting the server everything works fine for a while until hangs up again. Using Tomcat 4.1.24. Help needed desperately. StandardWrapperValve[default]: Servlet.service() for servlet default threw

Re: Content compression in Tomcat

2004-07-01 Thread David Rees
Gabi wrote: I'm trying to compress the served jsp. As I'm using Apache 2 + Tomcat 4 + mod_jk, I suppose I can use mod_gzip apache module, but this have some problems (I'll use SSL in apache too, and mod_ssl+mod_gzip does not work very well in combination) so I wonder how with my

Container StandardContext[/vp] has not been started

2004-07-01 Thread Anthony Smith
I have no idea what this means. All I tried to do was startup Tomcat with a new webapp. I really did not know where to begin. 2004-07-01 16:14:57 StandardContext[/vp]: Resources start failed: 2004-07-01 16:14:57 StandardContext[/vp]: Context startup failed due to previous errors 2004-07-01

Apache auth on JBoss 3.2.4

2004-07-01 Thread Eulogio Robles
I am migrating an application from Tomcat 4 to JBoss 4.2.4. It is being used from with Apache 2/JK2. However it is failing because request.getRemoteUser() is returning null in some password protected pages. All the auth configuratoion (login and passwords) is based on Apache. The problem was

Re: Change to Port 80

2004-07-01 Thread Hassan Schroeder
Ryan McCain wrote: Thanks for the response. Thats what I thought it was, and when I changed it previously, my browser just hangs and says Waiting for connection Any ideas? Use `$CATALINA_HOME/bin/catalina.{sh,bat} run` to start up and watch the console; one of the first few messages should be

RE: Tomcat + Apache + SSL

2004-07-01 Thread Lorenzo A. Jimenez Briceno
Thanks Claudia, Do you know about TC5 and A2 -Mensaje original- De: Casas, Claudia [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 02:48 p.m. Para: Tomcat Users List Asunto: RE: Tomcat + Apache + SSL I followed John Turner's Web page:

apache2 and tomcat via jk2

2004-07-01 Thread Yanbin Ma
Hi, I am new to this list. I have a question about use apache2 with tomcat. When tomcat running in standalone mode, you can develop and deploy your application easily. There is no configuration file to change on tomcat side, no need to restart tomcat. Everything that's related to

RE: Tomcat + Apache + SSL

2004-07-01 Thread Casas, Claudia
I tried did try to install tomcat5 and apache2 with success following the same steps. BUT, I could not get the connector working since it is recommended that you use the jk2 connector when using tomcat5 already. If you get it working, please let me know. -Original Message- From:

howto disable webdav extensions / methods?

2004-07-01 Thread Patrick Glennon
How do I disable the webdav extensions? Basically, I don't want to allow any of the webdav methods ( PROPFIND, OPTIONS, COPY, DELETE, etc... ), but I cannot find where to disable or limit them. This is running tomcat direct, I know how to do it with Apache, I just don't know how to do it

Re: Change to Port 80

2004-07-01 Thread Steve Beaman
I'm also on Linux, and when I tried to mod 8080 to 80 via vi, it crashed the server at startup. I finally gave up, made the mods on a Windows box, copied to Linux, and it all worked. Beats me. - Original Message - From: Ryan McCain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Map backed ActionForm, and jstl expression language

2004-07-01 Thread John Martin
Hi all, Any help on the following problem would be most appreciated. What i am trying to do is produce a report of data in tabular form with filters that will reduce the report set. There can be 100's of different reports but by passing in a report id to a database the query, filters, columns

Re: Map backed ActionForm, and jstl expression language

2004-07-01 Thread John Martin
Sorry wrong User List, it is quite late - Original Message - From: John Martin [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Friday, July 02, 2004 1:00 AM Subject: Map backed ActionForm, and jstl expression language Hi all, Any help on the following problem would be

Load Balancer webapp Rules

2004-07-01 Thread Smith, Peter
Hi, I need to implement a basic round robin balancer rule that redirects requests sequentially from one tomcat instance to the next as they are recieved (ie: in a three server config. req1=server1, req2=server2, req3=server3, req4=server1, req5=server2 etc). No session information needs to be

RE: Log rotation HOWTO

2004-07-01 Thread Kwan, Kenneth Y
You may use cronolog from http://cronolog.org/. And, modify the catalina.sh as following in the start part. elif [ $1 = start ] ; then shift if [ $1 = -security ] ; then echo Using Security Manager shift $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \

Re: howto disable webdav extensions / methods?

2004-07-01 Thread Bill Barker
Well, firstly, unless your servlet understands the methods, nothing interesting will happen for a webdav request :). If you want webdav extensions to do anything, you have to enable them. Having said that, you could also disable them via adding security-constraints with the proper http-methods