RE: easy debugging
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 configuration. Note : 1. log4j.appender.FILE.File=C:/log4j.log : this is the file where your log will be. 2. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender : you should see the same log in your tomcat window. Here is an example of log4j.properties : log4j.rootLogger=DEBUG, CONSOLE, FILE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender # CONSOLE uses PatternLayout. log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout # The conversion pattern uses format specifiers. You might want to # change the pattern an watch the output format change. log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n # File Appender log4j.appender.FILE=org.apache.log4j.RollingFileAppender log4j.appender.FILE.File=C:/log4j.log log4j.appender.FILE.MaxFileSize=1KB log4j.appender.FILE.MaxBackupIndex=1 log4j.appender.FILE.layout=org.apache.log4j.PatternLayout log4j.appender.FILE.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n -Message d'origine- De : Vamsee Kanakala [mailto:[EMAIL PROTECTED] Envoyé : mercredi 28 juillet 2004 14:44 À : Tomcat Users List Objet : easy debugging Hello list users, I'm using Tomcat on win2k. There is a window which is always open when Tomcat runs. It shows messages like "INFO:" etc. Is there a way I can write to this window from inside a servlet? I'm just looking for an easy way to debug my servlets. TIA, Vamsee. -- Because joy is one's fuel - Ayn Rand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
detecting the shutdown of tomcat in a servlet
In my tomcat 4.1.30n, I have a webapp in which a deamon Thread (started automatically) is scheduled to send automatic mails every morning. I would like to make a clean stop of my deamon when tomcat shutdowns. How can I detect that tomcat is shuting down ? Raymond Stockholm Aubay Luxembourg 51, Rue de Strasbourg L-2561 LUXEMBOURG Tel : +352 29 92 50 31 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC 5.0.27 startup problem
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 List Objet : TC 5.0.27 startup problem Hi, A seemingly simple one, but not for I! I am trying to setup the above version of TC on Win XP. My JAVA_HOME is set as an environment variable, and in the top of my startup.bat I am setting CATALINA_HOME: "rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $ rem --- set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27 rem Guess CATALINA_HOME if not defined set CURRENT_DIR=%cd%" When running this file from the command prompt I get: "23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint. j at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)" I immediately looked at what was using port 8080 (nothing to my knowledge) and this was confirmed. I ran netstat which confirmed that port 8080 was not in use. TC appears to have started, but http://localhost:8080 (with numerous stacktraces (above)) is showing a 404. Am I illegally setting CATALINA_HOME? Thanks Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TOMCAT OUT OF MEMORY - HELP
Are you sure the options are used : check with a JSP : info.jsp <%@ page language="java" %> Information <% long totalMemory = Runtime.getRuntime().totalMemory(); long freeMemory = Runtime.getRuntime().freeMemory(); long maxMemory = Runtime.getRuntime().maxMemory(); %> TOTAL MEMORY=<%= totalMemory %> FREE MEMORY =<%= freeMemory %> MAX MEMORY =<%= maxMemory %> -Message d'origine- De : Marco [mailto:[EMAIL PROTECTED] Envoyé : mardi 20 juillet 2004 08:11 À : Tomcat Users List Objet : Re: TOMCAT OUT OF MEMORY - HELP Well ... I red the archives and I set the java options to -Xms512m and -Xmx1536m" but the problem persists I use j2sdk1.4.2_02 Shapira, Yoav wrote: >Hi, >Search the archives, read the FAQ... > >Yoav Shapira >Millennium Research Informatics > > > > >>-Original Message- >>From: Marco [mailto:[EMAIL PROTECTED] >>Sent: Monday, July 19, 2004 1:07 PM >>To: Tomcat Users List >>Subject: TOMCAT OUT OF MEMORY - HELP >> >>Hi >> >>We installed Tomcat 4.1.27 on our server (windows 2000 advanced >> >> >server). > > >>Tomcat is installed as a Windows service and we setted it to use a >>maximum memory of 1,5 GB and a start memory of 256 MB. >>At present we deployed seven applications in the webapps folder. >>All seems to work correctly, but periodically (and too often) we get an >>Out of Memory exception. >>Controlling the Windows processes, we found out that Tomcat uses about >>300 MB of memory when it goes in out of memory. >> >>Can anyone tell us something more about the memory usage of Tomcat or, >>more simply, help us ? >> >>Thanks in advance. >> >> >> > > > >This e-mail, including any attachments, is a confidential business communication, and >may contain information that is confidential, proprietary and/or privileged. This >e-mail is intended only for the individual(s) to whom it is addressed, and may not be >saved, copied, printed, disclosed or used by anyone else. If you are not the(an) >intended recipient, please immediately delete this e-mail from your computer system >and notify the sender. Thank you. > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat doesn't create directories under 'work' but does create .java/.class files
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: tomcat doesn't create directories under 'work' but does create .java/.class files Hi, First of all apologies to everyone for sending my last message thrice. Wasn't intentional and I'll do my best not to repeat that... > File destDir = null; > > if (absoluteLibPath != null) { > destDir = new File(absoluteLibPath); > } else { > copyJars = true; > destDir = new File(workDir, libPath); > destDir.mkdirs(); > } > I compiled tomcat from sources and added some debugging messages. What I found is, that tomcat takes the else-branch which should create the directory. I changed this to } else { copyJars = true; System.err.println("WorkDir: " + workDir + "; libPath: " + libPath); destDir = new File(workDir, libPath); System.err.println("no absoluteLibPath; dest Dir: " + destDir); destDir.mkdirs(); if ( !destDir.exists() ) { System.err.println("destDir " + destDir + " does not exist"); destDir.getParentFile().mkdirs(); destDir.mkdirs(); if ( !destDir.exists() ) { System.err.println("destDir " + destDir + " does not exist"); } else { System.err.println("destDir " + destDir + " does exist"); } } } and it works. After the first destDir.mkdirs() destDir does not exist, the second (two) mkdirs calls create it. So this really seems to be some bug in javas File.mkdirs implementation (or in the underlying libc/linux filesystem). I'm not sure what's the best thing to do in this situation, but I'll file a bug report for tomcat suggesting to add if ( !destDir.exists() ) { destDir.getParentFile().mkdirs(); destDir.mkdirs(); } with an apropriate comment as a workaround... Morus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Doc upload corruption w/JK2 connector?
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 : Doc upload corruption w/JK2 connector? Hello, Has anyone out there experienced upload corruption using the following setup? 1) IIS 5.0 2) JK 2.0.4 (binary) 3) Tomcat 4.1.30 (or 4.1.18) (W2K binary) 4) Generic doc upload servlet (I've tested many). I'm noticing that files greater than ~1MB have extraneous bytes thrown into the filestream. -Bob _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat process memory growth
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 using Tomcat 4.1.29 and JDK 1.4.2_04 in my application. The total memory of the process ( VM + Real Memory) keeps on increasing. The heap size of VM is not increasing ( verified by printing the free memory) , but the total memory used by the process increasing. Any ideas on how to fix it ? Thanks Surendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE: flexible declaration of a database URL
Use tomcat's pooling mecanism : in $TOMCAT/conf/server.xml, in your application Context, declare a Resource : factory org.apache.commons.dbcp.BasicDataSourceFactory maxActive 100 maxIdle 3 maxWait 100 username sa password sa driverClassName com.microsoft.jdbc.sqlserver.SQLServerDriver(your driver) url your.url.with.correct.driver validationQuery select getdate() You can, in your servlet, access the datasource : try { Context ctx = new InitialContext(); this.dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/YOUR_DATABASE"); } catch (NamingException e) { log.error("Constructor throws NamingException " + e.getMessage()); } And then get a connection from it : Connection conn = dataSource.getConnection(); -Message d'origine- De : frederik gens [mailto:[EMAIL PROTECTED] Envoyé : vendredi 18 juin 2004 11:20 À : [EMAIL PROTECTED] Objet : NEWBIE: flexible declaration of a database URL Hello, I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several classes called by servlets, I declare the URL which identify the database in order to open the connection. My question is: what is the best way to declare this URL only once, for example in a file, or in an environment variable. Therefore, the classes always call this variable. Changing the place of the database just requires to change the URL in one place. Thanks in advance! Frederik - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question
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] [mailto:[EMAIL PROTECTED] Envoyé : mercredi 16 juin 2004 16:39 À : tomcat-user Objet : question Question, please. I have a web application... named matrici/web so i have a tree like this matrici/web/ -many jsp files -WEB-INF/ --web.xml --classes/ --lib/ my application is under $CATALINA_HOME/webapps/ROOT I put my extern class, CreaServizio.class in WEB-INF/classes/ is it right? do i have to create a package for that class? or do i have to use an explicit import instruction? It returns me an error cannot resolve symbol symbol : variable CreaServizio CreaServizio is a class Angelo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I access a file located in WEB-INF
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, > > 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 ? > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I access a file located in WEB-INF
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] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is tomcat a suitable server for our application ?
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 evaluate how much processor work your application requires. The best way to check this would be to use JMeter for test load, and a profiler (such as OptimzeIt) on the server to check memory usage. -Message d'origine- De : Mondkar, Paresh [mailto:[EMAIL PROTECTED] Envoyé : mardi 15 juin 2004 07:43 À : [EMAIL PROTECTED] Objet : Is tomcat a suitable server for our application ? > Hi, > We are planning to host a web application which is estimated to have > around 3000 concurrent users. We are using SQL Server 2000 as database and > Struts 1.1 framework. > > Our production server (i.e. web server. We're having a different > database server.) has the foll. configuration: > 4GB Ram > Xenon P4 processors - 2 nos. > Windows 2000 Professional OS > 72 GB HDD > > Do you think that Tomcat is a suitable web server for our > application? > > Thanks & Regards, > Paresh Mondkar. > Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No response from Tomcat 5 with IIS
It seems the problem is local to your web application. Create a test JSP in your web app, and try accessing it. If it isn't responding, maybe all the available Thread for your web app are used, maybe you have a dead lock somewhere... I think that the number of threads available is specific to your Connector : try increasing it... (default is min=5 max=75) -Message d'origine- DeÂ: George [mailto:[EMAIL PROTECTED] EnvoyÃÂ: mercredi 9 juin 2004 02:33 ÃÂ: Tomcat Users List ObjetÂ: RE: No response from Tomcat 5 with IIS Thank you very much Raymond. However all memories you pointed out are enough. CPU load is almost zero. During this problem is happenning, I create another small test application and run. And I could get the result that "Tomcat is running properly". What's happen??? I think only my original application just hung up. No error messages. No warnnings. No logs. 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(); > long freeMemory = > Runtime.getRuntime().freeMemory(); > long maxMemory = Runtime.getRuntime().maxMemory(); > log.info("totalMemory="+totalMemory); > log.info("freeMemory ="+freeMemory); > log.info("maxMemory ="+maxMemory); > > -Message d'origine- > Deæ: George [mailto:[EMAIL PROTECTED] > Envoyèæ: mardi 8 juin 2004 17:31 > ãã : [EMAIL PROTECTED] > Objetæ: Re: No response from Tomcat 5 with IIS > > > Hello! all. > Please give me any advice since this issue is top > urgent > for me. > Any suggenstion would be appreciated for me. > Thank you very much. > George > > --- Reply from George <[EMAIL PROTECTED]>: > > Hi! > > I'm having following problem. > > > > > > Tomcat 5.0.24 running on Windows 2000 server and > IIS > > 5, > > JK2 2.0.4 > > The server is put under hardware load balancer > > "BIG-IP" by > > F5 inc. > > > > > > Sometime when the system load is high (about 10 to > > 20 > > users are using the aplication), tomcat does not > > respond > > suddenly. > > No event log has written. > > > > Is there anyone who can teach me any tunr arround? > > > > Please help me! > > > > George > > > > > > __ > > Do You Yahoo!? > > http://bb.yahoo.co.jp/ > > > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > __ > Do You Yahoo!? > http://bb.yahoo.co.jp/ > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? http://bb.yahoo.co.jp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No response from Tomcat 5 with IIS
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(); log.info("totalMemory="+totalMemory); log.info("freeMemory ="+freeMemory); log.info("maxMemory ="+maxMemory); -Message d'origine- DeÂ: George [mailto:[EMAIL PROTECTED] EnvoyÃÂ: mardi 8 juin 2004 17:31 ÃÂ: [EMAIL PROTECTED] ObjetÂ: Re: No response from Tomcat 5 with IIS Hello! all. Please give me any advice since this issue is top urgent for me. Any suggenstion would be appreciated for me. Thank you very much. George --- Reply from George <[EMAIL PROTECTED]>: > Hi! > I'm having following problem. > > > Tomcat 5.0.24 running on Windows 2000 server and IIS > 5, > JK2 2.0.4 > The server is put under hardware load balancer > "BIG-IP" by > F5 inc. > > > Sometime when the system load is high (about 10 to > 20 > users are using the aplication), tomcat does not > respond > suddenly. > No event log has written. > > Is there anyone who can teach me any tunr arround? > > Please help me! > > George > > > __ > Do You Yahoo!? > http://bb.yahoo.co.jp/ > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do You Yahoo!? http://bb.yahoo.co.jp/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put tld files for jarred custom taglibs?
I put the tld file in $MYAPPLICATION/WEB-INF/tld/form-tags.tld My application is delivered as a war (which tomcat expands), and contains $MYAPPLICATION/WEB-INF/tld/form-tags.tld (I don't have any other jar, except the war) -Message d'origine- De : Keith Hankin [mailto:[EMAIL PROTECTED] 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 List" <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 12:44 PM Subject: RE: Where to put tld files for jarred custom taglibs? > web.xml : > >form-tags >/WEB-INF/tld/form-tags.tld > > JSP : > <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %> > > > I declared as above, and it worked for me, don't ask me why :-) > > > -Message d'origine- > De : Keith Hankin [mailto:[EMAIL PROTECTED] > Envoyé : mardi 1 juin 2004 09:01 > À : Tomcat Users List > Objet : Re: Where to put tld files for jarred custom taglibs? > > > I locate it as follows: <%@ taglib uri="http://website.com/mypkg/mytags.tld"; > prefix="mypref" %> > , then in my web.xml have the following: > > > http://website.com/mypkg/mytags.tld > > > /mytags.tld > > > > I also try specifying taglib-location as /META-INF/mytags.tld, > /WEB-INF/mytags.tld, etc. > > - Original Message - > 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" 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 taglibs? > > > > > > I have created a custom taglib, extending TagSupport. I have packaged the > > class files into a jar. I have also added the tld file to this jar. I then > > place this jar file in my war file under WEB-INF/lib. However, no matter > > where I place the tld file in the jar, it seems that Tomcat is unable to > > find it. I have read the documentation, which is as clear as mud on this > > issue. > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put tld files for jarred custom taglibs?
web.xml : form-tags /WEB-INF/tld/form-tags.tld JSP : <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %> I declared as above, and it worked for me, don't ask me why :-) -Message d'origine- De : Keith Hankin [mailto:[EMAIL PROTECTED] Envoyé : mardi 1 juin 2004 09:01 À : Tomcat Users List Objet : Re: Where to put tld files for jarred custom taglibs? I locate it as follows: <%@ taglib uri="http://website.com/mypkg/mytags.tld"; prefix="mypref" %> , then in my web.xml have the following: http://website.com/mypkg/mytags.tld /mytags.tld I also try specifying taglib-location as /META-INF/mytags.tld, /WEB-INF/mytags.tld, etc. - Original Message - 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" 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 taglibs? > > > I have created a custom taglib, extending TagSupport. I have packaged the > class files into a jar. I have also added the tld file to this jar. I then > place this jar file in my war file under WEB-INF/lib. However, no matter > where I place the tld file in the jar, it seems that Tomcat is unable to > find it. I have read the documentation, which is as clear as mud on this > issue. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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" 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 taglibs? I have created a custom taglib, extending TagSupport. I have packaged the class files into a jar. I have also added the tld file to this jar. I then place this jar file in my war file under WEB-INF/lib. However, no matter where I place the tld file in the jar, it seems that Tomcat is unable to find it. I have read the documentation, which is as clear as mud on this issue. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to limit time for Connector threads?
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) -Message d'origine- De : rlipi [mailto:[EMAIL PROTECTED] Envoyé : jeudi 6 mai 2004 08:40 À : 'Tomcat Users List' Objet : How to limit time for Connector threads? Hallo, is it possible in any way to limit time for threads that realize user requests? Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't answers. The reason is in error message "All threads are currently busy". Probably there is a bug in the web application. Some kind of synchronization death lock, I think. But localization of this bug is very hard. So, termination (and release of all resources) of long time threads can be a work around. Thank you for any suggestions, Lipi. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can servlet generate a Web page first, then continue to run ?
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 { PrintWriter out = response.getWriter(); out.println("Page to display to client"); out.close(); // Do some work in your servlet... } -Message d'origine- DeÂ: lixiaoquan [mailto:[EMAIL PROTECTED] EnvoyÃÂ: mercredi 5 mai 2004 12:02 ÃÂ: [EMAIL PROTECTED] ObjetÂ: Can servlet generate a Web page first, then continue to run ? hi, I want to show a page immediately after the visiters' Form Submitting ,then do some logical processing at backgroud(this will assume a long time, so it may bother the visitor). I surpose to do these in one servlet. How can I do this? Thanks stan
RE: Tomcat server stopping immediately after starting.
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, Ravindranath (Cognizant) [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 mai 2004 10:09 À : [EMAIL PROTECTED] Objet : Tomcat server stopping immediately after starting. Hi I have installed tomcat4.1 newly.. When I started the server either using starup.bat / Catalina.bat, The server starting and immediately shuttingdown automatically.. I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder.. Please do the needful. If I missed something Thanks & regards Ravindra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
Thanks for your reply. I am examining thoroughly the different xml files used by tomcat, but haven't found anything wrong yet. I'll keep searching... -Message d'origine- De : Benjamin Armintor [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 15:20 À : Tomcat Users List Objet : RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. This usually means that there's character content before the root element in a document SAX is trying to parse. Make sure you haven't accidentally deleted any comment delimiting characters as you modified files. Benjamin J. 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 : [Fatal Error] :2:1: Content is not allowed in prolog. 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 them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
Thanks for the tip Doug, I will try to do like this, and I guess I will eventually find out what's wrong. Raymond -Message d'origine- De : Parsons Technical Services [mailto:[EMAIL PROTECTED] Envoyé : mardi 4 mai 2004 09:19 À : Tomcat Users List Objet : Re: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. Raymond, I don't know the meaning, sorry. But: If I were in your shoes I would replace the server.xml and web.xml with default. And I would do it one at a time. If it fixes it then add your changes a section at a time and continue until you find 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 AM Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog. 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 them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.
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 them and I still have the message). I have been customizing server.xml, web.xml, but they seem OK. Does anybody knows what it means. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Site slow and stops responding after certain number of threads
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 ="+maxMemory); -Message d'origine- De : s prasad [mailto:[EMAIL PROTECTED] Envoyé : vendredi 2 avril 2004 15:12 À : [EMAIL PROTECTED] Objet : Re: Tomcat Site slow and stops responding after certain number of threads We have 4 gigs of memory on the box, although the entire machine peaks at around 2 Gigs we have other sites on the same server running same code that are perfectly alright. But, when the thread count on a site increases beyond the magic number of 107, its slow responding and then a little later it stops responding. Prasad >From: Peter Lin <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: Tomcat Users List <[EMAIL PROTECTED]> >Subject: Re: Tomcat Site slow and stops responding after certain number of >threads >Date: Thu, 1 Apr 2004 20:37:30 -0800 (PST) > > >windows by default allocates 1mb of memory per thread. >107 threads shouldn't cause any problems, unless your >system only has 128mb of ram. From first hand >experience, once the allocated memory reach half the >physical ram, windows starts to disk cache. Once that >happens, GC performance gets worse. In fact in .NET >1.0, disk caching causes heap fragmentation and memory >leaks. If disk cache is kicking in, the performance >issues may be the result of heap fragmentation, which >kills GC performance. > >peter lin > > >--- sp k <[EMAIL PROTECTED]> wrote: > > We have a Tomcat site which becomes terribly slow > > and then stops responding > > after the thread count in windows task manager > > reaches 107 threads. We are > > using Tomcat 4.1.27 on windows 2000 machine. Our > > load tests could never > > emulate this behavior that occurs under real load. > > When the site crashes the > > memory consumption of the site is less than the > > initial max heap size set > > for it. > > > > Did any one ever face similar issues, we are baffled > > as to why 107 threads? > > Is related to the connector threads or JVM's garbage > > collection? > > > > Does anyone have any idea why the site would crash > > at the same thread level? > > > > Thanks, > > Prasad > > > > >_ > > Get rid of annoying pop-up ads with the new MSN > > Toolbar - FREE! > > http://toolbar.msn.com/go/onm00200414ave/direct/01/ > > > > > > >- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > >__ >Do you Yahoo!? >Yahoo! Small Business $15K Web Design Giveaway >http://promotions.yahoo.com/design_giveaway/ > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _ Get rid of annoying pop-up ads with the new MSN Toolbar - FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JVM memory allocation
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 tomcat 4.1.*, but I guess it should work for 5.0.* With thus script, you should see 9 JVM options (0 to 8) set JAVA_HOME=C:\j2sdk1.4.1_05 set CATALINA_HOME=G:\TOMCAT4.1.18 set CATALINA_OPTS=-server -Xms300m -Xmx300m -XX:NewRatio=2 -Xconcurrentio set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll set PARAMETERS=%PARAMETERS% -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME% set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false set PARAMETERS=%PARAMETERS% %CATALINA_OPTS% set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log %CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS% -Message d'origine- De : Li Li [mailto:[EMAIL PROTECTED] Envoyé : jeudi 1 avril 2004 09:59 À : [EMAIL PROTECTED] Objet : JVM memory allocation Hi All, I have some problems with my server. I'm using Tomcat 5.0.18 with IIS 5.0 with isapi_redirector2.dll, J2SDK 1.4.2. My server is running on Windows 2000 Server. It has 2 processors and 2GB of memory. My server, crashes very frequently. At that time, Tomcat and IIS service is still running, and the memory usage is around 20%, but the CPU usage consistently remain at 50% for about 1min, the browser will returned "Page Not Found" error when trying to access. Then I must restart my server. I even cannot just restart the "Apache Tomcat" and "W3svc" service, since one of them cannot be stopped. Can somebody figure out for me what caused this? My JVM max Memory allocation for this server is about 128 MB, total memory is about 64M, sometime the free memory drop to 20K. I try to allocate more memory to JVM. I try to set it in system variable, in catalina.bat (set JAVA_OPTS=-Xms256 -Xmx512), and in workers2.properties, and even in Registry. But non of them work for me. Can anybody tell me how to increase the memory for JVM. Actually, after I install Tomcat 5.0.18 as Service, it has written one record to Registry under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat5", but just have two items, "Enum and Security", so I add one item "Parameters", which includes "JVM Library", "JVM Option Count", "JVM Option Number 0 ~ 4", ... So I can set "-Xms256M", and "-Xmx256M". But it doesn't work either, the total memory for JVM is still around 64M. Another thing is the default name under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" is "Tomcat5", which is inconsistant with the name in Service Monitor - "Apache Tomcat". Is this correct? And the CATALINA_HOME is "c:\Tomcat 5.0", which has a space inside. Does this will affect the result? Regards, Li Li --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.616 / Virus Database: 395 - Release Date: 3/10/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does Tomcat work?
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 [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 mars 2004 12:52 À : [EMAIL PROTECTED] Objet : How does Tomcat work? Hello list, i am a 18 year old student from germany, who needs some information about the tomcat server. How does it work? Do you have some background information i may can use? I would be pleased, for every little hint on this topic. thanks :) regards: Bernd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jetspeed classpath?
org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar In your webapp, you need jetspeed.jar in WEB-INF/lib, along with the various jars used by jetspeed (quite a lot...) Are the errors you get displayed in the jetspeed.log file ? Note : Jetspeed is delivered as a war (jetspeed.war) that you only need to put in your $TOMCAT/webapps. Did you manage to access the default jetspeed home page ? -Message d'origine- De : Vi [mailto:[EMAIL PROTECTED] Envoyé : lundi 22 mars 2004 11:15 À : Tomcat Users List Objet : Re: Jetspeed classpath? Sorry, here they are: HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets does not exist import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet; ^ HelloWorldPortlet.java:9: package org.apache.ecs does not exist import org.apache.ecs.ConcreteElement; ^ HelloWorldPortlet.java:11: package org.apache.ecs does not exist import org.apache.ecs.StringElement; ^ HelloWorldPortlet.java:15: cannot find symbol symbol: class AbstractInstancePortlet public class HelloWorldPortlet extends AbstractInstancePortlet ^ HelloWorldPortlet.java:19: cannot find symbol symbol : class ConcreteElement location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet public ConcreteElement getContent (RunData runData) ^ HelloWorldPortlet.java:23: cannot find symbol symbol : class StringElement location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet return (new StringElement ("Hello World! #" + getID())); ^ HelloWorldPortlet.java:23: cannot find symbol symbol : method getID() location: class 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é : 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 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 files which are >>in $CATALINA_HOME to $CLASSPATH. >>( find $CATALINA_HOME -name "*.jar" ) >>And I still can't compile portlets. I can compile servlets thow. >>Anyone? >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jetspeed classpath?
>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 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 files which are >in $CATALINA_HOME to $CLASSPATH. >( find $CATALINA_HOME -name "*.jar" ) >And I still can't compile portlets. I can compile servlets thow. >Anyone? > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jetspeed classpath?
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 files which are in $CATALINA_HOME to $CLASSPATH. ( find $CATALINA_HOME -name "*.jar" ) And I still can't compile portlets. I can compile servlets thow. Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Config file mania
In my webapps, I use log4j, and I don't specify anything such as log4jPath logging.conf java.lang.String in web.xml I only put a log4j.properties file in $tomcat/webapps/MYAPPLICATION/WEB-INF/classes and of course log4j.jar in $tomcat/webapps/MYAPPLICATION/WEB-INF/lib And it works ! Example of log4j.properties # Set root logger level to DEBUG and its only appender to A1. log4j.rootLogger=DEBUG, A1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n You shoud see the logs in the console starting tomcat -Message d'origine- De : Michael Forster [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: Config file mania > > > 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 I have an entry of > > > log4jPath > logging.conf > java.lang.String > > > in my web.xml file where will it look for the logging.conf file. > I have put > a copy in every directory I can think of and it still says it > can't find the > file. > > the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\ directory. > I have put a copy of logging.conf currently in > \dev > \dev\tomcat > \dev\tomcat\conf > \dev\tomcat\conf\Catalina > \dev\tomcat\conf\Catalina\localhost > \dev\tomcat\conf\Catalina\localhost\myapp\ > \dev\tomcat\webapps > \dev\tomcat\webapps\ROOT > \dev\tomcat\webapps\ROOT\WEB-INF > > > Mike. > > -BEGIN GEEK CODE BLOCK- > Version: 3.12 > GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w > O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++ > G e+ h++ r+++ y+++ > --END GEEK CODE BLOCK-- > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Config file mania
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 I have an entry of log4jPath logging.conf java.lang.String in my web.xml file where will it look for the logging.conf file. I have put a copy in every directory I can think of and it still says it can't find the file. the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\ directory. I have put a copy of logging.conf currently in \dev \dev\tomcat \dev\tomcat\conf \dev\tomcat\conf\Catalina \dev\tomcat\conf\Catalina\localhost \dev\tomcat\conf\Catalina\localhost\myapp\ \dev\tomcat\webapps \dev\tomcat\webapps\ROOT \dev\tomcat\webapps\ROOT\WEB-INF Mike. -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++ G e+ h++ r+++ y+++ --END GEEK CODE BLOCK-- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat service
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 Win2k machine . The following command line : %CATALINA_HOME%\bin\tomcat.exe -install "Jakarta Tomcat" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log install the service succesfully, but i get the error org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) If i stop the service and launch tomcat with the startup.bat ,it' s OK Any Idea Thanks Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Internationalization problem
é 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 in your JSP/HTML is defined as UTF-8 : -Message d'origine- De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED] Envoyé : mardi 2 mars 2004 11:48 À : Tomcat Users List Objet : Internationalization problem I have problem with French special characters, like e with "accent" (é), When I get this character from user input, tomcat gets it as: é. Although I didn't check this in other languages I presume the same problems should also occur in German and Spanish and probably other languages. I'm working with tomcat 4.0.1 on Linux RH 9.0 Anyone knows how to solve this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring tomcat logs
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 log4j) >for its log files ? >I had a "no space left on device" due to too many logs in $TOMCAT/logs Tomcat's logs are rotated nightly as you've probably noticed by now. The catalina.out log is simply a trap for System.out/System.err and is not rotated regularly by tomcat. You can set swallowOutput=true on your contexts to direct System.out/System.err output from them to the context logs which are rotated, or you can use a 3rd program like cronlog to rotate your logs. Tomcat does not support all the configuration options of log4j's RollingFileAppenders. It is the server administrator's responsibility to ensure enough space for logs: this is true for any server-side program. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring tomcat logs
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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 3.3.1 vs Tomcat 4.1.29
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 d'origine- De : CLEMENT Eric [mailto:[EMAIL PROTECTED] Envoyé : mercredi 18 février 2004 15:00 À : [EMAIL PROTECTED] Objet : Tomcat 3.3.1 vs Tomcat 4.1.29 Hello, I've just downloaded and installed both release of Tomcat. In the same environment(ie 6, Win XP and jsdk 1.4), Tomcat 3.3.1 is running, Tomcat 4.1.29 doesn't (Tomcat 5.0.18 neither) can anyone help me? Eric Clément 230 Rue Marcelin Berthelot ZI Toulon Est - La Garde - BP 68 83079 Toulon cedex 09 - France Tél: 04-94-08-75-85 Fax: 04-94-08-09-38 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: another newbie question?
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 Users List' Objet : RE: another newbie question? In my opnion, isn´t so necessary to set a inicial memory value to JVM, because it will take more memory as needed. > -- > De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] > Responder:Tomcat Users List > Enviada: quinta-feira, 12 de fevereiro de 2004 12:59 > Para: Tomcat Users List > Assunto: RE: another newbie question? > > > Howdy, > Use the -Xmx java runtime option, set via the JAVA_OPTS environment > variable as defined in $CATALINA_HOME/bin/catalina.sh. > > Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] > >Sent: Thursday, February 12, 2004 10:55 AM > >To: [EMAIL PROTECTED] > >Subject: another newbie question? > > > >hello > > > >sombody could tell mee how to increase memory off the jvm? > > > >got only 7mg left after aplication deployed > > > >tanks > > > >[EMAIL PROTECTED] > >administrateur http://entre-nous.qc.tc > > > >_ > >MSN Search, le moteur de recherche qui pense comme vous ! > >http://fr.ca.search.msn.com/ > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, > proprietary and/or privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not be saved, copied, > printed, disclosed or used by anyone else. If you are not the(an) > intended recipient, please immediately delete this e-mail from your > computer system and notify the sender. Thank you. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.16 running out of resources
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 : tomcat 5.0.16 running out of resources Hi, I'm running Tomcat 5.0.16 and I'm getting the following error peiiodically: The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError It happens when certain jsp forms are compiled. Is there a way to increase the amount of system resources? Sometimes the server just stops working and leaves no log traces as well. Could these be related? This is with code that worked fine in version 4. Thanks. _ Optimize your Internet experience to the max with the new MSN Premium Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Http Client / Tomcat
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 client talking to tomcat using HttpConnections. Does any one know of a HttpClient API which we can use to authenticate against Tomcat?? We are using tomcat realm security.. Thank you all for your time srini -- Srinivas Vemula +91 40 23547826- Ext 201 Associate Consultant +91 40 23541447 (Fax) Mensamind+91 98497-42720 (Mobile) Hyderabad India http://www.mensamind.com DISCLAIMER The information contained in this e-mail is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it. You should delete it and notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Vedr.: RE: VM settings in windows service
>You do NOT have to reinstall Tomcat. Fine by me, but how can you change the CATALINA_OPTS used by your service, if you do not reinstall the windows service ? Environment variables are not used by the service. -Message d'origine- De : Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] Envoyé : 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" Til:"Tomcat Users List" <[EMAIL PROTECTED]> cc: Vedr.: RE: VM settings in windows service 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 Parameters look for JVM Option Number x Try this script (after adapting your parameters) to install your service. set JAVA_HOME=C:\j2sdk1.4.1_05 set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18 set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll set PARAMETERS=%PARAMETERS% -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME% set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false set PARAMETERS=%PARAMETERS% %CATALINA_OPTS% set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log %CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS% -Message d'origine- De : Tino Schöllhorn [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 février 2004 17:51 À : [EMAIL PROTECTED] Objet : VM settings in windows service Hi, I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to change the memory-setting of the VM the Tomcat-Service-Manager uses. I already changed the "Java Options" in the Tomcat Configuration tool, but when I look at the status page of tomcat it tells me that the MAX-Memory is 64MB instead of my 256M which I want. I used the -X option to achieve this: -Xmx256M What can I do that the service accepts these settings? Tino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhæftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar for tab og skade, som er opstået i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: VM settings in windows service
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 Parameters look for JVM Option Number x Try this script (after adapting your parameters) to install your service. set JAVA_HOME=C:\j2sdk1.4.1_05 set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18 set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll set PARAMETERS=%PARAMETERS% -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME% set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false set PARAMETERS=%PARAMETERS% %CATALINA_OPTS% set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log %CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS% -Message d'origine- De : Tino Schöllhorn [mailto:[EMAIL PROTECTED] Envoyé : mercredi 4 février 2004 17:51 À : [EMAIL PROTECTED] Objet : VM settings in windows service Hi, I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to change the memory-setting of the VM the Tomcat-Service-Manager uses. I already changed the "Java Options" in the Tomcat Configuration tool, but when I look at the status page of tomcat it tells me that the MAX-Memory is 64MB instead of my 256M which I want. I used the -X option to achieve this: -Xmx256M What can I do that the service accepts these settings? Tino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stops taking connections
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] Envoyé : mercredi 4 février 2004 16:24 À : [EMAIL PROTECTED] Objet : Tomcat stops taking connections Hi All! I have this problem. I run Tomcat and it seems to be stable, but after a while under 'heavy' load it stops taking connections - actually connections aren't refused they just don't return. And it won't take any more connections until it has been restarted. Tomcat version is 5.0.18, it is running under Redhat, the Connector is the default: Tomcat does not crash. A thread i started from within some class is still running (maybe this is independed), also tomcat still accepts connections on the server-port: Although i honestly dont know what this is for... Sorry for this lousy description, hope there were enough information so that anybody got an idea of my problem.. Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat problem
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 -Message d'origine- De : Alejandro Pérez Nava [mailto:[EMAIL PROTECTED] Envoyé : jeudi 29 janvier 2004 09:36 À : [EMAIL PROTECTED] Objet : tomcat problem Hello i have a problem. i have the next configuration: win2000 apache tomcat sql server, when i switch on the server the application is very fast but 4 or 5 hours affter the application is slow and two days after is very slow... then i switch off and switch on the server and the application is very fast but 4 or 5 hours affter the application is slow and two days after is very slow thakns Alejandro Pérez Nava. Dir. Dep. Desarrollo. CanaryWeb, S.L. Tlf 922 210339 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deactivating StandardManager persistence of sessions
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 deactivate the persistence of sessions done by the StandardManager ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with javascript utf-8 with tomcat 4.1.29
Thanks for the tip. I have tried CATALINA_OPTS=-Dfile.encoding=UTF-8, I see, when executing my JSP, that the "file.encoding" is properly set, I even see my logs as UTF-8 now, but I still have my problem (javascript files interpreted as ISO-8859-1 instead of UTF-8) with my menus stored in the javascript file (A@ appearsinstead of é). What is strange is that I have put the javascript file in one of my apache (2.0.47) directories, so that the browser downloads it from apache, but I still have the problem. It seems like tomcat is informing the browser that all the related files to my html page are in ISO-8859-1 instead of UTF-8. Is there a way to configure tomcat to send specific mime types (in my case text/javascript) in specific charset (UTF-8) Maybe this problem is related to the browser (Mozilla), since I don't have the problem with IE 5.5, but with tomcat 4.0.27, I don't have the problem (javascript interpreted as ISO-8859-1 instead of UTF-8). Any other guess ? -Message d'origine- De : Edson Alves Pereira [mailto:[EMAIL PROTECTED] Envoyé : mercredi 21 janvier 2004 18:00 À : 'Tomcat Users List' Objet : RE: problems with javascript utf-8 with tomcat 4.1.29 Check or change your file.encoding variable to the encoding format that you want. > -- > De: Alain Baucant[SMTP:[EMAIL PROTECTED] > Responder:Tomcat Users List > Enviada: quarta-feira, 21 de janeiro de 2004 12:27 > Para: Tomcat Users List > Assunto: Re: problems 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, 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: > > > > So is my javascript file : > > charset="UTF-8"> > > The javascript files are used to contain the translations of the menus, > > now I have "A@" instead of "é" in my menus... > > Any ideas ? > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > *- > * Alain Baucant - [EMAIL PROTECTED] > *- > * Aubay Luxembourg (OFFIS / Aubay-SI) > * > * Phone: +352 29 92 50 (40) > * Fax: +352 29 92 51 > * Mobile: +352 021 35 12 81 > * > * 51, place de Strasbourg > * L-2561 LUXEMBOURG > * > * http://www.aubay.lu > *- > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with javascript utf-8 with tomcat 4.1.29
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: So is my javascript file : The javascript files are used to contain the translations of the menus, now I have "A@" instead of "é" in my menus... Any ideas ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]