How to modify default language of Tomcat?

2005-06-28 Thread
As title said, which configuration file should be modified? And how? Thanks. Best Regards Kevin Kang MSN: [EMAIL PROTECTED] [EMAIL PROTECTED]

RE: How to modify default language of Tomcat?

2005-06-28 Thread A jie
server.xml. -- MSN:[EMAIL PROTECTED] QQ:29967409 - From: "Kevin Kang (CS&S)" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat User Mailing List" Subject: How to modify default language of Tomcat? Date: Tue, 28 Jun 2005 15:28:42 +0800

RE: How to modify default language of Tomcat?

2005-06-28 Thread
And how, which line in server.xml, thanks. Best Regards Kevin Kang MSN: [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: A jie [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 3:33 PM To: tomcat-user@jakarta.apache.org Subject: RE: How to modify default language of Tomca

RE: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Allistair Crossley
Which line of code is on 71? helloworldservlet.ServletVideo.streamBinaryData(ServletVideo.java:71) In your finally block, you are closing the servlet output stream, I wonder if that's causing tomcat a problem since it usually closes the servlet output stream itself? Humour me and change if(

Re: Apache2+JK2+Tomcat-5.028 >> URI UTF-8 problem

2005-06-28 Thread Luis Sánchez Sánchez
Thanks Bruno, I believed mod_jk was for apache and mod_jk2 for apache2. I'll try it. El mar, 28-06-2005 a las 08:32 +0200, Bruno Georges escribió: > Hi Luis > > Why don't you start with mod_jk as opposed to mod_jk2, mod_jk is more > recent than mod_jk2 > Check the apache httpd.conf for the foll

RE: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Ronald Klop
This exception means the client (browser) has closed the connection before Tomcat send all its data. If the application works you should ignore this. My log is full of it. It also happens if you download something large from Tomcat and click cancel during the download. Ronald. On Tue Jun 28 1

Re: Properly setting src attribute for an img tag in a JSP

2005-06-28 Thread Tim Diggins
Hi Ryan - the problem you're having is not one I've had (and it doesn't sound very familiar). Some ideas for looking at though: How are you deploying your application? Are you just editing your files in place? Does this problem go away when your restart tomcat? Have you checked the logs? Have

Tomcat 5.5.9 and CVS project file on Linux

2005-06-28 Thread Giacomino Raccuia
Hi, thanks to this list I installed and configured correctly tomcat 5.5.9 to work properly with my production eviroment, now I'd like to configure one instance of tomcat for every developer that works to my web site. I configured a new directory of tomcat and change the web server port, in th

Problems serving files to download

2005-06-28 Thread Roberto Rios
Hi, I have a tomcat 4.1.31 (j2sdk1.4.2_08) running in a linux rh9 box. It's a fresh install. I'm from Brazil, so I've configured my linux to use pt_BR.ISO-8859-1. If I type locale, everything is ok. My CATALINA_OPTS has the "-Dfile.encoding=ISO-8859-1" I have no problems with my application

Mail Session ClassCastException

2005-06-28 Thread Carlos Bracho
Hello everybody. I am trying to get a mail session using the context's lookup method and I get a ClassCastException. this is the resource declaration in my context.xml: the code I am using to lookup the resource is: Context initialContext = new InitialContext(); Object objeto = initialContex

RE: Problems serving files to download

2005-06-28 Thread Robert Harper
Try the following if you are trying to read the following in a servlet: String s = java.net.URLDecoder.decode( "http://localhost/tomcat-docs/acentua%C3%A7%C3%A3o.txt";, "UTF-8" ); You can read the file and write it out to the response stream. Since this is a text file it will be displayed in the

RES: Problems serving files to download

2005-06-28 Thread Roberto Rios
Hi, Thanks for replying. No, I'm not using servlets to read the files. The files are being served directly by tomcat. I have configured tomcat to allow directory linstings, so I can see the files in the directory and click on it directly. By the way, the same problem occurs with files that have

Re: problems with Fedora Core 4

2005-06-28 Thread Duong BaTien
On Mon, 2005-06-27 at 22:56 -0700, Paul Constantine wrote: > Note: this is not meant to be a detailed bug report. I'm just fishing to see > if anyone else is having some these problems. > > Hi, I'm a newbie on the list. I've used tomcat with Windows-IIS for about a > year, and I just made the swit

Re: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error

2005-06-28 Thread Tim Funk
Connection reset by peer means the client disconnected before all the data was sent. -Tim Adriana Suarez wrote: Hello, I got this exception and I don't know how to solve it, I have a web application with a servlet which sends video with formats avi, mpeg, and mov, it shows the video but the

connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a problem. As far as I can tell, the config files are all as they should be, but on restarting the server and requesting the page I want, a blank is returned and jk_IIS.log has this in it:: ### [Tu

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes
One thing that might help: The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tue

RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
Thanks for pointing that out, but the worker I'm trying to use is 'raid', and I'm somewhat confused why its picked up the URL of the site as part of the name - this is the (test) copy - hence the name. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:44

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes
Then you won't mind commenting the others and re-trying.;-) Simplify first. BTW workers2.properties is unused for the JK connector. The JK2 connector uses it. It is safe to delete. -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12

single session id

2005-06-28 Thread Rogerio Baldini das Neves
Hi, I need to have a "single session id" in all my contexts in my host ? Is it possible ? My problem: I have a cluster this 1 Apache and 2 Tomcats. In each Tomcat, I have 5 apps. I do a request to app1, Apache sends me to Tomcat1. If I request to app2, I need Apache sends me to Tomcat1 again.

RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
Take your point. BTW do I need to restart Tomcat each time? Bit confused on that one... -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:56 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat Then you won't mind commenting the others and re-

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes
Not unless you changed something in server.xml. You need to restart the WWW service (IIS). -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 1:03 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat Take your point. BTW do I

Re: single session id

2005-06-28 Thread Tim Funk
Set emptySessionPath="true" on your connector declaration. This is a tomcat 5.5 feature only. -Tim Rogerio Baldini das Neves wrote: Hi, I need to have a "single session id" in all my contexts in my host ? Is it possible ? My problem: I have a cluster this 1 Apache and 2 Tomcats. In each To

RE: connecting IIS and Tomcat

2005-06-28 Thread Nat Papovich
Hi all, first post here. I had a dickens of a time finding where Tomcat (5.5.9) was sticking my serialized object files (Java 1.5). When starting Tomcat on Win, it writes them to C:\WINDOWS\system32. When starting via command line (dbl-click tomcat5.exe), it puts them in the same dir (C:\Tomcat\bi

Tomcat 5.5.9 application reload doesn't work

2005-06-28 Thread Johnson, Tony S.
Hi, I have seen this question discussed several times on this mailing list, but I have not found anyone with a solution, so I am asking again in the hopes that someone can help. Example of problem: 1) Download/Install/Start tomcat 5.5.9 on port 8080 2) Create a directory c:\test 3) Create a c

Re: single session id

2005-06-28 Thread Rogerio Baldini das Neves
Thanks vey much, Tim It´s working fine. - Original Message - From: "Tim Funk" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, June 28, 2005 2:37 PM Subject: Re: single session id > Set emptySessionPath="true" on your connector declaration. This is a tomcat > 5.5 feature onl

Stored Procedures problem

2005-06-28 Thread Carlos Bracho
I got this exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]No ResultSet set was produced at line # 2 in this code: conn = this.dataSource.getConnection(); ResourceBundle resourceBundle = ResourceBundle.getBundle("ladw/resources"); statement = conn.prepareCall(resourc

RE: Stored Procedures problem

2005-06-28 Thread Robert Harper
If this is an update, you will almost always get this exception. What is the query you are attempting to run? Robert S. Harper Information Access Technology, Inc. -Original Message- From: Carlos Bracho [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:54 PM To: tomcat-user@jakart

RE: Stored Procedures problem

2005-06-28 Thread Maarten Janssen
where do you define your resultset rs... maarten -Oorspronkelijk bericht- Van: Robert Harper [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 28 juni 2005 21:00 Aan: 'Tomcat Users List'; 'Carlos Bracho' Onderwerp: RE: Stored Procedures problem If this is an update, you will almost always ge

What happened to the admin and manager apps in 5.5?

2005-06-28 Thread lchalupa
I'm trying to install the admin application of tomcat. When I download the .zip file. I'm confused about what I'm suppose to deploy, where to deploy it and how to do it. Of course there are few clues that may any sense to me. The directory structure in the zip file is very confusing to me. Can

RE: What happened to the admin and manager apps in 5.5?

2005-06-28 Thread Didier McGillis
Those have to be downloaded seperatly they arent part of the base download. http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi You'll find the admin and other downloads there. From: "lchalupa" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: tomcat-user@jakarta.apache.org Subj

Re: Apache2+JK2+Tomcat-5.028 >> URI UTF-8 problem

2005-06-28 Thread Luis Sánchez Sánchez
I doesnt work with mod_jk. I've tried JkOptions like +ForwardURICompatUnparsed, +ForwardURIEscaped, +ForwardURICompat ... It's exactly like with mod_jk2: when I go directly to tomcat using server:8080/something-with-special-characters-like-áéíóúñ the page is fine. However if I use server/som

Apache2+jk+tomcat5.028+uri utf-8 SOLVED

2005-06-28 Thread Luis Sánchez Sánchez
Install mod_jk. I downloaded it from http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/jk-1.2.10/ Copy the jakarta-connector*.so to your apache2 modules directory. Activate your new module: I used this two files in /etc/apache/mods-avaliable: +---+ mod_jk.conf +---

jsp include/RequestDispatcher incompatible?

2005-06-28 Thread George Finklang
have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or jsps declared in my web.xml. All the servlets and jsps get run correctly. The problem is the output. The output of the root jsp and the 3-4 included jsps are a

RE: connecting IIS and Tomcat

2005-06-28 Thread Brereton, Stephen
I've deleted workers2.properties and get: [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 22:27:12 2005] [jk_isapi_plu

memory issues with live redeploy

2005-06-28 Thread George Finklang
Working with a couple different tomcat 5.0.X versions, I'm having issues with tomcat's memory footprint increasing when I live redeploy. I do this 2 or 3 times and the server runs out of memory, though normally it can run for weeks without problem. I can't seem to find direct references to this i

RE: memory issues with live redeploy

2005-06-28 Thread Scott Stewart
We ran into the same problem up thru version 5.5.7 - the only work around was to use Stop/Start rather than Reload/Redeploy. We've since updated to Tomcat 5.5.9, which seems to have corrected the problem. Thanks, Scott Stewart -Original Message- From: George Finklang [mailto:[EMAIL PRO

RE: connecting IIS and Tomcat

2005-06-28 Thread Derrick Koes
Your registry is incorrect. Try this. Modify values as appropriate. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] "extension_uri"="/jakarta/isapi_redirect.dll" "worker_file"="C:\\jk-connector\\conf\\workers.propertie

tomcat default page

2005-06-28 Thread Tony Smith
I install tomcat on my machine and my webapp can be accessed as http://www.mydomain.com:8080/myapp/index.jsp. If I type http://www.mydomain.com:8080, the default tomcat page will be displayed. How can I change this page to something else, or forbid it? Thanks, _

RE: tomcat default page

2005-06-28 Thread Brereton, Stephen
Do you mean to display another page, or to stop the access via port 8080? -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 22:39 To: Tomcat Users List Subject: tomcat default page I install tomcat on my machine and my webapp can be accessed as http://www

RE: tomcat default page

2005-06-28 Thread afonseca
Hi, Do a re-direct in the page in http://www.mydomain.com:8080 to http://www.mydomain.com:8080/myapp/index.jsp. António Citando "Brereton, Stephen" <[EMAIL PROTECTED]>: > Do you mean to display another page, or to stop the access via port 8080? > > -Original Message- > From: Tony Smi

Problem in Resource declaration

2005-06-28 Thread Behrang Saeedzadeh
Hi I want to define a DBCP pooled MySQL connection for a test application. The following definition is not working: type="javax.sql.DataSource" auth="Container"/> factory

RE: tomcat default page

2005-06-28 Thread Tony Smith
I would like to try both... --- "Brereton, Stephen" <[EMAIL PROTECTED]> wrote: > Do you mean to display another page, or to stop the > access via port 8080? > > -Original Message- > From: Tony Smith [mailto:[EMAIL PROTECTED] > Sent: 28 June 2005 22:39 > To: Tomcat Users List > Subject: t

Is there a DTD/XML Schema available for the Context.xml files?

2005-06-28 Thread Behrang Saeedzadeh
Hi I'm searching for the DTD or the XML Schema for the Context.xml files. Does anybody know where can I find them? -Behrang -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa Using Opera's revolutionary e-mail client ---

Re: jsp include/RequestDispatcher incompatible?

2005-06-28 Thread Tim Funk
The out from the jspwriter is NOT the same out as receieved by response.getWriter(); The out in the JspPage is buffered. -Tim George Finklang wrote: have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or jsp

Re: Is there a DTD/XML Schema available for the Context.xml files?

2005-06-28 Thread Tim Funk
No ... http://jakarta.apache.org/tomcat/faq/misc.html#dtd -Tim Behrang Saeedzadeh wrote: Hi I'm searching for the DTD or the XML Schema for the Context.xml files. Does anybody know where can I find them? -Behrang - To uns

Tomcat5.5.7 and Log4j

2005-06-28 Thread Robert Taylor
Greetings, I'm trying to use Log4j in my web app and I'm having some difficulty. I'm running Tomcat5.5.7 and JDK 1.5.0 I've followed the instructions here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html -placed log4j.jar and commons-logging.jar in commons/lib -placed log4j.xml in c

help in setting up

2005-06-28 Thread ganesan malairaja
hi guys i know that to settup tomcat , there no need for apache i wanna know what java i should use is it j2dk or j2ee because i saw some example that uses both.. i am going to run JSP to retrieve info from database i need guide on how to setup tomcat .. ie what java version i shoud use. a

Re: help in setting up

2005-06-28 Thread Richard Reyes
I use JDK. On 6/29/05, ganesan malairaja <[EMAIL PROTECTED]> wrote: > > hi guys > > i know that to settup tomcat , there no need for apache > > i wanna know what java i should use > > is it j2dk or j2ee > > because i saw some example that uses both.. > > i am going to run JSP to retrieve inf

Re: Tomcat5.5.7 and Log4j

2005-06-28 Thread Bill Barker
"Robert Taylor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings, I'm trying to use Log4j in my web app and I'm having some > difficulty. > > I'm running Tomcat5.5.7 and JDK 1.5.0 > I've followed the instructions here: > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logg

Re: help in setting up

2005-06-28 Thread Parsons Technical Services
It depends: 5.5.x only needs JRE 5.0.x and earlier versions needs full JDK As for version I recommend Java 1.5 and it is required for the 5.5.x version unless you use the compatibility patch for 1.4 Doug - Original Message - From: "ganesan malairaja" <[EMAIL PROTECTED]> To: Sent: T

Not able to start Tomcat with jvm parameter -Xrunhprof

2005-06-28 Thread Nallapeta Bhaskar
Hello, I have set the environment variable CATALINA_OPTS to -Xmx1536m -Xrunhprof:cpu=samples,file=/var/tmp/hprof.txt. Tomcat is not getting started up. In the catalina.out i noticed the following error: HPROF ERROR: can't write profile file: /var/tmp/hprof.txt. (Write permission is there for th

Re: Not able to start Tomcat with jvm parameter -Xrunhprof

2005-06-28 Thread Athol . Kelly
Please remove my name from "Tomcat Users List". Thank you, Athol Kelly. IMPORTANT--PLEASE READ*** If this electronic message contains a zipped attachment and you do not have a decompression tool, you can download unZIP (for free) from: http://www.mk-net-work.com

Re: help in setting up

2005-06-28 Thread ganesan malairaja
thankx height=16 src="http://graphics.hotmail.com/emarrow_right.gif"; width=16>Ganesan_Malairajasrc="http://graphics.hotmail.com/emarrow_left.gif"; width=16> From: "Parsons Technical Services" <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: "Tomcat Users List" Subject: Re: help in