Number of java process increases...

2005-06-28 Thread Gulshan Babajee
Hi, am actually using tomcat version 5.0.28 on Red Hat Linux 6.2. What i've notice is that each time i compile my java classes, copy them to /WEB-INF/classes dir. and then redeploy my web application consisting of jsp pages, I saw the number of java process increases when I do a 'ps -aux' That is

HTTP Status 404 - /admin

2005-06-28 Thread Sharath Srivatsa
Hi, I have loaded tomcat successfully. When i click Tomcat Administration iam getting the following error. HTTP Status 404 - /admin type Status report message /admin description The requested resource (/admin) is not available. Apache Tomcat/4.1.31 I have made the necessary changes in

AW: Tomcat Just Shuts down without reason (that i can see)

2005-06-28 Thread Edao, Aliye
Hi! Have you got solution? If yes just ignore this mail. If not and if you are using UNIX/Linux System try the following: Start tomcat in CSH Shell and let it run in background. There was a similar problem discussed on this list and the solution was to start tomcat in CSH. Cheers, Aliye

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

2005-06-28 Thread Bruno Georges
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 following directives AddLanguage AddDefaultCharset UTF-8 Also make sure use in your servlet/JSP: request.setCharacterEncoding(UTF-8); Bruno Georges Glencore

How to modify default language of Tomcat?

2005-06-28 Thread Kevin Kang \(CSS\)
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 (CSS) [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat User Mailing List tomcat-user@jakarta.apache.org Subject: How to modify default

RE: How to modify default language of Tomcat?

2005-06-28 Thread Kevin Kang \(CSS\)
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

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

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

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

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

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: Resource name=mail/sessionMail auth=Container type=javax.mail.Session mail.smtp.host=localhost/ the code I am using to

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 switch

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:: ###

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:

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

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

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: 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

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

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

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

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 tomcat-user@jakarta.apache.org Sent: Tuesday, June 28, 2005 2:37 PM Subject: Re: single session id Set emptySessionPath=true on your connector declaration. This is a

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 =

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:

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

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.

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 tomcat-user@jakarta.apache.org To:

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

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

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]

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

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

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.properties

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

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 Smith

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: ?xml version=1.0 encoding=UTF-8? Context path=/Hibernate-02 Resource name=jdbc/Hibernate02 scope=Shareable type=javax.sql.DataSource auth=Container/

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: tomcat

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

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

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

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.

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 info from

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/logging.html

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: