Re: Encoding in Tomcat 6

2007-05-22 Thread hkml
Georg Sauer-Limbach wrote: I do not think it is very obvious, that the response class is writing the characters using the platform's default encoding in this case Yes. And this is true for many, many places in the Java library. Always watch out if you see some String being processed using a

Re: JDBC

2007-05-22 Thread ben short
Have a look here.. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html On 5/22/07, Mohammed Zabin [EMAIL PROTECTED] wrote: Hi All Am new on this, i want to know how to configure Database Connection Pooling to use Oracle Database?? anyhelp will be appreciated. Jotnarta

Re: Encoding in Tomcat 6

2007-05-22 Thread uzi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i liked this article regarding encoding: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html i think, it sais all one have to know... (at least in the context of web apps) uzi [EMAIL PROTECTED] wrote: Georg Sauer-Limbach

Re: Encoding in Tomcat 6

2007-05-22 Thread hkml
uzi wrote: i liked this article regarding encoding: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html Thanks for the hint. Looks nice. Cheers, Heinz - To start a new topic, e-mail:

Re: JDBC

2007-05-22 Thread Zdeněk Vráblík
Hi, here is example of Resource configration. Put it in context.xml file. Resource name=Name auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory user=oraUserName password=oraUserPass

Re: JDBC

2007-05-22 Thread Mohammed Zabin
Thank you buddy, I have another confusing question for me, I have two web.xml files, one in conf/web.xml and one in my application under WEB-INF, When configuring connection pool, which one shall i use? or shall i put the configuration parameters in both of them?? Thank you On 5/22/07, ben

Re: JDBC

2007-05-22 Thread Mohammed Zabin
with your example, i don't have to put extra parameters in web.xml or servlet.xml? just in context.xml??? On 5/22/07, Zdeněk Vráblík [EMAIL PROTECTED] wrote: Hi, here is example of Resource configration. Put it in context.xml file. Resource name=Name auth=Container

Re: JDBC

2007-05-22 Thread Foo Shyn
Not both of them. It's context.xml if u're using Tomcat 5.0 or above, or server.xml if u're using Tomcat 4.1 or below, which is located in the conf folder in Tomcat root path. check this link out : http://forums.oracle.com/forums/thread.jspa?messageID=1489914 Hope that helps. FooShyn

Re: JDBC

2007-05-22 Thread Mohammed Zabin
Thank you Foo, I but the following in the context.xml: *Resource name=Name auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory user=hr password=hr driverClassName=oracle.jdbc.driver.OracleDriver

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: *Resource name=Name auth=Container

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 to

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:

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 fact

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

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

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* *Resource name=jbdc/myoracledb auth=Container

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

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.

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 Connector Does removing this fix the problem? Mark - To start a new topic, e-mail: users@tomcat.apache.org To

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

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:

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

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 Resource / 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

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: 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 earlier post,

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: 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 users@tomcat.apache.org Sent: Tuesday, May 22, 2007 2:12 PM Subject: Re: BootStrap - Is in redundant? It opens up a

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

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: target name=deploy2 description=Deploy web application from existing war file deploy url=http://localhost:8080/manager; username=tomcat

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

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)

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.

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

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

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: target name=deploy2

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

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

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: 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: [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 guaranteed to be

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

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

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 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 (Pippo

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 MAY

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

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 =

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 somethinkg

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

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 users@tomcat.apache.org Sent: Tuesday, May 22, 2007 1:44 PM Subject: Re: Action methods stopped

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

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

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

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

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

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

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

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

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

RE: JDBC

2007-05-22 Thread Propes, Barry L
Mohammed, for driver value, try the following: valueoracle.jdbc.OracleDriver/value -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

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

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

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

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

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 == si) || (StrBool

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.

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

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.

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

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

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 -- http://tomcat.apache.org/migration.html HTH, -- Hassan Schroeder

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

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

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 the context

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

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?

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

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

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

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

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

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

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. However,

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

Re: servlet url-pattern and subdirectories problem

2007-05-22 Thread Georg Sauer-Limbach
[EMAIL PROTECTED] wrote: servlet-mapping servlet-namemainapp/servlet-name url-pattern*.do/url-pattern /servlet-mapping servlet-mapping servlet-namemainapp/servlet-name url-pattern/subapp/*/url-pattern /servlet-mapping This allows me to route

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

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

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

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

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

2007-05-22 Thread Len Popp
Set an empty pathname in the Manager in the Context. (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

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've

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 list

  1   2   >