RE: easy debugging

2004-07-28 Thread STOCKHOLM, Raymond
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

RE: TC 5.0.27 startup problem

2004-07-23 Thread STOCKHOLM, Raymond
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

RE: TOMCAT OUT OF MEMORY - HELP

2004-07-20 Thread STOCKHOLM, Raymond
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 =

RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread STOCKHOLM, Raymond
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

RE: Doc upload corruption w/JK2 connector?

2004-07-12 Thread STOCKHOLM, Raymond
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 :

RE: Tomcat process memory growth

2004-06-30 Thread STOCKHOLM, Raymond
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

RE: NEWBIE: flexible declaration of a database URL

2004-06-18 Thread STOCKHOLM, Raymond
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

How can I access a file located in WEB-INF

2004-06-16 Thread STOCKHOLM, Raymond
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]

RE: How can I access a file located in WEB-INF

2004-06-16 Thread STOCKHOLM, Raymond
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

RE: question

2004-06-16 Thread STOCKHOLM, Raymond
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]

RE: Is tomcat a suitable server for our application ?

2004-06-15 Thread STOCKHOLM, Raymond
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

RE: No response from Tomcat 5 with IIS

2004-06-09 Thread STOCKHOLM, Raymond
. 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

RE: No response from Tomcat 5 with IIS

2004-06-08 Thread STOCKHOLM, Raymond
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();

RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
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

RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
- 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

RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
] 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

RE: How to limit time for Connector threads?

2004-05-06 Thread STOCKHOLM, Raymond
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

RE: Tomcat server stopping immediately after starting.

2004-05-05 Thread STOCKHOLM, Raymond
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,

RE: Can servlet generate a Web page first, then continue to run ?

2004-05-05 Thread STOCKHOLM, Raymond
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

Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
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

RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
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

RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
. 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

RE: Tomcat Site slow and stops responding after certain number of threads

2004-04-02 Thread STOCKHOLM, Raymond
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

RE: JVM memory allocation

2004-04-01 Thread STOCKHOLM, Raymond
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

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
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

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
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

RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
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é

RE: How does Tomcat work?

2004-03-22 Thread STOCKHOLM, Raymond
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

RE: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
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

RE: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
[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

RE: tomcat service

2004-03-10 Thread STOCKHOLM, Raymond
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

RE: Internationalization problem

2004-03-02 Thread STOCKHOLM, Raymond
é 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

Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
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

RE: Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
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

RE: Tomcat 3.3.1 vs Tomcat 4.1.29

2004-02-18 Thread STOCKHOLM, Raymond
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

RE: another newbie question?

2004-02-12 Thread STOCKHOLM, Raymond
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

RE: tomcat 5.0.16 running out of resources

2004-02-09 Thread STOCKHOLM, Raymond
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 :

RE: Vedr.: RE: VM settings in windows service

2004-02-05 Thread STOCKHOLM, Raymond
: 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

RE: Http Client / Tomcat

2004-02-05 Thread STOCKHOLM, Raymond
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

RE: Tomcat stops taking connections

2004-02-04 Thread STOCKHOLM, Raymond
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]

RE: VM settings in windows service

2004-02-04 Thread STOCKHOLM, Raymond
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

RE: tomcat problem

2004-01-29 Thread STOCKHOLM, Raymond
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

Deactivating StandardManager persistence of sessions

2004-01-28 Thread STOCKHOLM, Raymond
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

RE: problems with javascript utf-8 with tomcat 4.1.29

2004-01-22 Thread STOCKHOLM, Raymond
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

problems with javascript utf-8 with tomcat 4.1.29

2004-01-20 Thread STOCKHOLM, Raymond
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: