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

2007-05-22 Thread Mike Peremsky
Well, I guess I really am starting to learn a bit more about Tomcat. It is possible to remove the singleton loader and put it back in the application code. I was just trying to do something slick with a single loader. But your answer and the previous one have shown me the error of my way. now I

Problem with mod_jk-apache-2.2.4.so

2007-05-22 Thread Pierluigi Fabbris
I've problem to use Apache 2.2.4 and Tomcat 6 together. I install Apache 2.2.4 and Tomcat 6. I put mod_jk-apache-2.2.4.so in the directory modules in Apache and configure in http.conf di apache in this way: LoadModule jk_module modules/mod_jk-apache-2.2.4.so Until this no problem Apache starts.

tomcat 6.0.13 w/replication

2007-05-22 Thread tommylwl
Hi, I would like to know can tomcat 6 suuport **application scope** replication? I have already setup the testing environemnt that support session-scope replication. If it cannot, is there any work around for this? This is because i am writing a high volume transactions web site, and i want to pu

RE: Tomcat admin,Manager app setup

2007-05-22 Thread Caldarale, Charles R
> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat admin,Manager app setup > > I haven't tried the 5.5.x Admin app on Tomcat 6.0.x , but it probably > (just a guess) might be compatible. It's not compatible, and at the moment there is no admin app for Tomcat 6. Check the dev l

Re: BootStrap - Is in redundant?

2007-05-22 Thread Bill Barker
"Johnny Kewl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Please bear with me while I study and learn Tomcats src code... > >My environment is a little different to the ant build, in that I am running >the source directly from the netbeans IDE. It >works by the way and once >I'

Re: How to force tomcat to not write or load .ser files?

2007-05-22 Thread Len Popp
Set an empty "pathname" in the in the . (I haven't tried this, but it's documented for 5.5 and 6.0.) -- Len On 5/22/07, SiSi'mon <[EMAIL PROTECTED]> wrote: Is there a configuration somewhere that I can set to force tomcat to not write or read .ser files (under work/). thanks Si'mon -- View t

Re: Tomcat admin,Manager app setup

2007-05-22 Thread Rashmi Rubdi
On 5/22/07, Raja <[EMAIL PROTECTED]> wrote: Hi , We are trying to setup multiple instanace of tomcat running on the same server. we can able to do it successfully. We need to run the Manager,Admin applications also on each instance. Version Details : Tomcat 6.0.10 JDK Version : 1.5.09 1 .F

Tomcat admin,Manager app setup

2007-05-22 Thread Raja
Hi , We are trying to setup multiple instanace of tomcat running on the same server. we can able to do it successfully. We need to run the Manager,Admin applications also on each instance. Version Details : Tomcat 6.0.10 JDK Version : 1.5.09 1 .From the docs, i understand that, by default th

How to force tomcat to not write or load .ser files?

2007-05-22 Thread SiSi'mon
Is there a configuration somewhere that I can set to force tomcat to not write or read .ser files (under work/). thanks Si'mon -- View this message in context: http://www.nabble.com/How-to-force-tomcat-to-not-write-or-load-.ser-files--tf3801114.html#a10754663 Sent from the Tomcat - User mailin

Re: Session IDs & XMLHttpRequests

2007-05-22 Thread Pid
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, ... Firebug must just be showing you selected pieces of information. Web developer is showing you the browser's view of the world, which includes the extra metadata. Update your copy of Firebug if it's not clear

Re: servlet url-pattern and subdirectories problem

