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
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
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
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
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
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
---
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
-
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.
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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://
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-
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
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
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??
58 matches
Mail list logo