The best advise I can give you is to use a proper logging API :
Log4J is great :
http://logging.apache.org/log4j/docs/
http://logging.apache.org/log4j/docs/download.html
Just put your log4j.properties file in the classpath of your webapp (WEB-INF/classes),
and log4j will automatically use this
You definitively have a process using 8080 :
either a tomcat process, still running, or another program (oracle,...)
Check all your current process, or simply reboot.
-Message d'origine-
De : Paul Wallace [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 juillet 2004 08:40
À : Tomcat Users
Are you sure the options are used :
check with a JSP : info.jsp
%@ page language=java %
HTML
HEADTITLEInformation/TITLE/HEAD
BODY BGCOLOR=white
%
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory =
What JVM are you using ?
I had some similar problems with java 1.4.1_01 on Windows,
when to many files were opened.
Solved with 1.4.1_05.
-Message d'origine-
De : Morus Walter [mailto:[EMAIL PROTECTED]
Envoyé : mardi 13 juillet 2004 11:19
À : Tomcat Users List
Cc : [EMAIL PROTECTED]
Objet
Did you try Jakarta Commons FileUpload ?
http://jakarta.apache.org/commons/fileupload/
My config is windows 2000, java 1.4.1_05, tomcat 4.1.30,
No problems...
-Message d'origine-
De : Bob Ross [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 juillet 2004 10:19
À : [EMAIL PROTECTED]
Objet :
It seems your web application has a memory leak :
Use a Profiler to check the memory usage in your application.
-Message d'origine-
De : Surendra Kumar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juin 2004 14:35
À : Tomcat Users List
Objet : Tomcat process memory growth
Hi
I am
Use tomcat's pooling mecanism :
in $TOMCAT/conf/server.xml, in your application Context, declare a Resource :
Context path=/yourapp docBase=yourapp
Manager className=org.apache.catalina.session.StandardManager
pathname=
/Manager
Hi,
I need to access a file located in the directory WEB-INF of my web application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet ?
Any advise is welcome.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Thanks
-Message d'origine-
De : Tim Funk [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 16 juin 2004 13:24
À : Tomcat Users List
Objet : Re: How can I access a file located in WEB-INF
FAQ
http://jakarta.apache.org/tomcat/faq/misc.html#getResourceAsStream
-Tim
STOCKHOLM, Raymond wrote
Hi,
You need to have the correct package in /classes :
If CreaServizio.class is the package org.company
you should have :
matrici/web/
-many jsp files
-WEB-INF/
--web.xml
--classes/org/company/CreaServizio.class
-Message d'origine-
De : [EMAIL PROTECTED]
Depends on your web application :-)
First guess would be yes :
you've got plenty of memory (don't forget to allocate it to tomcat),
and nice processors.
Second guess :
Think about how much memory each user session needs (then multiple
it by 3000 to see if you have enough),
and then try to
.
To recover this problem, is to reboot Tomcat.
Any suggestion would be appreciated.
George
--- STOCKHOLM, Raymond [EMAIL PROTECTED] wrote:
Maybe you are running low in memory, and the GC is
taking all the process.
check :
long totalMemory =
Runtime.getRuntime().totalMemory
Maybe you are running low in memory, and the GC is taking all the process.
check :
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory = Runtime.getRuntime().maxMemory();
How did you locate your tld in your JSP ?
something like this ?
%@ taglib uri=/WEB-INF/tld/form-tags.tld prefix=ftags %
-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 08:31
À : [EMAIL PROTECTED]
Objet : Where to put tld files for jarred custom
-
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 12:09 PM
Subject: RE: Where to put tld files for jarred custom taglibs?
How did you locate your tld in your JSP ?
something like this ?
%@ taglib uri=/WEB-INF/tld/form-tags.tld
]
Envoyé : mardi 1 juin 2004 09:19
À : Tomcat Users List
Objet : Re: Where to put tld files for jarred custom taglibs?
Where did you put the tld file in your jar file? Did you also put the jar
into a war file?
- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users
Maybe you should increase the number of threads in your connector.
check attribut maxProcessors in your server.xml
In this example, I set it to 500 instead of 75 (default value)
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=80 minProcessors=30
I had this problem when tomcat's http connector tried to use port 8080,
while Oracle was already using it.
Otherwise, to have more messages, start tomcat in debug :
replace start by debug in startup.bat
(line 41 : call %EXECUTABLE% debug %CMD_LINE_ARGS%)
-Message d'origine-
De : Reddy,
If you explicitely close your writer (the outputstream) in your servlet, the client
will receive your page,
and your servlet will be able to continue to work :
protected void processRequest(HttpServletRequest request, HttpServletResponse
response)
throws ServletException , IOException
I am having this strange message when starting my tomcat :
Apache Tomcat/4.1.30
[Fatal Error] :2:1: Content is not allowed in prolog.
Everything else works fine.
I read that it was related to a SAXParseException,
and it seems to be related to tomcat itself,
and not any of my webapps (I removed
it.
Also a trick is to use a xml viewer like Internet Explorer to colorize the
file and help you pick up on any format errors.
Doug
www.parsonstechnical.com
- Original Message -
From: STOCKHOLM, Raymond [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 3:03
. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 2:03 AM
To: Tomcat Users List
Subject: Strange message
Are you sure the JVM has enough memory ?
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory = Runtime.getRuntime().maxMemory();
log.info(totalMemory=+totalMemory);
log.info(freeMemory =+freeMemory);
log.info(maxMemory
If tomcat is installed as a service you MUST set the parameters for CATALINA in the
service :
CATALINA_OPTS=-server -Xms300m -Xmx300m -XX:NewRatio=2 -Xconcurrentio
Try a script such as this one (change whatever you need : java_home, catalina_home...)
to install your service.
This script is for
You need the JDK (not just the JRE) to compile your jsp/portlets.
What errors do you get ?
-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?
Hello, I have tomcat and jetspeed. I have added all jar
can't find blah
Can you be more specific?
-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?
:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:
You need
com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
return (new StringElement (Hello World! # + getID()));
^
7 errors
STOCKHOLM, Raymond wrote:
can't find blah
Can you be more specific?
-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé
go and check the documentation online :
(tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
or
(tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
An excellent book : O'Reilly', Tomcat The Definitive Guide
-Message d'origine-
De : Bernd Kauling
Usually, the log4j.properties is looked for in your classpath.
try :
$tomcat\webapps\ROOT\WEB-INF\classes
-Message d'origine-
De : Michael Forster [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:28
À : Tomcat-User
Objet : Config file mania
Ok, I am losing hair rapidly here,
if
[mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:40
À : Tomcat Users List
Objet : RE: Config file mania
No change
Still the cant find error
Mike.
-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: 11 March 2004 10:33
To: Tomcat Users List
Subject: RE
You need the JDK (not just the JRE) to compile your JSP : (javac.exe in your path)
-Message d'origine-
De : Jérôme REYNAUD [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 10 mars 2004 13:57
À : 'Tomcat Users List'
Objet : tomcat service
Hi
I want to install Tomcat as a service on a
é is é in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
%@ page contentType=text/html;charset=UTF-8 pageEncoding=UTF-8 %
and make sure that the charset
Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in log4j)
for its log files ?
I had a no space left on device due to too many logs in $TOMCAT/logs
-
To unsubscribe, e-mail: [EMAIL
Thank's for the explanation.
-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : lundi 1 mars 2004 15:31
À : Tomcat Users List
Objet : RE: Configuring tomcat logs
Hi,
Does anybody know if it is possible to configure tomcat
to have a RollingFileAppender (as in
Check your JAVA_HOME env variable,
and please tell us WHAT happens.
To have more information when starting tomcat,
change startup.bat to replace start by debug on line 41 :
(call %EXECUTABLE% debug %CMD_LINE_ARGS%)
when prompt, type run,
you should have more information...
-Message
If you don't set enough memory, you will have some day OutOfMemoryException,
that's sure,
or you Garbage Collector will work as mad, and your application will stall.
-Message d'origine-
De : Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 12 février 2004 18:10
À : 'Tomcat
set your JAVA_OPTS accordingly to your needs in your startup.*
If you need 750 Mbytes, try this :
set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2
-Message d'origine-
De : Jake Alley [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 8 février 2004 15:23
À : [EMAIL PROTECTED]
Objet :
: jeudi 5 février 2004 09:07
À : Tomcat Users List
Objet : Vedr.: RE: VM settings in windows service
You do NOT have to reinstall Tomcat.
It appears to be case sensitive so use -Xmx256m
/Thomas
STOCKHOLM, Raymond [EMAIL PROTECTED]
04-02-2004 18:12
Besvar venligst til Tomcat Users List
try the excellent http://jakarta.apache.org/commons/httpclient/
from jakarta of course
-Message d'origine-
De : Srinivas Vemula [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 5 février 2004 11:00
À : [EMAIL PROTECTED]
Objet : Http Client / Tomcat
Hi,
We have a stand alone java
Try increasing maxThreads=150 to something corresponding to your max load.
I had the same problem under tomcat 4.1.18, and increasing maxThreads
from 75 to 400 resolved my problem :
my average number of users connected=300.
-Message d'origine-
De : Lars Both [mailto:[EMAIL PROTECTED]
You must re-install your tomcat service with the options you want.
To make sure your options are properly set, use regedit to check them :
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Apache Tomcat xxx
try boosting the memory available for tomcat
for instance add in startup.* :
set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2
and check the number of processors available : increase maxProcessors
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
Whenever I stop Tomcat (4.1.18), it tries to persist all the sessions currently active.
I am not interrested in this feature,
and since many of the objects stored in the session are not Serializable,
I get a lot of error messages in localhost_log.-mm-dd.txt.
Does anybody know how to
with javascript utf-8 with tomcat 4.1.29
Good question.
Don't lose hope and try again in esperanto ;^)
STOCKHOLM, Raymond wrote:
Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript
pages containing UTF-8 characters
are interpreted as ISO-8859-1 in Mozilla and OPera
Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript pages containing
UTF-8 characters
are interpreted as ISO-8859-1 in Mozilla and OPera, but not IE 5.5
My JSP pages are properly declared UTF-8 :
%@ page contentType=text/html;charset=UTF-8 pageEncoding=UTF-8 %
My HTML page also:
45 matches
Mail list logo