RE: Removal of headers in HttpServletResponse object

2006-07-20 Thread AS/ETO
Hi Martin, Thanks for the feedback but I am afraid that the example did not really solve my problem. As far as I can understand your example only includes adding a header not removing. It also relies on the standard HttpServletResponse methods which does not include a removeHeader method. Gei

RE: out of memory error

2006-07-20 Thread MW Janssen
He, I am using java 1.5.0_01 Maarten -Oorspronkelijk bericht- Van: Shinya Koizumi [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 21 juli 2006 2:10 Aan: Tomcat Users List Onderwerp: Re: out of memory error One of solution for out of memory problem is to upgrade to Java 1.5 SK - Ori

RE: Tomcat clustering

2006-07-20 Thread Konstantina
Thank you for your instant reply. I haven't set the environment for tomcat clustering yet but I intent to do it soon. What I'm asking is how we replicate application data. I keep track of logged users in the system and save this information in application context. How can I make my 2 or 3 tomcats

Tomcat Manager Undeploy Problems

2006-07-20 Thread Gamigin Gamigin
I have been using Tomcat Manager web interface to deploy/undeploy applications. Recently, I've been experiencing problems. I was wondering if anyone knew what may cause this? I click undeploy. The browser starts loading. Normally it can take 20 seconds for a large app, but then the interface come

Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-20 Thread Luis Rivera
Hi, Well, I managed to hook the logger into the catalina and webapps directories and have two different streams of output. Only activating the DEBUG level I managed to get something useful. I also used FileMon to find out which files were not found and even after getting rid of those errors (by

Re: Tomcat, Timer and TimerTask question

2006-07-20 Thread Cameron
Thank you for all the responses. I had worked out that it is not loaded or called hence does not run. I embedded the same code to a servlet and it worked fine but in order to schedule this I will use the load it when the server starts. Many thanks for all your suggestions. Cameron ---

FW: Intermittant images using https on tomcat

2006-07-20 Thread Rob
Hi Barry, It's only IE that has the problem. I've checked the URLs and they're fine. Sometimes the images appear and other times they don't, like there's a timeout problem in the https connector or something like that. Images under http work fine - haven't see any broken images yet. Rob -

getSession() thread-safe? User A can see user B's account

2006-07-20 Thread Dave
Is the following method thread-safe? I use my own way for authentication. After authenticated, a user info is put into session, when logout, call session.invalidate(); Current symptom is: a user info gets into another user's session. So sometimes User A can see User B's info.

Adding jars to common classloader via system property?

2006-07-20 Thread Pelenur, Matias
Hi, In Tomcat 5.5, is there any way to add JARs to the common classloader via a system property at startup, instead of having to physically place the JARs under TOMCAT_HOME/common/lib? Like most everyone else, I need to put the JDBC driver JAR(s) under common/lib for the DBCP libraries to have

Tomcat admin application "HTTP Status 500" problem

2006-07-20 Thread Garthfield Carter
Hello, I have an issue with the Tomcat "admin" application. I get "HTTP Status 500" errors whenever I click on any of the "User Definition" menu items such as Users, Groups or Roles. The exact error I get reported on screen in the HTTP Status 500 section is: * type* Status report* message* _E

RE: Tomcat fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-20 Thread Tim Lucia
Are you getting the connection anew after restarting the server? It looks like you have this case: T0 Connection x = Datasource.getConnection() T1 Do some stuff T2 Shutdown / restart MySQL T3 x.prepareStatement() or other stuff ... FAIL The connection pool will only renew the

Re: out of memory error

2006-07-20 Thread Shinya Koizumi
One of solution for out of memory problem is to upgrade to Java 1.5 SK - Original Message - From: "MW Janssen" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" Sent: Wednesday, July 19, 2006 8:39 AM Subject: RE: out of memory error > i dont see a memory tab when i right click.. > > -O

Re: Apache to Tomcat via JK on different machines --- 503 / socket errno=60

2006-07-20 Thread Brian Munroe
On 7/20/06, Blah2006 <[EMAIL PROTECTED]> wrote: MACHINE 2: - Microsoft Windows XP Professional, Version 2002, Service Pack 2 [Tue Jul 18 16:33:33 2006] [info] jk_open_socket::jk_connect.c (444): connect to 1.2.3.4:8009 failed with errno=60 I think erno=60 is a timeout error code. Are you

RE: Intermittant images using https on tomcat

2006-07-20 Thread Propes, Barry L
you say this is only happening in IE? Not a Mozilla browser like FF or Netscape? I'd try right clicking on the images to see the properties, and specific URLs in question to verify they all look correct. -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006

RE: Intermittant images using https on tomcat

2006-07-20 Thread Rob
Hi Barry, I've got a redirector filter in place, so if the URL needs to be https instead of http, it's redirected prior to being sent to the servlet. It's also strangely intermittant - I click on the same https URL, and sometimes it shows the image and sometimes not. Does that help at all? Rob

RE: Intermittant images using https on tomcat

2006-07-20 Thread Propes, Barry L
would they (the images) perhaps be cached in under http? And trying to access that when traversing to https? -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 4:52 PM To: users@tomcat.apache.org Subject: Intermittant images using https on tomcat Hi E

Apache to Tomcat via JK on different machines --- 503 / socket errno=60

2006-07-20 Thread Blah2006
Hello, I am very sorry if this is a silly question or has been asked before. I am kind of new to all this, and even after some extensive searching online I could not find the answer to my problem. I am trying to use the JK connector with Apache and Tomcat installed on different computers. I can g

RE: 404 Error when trying to connect Tomcat Manager

2006-07-20 Thread Propes, Barry L
through the web at port 8080 you're accessing this? Or just in your directory on a desktop or server? -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 2:06 AM To: Tomcat Users List Subject: 404 Error when trying to connect Tomcat Manager Hi guys,

RE: Symbolic link for welcome file???

2006-07-20 Thread Propes, Barry L
maybe it needs a pragma-cache reference in a meta tag within the HTML file? -Original Message- From: Mann, Bradley [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 19, 2006 6:14 PM To: users@tomcat.apache.org Subject: Symbolic link for welcome file??? I'm experiencing some strange behavio

Intermittant images using https on tomcat

2006-07-20 Thread Rob
Hi Everyone, I'm implmenting https and http on my tomcat instance. On http the images display ok, but under https sometimes images don't display when browsing the site with internet explorer only. This is true for the dev and production systems when using internet explorer. The other browsers

Tomcat FastCommonAccessLogValve - working example?

2006-07-20 Thread Rob
Hi, I put this valve statement inside the context container in server.xml, and restarted tomcat, but it's still not creating an access log for the server. I copied this example right from the jakarta.tomcat.org site - somewhere! I'm sorry to say I can't find it now, but it was near

Re: How do I create and re-create an object for the entire application?

2006-07-20 Thread Christopher Schultz
To whom it may concern, > ClientServices cs = > com.mycompany.searchapp.ClientServicesFactory.getInstance("RMI", > parms); // Get the ClientServices > cs.Login(strDomain, strUser, strPassword); // Login I assume you put this thing into the application scope, so that your code can get to it at som

Update to previous post-Tomcat 5.5 Dropping Servlet Parameters

2006-07-20 Thread Rob Heim
I realized that the numbers that I posted before weren't accurate and I wanted to amend them. Our 75 user test generates 745 transactions/minute and our 150 user test generates 1500 transactions/minute (not the 5000 and 1 numbers listed before). The previous version of our application, runn

Loading TLD from JAR file?

2006-07-20 Thread Mike Wannamaker
Is it possible to have your tld files inside your jar file and then have them loaded by tomcat? Example: WEB-INF/lib/my.jar contains meta-inf/my.tld Could I add an entry to my jsp or web.xml to load it from inside the jar file on Tomcat 5.5.x? Mike Wannamaker --

Re: TransformerFactoryConfigurationError

2006-07-20 Thread Ravi Tharakan
Never mind. It turned out to be that for some reason, Tomcat is distributed without some of the xalan jars. I had to download the xalan.jar and serializer.jar, xercesImpl.jar, xml-apis.jar files from the xalan website and copy them into the tomcat_home/common/endorsed folder. So I guess it was jus

Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-20 Thread Luis Rivera
Hi David and tomcat users/devs, First of all, thanks for the reply, I really appreicate it. Here are my comments to your comments, hopefully you could find out something I did miss. On 7/20/06, David Smith <[EMAIL PROTECTED]> wrote: Q1) As long as I do not referece the classes, which I belie

Tomcat fails to refresh connections when mySQL server on linux is shutdown and restarted

2006-07-20 Thread Seetha Rao
Hi, We are doing a test where mySQL server goes down when user is accessing a webapplication. We have setup tomcat with the required parameters for DBCP to handle such a case. It works fine in a set up where Tomcat and mySQL are on the same windows machine. But in a setup where Tomcat is on Window

Re: Performance issue with jakarta POI

2006-07-20 Thread Viks
Hi, I am building xls with jakarta POI by fetching the records from database. There are 30K records fetched from DB. Process takes 40 min to complete. Any best practises on using POI api to improve the performance. I dont see issue with the query as The query is very simpl

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-20 Thread Martin Gainty
Hello Arun- What happens when you set the session-timeout to sufficiently high value in your main webapps web.xml 300 ??? Martin -- * This email message and any files transmitted with it contain confidential informa

Re: Tomcat, Timer and TimerTask question

2006-07-20 Thread Christopher Schultz
Cameron, > Just trying to schedule a batch email run using Timer and TimerTask framework > on > Tomcat 4.1.31 You might also consider simply using a cron job (or win32 equivalent) for "real" batch jobs, instead of having your app server manage your batch jobs. -chris signature.asc Descripti

How do I create and re-create an object for the entire application?

2006-07-20 Thread 0 8
Hi, I've created a ServletContextListener object to run a piece of code once a web app of mine starts up -- and thanks to this list for pointing me in that direction. The core code is pretty simple: ClientServices cs = com.mycompany.searchapp.ClientServicesFactory.getInstance("RMI", parms); // G

Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-20 Thread Cameron Currie
Okay, using this blanket statement: grant { permission java.net.SocketPermission "localhost", "resolve"; permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve"; }; The webapp works when tomcat is started normally. This is acceptable while the machine is being used

Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-20 Thread Cameron Currie
I haven't gotten it working yet, but I think David may be on the right track. Here's what I did: I changed my file at '/etc/tomcat5/policy.d/03catalina.policy' to properly point to my connector.jar and also changed the permissions to include: permission java.net.SocketPermission "localhost", "con

Re: Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-20 Thread GB Developer
Any reason the section titling on that page is so confusing? "Changes from the released JK 1.2.18" makes me think I'm looking at the changes that have been made *since* 1.2.18 and will be included in some, as yet un-numbered, future release. If that's actually correct... you mean I have to ma

Re: Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-20 Thread Christopher Schultz
Steve, >> http://tomcat.apache.org/dev/docs/tomcat-connectors-1.2.18/changelog.html >> >> for a complete list of changes. >> This link appears to be broken (404 Not Found) :( > Works fine for me, the url does wrap so make sure you have the entire url > copy/pasted. Hmm... wasn't working before,

Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-20 Thread Martin Gainty
Good Morning Darryl- make certain your HW is rock solid then I would inquire When does the memory allocation happen (e.g. at Tomcat startup. at webapp init, when processing big and bulky PDF's) check the logs at $TOMCAT_HOME/logs If its tomcat crashing (misconfigured server.xml or JVM bug check

Re: Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-20 Thread Steve Ochani
Date sent: Thu, 20 Jul 2006 08:16:41 -0400 From: Christopher Schultz <[EMAIL PROTECTED]> Subject:Re: Yet another try: mod_jk 1.2.18 release candidate ready to test To: Tomcat Users List Send reply to: Tomcat Users List > Rainer, > > > Please see > > > > http://tomcat.apach

Re: Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-20 Thread Rainer Jung
Whops: we had some hassle with the files and it looks like the docs has been unintentionally erased by myself. It's there on the source web server now, thanks for the information. It might take an hour or two to replicate to the public web server. If you need it earlier: the docs are included

Performance issue with jakarta POI

2006-07-20 Thread Abh N
Hi, I am building xls with jakarta POI by fetching the records from database. There are 30K records fetched from DB. Process takes 40 min to complete. Any best practises on using POI api to improve the performance. I dont see issue with the query as The query is very simpl

Re: TransformerFactoryConfigurationError

2006-07-20 Thread Ravi Tharakan
Sorry, really don't understand. I would just create a text file, rename it to .jsp, put it in the webapp directory and try to open the page? On 7/19/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Ravi, > So... how do I get it to run with a servlet? You would have to create a new class tha

Re: Tomcat, Timer and TimerTask question

2006-07-20 Thread Jon Wingfield
It's not running because you schedule the task and then immediately cancel it. The scheduleAtFixedRate call doesn't block. Cameron wrote: Hello Just trying to schedule a batch email run using Timer and TimerTask framework on Tomcat 4.1.31 Found the following example from http://www.javapracti

Re: Tomcat clustering

2006-07-20 Thread Filip Hanik - Dev Lists
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html Konstantina wrote: Hello, I have read that in Tomcat5 there is a way to multicast session data to a group of servers, so that each has the same information and the client can contact any server. How can I multicast information saved

RE: Re: Tomcat, Timer and TimerTask question

2006-07-20 Thread sfbell
A better possible solution might be to create a servlet that will execute the timer task for you. In order to do that, several steps need to be taken. 1. The servlet init() method needs to be used to create the thread for your task. 2. The servlet needs to be loaded on startup. In web.xml you wo

Re: Yet another try: mod_jk 1.2.18 release candidate ready to test

2006-07-20 Thread Christopher Schultz
Rainer, > Please see > > http://tomcat.apache.org/dev/docs/tomcat-connectors-1.2.18/changelog.html > > for a complete list of changes. This link appears to be broken (404 Not Found) :( -chris signature.asc Description: OpenPGP digital signature

Re: Database Connection Error Cannot create PoolableConnectionFactory

2006-07-20 Thread David Smith
java.security.AccessControlException indicates you are running tomcat with the security manager. You'll need to edit your catalina.policy file to allow this connection. The policy file itself has a number of examples, here's just one modified to your situation below: grant codebase "jar:fil

Re: Tomcat 5.5/Axis 1.4 java.lang.reflect.InvocationTargetException

2006-07-20 Thread David Smith
Q1) As long as I do not referece the classes, which I believe means the classes are not loaded, then there is not problem. When they are accessed, then it fails. The classes are in both common, shared and webapps, where else I am supposed to place them? First, read the classloader howto on the to

tomcat with http and https ports using jsvc on RHEL - socket listen queue overflowed

2006-07-20 Thread bhaskar
Hi, I am using JSVC to make tomcat 5.0.18 (using JDK 1.4.2_07) to listen in port 4080 and 443 on RHEL (Red Hat Enterprise Linux AS release 4 (Nahant Update 2). In netstat -s output, i notice: 391808 times the listen queue of a socket overflowed Under normal loads, i noticed that overflow count

Re: Removal of headers in HttpServletResponse object

2006-07-20 Thread Darryl Miles
Geir Øvsttun (AS/ETO) wrote: Server: Apache-Coyote/1.1 Content-Type: text/html;charset=ISO-8859-1 Content-Length: 82 Date: Thu, 20 Jul 2006 09:53:33 GMT These headers are not included by the various embedded devices I am trying to simulate. As the HttpServletResponse class does not have a remo

Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-20 Thread Darryl Miles
Kim Albee wrote: The box has 4GB of RAM on it, and has experienced a memory failure. We tested the physical RAM on the server, and it failed 2 extended memory tests, so we replaced the RAM. We also saw that the swap space was only at 1.5GB, so we upped that to 6.5 GB. For most real-time clien

RE: out of memory error

2006-07-20 Thread MW Janssen
I am starting tomcat as a service so i dont have a console.. maarten -Oorspronkelijk bericht- Van: Suresh babu [mailto:[EMAIL PROTECTED] Verzonden: donderdag 20 juli 2006 12:57 Aan: Tomcat Users List Onderwerp: Re: out of memory error GC details will be printed in console On 7/20/06,

Tomcat clustering

2006-07-20 Thread Konstantina
Hello, I have read that in Tomcat5 there is a way to multicast session data to a group of servers, so that each has the same information and the client can contact any server. How can I multicast information saved in application context? How this information can be pushed to tomcats that join t

Re: out of memory error

2006-07-20 Thread Suresh babu
GC details will be printed in console On 7/20/06, MW Janssen <[EMAIL PROTECTED]> wrote: thx for the fact that you want to look into it..i set those parameters and restarted tomcat..are GC details printed in stout.log?? Maarten -Oorspronkelijk bericht- Van: Suresh babu [mailto:[EMAIL P

Re: BASIC authentication response

2006-07-20 Thread Mark Thomas
Zohar wrote: > Hello list, > I'm using BASIC authentication with tomcat 5.5 and I wanted to know whether > it is possible to return some text when the user login fails (e.g. "you typed > in the wrong password"). Is it? Short answer: no. This sort of behaviour is generally a bad idea as it gives

Re: Tomcat, Timer and TimerTask question

2006-07-20 Thread Vinu Varghese
Hi, What is the main for ? , Once u have main , why u need tomcat to run this ? Pls let me know how u are running this ? Cheers Vinu Cameron wrote: Hello Just trying to schedule a batch email run using Timer and TimerTask framework on Tomcat 4.1.31 Found the following example from http://

Removal of headers in HttpServletResponse object

2006-07-20 Thread AS/ETO
Hi , For fast prototyping and test purposes I am trying to simulate the responses of various devices (web cameras with embedded web servers) by using Tomcat. The problem I have is that Tomcat (5.5.17) seems to add by default the following headers to the HTTP/1.1 200 OK response: Server: Apache-

RE: 404 Error when trying to connect Tomcat Manager

2006-07-20 Thread Shirode, Sangita \(Sangita\)
You need to add the following line in the tomcathome/conf/tomcat-users.xml file And login with admin and blank password to tomcat manager sangita -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 12:36 PM To: Tomcat Users List Subject: 404 Er

Authentication issue with PAM on solaris 10

2006-07-20 Thread Shirode, Sangita \(Sangita\)
Hi all, I'm using Tomcat 5.0.28. I have a servlet which takes the Solaris system user id and password and authenticate it with PAM functionality provided by Solaris. My servlet calls the native method which eventually calls the pam_authenticate Solaris system function to authenticate the system u

404 Error when trying to connect Tomcat Manager

2006-07-20 Thread Foo Shyn
Hi guys, Was facing a problem when trying to connect to Tomcat Manager. I manage to access to the index.jsp page but when i click on the Manager link it gives me a 404 error. I'd check the manager web.xml and application and they look fine to me. Is there any cause that will make this happen??