Re: UTF-8 vs ISO-8859-1 and really screwed up webpages.
can you try to add this in your CATALINA_OPTS env var ? -Dfile.encoding=UTF-8 Luc At 15:18 19/12/2002 +, you wrote: Still does not seem to be working just right. The browser recognises that the pages is UTF8 but it puts some strange characters in the top-left corner of the screen. How can I stop this happening? - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 2:38 PM Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. I think they're supposed to be, but I have found that the META tags sometimes don't seem to work, whereas the JSP directive seems to be more reliable. Andoni [EMAIL PROTECTED] 12/19/02 08:37 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. Are the HTML meta tags and the JSP tags interchangeable? i.e. are they the same thing? Andoni. - Original Message - From: Bogdan Kiszka [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 1:45 PM Subject: RE: UTF-8 vs ISO-8859-1 and really screwed up webpages. It is perfectly right. You must take care not to have page directive with contentType attribute in any included pages. If you have only one such an entry per page then everything is alright. I suggest to start with simple pages and then move to sophisticated ones. Bogdan -Original Message- From: Andoni [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 2:17 PM To: Tomcat Users List Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. It tells me I can't have two contentType entries when I put in the JSP tag!! Andoni. - Original Message - From: Andoni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 12:58 PM Subject: Re: UTF-8 vs ISO-8859-1 and really screwed up webpages. I am having this problem aswell. the pages I produce are coming up with all sorts of Japanese characters etc. in them. I have already inserted the Meta tags and converted the files using the saveAs / UTF8 feature on my editor. Now I am going to add the %@ page contentType = text/html;charset=UTF-8 % tag suggested by Bogdan below, is there anything else I must do? Andoni. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat virtual hosts and SSL certificates
At 10:46 18/12/2002 +0200, you wrote: Hi List, I run Tomcat 4.1.16b as a standalone server and I have 2 virtual hosts defined. One already has SSL certificate from Verisign - its alias is tomcat. Now, after I added the second host's Verisign certificate to the keystore (with a different alias) - I get a warning box that says that the certificate presented belongs to first.host.com. How can this be fixed? Any help appreciated. Thanks in advance. Uri Hi, i don't have any answer to this but I've got the same problem. somebody has already asked this question before but I'm not sure somebody else answered ! any help still appreciated thanks Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Administration Tool
Hi, I've written a doc about that but it's in french... there a doc in english on tomcat website http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html anyway, here is mine (maybe google will translate it for you) : Mise en place JDBC Realm pour Tomcat (stockage des utilisateurs et de leurs roles dans un base de données) -- Versions installées : * Jakarta Tomcat 4.0.6 * MySQL 3.23.51 * JDBC Driver mm.mysql-2.0.14-bin.jar Liens utiles : * http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html Creation de la base de données Sous mysql, creer la base principale : mysql create database tomcat_users; mysql GRANT select ON tomcat_users.* TO tomcatuser@localhost IDENTIFIED BY 'xxx'; Créer les tables : # création des tables utiles pour Tomcat JDBC Realm # répéter la création de ces 2 tables pour chaque webapps de tomcat ## webapp create table _users ( user_name varchar(8) not null primary key, user_pass varchar(40) not null # 40 pour les mots de passe md5 ); create table _user_roles ( user_name varchar(8) not null, role_name varchar(20) not null, primary key (user_name, role_name) ); Créer les utilisateurs Faire des scripts de creation d'utilisateurs : # creation utilisateur insert into _users values ('username', 'md5pass') # ajout de role pour un utilisateur insert into _user_roles values ('username', 'rolename'); Pour générer un mot de passe md5 à partir d'un mot de passe en clair, executer : $ java -classpath $CATALINA_HOME/server/lib/catalina.jar org.apache.catalina.realm.RealmBase -a MD5 motdepasseenclair Mise en place des drivers Copier le driver (mm.mysql-2.0.14-bin.jar) dans le repertoire $CATALINA_HOME/common/lib ou $CATALINA_HOME/server/lib Configuration Tomcat Editer le fichier server.xml Commenter la ligne suivante : Realm className=org.apache.catalina.realm.MemoryRealm / Ajouter les lignes suivantes dans la partie Engine name=Standalone defaultHost=localhost debug=0 : Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/tomcat_users connectionName=tomcatuser connectionPassword=xx digest=MD5 userTable=manager_users userNameCol=user_name userCredCol=user_pass userRoleTable=manager_user_roles roleNameCol=role_name / Et pour chaque webapps necessitant la définition de roles, suivre l'exemple suivant : !-- MyWebapp Context -- Context path=/MyWebapp docBase=MyWebapp debug=0 privileged=true Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/tomcat_users connectionName=tomcatuser connectionPassword=x digest=MD5 userTable=mywebapp_users userNameCol=user_name userCredCol=user_pass userRoleTable=mywebapp_user_roles roleNameCol=role_name / /Context Relancer Tomcat en root : # /etc/init.d/jakarta-tomcat restart It works fine for me :) hope it helps Luc At 00:35 18/12/2002 +1100, you wrote: Hi all, The Tomcat Admin Tool uses a UserDatabaseRealm for authentication and for editing as part of the configuration options. This uses the conf/tomcat-users.xml file for the source of information I was interested in knowing if anybody has configured Tomcat _and_ the Admin tool to use an alternate Realm, like JDBCRealm or a close cousin that the Admin Tool can manage ? I'd be interested in hearing from anybody who has gone down this path Cheers, -- jon -- Jon Eaves [EMAIL PROTECTED] http://www.eaves.org/jon/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
Hi, there is a way to limit memory use by tomcat just specify it in your CATALINA_OPTS env var here is mine CATALINA_OPTS=-server -Xmx220m -Xms220m -Dfile.encoding=UTF-8 these are jvm parameter I think Xmx is the max mem to use and Xms is the min hope this helps Luc At 11:03 13/12/2002 +0100, Marco Bucciarelli wrote: Hi, I have also this problem/doubt: how to limit the number of threads opened by Tomcat? I tried to change a lot of settings in server.xml but nothing influenced that number. I have always 46 new java processes opened by Tomcat. I did this test (Linux RedHat 7.0, Tomcat 4.1.12, Apache 1.3.12, Sun JDK 1.4.1_01): - reboot the machine, with tomcat service disabled at startup - the free command gives me 221.196Kb of memory free (Total 256Mk) - start tomcat - I found 46 new java processes - the top command says that every process uses 56Mb of RAM - the free command now gives me 44.436Kb free All this without accessing to Apache or Tomcat, only before and after the start of Tomcat! Of course I do not have a memory usage of 46*56Mb, but I do not have only 56Mb of RAM used by Tomcat (after the start I have only 44Mb of memory free, before the start I had 220Mb free). What is happening? Bye, Marco. From: Galbayar Subject: Re: Tomcat using VERY LARGE Memory (URGENT!) Date: Tue, 12 Mar 2002 10:26:21 +0800 it is top result and every java process using 59M RAM i'm use mod_jk integrated Tomcat with Apache and Tomcat top result is : 110 processes: 109 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 2.3% user, 1.9% system, 0.0% nice, 95.6% idle Mem: 1028860K av, 938924K used, 89936K free, 116K shrd, 139628K buff Swap: 1020116K av, 0K used, 1020116K free 680228K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 17862 root 15 0 1092 1092 836 R 1.7 0.1 0:00 top 17293 root 13 0 28176 59M 9576 S 1.5 2.7 0:01 java 17272 root 10 0 28176 59M 9576 S 0.1 2.7 0:02 java and see MEM usage total RAM is 1028860K 938924K used, 89936K free - Original Message - From: Filip Hanik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 10:14 Subject: RE: Tomcat using VERY LARGE Memory (URGENT!) what you are seeing is that ps or top lists one process for each thread in Tomcat. your tomcat is running 59M all together Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Galbayar [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 6:04 PM To: Tomcat Users List Subject: Tomcat using VERY LARGE Memory (URGENT!) Hello all Here is part of top output. Is it usual that java processes eat all of memory? ? At now there are 50 java processes started that running tomcat and each of them uses 59M memory. There is running apache server with tomcat 4 and mysql. OS is Redhat7.2 x86 . JDK 1.4 is installed. how to solve this problem? 106 processes: 105 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.3% user, 3.4% system, 0.0% nice, 96.1% idle Mem: 1028860K av, 1022352K used, 6508K free, 116K shrd, 129004K buff wap: 1020116K av, 0K used, 1020116K free 762320K cached 3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java 3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 java 3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 java 3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 java 3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 java 3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 java -- To unsubscribe: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands: mailto:tomcat-user- [EMAIL PROTECTED] Troubles with the list: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands: mailto:tomcat-user- [EMAIL PROTECTED] Troubles with the list: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: virtual hosting on tomcat
At 15:52 12/12/2002 -0800, you wrote: I am trying to add a virtual host on tomcat, I added this lines to server.xml file: Host name=mydom.net debug=0 appBase=/home/username/webapps/ROOT unpackWARs=true Aliasmysite.mydom.net/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=menanet.net. suffix=.log timestamp=true/ Context path= docBase= debug=0 reloadable=true/ Context path=/test docBase= debug=0 reloadable=true/ /Host and copied all $CATALINE_HOME/webapps to /home/username/webapps , I can get the default index.jsp of tomcat, but when I click on manager application it says status 404, not available , so how can I install an application on the new site ? or how can I run the manager on the new site, is there other things that I need to copy other than $CATALINE_HOME/webapps ? did you try to add !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged=true/ in mydom.net Host definition part ? Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: newbee , accents
try to add -Dfile.encoding=iso-8859-1 to your CATALINA_OPTS env i'm not sure about this one but it has solved some problem with french accents on my server. just try and you'll see Luc At 14:43 05/12/2002 -0500, you wrote: Servlet Specification 2.3 'The default encoding of a response is ISO-8859-1 if none has been specified by the servlet programmer.' I know that . But smbdy can explain this ? c:if test=${empty param.test} jsp:forward page=/test.jsp jsp:param name=test value=éèêàç/ /jsp:forward /c:if 1: c:out value=éèêàç/br 2: c:out value=${param.test}/br result : 1: éèêàç 2: éèêà ç thks by advance __ M - Original Message - From: maxime [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 10:44 AM Subject: newbee , accents Hi Every time a sentence pass throw a bean or a jsp:param every accent char (éèêàç) is replace by a ? or strange char Please help me to fix that ! Thks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: System user accounts required to use manager in 4.1.12?
maybe you already have the answer but here his mine:) Specifically, I would like to know, for the scenario above, how I would fill in the three text boxes on the page at http://galeron.aas.com:8080/manager/html/list which are labeled Path, Config URL, and WAR URL. As it stands right now, I would think it would be: Path = /someApp Config URL = I have no idea WAR URL = C:\some\path\to\war\file\on\Win2K Config URL should be something like file:/usr/local/jakarta-tomcat/webapps/myapp.xml (unix system) where myapp.xml file looks like manager.xml hope it helps Luc -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Tomcat standalone - traffic logs???
At 03:14 30/10/2002 -0800, you wrote: I'm using Tomcat Standalone and I would like to be able to process my logs to determine traffic trends on my site. I have webalizer and can use it to parse the logs. The problem though, is that I was looking at the logs being generated form tomcat and these logs don't seem to have any traffic info in them. The have info such as what happened when the server started, etc ... but I'm not seeing each page request being logged. And, I'm not seeing IP addresses (which I presume is needed to determine unique users) being logged. Anyone know how to setup tomcat standalone logs to provide the information, and to do so cleanly so that the info can be consumer by Webalizer? Hi have a look to $CATALINA_HOME/logs/localhost_access_log.-MM-DD.txt check your server.xml file for Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ maybe you'll have to change the pattern to combined... Luc -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat/Mysql/Woody
thanks Stefan for the idea but the problem is somewhere else. the problem comes from java just have to define CATALINA_OPTS=-Dfile.encoding=iso8859-1 before starting tomcat hope that will help other persons.. Thanks to Loic Luc At 10:15 03/09/2002 +0200, you wrote: Just an idea but maybe the font you are using on Woody is unable to display the special characters and replaces them instead with a '?'. Stefan Langer -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat/Mysql/Woody
At 15:10 03/09/2002 +1000, you wrote: On Mon, Sep 02, 2002 at 04:36:11PM +0200, Luc Santeramo wrote: ... this jsp displays, on the potato box : -- hé hé hé Revue d'histoire consacrée à la période de la Révolution française et de l'Empire. ... -- the same jsp displays, on the woody box : -- hé hé hé Revue d'histoire consacr?e ? la p?riode de la R?volution fran?aise et de l'Empire. ... -- as you can see, french special characters are now ? when they are extracted from the mysql DB. but if I check the mysql manually or with phpmyadmin, french character are still there ! I'm using mysql-3.23.51 and jakarta-tomcat-4.0.4 on both systems same config files ! if anybody has a clue . Probably your system locale changed. If you type 'locale', what does it show? You can run 'dpkg-reconfigure locale' as root to configure installed locales and set a default. well, I tried to I set up FR_fr iso 8859 1 but did not change anything this is what I got on the 2 different boxes : woody box:~# locale LANG=POSIX LC_CTYPE=POSIX LC_NUMERIC=POSIX LC_TIME=POSIX LC_COLLATE=POSIX LC_MONETARY=POSIX LC_MESSAGES=POSIX LC_PAPER=POSIX LC_NAME=POSIX LC_ADDRESS=POSIX LC_TELEPHONE=POSIX LC_MEASUREMENT=POSIX LC_IDENTIFICATION=POSIX LC_ALL= potato box:~# locale LANG=POSIX LC_CTYPE=POSIX LC_NUMERIC=POSIX LC_TIME=POSIX LC_COLLATE=POSIX LC_MONETARY=POSIX LC_MESSAGES=POSIX LC_ALL= I know something has changed but I can't find what for the moment I'm lost Thx Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat/Mysql/Woody
At 10:15 03/09/2002 +0200, you wrote: Just an idea but maybe the font you are using on Woody is unable to display the special characters and replaces them instead with a '?'. actually, I use internet explorer to see the result of the query If I do the same query using phpmyadmin with apache, I can see the french characters !!! strange isn't it ? :) Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat/Mysql/Woody
Hi, I'm sorry, I'm new to this mailing list, and I didn't find any post in the archive about this subjector I don't know how to search. I've got a problem since I upgraded from debian potato to debian woody. the following jsp file doesn't display the same thing on the different debian distro. it just extract data from a mysql database. - %@ page import=java.sql.* % % String connectionURL = jdbc:mysql://localhost:3306/dbname?user=dbuserpassword=xxx; Connection connection = null; Statement statement = null; ResultSet rs = null; % html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head hé hé hé body % Class.forName(org.gjt.mm.mysql.Driver).newInstance(); connection = DriverManager.getConnection(connectionURL, , ); statement = connection.createStatement(); rs = statement.executeQuery(SELECT * FROM xxx); while (rs.next()) { out.println(rs.getString(description)+br); } rs.close(); % /body/html - this jsp displays, on the potato box : -- hé hé hé Revue d'histoire consacrée à la période de la Révolution française et de l'Empire. ... -- the same jsp displays, on the woody box : -- hé hé hé Revue d'histoire consacr?e ? la p?riode de la R?volution fran?aise et de l'Empire. ... -- as you can see, french special characters are now ? when they are extracted from the mysql DB. but if I check the mysql manually or with phpmyadmin, french character are still there ! I'm using mysql-3.23.51 and jakarta-tomcat-4.0.4 on both systems same config files ! if anybody has a clue . thanks a lot Luc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]