2007-05-22 Thread Georg Sauer-Limbach
[EMAIL PROTECTED] wrote: mainapp *.do mainapp /subapp/* This allows me to route ./mainapp/subapp/myaction.do correctly, but I can't access ./mainapp/subapp/images/xyz.gif. What I'd really like to do > is have the last url-pattern to be "/subap

Re: Session IDs & XMLHttpRequests

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Williams, Allen wrote: > Now, for the question: how is this ancillary information stored? The cookie contains all this information. When the cookie is transmitted to the browser, it contains all this information. Check it using an HTTP sniffer

servlet url-pattern and subdirectories problem

2007-05-22 Thread dhay
Hi, We're using Spring-MVC and we're trying to set up 2 "apps" in a single web app... Our main app is under .../mainapp url, and then we have another series of pages that can be accessed via ./mainapp/subapp. The subapp files are found in a "subapp" subdirectory in the mainapp webapp. Howeve

Re: R: "if" don't work?!?!?

2007-05-22 Thread David Delbecq
Nope, this only works if the string is a variant of True, not on the 1, yes, si cases :) Also, only value supposed to be sent by browser is the value="" field of input checkbox. And html 4 specs states that for checkboxes and radio boxes this value *must* be present in html :) Yeah, i too tho

Re: Session IDs & XMLHttpRequests [SOLVED]

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Just adding [SOLVED] to the subject for the benefit of those searching the archives. To recap, the cookie path was wrong. - -chris Williams, Allen wrote: > OK, I have FOUND the problem, and for the continued edification of the > community wi

comet read event

2007-05-22 Thread Peter Warren
My BEGIN block in my comet servlet now looks like the code below (added a while loop to read until the buffer is empty). Is that what you had in mind? The buffer in the BEGIN event only contains the client's first message. Am I not emptying the buffer correctly? Although, I wouldn't expect the

Re: Session IDs & XMLHttpRequests

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Williams, Allen wrote: > Yeah, I'm already sending some stuff over by URL anyway, but there seems > to be some concern floating around the net regarding session hijacking > if the session ID is readily available. However, although I wouldn't >

Re: [OT] "if" don't work?!?!?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: [OT] "if" don't work?!?!? >> >> String Pippo = "on"; >> >> if(Pippo == "on") >>System.err.println("Pippo is on, man!"); > > Again, that's n

Re: TomCat, Reverse Proxy & Business Objects...

2007-05-22 Thread Filip Hanik - Dev Lists
proxyName is only for the Host name, which can also be accomplished by adding ProxyPreserveHost On in apache, and hence be able to support more than just one URL. So remove proxyName from the connector and added the above statement to your httpd config in terms of what you are doing, that's

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
OK, I have FOUND the problem, and for the continued edification of the community will share my results, as well as ask one more question that hopefully some of you gurus can answer. Yes, it had to do with the path. When I went back and associated this servlet with a valid path "used" path but sti

Re: How to programatically undeploy an application (war)?

2007-05-22 Thread Johnny Kewl
Interesting question Dont think you can tell Tomcat to throw it out... but here are some idea's... + Have a look at this embedding article... maybe that deployer will show all exceptions and you can filter them (I dont know) then before tomcat is started you could let them run an in

TomCat, Reverse Proxy & Business Objects...

2007-05-22 Thread Gareth Eason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to get Business Objects working behind an Apache reverse proxy server. The apache server takes care of converting to and from HTTP <--> HTTPS and provides a nice consistent URL for our clients. From the outs

Tomcat 6 run really slow with ssl

2007-05-22 Thread Hoa Doan
For some reason my page are loading really slow when SSL is enabled. But this only happens on pages that are outputting a lot of records from the SQL database. I am using org.apache.coyote.ajp.AjpAprProtocol for the ssl connection. - Boardwalk for $500?

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
Yeah, I'm already sending some stuff over by URL anyway, but there seems to be some concern floating around the net regarding session hijacking if the session ID is readily available. However, although I wouldn't pretend to be an expert. Anyway, I took Christopher's advice, and deleted all the co

RE: [OT] "if" don't work?!?!?

2007-05-22 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] "if" don't work?!?!? > > String Pippo = "on"; > > if(Pippo == "on") >System.err.println("Pippo is on, man!"); Again, that's not what the OP coded; Pippo was retrieved from the request, not set to a constant. Changing

Re: "if" don't work?!?!?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bryce, Bryce Burgess (bburgess) wrote: > Would this work for you? > ( http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#toLowerCase() > ) String.equalsIgnoreCase is much better. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.

Re: R: "if" don't work?!?!?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Massimiliano, Massimiliano PASQUALONI wrote: String Paula = "Brilliant"; You can replace all the code below with this gem: boolean myBoolean = Boolean.valueOf(yourString).booleanValue(); Don't try to re-invent the wheel. Most of the things like th

Re: [OT] "if" don't work?!?!?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Massimiliano PASQUALONI >> [mailto:[EMAIL PROTECTED] >> Subject: "if" don't work?!?!? >> >>if (Pippo == "on") { > > Guaranteed to be false. Not always: String Pippo = "on"; if(Pippo == "on") Sys

Re: FindClass - Bootstrap failing

2007-05-22 Thread Hassan Schroeder
On 5/22/07, John Cabral <[EMAIL PROTECTED]> wrote: apache-tomcat-6.0.13 Windows installer. I'm running on Windows XP Professional, version 2002. The java version is 1.4.2_14. TC6 requires Java 5 -- HTH, -- Hassan Schroeder

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

2007-05-22 Thread David Delbecq
THAT is really *not* recommended. Short answer, you go the wrong way in your design. And adding your web-inf/classes to your common classloader will completly break the tomcat behaviour (presence of same classes at 2 levels, some instances are done at one level, some other at another level, and y

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

2007-05-22 Thread Filip Hanik - Dev Lists
well there you go, that wont work, http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html take a look at the hierarchy of the tomcat class loaders, and a class can only load up in the tree, not down. so mvpservlet is unable to load your web-inf/classes directory from your description,

How to programatically undeploy an application (war)?

2007-05-22 Thread SiSi'mon
When tomcat is starting up I want to undeploy a war if there there is any exception of any kind thrown in the war. For example if there is a hibernate exception, spring exception or an exception I throw, then I want to not continue and either shut down tomcat (System.exit) or undeploy the war. I

FindClass - Bootstrap failing

2007-05-22 Thread John Cabral
Hello, I'm running into a problem trying to launch tomcat. I used the apache-tomcat-6.0.13 Windows installer. When I run the tomcat6.exe (or use the quick launch start service), the window flashes then closes. The following error message is showing up in the jakarta-service log. [2007-05-22 1

Re: comet read event

2007-05-22 Thread Filip Hanik - Dev Lists
it could be because the data from the request already came in with the request. when the BEGIN happens, perform the actions as if there was a READ as well, ie, empty out the buffer. Filip Peter Warren wrote: The following client code generates a comet BEGIN event on the server but not a subse

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

2007-05-22 Thread Mike Peremsky
The class that is trying to load the singleton (SingletonLoader) is in a common JAR located at /common/lib/mvpservlet.jar The Singletons that I am trying to load can be from ANY app and are in the WEB-INF/classes folder of whichever application is trying to use the SingletonLoader. Fil

Re: R: "if" don't work?!?!?

2007-05-22 Thread David Delbecq
Massimiliano PASQUALONI a écrit : > public boolean StringToBoolean(String StrBool) >{ > boolean convertito=false; > > if ((StrBool == "1") || (StrBool == "On") || (StrBool == > "on") || (StrBool == "Yes") || (StrBool == "yes") || (StrBool == "Si") || > (StrBool =

Re: Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread Johnny Kewl
Yes, you right... defaultServlet definitely supports it... in fact here is the section in the code thats relevent long headerValue = request.getDateHeader("If-Modified-Since"); long lastModified = resourceAttributes.getLastModified(); if (headerValue != -1) {

comet read event

2007-05-22 Thread Peter Warren
The following client code generates a comet BEGIN event on the server but not a subsequent READ event, as I was expecting. How come? Is my code wrong? Are my expectations wrong? See sequence of events commented in code below. // client test method that sends messages to server and listens

Re: [solved] Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread [EMAIL PROTECTED]
Sorry to your all.. Tomcat does do correct caching.. The way that firebug displays this is a bit strange.. My fault [EMAIL PROTECTED] schreef: Well we are talking about static js files that do not change often. If was thinking about writing my own filter that created the correect header fields.

RE: Oracle 10g with Tomcat 6

2007-05-22 Thread Propes, Barry L
Mohammed, Maybe on import try the following: <%@ page import="javax.naming.Context,javax.naming.InitialContext,javax.naming.NamingException,javax.sql.DataSource" %> even though what you have should cover it, theoretically. And regarding below, YES!!! C:\tomcat\common\lib\ojdbc14_g.jar --

RE: [SOLVED] Tomcat 5.5, IPv6, APR, HTTP and HTTPS

2007-05-22 Thread Lakshmi Venkataraman
Correction to Linux section. -Original Message- From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 8:59 AM To: Tomcat Users List Subject: RE:[SOLVED] Tomcat 5.5, IPv6, APR, HTTP and HTTPS My application has to work on both Unix and Windows over both IPv4 an

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

2007-05-22 Thread David Short
Do a clean and build in your IDE. Run the test case in the IDE if possible. -Original Message- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 2:35 AM To: Tomcat Users List Subject: [Norton AntiSpam] Re: hi,wired problem? add 0 into alist but get 1 as a result!

RE: JDBC

2007-05-22 Thread Propes, Barry L
Mohammed, for driver value, try the following: oracle.jdbc.OracleDriver -Original Message- From: Mohammed Zabin [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 4:33 AM To: Tomcat Users List Subject: Re: JDBC Thank you Foo for your patience with me, I did imported all the needed c

RE: Finding isapi_redirector2.dll

2007-05-22 Thread Propes, Barry L
try this, Al. I think it may have it. http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html -Original Message- From: Al Sparks [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 5:25 PM To: Tomcat Users List Subject: Finding isapi_redirector2.dll I'm new to Tomcat. I successfully

RE:[SOLVED] Tomcat 5.5, IPv6, APR, HTTP and HTTPS

2007-05-22 Thread Lakshmi Venkataraman
My application has to work on both Unix and Windows over both IPv4 and IPv6 transport using Http or Https. I am documenting my experience for a "newbie". Here is a summary of what works on what platform. Windows: (See apache bug 41973 for additional comments) tcnative-1.1.8-ipv4.dll works on

AW: AW: AW: logging log4j of my application

2007-05-22 Thread Marc Rameder
Sorry for spaming but solution is found! Jar file was corrupted. Thanks @ all marc -Ursprüngliche Nachricht- Von: Marc Rameder [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Mai 2007 16:38 An: 'Tomcat Users List' Betreff: AW: AW: AW: logging log4j of my application First of all than

AW: AW: AW: logging log4j of my application

2007-05-22 Thread Marc Rameder
First of all thanks for your help!!! But I didn't find a solution until now. After revising the source code if found the main problem. I am using commons logging and not log4j. By using log4j all works fine. import org.apache.log4j.Logger; import org.apache.log4j.BasicConfigurator; private static

JNDI Connector Problem

2007-05-22 Thread John Morris
For the past few weeks I have attempted to get the Shibboleth Internet2 Middleware servlet running under Tomcat. I have been able to get the servelet to run and respond however I am stuck on the very last part. That is passing the username and password attributes from my login form (login

RE: "if" don't work?!?!?

2007-05-22 Thread Bryce Burgess \(bburgess\)
Would this work for you? ( http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#toLowerCase() ) Javabean: public boolean StringToBoolean(String StrBool) { boolean convertito=false; // since the default is false, only need to check the true... // If any o

Re: R: "if" don't work?!?!?

2007-05-22 Thread Mike Peremsky
As previously mentioned your examples should work as modified below: String Pippo = request.getParameter("abilitato"); if (Pippo.equals("on")) { } Pippo = request.getParameter("abilitato"); Pluto = request.getParameter("abilitato

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

2007-05-22 Thread Filip Hanik - Dev Lists
that work around is probably not what you want. You've just disabled the ability to reload your app correctly. Try using another classloader, maybe the Thread.currentThread().getContextClassLoader() where are you storing the class that is trying to load the singleton? it should be in your webap

Problem debugging tomcat 5.5

2007-05-22 Thread Raymond Gupta
Hi all, I am trying to debug tomcat 5.5 using Eclipse + the Sysdeo plugin. I can debug my webapps just fine, however, when trying to look at the tomcat sources on the stack, I am running into issues. Here is what I have done so far (Windows XP SP2) - Downloaded Tomcat 5.5 sources - Downloaded An

R: R: "if" don't work?!?!?

2007-05-22 Thread Massimiliano PASQUALONI
No, I don't have set any value ont the checkbox, is a boolean choise, I use the default value. I think i've fixed my page whit the equals method... I'm sorry for the nuisance, heartfelt thanks to every Tomcat Users, bye! Massimiliano -Messaggio originale- Da: Edoardo Panfili [mailt

Re: Action methods stopped working

2007-05-22 Thread Michal Glowacki
No... I forgot to add that the problem is only in IE, anyway I've no validation or javascript errors. Michal - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, May 22, 2007 1:44 PM Subject: Re: Action methods stopped working > Michal Glo

R: "if" don't work?!?!?

2007-05-22 Thread Massimiliano PASQUALONI
counter-order!!! The equals method don't work if I put the request in his parameter, but if a read the request and I set a String, if i put this string in the parameters, it work! -Messaggio originale- Da: Propes, Barry L [mailto:[EMAIL PROTECTED] Inviato: martedì 22 maggio 2007 17

Re: R: "if" don't work?!?!?

2007-05-22 Thread Edoardo Panfili
Massimiliano PASQUALONI ha scritto: No, don't work! Im try a simple function in my javabean that "convert" from string to boolean: JSP: String Prova = request.getParameter("abilitato"); // where abilitato is a checkbox in a form can you post the HTML fragment of the form? Do you have somethin

R: "if" don't work?!?!?

2007-05-22 Thread Massimiliano PASQUALONI
ya -Messaggio originale- Da: Propes, Barry L [mailto:[EMAIL PROTECTED] Inviato: martedì 22 maggio 2007 17.04 A: Tomcat Users List Oggetto: RE: "if" don't work?!?!? if (Pippo.equals(Pluto)) maybe? -Original Message- From: Massimiliano PASQUALONI [mailto:[EMAIL PROTECTED] Sent:

RE: "if" don't work?!?!?

2007-05-22 Thread Propes, Barry L
if (Pippo.equals(Pluto)) maybe? -Original Message- From: Massimiliano PASQUALONI [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 9:40 AM To: 'Tomcat Users List' Subject: "if" don't work?!?!? Hi guy! Wat's happen?? If i read an checkrequest post String Pippo = request.getP

R: "if" don't work?!?!?

2007-05-22 Thread Massimiliano PASQUALONI
No, don't work! Im try a simple function in my javabean that "convert" from string to boolean: JSP: String Prova = request.getParameter("abilitato"); // where abilitato is a checkbox in a form Javabean: public boolean StringToBoolean(String StrBool) { boolean conve

RE: [OT] "if" don't work?!?!?

2007-05-22 Thread Caldarale, Charles R
> From: Jost Richstein [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] "if" don't work?!?!? > > No, that is not guaranteed to be false. > For example >Pippo.intern() == Pluto.intern() > should be true. The above certainly is correct, but is not what the OP coded. - Chuck THIS COMMUNICATION

Re: Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread [EMAIL PROTECTED]
Well we are talking about static js files that do not change often. If was thinking about writing my own filter that created the correect header fields... But i think it is really a responsibility of the application server to support client caching for static files.. It looks like tomcat does not

Re: [OT] "if" don't work?!?!?

2007-05-22 Thread Jost Richstein
No, that is not guaranteed to be false. For example Pippo.intern() == Pluto.intern() should be true. Caldarale, Charles R schrieb: From: Massimiliano PASQUALONI [mailto:[EMAIL PROTECTED] Subject: "if" don't work?!?!? if (Pippo == "on") { Guaranteed to be false. Pippo =

Re: OT: "if" don't work?!?!?

2007-05-22 Thread DJohnson
This is not really a Tomcat question, but a matter of Java language understanding. Comparators like ==, >, <=, etc. should only be used with java language primitive types, such as int, byte, boolean, and NOT with Objects, like String, as you are, UNLESS you actually wish to test whether the two

Re: "if" don't work?!?!?

2007-05-22 Thread David Delbecq
Basics of java programming: == operator compare objet instances, not their content. To check if 2 differences instance are the same, use the equals() method. Eg: if (Pippo.equals("on")) { ... } You should probably start by learning java language (J2SE) before you start learning java enterprise (J

Re: Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread Johnny Kewl
I just had an after thought... happens often ; ) I think because you using feed type technology the assumption is that is wot you really want, but if this js file never changes... then wot about trying normal caching constructs like please check the actual format... Cache-control: public,

RE: [OT] "if" don't work?!?!?

2007-05-22 Thread Caldarale, Charles R
> From: Massimiliano PASQUALONI > [mailto:[EMAIL PROTECTED] > Subject: "if" don't work?!?!? > >if (Pippo == "on") { Guaranteed to be false. > Pippo = request.getParameter("abilitato"); > Pluto = request.getParameter("abilitato"); > > the if (Pippo == Pluto ) don't work! Also

Re: "if" don't work?!?!?

2007-05-22 Thread Edoardo Panfili
Massimiliano PASQUALONI ha scritto: Hi guy! Wat's happen?? If i read an checkrequest post String Pippo = request.getParameter("abilitato"); out.print(Pippo); return me= on If I try to make a condition whit if: if (Pippo == "on") { }

Re: "if" don't work?!?!?

2007-05-22 Thread Jost Richstein
Have you tried if("on".equals(Pippo)) { } Massimiliano PASQUALONI schrieb: Hi guy! Wat's happen?? If i read an checkrequest post String Pippo = request.getParameter("abilitato"); out.print(Pippo); return me= on If I try to make a condition whit if: if (Pi

"if" don't work?!?!?

2007-05-22 Thread Massimiliano PASQUALONI
Hi guy! Wat's happen?? If i read an checkrequest post String Pippo = request.getParameter("abilitato"); out.print(Pippo); return me= on If I try to make a condition whit if: if (Pippo == "on") { } these don't work And is'nt the first

Re: Configure Tomcat 6 for php 5.2.2

2007-05-22 Thread Oliver Block
Hi, please refer to the documentation: http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html Don't forget to compile php as cgi. Regards, Oliver Am Montag, 21. Mai 2007 19:56 schrieb Pierluigi Fabbris: > Hi, > I've problem to configuring Tomcat 6. The problem is: > I use saxon b, java and

RE: how to deploy cgi files on tomcat

2007-05-22 Thread Caldarale, Charles R
> From: deepakthinks [mailto:[EMAIL PROTECTED] > Subject: how to deploy cgi files on tomcat > > i want to know how to execute cgi files on tomcat Is it too hard to read the doc? http://tomcat.apache.org/tomcat-5.5-doc/cgi-howto.html http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html - Chuc

Re: Session IDs & XMLHttpRequests

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allen, Williams, Allen wrote: > Will it work with POST as well as GET? Although I guess I'll soon find > out;-) It should work equally well with GET and POST. The browser should send cookies with every type of request (not just GET and POST). I str

Re: ant deployment

2007-05-22 Thread Zdeněk Vráblík
Hi, thanks for reply. It didn't help. I have Windows XP and ANT 1.6.5. I have changed directory separators from \ to /, but the error is same. Do I have to setup anything in Tomcat configuration to be able to deploy into subdirectory in webapps directory? This works fine: http://localhost:

Re: Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread Johnny Kewl
Hi... I dont know much about this, never had a chance to play with it... dont even know how much Tomcat does for you and how much is manual header manipulation. But just from below... there seems to be nothing in the browser response telling the server that it understands feed caching... ie one

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
Will it work with POST as well as GET? Although I guess I'll soon find out;-) Thanks, and Regards, Allen Williams [EMAIL PROTECTED] Office: (321)309-7931 Mobile: (321)258-1272 FAX: (321)727-9607 > -Original Message- > From: David Smith [mailto:[EMAIL PROTECTED]

RE: ant deployment

2007-05-22 Thread Jiang, Jane (NIH/NCI) [C]
I found that path to the war file can only be absolute path. -Original Message- From: Zdeněk Vráblík [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 9:22 AM To: Tomcat Users List Subject: ant deployment Hi all, I need keep directory structure and deploy application into Tomcat 5.

how to deploy cgi files on tomcat

2007-05-22 Thread deepakthinks
i want to know how to execute cgi files on tomcat -- View this message in context: http://www.nabble.com/how-to-deploy-cgi-files-on-tomcat-tf3796433.html#a10738182 Sent from the Tomcat - User mailing list archive at Nabble.com. --

Joakim T Monstad is out of the office.

2007-05-22 Thread JMonstad
I will be out of the office starting 05/22/2007 and will not return until 05/23/2007. I will respond to your message when I return, but can be reached at 952 836 4385 (send a txt if possible, since I won't be able to answer many calls)

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
Excellent! Thanks. I'm temporarily sidetracked for a couple of hours, but then will go back to work on this. Thanks, and Regards, Allen Williams [EMAIL PROTECTED] Office: (321)309-7931 Mobile: (321)258-1272 FAX: (321)727-9607 > -Original Message- > From: Frank

ant deployment

2007-05-22 Thread Zdeněk Vráblík
Hi all, I need keep directory structure and deploy application into Tomcat 5.5.23 into subdirectory. Is it possible with tomcat ant deployment? This failed: http://localhost:8080/manager"; username="tomcat" password="tomcat" path="/main/other-place" war="./myApp.war" update="true" /

Re: Session IDs & XMLHttpRequests

2007-05-22 Thread David Smith
As long as it's encoded on the url as shown in the example below (and defined in the servlet spec), tomcat will just pick it up and use it. No additional APIs required. --David Williams, Allen wrote: Thanks for the hint. I had come to the conclusion I was going to have to do something lik

Re: BootStrap - Is in redundant?

2007-05-22 Thread Johnny Kewl
Ha... thank u kind sir... I see it now, the mystery of StandardServer is unraveled ;) - Original Message - From: "Mark Deneen" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, May 22, 2007 2:12 PM Subject: Re: BootStrap - Is in redundant? It opens up a listening socket on

Re: JDBC

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, Pid wrote: > As the previous reply pointed out, your Resource is incorrectly named > 'Name' when it should be 'jdbc/myoracledb'. Unfortunately, someone gave him a bad example, so he didn't have a chance :( - -chris -BEGIN PGP SIGNATURE

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
I'll work on that today. > -Original Message- > From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Sent: Monday, May 21, 2007 5:32 PM > To: Tomcat Users List > Subject: Re: Session IDs & XMLHttpRequests > > On 5/21/07, Williams, Allen <[EMAIL PROTECTED]> wrote: > > > As I said in my ea

RE: Session IDs & XMLHttpRequests

2007-05-22 Thread Williams, Allen
Thanks for the hint. I had come to the conclusion I was going to have to do something like that. It is not a JS framework- it's Javascript & Java in a Tomcat container, all built in-house. Again, I looked at the XMLHttpRequest with Firebug, but saw no reference to the cookies. Once you get the

Re: Oracle 10g with Tomcat 6

2007-05-22 Thread David Smith
You are using an old syntax for defining resource parameters. Parameters of a resource are defined as attributes of the element since tomcat 5.5. See the following docs for the correct method: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html --David Mohammed Zabi

Re: Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread [EMAIL PROTECTED]
There is one typo: -- I have read this: http://localhost:8080/XDataSystem/standard/js/standard.js -- Must be replaces by: -- I have read this: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44 -- ( Sorry, Copy-Paste error ) [EMAIL PROTECTED] schreef: I am using Tomcat 5.5 toget

Tomcat and Static file Caching ( 304 headers )

2007-05-22 Thread [EMAIL PROTECTED]
I am using Tomcat 5.5 together with Eclipse 3.2.2 for development of a web application. But when i use FireBug in Firefox to track network traffic is see that tomcat never returns a 304 NOT MODIFIED header if a file is requested twice. For example when requesting a JavaScript file: http://localh

Re: BootStrap - Is in redundant?

2007-05-22 Thread Mark Deneen
It opens up a listening socket on the loopback address. The second process connects to this socket and sends a message telling tomcat to shut down. Mark On 5/22/07, Johnny Kewl <[EMAIL PROTECTED]> wrote: =Start Stop Mechanism= I see that START goes into a wait loop... and it will pop out of th

Re: Action methods stopped working

2007-05-22 Thread Mark Thomas
Michal Glowacki wrote: > I don't know what caused > the problem, I've only add an attribute URIEncoding="UTF-8" to Does removing this fix the problem? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe

BootStrap - Is in redundant?

2007-05-22 Thread Johnny Kewl
Please bear with me while I study and learn Tomcats src code... My environment is a little different to the ant build, in that I am running the source directly from the netbeans IDE. It works by the way and once I've figured it all out, I'll post the project to a site so others can do it too. T

Re: JDBC

2007-05-22 Thread Pid
It sounds like you need to read up on both the Servlet Spec and basic Tomcat configuration. There are plenty of tutorials to be found via basic Google searches. This list is usually more able/inclined to help people with problems, rather than basic tutorials. As the previous reply pointed o

Oracle 10g with Tomcat 6

2007-05-22 Thread Mohammed Zabin
Hi All I want to conigure DBCP to connect to Oracle 10g on my localhost on Tomcat6. I did the following error, I don't know how to solve it, is there is a third-party jar file that must be added to classpath??? *1. I put the following in server.xml* * factory org.apa

Re: JDBC

2007-05-22 Thread Mohammed Zabin
When searching on Tomcat documentation, i found that it uses both server.xmland web.xml, again, I got the same error, *org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/testDBCP.jsp at line 7 4: Context initContext = new InitialContext(); 5: Context envContext

Re: JDBC

2007-05-22 Thread Foo Shyn
Check out ur resource name, it is different from the one u use to get ur connection pooling. The resource name must be the same as your lookup name. HTH FooShyn Mohammed Zabin wrote: Thank you Foo for your patience with me, I did imported all the needed classes, but i got the following excepti

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

2007-05-22 Thread David Delbecq
En l'instant précis du 22/05/07 05:21, Peter s'exprimait en ces termes: > hi all; > only get problem when put 0 into the list, put 1 or any number is ok, put > new Integer(0) is ok as well; Ide not recompiling or tomcat not reloading class, while you think you are running the 0 case, you are in fac

Re: JDBC

2007-05-22 Thread Mohammed Zabin
Thank you Foo for your patience with me, I did imported all the needed classes, but i got the following exception: *exception * *org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/testDBCP.jsp at line 7 4: Context initContext = new InitialContext(); 5: Contex

Action methods stopped working

2007-05-22 Thread Michal Glowacki
Hi, I have a very big problem, that I can't solve myself. Recently, "action" methods from links and buttons has stopped working. And not only from one componenty family, but 2 (Sun Web UI and Ajax4JSF). I don't know what caused the problem, I've only add an attribute URIEncoding="UTF-8" t

Re: JDBC

2007-05-22 Thread Foo Shyn
The jsp doesn't import the class for Context and Initial Context. Put them in as how u inport the Datasource would do. HTH FooShyn Mohammed Zabin wrote: Thank you Foo, I but the following in the context.xml: ** ** and I have this jsp code: *<%@ page import="javax.sql.DataSource" %>* *<% C

Re: JDBC

2007-05-22 Thread Mohammed Zabin
Thank you Foo, I but the following in the context.xml: ** ** and I have this jsp code: *<%@ page import="javax.sql.DataSource" %>* *<% Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.look

  1   2   >