Hi,
I'm just playing with the Tomcat 5.5.4 cluster and encountered 2 oddities:
a) If have left expireSessionsOnShutdown=false in the configuration
I understand that this will expire the session in the local node but
leave it alive in the other cluster nodes.
However I found out that the session
Gabriel Belingueres wrote:
Hi,
I just discovered a weird thing:
I have a Tomcat 4.1.12 running in my machine, which is called
ale2000, and I test my app using http://localhost:8080/xx as the
url (not the machine name configured in Windows)
When some of the html page make a request to the app,
for the variable, I agree
- Original Message -
From: Christoph Kutzinski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 8:00 AM
Subject: Session expiry and SessionListener problems with cluster
Hi,
I'm just playing with the Tomcat 5.5.4 cluster and encountered 2
Chirag wrote:
I think tomcat-5.5.2 cannot work in JDK1.4 Am I correct
I mean as per this page http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.4/README.html
It says though it is of version 5.5.4 that it requires Tomcat 5.5 requires JRE 5.0 by default
You can install a compatibility
Philippe Deslauriers wrote:
I am using Tomcat 5.0.19 on Windows XP SP2, J2SDK 1.4.2_03.
I have a serious memory problem with Tomcat, it just EAT memory without
explanation, until OOM error occurs.
The Java.exe process in the windows task manager reports using between 95Mb
and 105Mb after the
Dakota Jack wrote:
I was going to update my Tomcat from 4.0.19 because it says there is a
javac leak in the RELEASE-NOTES. However, I noticed that 4.0.28 says
the same thing. Is it fixed/
Jack
AFAIK this is no Tomcat issue but a JDK/Javac issue which was fixed in
Sun JDK 1.4.
See:
Pawson, David wrote:
Which then raises the question, do I (can I) check that a user
has cookies enabled?
HttpSession sess = request.getSession(true);
if( sess.isNew() )
logger.info(pNew Session/p);
else
logger.info(pExisting Session/p);
Hi,
check the API. You can probably
Hi,
Peter Monz wrote:
Hi All,
I have quite a problem with HTTPServletReuquest in some Servlets sometimes.
Sometimes if I access HTTPServletRequest in Servlet I get only a
null-Pointer and my Servlet crashes. But I can see in a HTTP-trace,
created with a spy programm that the date will be sent from
Hi,
looks to me that this was included in a previous version of the API, but
was removed for security reasons:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html
Therefore the only way to get all sessions is probably a SessionListener.
HTH
Christoph
Dale, Matt
AFAIK the eclipse JDT compiler, that is used per default to compile the
JSPs, doesn't support JDK 5.0 features. So you mustn't use these
features in JSPs or change the JSP compiler.
Christoph
Petr Jiricka wrote:
Hello list,
is it safe to use the new JDK 5.0 language features, e.g. annotations
Rodrigo Avila wrote:
since we're talking about that...
I have a system running *perfectly* using Tomcat 5.0.28 and Java
1.4.2_07. But I think in migrate this system to Java 1.5.0_01 using
Tomcat 1.5.7, in an Production server.
My question is: have any problem in make this migration? What is the
5.5.8 is already released, but it is marked as alpha.
Andy Kriger wrote:
I've read the FAQ regarding 'when it's ready' and I haven't seen
anything about this in the mailing list archives, however, I still
need to be able to answer this question for my boss.
We started up the 5.5 path with .4,
Solution a: Increase the heap memory further
Solution b: Decrease the memory usage of your application
Francesco Pellegrini wrote:
Hi all,
I have an environment with Tomcat 5.0.19 and java 1.4.02, on windows 2000
server platform.
Tomcat 5 was installed with Services.
I have changed in catalina.bat
I have no experience with it. But this article might be helpful for you:
http://www.javaworld.com/javaworld/jw-02-2005/jw-0228-pippo.html
Acácio Furtado Costa wrote:
Hi list,
Does anyone know about Pippo Proxy?. This is a 100% pure Java HTTP proxy
designed and implemented for TomCat.
IF so, Is it
Good point,
I stumbled upon this, too. Thinking this was a Firefox bug, I even filed
a bug report against it.
Note: The latest version of HTML Validator (0.5.5) fixed this bug. At
least no more problems in my case.
greetings,
Christoph
Harry Mantheakis wrote:
I thought I should share this with
Hi,
are you tying to prevent one user to only make one request at a time?
Then a ServletFilter may serve your needs.
Here :
http://www.onjava.com/pub/a/onjava/2004/03/24/loadcontrol.html
is a possible solution to restrict requests from one user.
I haven't tried it myself yet, but the article
Yoav Shapira wrote:
Please note that while all core features have been tested and voted stable,
there is a known issue in this build related to the clustering module. The fix
for this issue is available by itself at Bugzilla, and will be included in
subsequent Tomcat releases. Again, this issue
Calling System.gc() is considered to be a bad thing since this would
trigger a major garbage collection which would take relatively long,
compared with a minor collection.
Besides this: Tomcat knows that it has nothing to do in right this
moment. But does that mean that is always a good idea to
benefit.
Bernard Durfee
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 12, 2005 4:32 PM
To: Tomcat Users List
Subject: Re: Garbage Collection
Calling System.gc() is considered to be a bad thing since this would
trigger a major garbage collection
BTW: If you are worried about gc pause time: have you trid the
concurrent mark sweep garbage collector?
Christoph Kutzinski wrote:
If you know that no or only few users are currently logged in, you can
trigger System.gc() yourself.
I think Tomcat has no reliable way to know how busy its webapps
Why is the forum quiet? I count more than 30 new posts today.
Guy Katz wrote:
try http://www.hibernate.org/20.html
-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 14, 2005 7:01 PM
To: Tomcat Users List
Subject: Off-topic question: Does Hibernate
Hi,
are you debugging Tomcat when this happens? Then this is maybe related
to class hotswapping
Christoph
Kent Tong wrote:
Hi,
I notice that in Tomcat 5.5 changes to my Java class take
effects without reloading the app. The content is not marked
as reloadable. There is no message in the console
Lutz Zetzsche wrote:
Hi Harry,
Am Montag, 9. Mai 2005 20:53 schrieb Harry Mantheakis:
Browsers should (and mostly do, I think) respect the encoding you
specify when setting the response content-type (and the meta-tag
content-type) so you can simply assume (in your filter) that your
form-data
I suspect that the Listener class is not found on the production server.
You should check your deployment. Are you deplyoing via WAR files in
both cases?
Randy George wrote:
Hi Jacob,
Thanks for the reply.
My situation is a little more straightforward than the replication
Hi Randy,
Randy George wrote:
Hi Will and Christopher,
Good thought. I shut down Tomcat and started it again with a clean
set of logs:
localhost.2005-05-25.log
.
.
May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Hi,
filext.com ist usually useful in such cases:
http://filext.com/detaillist.php?extdetail=pstSubmit3=Go%21
application/winframe is suggested at the bottom of the page.
HTH,
Christoph
Marot Laurent wrote:
I don't know what to put in the mime-type attribute
mime-mapping
Open your server.xml, search for RequestDumperValve, comment out the
element, restart Tomcat, done.
Anthony Smith wrote:
How can I get this type of stuff to stop printing in my catalina_log
files:
2005-06-10 00:00:14 RequestDumperValve[Standalone]:
Tomcat really uses File.deleteOnExit()?
This method has a known memory leak (not only on win32) for quite some time.
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4513817
Ed Hamilton wrote:
Thanks, Robson, for the reply.
I have all the latest versions of everything:
Tomcat: 5.5.9
Are there any special chars in theUser and/or thePass that could
possibly escaped in the URL and/or by the shell?
E.g. Umlauts, Whitespace, %, ...
Or are you really literally writing
wget http://theUser:[EMAIL PROTECTED]/someURL
?
Holger Klawitter wrote:
QM wrote:
On Mon, Jun 13, 2005 at
Holger Klawitter wrote:
Christoph Kutzinski wrote:
wget --http-user=theUser --http-passwd=thePass http://theHost/someURL
vs.
wget http://theUser:[EMAIL PROTECTED]/someURL
with BASIC auth
Or are you really literally writing
wget http://theUser:[EMAIL PROTECTED]/someURL
of course
Michael Jouravlev wrote:
Hi, I hope am I in the right mail-list with this question. I guess
that if I use Tomcat, then HttpRequest.isRequestedSessionIdFromURL()
is implemented by Tomcat.
I have a request, which contains *both* session ID in cookie *and*
session ID in the rewritten URL.
Hi,
first: You should start a new discussion thread, if you have a new
question instead of answering to an existing one. Readers may not see
your question if you don't.
-XX:+UseAdaptiveSizePolicy works good for me (with Java 5.0). Just give
the VM a very big maximum heap size and the gc
How are you testing that nothing is compressed? E.g. which browser?
smmarrt wrote:
No, Tomcat treats this value in bytes. :(
yvind Johansen :
Without knowing the proper way to configure compression, it looks like
you
have configured it to not compressing anything smaller than 2048kbyte?
But
Hi,
I'm trying to install a custom CharsetProvider (UTF7) with my web
application (i.e. deliver a JAR with a
META-/services/java.nio.charset.spi.CharsetProvider entry in WEB-INF/lib)
However the CharsetProvider isn't recognized when it comes to parsing
(i.e. calling
Hi,
I would guess that there is a security policy in JBoss that prevents
JBoss (and its integrated Tomcat) from writing outside some special
directories (e.g. its working directory and the temp directory).
There is surely a way to lessen this security restriction, but that is
obviously a
There only relevant question here is:
How is a application server defined?
As Richard Mixon already pointed out, there are many definitions under
which Tomcat IS an application server.
For many others however application server is equivalent to full J2EE
application server (or something like
Write a Servlet that streams the JAR content to the Webstart clients and
point to the servlet in the JNLP files.
Andrea Aime wrote:
Hi,
I have the following problem: I'm deploying a web app that exposes web
services and allows the client to install a web started client.
Now, the client and
Yes, you shouldn't rely on finalizers to clean-up session objects.
Better do it in your listener.
Len Popp wrote:
I'm pretty sure that the finalizers are only called when garbage
collection reclaims the objects, and that will be some time after the
session is invalidated. Possibly a very long
Check this for a way to implement this with Tomcat (you must use 5.5 ore
higher, though):
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
Or this is a solution I found with an external authentication server:
Yes,
a good idea would be not to hijack someone elses discussion thread and
start a new one instead. Then probably more people will read your question.
Regarding your original question: no idea
Tony Smith wrote:
Any ideas?
--- Tony Smith [EMAIL PROTECTED] wrote:
Let's think about
Are you referring to the Sysdeo Tomcat launcher?
This is an external plugin, not part of a fresh Eclise install, you have
to install it manually.
Otherwise: the tutorial is about the WTP. Have you installed it properly
with all dependencies? In that case you can start your project with the
I've never heard about unstabilities in 5.5.9. I use it in my
development environment for some time without any issues (however I'm
still using 5.0.19 in production).
One question: if you're happy with 5.0.28 why switch to 5.5.9? Never
change a running system (unless you have very good
Hi,
the Tomcat FAQ describes how to adjust the memory settings.
Christoph
Dave Morrow wrote:
Hi all.
I recently updated to Tomcat 5.5
All is well, with one exception. In prior releases (4.1) I could edit the
catalina.sh script to adjust the memory settings. Where would I do this in
This is a Struts/Tiles related question, you should ask in the Struts
mailing lists.
Dewitte Rémi wrote:
Hi !
I make a definition in which i put a list of tiles to include but I can't
achieve to do this eg :
in my tiles-defs.xml :
definition name=page1-def extends=baseDef
put
Rob Hills wrote:
Hi Rahul,
On 12 Jul 2005 at 8:19, Rahul Joshi wrote:
It is Tomcat that has these compiled files which it continues to read
from work/Catalina/localhost/ instead of the new ones. The questions
is how do we make Tomcat clear or over-write these stored compiled
files.
If
I assume that you mean by req a HttpServletRequest. Why do you think
that getSession(boolean) is deprecated? I've found no clue that it is.
Christoph
Christopher Molnar wrote:
I understand HttpSession session=req.getSession(true); has been
depreciated. What is correct to use in place of
Your message was not bounced, I already got the first one (then the
second and then this one).
Please check the list before reposting.
John Pedersen wrote:
Bounced twice...
-- Forwarded message --
From: John Pedersen [EMAIL PROTECTED]
Date: 16-Jul-2005 08:03
Subject:
Pedersen wrote:
Sorry - I should have checked the list. But I just got a response
telling me that the email I sent to the list was undeliverable...
John
On 16/07/05, Christoph Kutzinski [EMAIL PROTECTED] wrote:
Your message was not bounced, I already got the first one (then the
second
John Pedersen wrote:
Here is what I have at the top of my web.xml (I have tried
variations!):
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
I haven't paid attention to this before. You do use JSTL
Hi,
my Tomcat 5.5.9 has the commons-logging-api.jar in the bin directory.
Did you look there, too?
John Pedersen wrote:
I am still stuck with this one (shouldn't have posted it on a Saturday
morning!).
I don't think it is my web.xml giving the problem - I am looking into
possible problems
there, you will probably get
it clue what is happening.
Christoph
Christoph Kutzinski wrote:
Hi,
my Tomcat 5.5.9 has the commons-logging-api.jar in the bin directory.
Did you look there, too?
John Pedersen wrote:
I am still stuck with this one (shouldn't have posted it on a Saturday
morning
John Pedersen wrote:
Christoph,
I think there may be a little delay with the mailing list. The problem
is solved. For reference, yes, I too have the commons-logging-api.jar
in the bin directory! Wonder why it was put there - that seems a
little inconsistent, but I don't know enough about
Travis Stevens wrote:
The other thing to note about reloading JSPs is that tomcat 5.5 seems to
copy ones web context directory into its own webapps directory. Any
changes to the original JSPs will not show up unless you physically copy
the JSP from the original directory to the webapps
Start a new discussion thread instead of hijacking this one.
And if you do that: give more information. What have you done so far?
have you read the documentation? What are the error messages, if you
already at that point? etc. etc.
Sridhar wrote:
Can anyone help how to create Connection
Wendy Smoak wrote:
I'm also unsure of the difference between 'run' and 'start'. If you just
type 'catalina.bat' with no parameters, it prints out a usage statement that
lists 'jpda start' but not 'run jpda'. Since it lists both 'run -security'
and 'start -security' separately I have to wonder
Agreed,
and if you have any session information and the session can't be (for
whatever reason) be de/serialized, it would indeed be a very bad idea to
restart tomcat.
Christoph
Robert Harper wrote:
The best practice is to find the leak and fix it. Restarting is a cover up
to a problem that
Create a dummy index.faces file.
I did it this wy with Struts and index.do so I assume it should work
with faces, too.
hth,
Christoph
Marten Lehmann wrote:
Hello,
I tried to put the following into web.xml:
welcome-file-list
welcome-fileindex.faces/welcome-file
/welcome-file-list
But
That wouldn't make much sense IMO.
What about links to external hosts or to different contexts on the same
host? It would be a security hole to give them your session id.
(One could handle this partly by only applying the rewrite to relative URLs)
What about links to images, css, javascript
Only put objects into the session that are serializable. This is a best
practice anyway.
Tomcat complains about CoyoteRequestFacade not being serializable
because it isn't. If you need data from the request (parameter,
attributes etc.) in your session then extract them and put them alone
into
FYI:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html
Tomcat 5.5.10
...
Update to JDT from Eclipse 3.1, with support for Java 5
However 5.5.10 is still alpha
Christoph
Patrick Thomas wrote:
Thanks Chuck, I definitely wouldn't have noticed that without the
pointer. Oh well, I
AFAIK these exceptions occur if someone requests a resource (HTML-Page,
image, ...) and then closes the connection before all data was sent.
I.e. click the stop-button or click on a different Hyperlink.
AFAIK one can do nothing to prevent these Exceptions in the log.
[EMAIL PROTECTED] wrote:
Hi,
I'm not convinced by that forum thread.
It's very hard to believe that there is such a severe bug in Java
1.4.2_06 *that isn't fixed yet*
Do you have a link to a Sun Bugparade entry describing the problem?
Christoph
Martyn Hiemstra wrote:
Hi All
I have found a Bug in Java 1.4.2_08
It would probably help, if you would describe what you did (i.e. what is
your source code, your environment, tomcat version , etc.) and what does
mean the bug happens (i.e. error messages, stack traces, etc.)
Now we have just the analogue of My car works on road a but not on road
b. Do you
Hi Nishant,
where did you read that distributable will *enforce* serializability?
AFAIK distributable only means that your sessions can be distributed
to different tomcat nodes (i.e. a cluster). It doesn't enforce anything,
you have to make sure that your session attributes are serializable by
docs).
There is explained what Serialization really means.
Christoph
Lintang JP wrote:
I'm referring to this document on :
http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html?page=2
The words Serializable here would mean for session replication, right ?
CMIIW.
On 8/17/05, Christoph
:
Thanks for the input.
Any idea how I can *catch* errors during serialization? I am guessing
I will have to create my own PersistanceManager and override some
functions..
Has anyone done this (or any other method of doing this)?
On 8/17/05, Christoph Kutzinski [EMAIL PROTECTED] wrote:
I didn't say
it is implemented this way, because if one session
isn't serializable the probability is very high that other sessions are
not serializable, either.
So if you want to change this behaviour, you will probably have to
implement your own PersistanceManager.
On 8/18/05, Christoph Kutzinski [EMAIL
Hi Martyn,
I have 2 suggestions.
I) I suspect that the 2 dots in the value *might* be the problem.
I.e. have you tried this: c:out value=${person.language} /
II) You are using Jakarta Taglibs JSTL. Have you upgraded this to the
latest stable version? This could be an incompability between an
[EMAIL PROTECTED] wrote:
I should have been more clear in stating my problem.
I am using a Reporting software with Tomcat. The Reporting servlet
receives the report request, passes it to the
Reporting Server (lives where the data is), and the Reporting Server sends
it back to the client
You should only set the JMX JAVA_OPTS for startup.
If you use the same JAVA_OPTS for shutdown, the shutdown-VM will
unsuccessfully try to start a JMX server on port .
That's what taking so long.
Joe R. Lindsay wrote:
If found an old post mentioning the same issue, but
no resolution or
This Peregrine Get Answers application is probably leaking file
handles. Ask their support.
[EMAIL PROTECTED] wrote:
We have a server running Peregrine Get Answers which use TOMCAT as part of
its installation
We are seeing (via task manager) a slow build up of handles for the tomcat
app..
have and they put it down to being the Tomcat application - not much use
at all!
On task manager it does indicate that tomcat is at fault..
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 11:40
To: Tomcat Users List
Subject: Re: The process
...speaking to my server support area - they have seen the same
problem on other servers running tomcat
-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
Sent: 13 September 2005 12:14
To: Tomcat Users List
Subject: Re: The process tomcat {pid 1488. } is leaking
Do you create the WAR file on Windows and deploy to Solaris?
Have you checked that the system clocks are in sync?
Have you checked that the file attributes are ok on Solaris?
Have you tried to touch the war file?
Olena Mitovska wrote:
Hi,
We have Tomcat 5.5.7 installed on Solaris 9 and the
Jilles van Gurp wrote:
Oracle on the other hand
cannot insert strings larger than 4KB with setString so you need to use
setCharacterStream.
FYI:
This is common knowledge that used to be right, but isn't anymore.
With the Oracle 10g JDBC driver you can set arbitrary length strings
with
Hi,
it is only since 5.5.10
5.5.10 was already released, but it is only supposed to be alpha. I.e.
not recommended for production use.
I have no idea, when the next stable tomcat version will be released
Christoph
Seak, Teng-Fong wrote:
Well, after many many hours' search (seems like not
? Actually, I'm more interested in using
the new for loop in Java5 than using generic.
Christoph Kutzinski wrote:
Hi,
it is only since 5.5.10
5.5.10 was already released, but it is only supposed to be alpha.
I.e. not recommended for production use.
I have no idea, when the next stable tomcat
is this affecting the use of Tomcat 5.5.9?
I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I
need to do
to discover Tomcat 5.5.9 shortcomings with respect to Java 5?
Regards,
BTJ
Christoph Kutzinski wrote:
What's what story?
Java 5 features are not supported in latest tomcat
To be clear: You are using Java 5 features (generics, for-each loop
etc.) in JSPs?
Bjørn T Johansen wrote:
Nope, I am just using the default installation and configurations...
BTJ
Christoph Kutzinski wrote:
To be honest, I never tried it with 5.5.9
I just concluded it from the release
You should start a new discussion thread.
I cannot see how this is even remotely related to generic types and Tomcat.
Santosh Asbe wrote:
Hi all,
A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard
apache which comes with RHEL 3.0). I am currently using RHEL 32 bit
80 matches
Mail list logo