Re: Cannot Access Tomcat Server Using IP Address

2007-05-21 Thread Teh Noranis Mohd Aris
I already solve the problem. I fixed the program and it works! Thank you so much for the replies. Yours Sincerely, TEH Teh Noranis Mohd Aris [EMAIL PROTECTED] wrote: Yes, I can access the login.html interface from a different computer using http://IPaddress:8080/login.html but when I

Re: displaying customized error page in tomcat 5.5.12

2007-05-21 Thread Abdul Qayyum
Dear Len Popp, Thanks for the mail. On 5/19/07, Len Popp [EMAIL PROTECTED] wrote: That doesn't work for me. The ErrorDocument 503 declaration in httpd.conf only works when Tomcat is completely down, not when a single webapp is stopped or reloading. As long as Tomcat is running, you'll get

Re: mod_jk problem

2007-05-21 Thread Rainer Jung
Rotating an open log file from outside the using processes is a very bad idea. The processes in most cases will simply try to use the old log file further on (and will run into trouble, after you compressed them etc.). Rotating log files for apache can be easily done using the bundles

Re: how to recompile procrun/tomcat5 into 64 bit Version

2007-05-21 Thread oj
Hi, I downloaded the amd 64 bit version and tried to install and start the service but it does not work. It occures a message that the tomcat5.exe is incompatible with the 64bit operating system David Delbecq-2 wrote: oj a écrit : Hi, I read a lot that it is possible to run the tomcat5

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Leon Rosenberg
On 5/21/07, Peter [EMAIL PROTECTED] wrote: hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a list and get 1 as a result. simple code for testing! List alist =new ArrayList(); alist.add(0); put 0 into it

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Delbecq
Never heard of such problem. Check your code. Either you add 1 to list, not 0, either you badly display result, either it's not the same list. Peter a écrit : hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Peter
hi all i put it in the jsp, and here is the code generate by tomcat i did not see if there is any wrong there. package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.util.*; public final class jsp1_jsp extends

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Peter
in the mail before, i put 0 in a list and get 1 as result. On 5/21/07, Leon Rosenberg [EMAIL PROTECTED] wrote: On 5/21/07, Peter [EMAIL PROTECTED] wrote: hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Peter
thanks i am sure that i put 0 in to a list and i am not badly display result and it is the same list and it is only occur in this project. thanks for any idea On 5/21/07, David Delbecq [EMAIL PROTECTED] wrote: Never heard of such problem. Check your code. Either you add 1 to list, not 0,

Re: Connection:close request returns a response without any content-length or Transfer-Encoding: chunked

2007-05-21 Thread Johnny Kewl
Hi Eric... again...I dont think its a bug... Have you checked that the Servlet is setting the content length. ie response.setContentLength(theByteLength); This is the Javadoc comments from the actual Tomcat src code... * pThe servlet container must write the headers before *

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Peter
hi all i try to do like List alist =new ArrayList(); alist.add(0L); alist.get(0); and it is fine. donot know why? On 5/21/07, Peter [EMAIL PROTECTED] wrote: hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a

Re: tomcat-dbcp from Maven

2007-05-21 Thread Filip Hanik - Dev Lists
the maven jars/upload is still in process, if you want to contribute help, take a look at res/maven in the tomcat 6 tree Filip lightbulb432 wrote: The tomcat-dbcp library doesn't seem to be available from the Maven repository for Tomcat at http://tomcat.apache.org/dev/dist/m2-repository or

Re: Cannot Access Tomcat Server Using IP Address

2007-05-21 Thread domenico di leo
When you try to acces to your web application form another PC, you need the ip address of server where your application is runnign but also the tcp port(in your case is 8080). the coorect web address is: http://ip_address:8080/login.html On 21/05/07, Teh Noranis Mohd Aris [EMAIL PROTECTED]

Manage Client Certificates

2007-05-21 Thread Samuel Scheidegger
I configured my tomcat to work with SSL an client-certification. Together with a JDBC Realm the user is looked up in the database and everything works fine. My question now is how can I manage it on my own if there is more than one client certificate? Is there something like an interceptor? The

RES: Prevent unwanted requests

2007-05-21 Thread Milanez, Marcus
Thanks everybody for your ideas and responses. Just to make things clear to everyone, I'm *NOT* storing .java files inside my web folder. What happens is DWR servlet accepts requests for addresses that ends with .java extensions, giving the impression that these files exists. Worst still,

logging log4j of my application

2007-05-21 Thread Marc Rameder
Hi I have a problem with tomcat 5.5.20. My application uses log4j 1.2.9 and I am sure that all my implementation is correct because I uses JUnit and the logging works fine with it. However, Tomcat loads my log4j.properties so the configuration of the web.xml should be right. I know that because

Re: logging log4j of my application

2007-05-21 Thread Rainer Jung
How do you deploy the log4j Jar? Which place? Several places? Where do you keep your log4j configuration file? One file, several ones? Which mechanism did you choose to publish the files to log4j? The questions concerning several always mean: are those things only in your webapp, or also

Handling ClientAbortException

2007-05-21 Thread Subscriber
Hi, I'm getting a ClientAbortException in my logs, when a browser cancels a dialog with the server. This is OK, but in Internet Explorer (6+7) I'm not able to show a customized error page to the user. I've tried with this tag - both in my own web.xml and Tomcat's web.xml: error-page

Configuring Tomcat 6 problem

2007-05-21 Thread Pierluigi Fabbris
Hi, I've problems to configuring Tomcat 6. The problems is: 1. If I assign a password for the admin, must I have another account to use http://localhost:8080?http://wm.email.it/webmail/wm_5/redir.php?http://localhost:8080?I don't see result if I assign admin and password. 2. I use saxon b, java

AW: logging log4j of my application

2007-05-21 Thread Marc Rameder
I deploy a war file with the following content. WEB-INF: classes: contains the log4j.properties file in the root directory. Only oneexists. lib: contains the log4j-1.2.9.jar not in any other directory my web.xml contains context-param

Re: AW: logging log4j of my application

2007-05-21 Thread Rainer Jung
All right, so we assume, there are no log4j things lying around in your Tomcat apart from your webapp. Also please check, that the running Tomcat process has no -Dlog4j.configuration in its commandline. It could be, that you have a servlet initialization, that configures log4j via its API,

tomcat Data Base Realm

2007-05-21 Thread lmk
hii, I'd like to use tomcat for authentification management, the server can not bind directly the data base server, i must get the user name and the password with a web service request. I can't set the DB properties into a tomcat configuration file. How can I use tomcat security management ?

AW: AW: logging log4j of my application

2007-05-21 Thread Marc Rameder
The output of the log file should be information about hibernate, spring and my development in the net.thefource package. I have used this log4j.properties for a GUI application where it is working fine and also by testing the server with JUnit all debug information are displayed. I am starting

RES: Question about jar file name.

2007-05-21 Thread Rodrigo Pimenta Carvalho
Hi Edoardo. Thank you for reply. Do you know what is the jar file name in this case? Regards, Rodrigo Pimenta Carvalho. -Mensagem original- De: Edoardo Panfili [mailto:[EMAIL PROTECTED] Enviada em: domingo, 20 de maio de 2007 17:48 Para: Tomcat Users List

RES: Question about jar file name.

2007-05-21 Thread Rodrigo Pimenta Carvalho
Ops, Excuse-me. I saw the name. I'm using the TomCat for JWSDP version, which has the Catalina.jar too. But I guess such version doesn't have the connector class into Catalina.jar. Rodrigo. == -Mensagem original- De: Edoardo Panfili [mailto:[EMAIL PROTECTED] Enviada em:

How to increase timeout while deploying war via the manager webapp

2007-05-21 Thread ben short
Hi, I am trying to deploy a large war via the manager webapp over a slow connection. After about 10 mins the connection times out. Is it possible to increase this timeout period? Regards Ben Short - To start a new topic,

Re: How to increase timeout while deploying war via the manager webapp

2007-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben, ben short wrote: I am trying to deploy a large war via the manager webapp over a slow connection. After about 10 mins the connection times out. Is it possible to increase this timeout period? Is it possible to do an scp + local deploy? I

Re: How to increase timeout while deploying war via the manager webapp

2007-05-21 Thread Filip Hanik - Dev Lists
there is a disableUploadTimeout flag on the Connector element, are you sure tomcat is timing out the connection? Filip ben short wrote: Hi, I am trying to deploy a large war via the manager webapp over a slow connection. After about 10 mins the connection times out. Is it possible to increase

questions about the classloader in tomcat 6

2007-05-21 Thread Brian Millett
Hello, I've setup my tomcat 6.0.13 with the CATALINA_HOME=/opt/tomcat and CATALINA_BASE=/opt/webBaseDir on a FC6 system. I read in http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Common - This class loader contains additional classes that are made visible to both Tomcat internal

pluto 1.1.3 tomcat 6

2007-05-21 Thread Brian Millett
Anyone get pluto (or jetspeed2) working with tomcat 6? I have not figured out all of the classloading issues yet. -- Brian Millett - [] Why are you here? 'We were never away. For the first time, your mind is quiet enough to hear me.' Why am I here? 'You have always been here.' --

Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Thomas Hoffmann \(Speed4Trade\)
Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. The Context-Entry looks like Context docBase=D:\inetpub\wwwroot\tyres4trade

Re: transaction manager cannot load in Tomcat 6

2007-05-21 Thread tmo256
Hi: Thanks for trying to help out. Let me clarify a couple of points. The main thing is that my problem is very specifically with the transaction manager factory; I have successfully set up other dhcp connection pools (non-transactional). With the failure to initialize, I moved all needed jars

RE: Oracle JDBC connection Tomcat 5.5

2007-05-21 Thread Propes, Barry L
well, I had to actually switch jars for my Oracle driver to work properly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Zdenek Vráblík Sent: Wednesday, May 16, 2007 7:19 AM To: Tomcat Users List Subject: Re: Oracle JDBC connection Tomcat 5.5 Hi all

Mod_jk question

2007-05-21 Thread Kotla, Satya S (Contractor)
Hi, We are running JBoss 4.2.0/Apache 2.2.3/Mod_jk 1.2.22 on Suse Linux 10. We are trying to implement an Apache Farm with three Apache instances reverse-proxying to multiple JBoss cluster nodes using mod_jk connector with load-balancing and sticky session configuration. As per the Tomcat

Encoding in Tomcat 6

2007-05-21 Thread hkml
Hi all, I noticed some encoding problems inside servlets, when switching from Tomcat 5.5.20 to Tomcat 6.0.10. I looked for it in the mailing lists, but didn't find something appropriate. Scenario: An own servlet (that is: a class derived from HttpServlet) is creating very simple HTML output,

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Filip Hanik - Dev Lists
$CATALINA_HOME/lib Filip Brian Millett wrote: Hello, I've setup my tomcat 6.0.13 with the CATALINA_HOME=/opt/tomcat and CATALINA_BASE=/opt/webBaseDir on a FC6 system. I read in http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Common - This class loader contains additional

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Brian Millett
Filip Hanik - Dev Lists escribío: $CATALINA_HOME/lib Doesn't that defeat the CATALINA_BASE setup for multiple instances of tomcat? Brian Millett wrote: Hello, I've setup my tomcat 6.0.13 with the CATALINA_HOME=/opt/tomcat and CATALINA_BASE=/opt/webBaseDir on a FC6 system. I read in

Tomcat uriworkermap exlcuions issue

2007-05-21 Thread oblongman
Hi, I am having problems implementing my uriworkermap file. I want to exclude all '.js' files from hitting tomcat, i do this with the line !/*.js=tomcat But i do want to send all '.js' files that live under dwr/ to tomcat so i use /dwr/*=tomcat The issue is that tomcat deals with exclusions

Tomcat uriworkermap exclusions issue

2007-05-21 Thread oblongman
Hi, I am having problems implementing my uriworkermap file. I want to exclude all '.js' files from hitting tomcat, i do this with the line !/*.js=tomcat But i do want to send all '.js' files that live under dwr/ to tomcat so i use /dwr/*=tomcat The issue is that tomcat deals with exclusions

Re: Encoding in Tomcat 6

2007-05-21 Thread hkml
[EMAIL PROTECTED] wrote: html,body etc.) just some German special characters (ä ö ü). sorry for that encoding problem, it should read ä ö ü. I first sent the message using a different mail address. Then I got a response from the list server, that I'm not allowed to send messages to this list

Re: Mod_jk question

2007-05-21 Thread Rainer Jung
Only 1 worker file is possible and it must be defined in the global section of the httpd configuration. You can think about using three things to make configs easier to maintain (depending on your taste) - Using the reference feature (see jk reference guide for workers.properties), which

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Filip Hanik - Dev Lists
Brian Millett wrote: Filip Hanik - Dev Lists escribío: $CATALINA_HOME/lib Doesn't that defeat the CATALINA_BASE setup for multiple instances of tomcat? I always get the BASE and HOME mixed up. but I believe HOME is the installation of all the shared binaries, hence all common

Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Mike Peremsky
I think this may be a class loader issue, but am not sure as I have never really worked with them before. I am putting together a JAR file that contains a set of classes to be used throughout a suite of applications. I have a class called SingletonLoader that was working when it was within the

Re: Mod_jk question

2007-05-21 Thread Rainer Jung
And another comment: you can add/remove nodes also by simply switching their activation attribute to disabled (no new sessions) or stopped (no more requests at all). Again you can't factor those out (onyl by mixing workers.properties and JkWorkerProperty), but the status is concentrated in

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Brian Millett
Filip Hanik - Dev Lists escribío: Brian Millett wrote: Filip Hanik - Dev Lists escribío: $CATALINA_HOME/lib Doesn't that defeat the CATALINA_BASE setup for multiple instances of tomcat? I always get the BASE and HOME mixed up. but I believe HOME is the installation of all the

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Rainer Jung
The catalina.properties file is the one that defines the classloader search order. So you are free to make the order fit your own needs. For instance if you really like to share product installations and want to add instance specific things to the common loader, you would add a folder of your

Re: How to increase timeout while deploying war via the manager webapp

2007-05-21 Thread ben short
I myself dont have the problem as im sat about 2 feet away from the box running the tomcat instance. The person getting the problem is connected by a really naff lease line and was a bit fuzzy about what is going on. I'll suggest the scp approch as they can use a client that supports resuming.

Re: AW: AW: logging log4j of my application

2007-05-21 Thread Rainer Jung
Your config looks OK to me. Sometimes such a thing happens, if one starts the process unintended as root, who then owns the log file and after starting again as non-root, the process user can not write to the file... You can add -Dlog4j.debug to the startup options of your Tomcat. Then

Re: Encoding in Tomcat 6

2007-05-21 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: Scenario: An own servlet (that is: a class derived from HttpServlet) is creating very simple HTML output, containing (beside the necessary HTML tags html,body etc.) just some German special characters (ä ö ü). The java source code is UTF-8, the response instance

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Filip Hanik - Dev Lists
did you try Class singletongClassObj = this.getClass().getClassLoader().loadName(singletonClassName); Filip Mike Peremsky wrote: I think this may be a class loader issue, but am not sure as I have never really worked with them before. I am putting together a JAR file that contains a set of

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Brian Millett
Rainer Jung escribío: The catalina.properties file is the one that defines the classloader search order. So you are free to make the order fit your own needs. For instance if you really like to share product installations and want to add instance specific things to the common loader, you

RE: questions about the classloader in tomcat 6

2007-05-21 Thread Caldarale, Charles R
From: Brian Millett [mailto:[EMAIL PROTECTED] Subject: Re: questions about the classloader in tomcat 6 Is there a need to move to the newer common classloader? There may not be a need, but performance is certainly improved with fewer class loaders and shorter classpaths for each loader. -

Tomcat 5.5.23 undeploy file locking problem

2007-05-21 Thread Jiang, Jane (NIH/NCI) [C]
Hi, I am having problem undeploying my web application. I added antiJARLocking=true to the context.xml file and found 5 jar files still left in the web-inf/lib directory. Then I added antiResourceLocking=true, now I have one jar file, aopalliance-1.0.jar, left after I undeployed the

RE: Encoding in Tomcat 6

2007-05-21 Thread Fargusson.Alan
Is it valid to say charset=UTF-8? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 7:51 AM To: users@tomcat.apache.org Subject: Encoding in Tomcat 6 Hi all, I noticed some encoding problems inside servlets, when switching from Tomcat

Tomcat 6 configure for php 5.2.2.

2007-05-21 Thread Pierluigi Fabbris
Hi, I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? Hoping in a reply. Sincerally yours, Fabbris Pierluigi - To start a new topic,

Re: Connection:close request returns a response without any content-length or Transfer-Encoding: chunked

2007-05-21 Thread Eric Deshayes
Hi Johnny, I am just retrieving the default root page of tomcat: GET / HTTP/1.1 I understand what you mean, but that's the default tomcat page. So, I do not really see what's difficult in getting the content-length. I am not using any servlet... It's when I am accessing http://127.0.0.1:8080 .

RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Try creating your List like this and see what happens. Listint alist =new ArrayListint(); -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 2:29 AM To: Tomcat Users List Subject: Re: hi,wired problem? add 0 into alist but get 1 as a result! thanks i

Configure php 5.2.2. on tomcat 6.0

2007-05-21 Thread Pierluigi Fabbris
Hi I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? Hoping in a reply. Sincerally yours, Fabbris Pierluigi - To start a new topic,

Re: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Rashmi Rubdi
On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote: Hello, i am using Tomcat 5.5.23. When i request a simple jsp-file my file-monitor shows me, that tomcat is searching from root. This is a problem for website with a lot of traffic. A screenshot is attached to this mail. All

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Felix Schumacher
Am Montag, den 21.05.2007, 13:54 +0800 schrieb Peter: hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a list and get 1 as a result. simple code for testing! List alist =new ArrayList(); alist.add(0);

Configure Tomcat 6 for php 5.2.2

2007-05-21 Thread Pierluigi Fabbris
Hi, I've problem to configuring Tomcat 6. The problem is: I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? Hoping in a reply. Sincerally yours, Fabbris Pierluigi

Re: Configure php 5.2.2. on tomcat 6.0

2007-05-21 Thread Pid
Pierluigi Fabbris wrote: Hi I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? Hoping in a reply. Sincerally yours, Fabbris Pierluigi If you want to use PHP I'd recommend using the Apache HTTPD server,

Re: Configure php 5.2.2. on tomcat 6.0

2007-05-21 Thread Rashmi Rubdi
On 5/21/07, Pierluigi Fabbris [EMAIL PROTECTED] wrote: Hi I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? As far as I know, Tomcat does not directly support PHP. Try http://httpd.apache.org/

Re: Configure php 5.2.2. on tomcat 6.0

2007-05-21 Thread Rashmi Rubdi
Sorry p I didn't see your reply before hitting the Send button. -Rashmi On 5/21/07, Pid [EMAIL PROTECTED] wrote: Pierluigi Fabbris wrote: Hi I use saxon b, java and php how can I configure the last one? In Tomcat 5 and php 5.0 is possible. Is possible in Tomcat 6 and php 5.2.2, too? Hoping

Tomcat 5.5 destroys $TOMCAT_HOME/Catalina/[host]/[app].xml on reload

2007-05-21 Thread Mark H. Wood
I'm trying to maintain a testing environment for several developers who either upload .war files directly or ship them to me for installation. These applications need a context parameter defined as a path on the server. Rather than have the developers hassle with swapping paths between

AW: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Thomas Hoffmann \(Speed4Trade\)
Hi, my contect-configuratation looks like: Context docBase=D:\inetpub\wwwroot\tyres4trade path= privileged=true workdir= reloadable=fals / when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Mike Peremsky
I tried the modification you suggested (with the correct method name on the end) but still with the same results. I also printed out a debug message just to see what class loader was being used (not that I know what to do with it :-P ) log.debug(this class loader: +

Session IDs XMLHttpRequests

2007-05-21 Thread Williams, Allen
I had posted this question to four different Java fora over four days and gotten zero replies, when it occurred to me how stupid not to ask the community that wrote Tomcat. I was just going to post this, which is a summary that describes what I've found so far: -- QUOTE -- In the interest of

Re: Configure php 5.2.2. on tomcat 6.0

2007-05-21 Thread Pid
Rashmi Rubdi wrote: Sorry p I didn't see your reply before hitting the Send button. no worries. (OP has emailed 3x in 2 hours, which is a tad impatient given that it's after work hours in Europe now.) As an additional answer to the persistent OP: You can integrate Apache and Tomcat using

Re: Session IDs XMLHttpRequests

2007-05-21 Thread David Smith
I'd say if there are differences, it's in the javascript of the client. Have you used any sort of monitoring tool to find out if XMLHttpRequest is sending the session cookie? Have you tried encoding the JSESSIONID in the XMLHttpRequest via javascript? --David Williams, Allen wrote: I had

RE: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Propes, Barry L
your docBase shouldn't include the absolute path should it? Just the relative path? Besides, that looks totally configured for running files on IIS' server, not (thru) Tomcat's servlet engine. -Original Message- From: Thomas Hoffmann (Speed4Trade) [mailto:[EMAIL PROTECTED] Sent:

RE: Session IDs XMLHttpRequests

2007-05-21 Thread Williams, Allen
I'd say if there are differences, it's in the javascript of the client. Yeah, the problem is that the guts of the client JS are pretty opaque. Have you used any sort of monitoring tool to find out if XMLHttpRequest is sending the session cookie? No, but I was going to modify the

AW: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Thomas Hoffmann \(Speed4Trade\)
Hi, Tomcat is running with iis, thats right. Tomcat is installed on c:\Programme\ websites are under d:\inetpub thats why i cant use relative paths. -Ursprüngliche Nachricht- Von: Propes, Barry L [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 20:56 An: Tomcat Users List

Re: Tomcat uriworkermap exclusions issue

2007-05-21 Thread Mladen Turk
oblongman wrote: Hi, I am having problems implementing my uriworkermap file. I want to exclude all '.js' files from hitting tomcat, i do this with the line !/*.js=tomcat But i do want to send all '.js' files that live under dwr/ to tomcat so i use /dwr/*=tomcat The issue is that tomcat

Re: Session IDs XMLHttpRequests

2007-05-21 Thread Frank W. Zammetti
I can say with 100% certainty that a servlet invoked with XMLHttpRequest **DOES** have the same access to server-side objects as a non-AJAX request. I say this based on two applications in production that do this all day long, one Struts-based, one not. I also say it based on a number of other

RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Try creating your List like this and see what happens. Listint alist =new ArrayListint(); -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 2:29 AM To: Tomcat Users List Subject: Re: hi,wired problem? add 0 into alist but get 1 as a result! thanks i

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Leon Rosenberg
On 5/21/07, David Short [EMAIL PROTECTED] wrote: Try creating your List like this and see what happens. Listint alist =new ArrayListint(); and you get this compiled? -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 2:29 AM To: Tomcat Users List

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Leon Rosenberg
On 5/21/07, Felix Schumacher [EMAIL PROTECTED] wrote: Have you tried to put an Object into ArrayList? Like alist.add(Integer.valueOf(0)); System.out.println((Integer)alist.get(0)); I don't think it is possible to store an int into an ArrayList. Autoboxing is the magic word here. The compiler

Re: Session IDs XMLHttpRequests

2007-05-21 Thread David Wall
Frank W. Zammetti wrote: I can say with 100% certainty that a servlet invoked with XMLHttpRequest **DOES** have the same access to server-side objects as a non-AJAX request. I say this based on two applications in production that do this all day long, one Struts-based, one not. I also say it

RE: Session IDs XMLHttpRequests

2007-05-21 Thread Williams, Allen
Thanks, Dave Frank. I've followed both your suggestions. The very first lines in the servlet print out the various parameter, attributes, cookies. Here's what I get: -- QUOTE -- ** doPost entering May 21 16:16:23: Session Attributes Session Attributes May 21 16:16:23: Session

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Rainer Jung
Thanks. I saw that in catalina.properties. If I fill those values in (for the appropriate classloader) I can duplicate the behavior of the older systems. That will help in migrating large installations that are running tomcat 5 to tomcat 6. Is there a need to move to the newer common

Re: Encoding in Tomcat 6

2007-05-21 Thread hkml
Markus Schönhaber wrote: Works fine for me. Well, that is really a surprise for me. I tried this in 3 different operating systems and it was consequently wrong. You do call response#setContentType before response#getWriter, don't you? There's no filter changing things? Well, the code is

Re: Encoding in Tomcat 6

2007-05-21 Thread Georg Sauer-Limbach
Hi, the question is: How do you create the output of the servlet, that is, with which Writer or OutputStream. If you do this: public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException { response.setCharacterEncoding( UTF-8 );

Re: Session IDs XMLHttpRequests

2007-05-21 Thread Pid
Williams, Allen wrote: Thanks, Dave Frank. I've followed both your suggestions. The very first lines in the servlet print out the various parameter, attributes, cookies. Here's what I get: Have you used a standard JS framework of some sort, or is it in-house code? Testing with Firebug

RE: mod_jk problem

2007-05-21 Thread Yifan (Eric) Jiang
Hi Rainer, Thanks for all your helps. I know that is a very outdated version of httpd, But since it is in a production server, and the server for the authentication of the whole university, so it is unlikely, or it is impossible for me to do any big change on it. And it is weird, because it is

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Pid
David Short wrote: Try creating your List like this and see what happens. Listint alist =new ArrayListint(); Won't work, you can't use primitives, instead do: ListInteger alist = new ArrayListInteger(); -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: Monday, May

Re: Encoding in Tomcat 6

2007-05-21 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: Markus Schönhaber wrote: Works fine for me. Well, that is really a surprise for me. I tried this in 3 different operating systems and it was consequently wrong. That, in turn, doesn't surprise me, since... You do call response#setContentType before

RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Yes. It declares that the List is going to hold integers. See http://www.onjava.com/lpt/a/6014. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 1:10 PM To: Tomcat Users List Subject: Re: hi,wired problem? add 0 into alist but get 1 as a

Re: mod_jk problem

2007-05-21 Thread Rainer Jung
You really should totally drop the idea of rotating an open logfile from the outside. The file descriptor is open in the writing process and it will proceed to use the file descriptor, which will point to the rotated file and after compression will be deleted. Really a very bad idea. Usually

RE: mod_jk problem

2007-05-21 Thread Yifan (Eric) Jiang
Hi Rainer, Yeah, I've look at the link that you sent to me in the last post. But again, it is in a production server; I don't really have the authority to make this change. According to your email, I've realized it is a very bad idea to this kind of log rotating, so I will suggest the system

Re: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Martin Gainty
Thomas-- I see this thread from http://forum.java.sun.com/thread.jspa?threadID=571322messageID=2827943 here's what sonny says to do...keep in mind this is a TOMCAT group and not IIS group You could use the free installer, it seems to work for some people. heres the link...

Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix, Felix Schumacher wrote: Am Montag, den 21.05.2007, 13:54 +0800 schrieb Peter: hi all, I have come into a very wired problem. here it is. my project using JBuilder 2006 and tomcat 5.5.20. when i put a 0 into a list and get 1 as a

Re: [OT] hi, [weird] problem? add 0 into [a list] but get 1 as a result!

2007-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter wrote: I have come into a very [weird] problem. [snip] List alist =new ArrayList(); alist.add(0); put 0 into it alist.get(0); get 1 as result. it occurs when i using JBuilder2006 to complie it and run under tomcat 5.5.20.

Re: AW: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, Thomas Hoffmann (Speed4Trade) wrote: when i request e.g. test.jsp from browser my file-monitor show the following harddisc-accesses: d:\ d:\inetpub d:\inetpub\wwwroot d:\inetpub\wwwroot\tyres4trade

Re: Encoding in Tomcat 6

2007-05-21 Thread hkml
Markus Schönhaber wrote: ... ServletOutputStream is suitable for writing binary data in the response as the docs say. If you want to transmit textual data, use HttpServletResponse#getWriter() (see my question above). yes, this really is a point, Georg's answer already pointed me to the right

Re: Encoding in Tomcat 6

2007-05-21 Thread hkml
Georg Sauer-Limbach wrote: the question is: How do you create the output of the servlet, that is, with which Writer or OutputStream. yes you're right: I simply used the output stream. But if you just obtain the output byte stream of the servlet, ie by calling OutputStream outputStream =

Finding isapi_redirector2.dll

2007-05-21 Thread Al Sparks
I'm new to Tomcat. I successfully installed version 6.0 on a Windows 2000 server also running IIS. Now I'm trying to install the Jakarta redirector plugin. Everything I've read says that I'm supposed to download isapi_redirector2.dll, or build it. I've been trying to find a download, and can't

Re: Session IDs XMLHttpRequests

2007-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Williams, Allen wrote: 2. What is the difference in the servlet invocation between a regular URL invocation an XMLHttpInvocation? I'll be there isn't a difference, actually. I had a problem in the past where something went wrong and I

AW: Finding isapi_redirector2.dll

2007-05-21 Thread speed4trade
Hi, redirector2 is not developed any more as far as I know. Look at http://tomcat.apache.org/download-connectors.cgi There is JK1.2 to download for several plattforms. -Ursprüngliche Nachricht- Von: Al Sparks [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Mai 2007 00:25 An: Tomcat

Re: AW: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Tim Funk
I don't think tomcat(explicitly) is doing this. It could be any of the following: 1) When the file is found a full path check is done to prevent sneaky people from trying ../../ tricks - so I you might see the JVM and how it implments File.getAbsolutePath) on a file 2) It could be IIS doing

  1   2   >