Round Robin

2007-08-16 Thread Dean Lonsdale
Hi all We are currently trying to setup load balancing in our environment and as after testing the Load Balancing it would appear to be working. I have run up two applications sessions, one of which went to the 'A' tomcat worker and the other to the 'C' tomcat worker. The status page suggests t

Re: utf-8 encoding problem

2007-08-16 Thread Joseph Shraibman
This is an old problem. See https://bugzilla.mozilla.org/show_bug.cgi?id=18643 https://bugzilla.mozilla.org/show_bug.cgi?id=7533 Firefox and MSIE use a magic _charset_ paramater, but I can't use it because if I call request.getParamater("_charset_") I can't set the encoding after that! Anyw

Re: Tomcat benchmark

2007-08-16 Thread bajistaman
Probably the best place to start is http://tomcat.apache.org/faq/performance.html -- View this message in context: http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12189509 Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: Tomcat and path with pound sign (#) -> ClassNotFoundException

2007-08-16 Thread Markus Schiegl
Hi (Len), got feedback from sun today and they confirmed our findings, i.e. it's a problem known for a long time. All efforts fixing this failed due to other incompatibilities, for example see sun-bug-ids 4273532 & 6243815 and their relatives. The proposed software workaround is using File.toURI(

Re: Round Robin

2007-08-16 Thread Filip Hanik - Dev Lists
if you want round robin, then set lbfactor to 1 for all your workers Filip Dean Lonsdale wrote: Hi all We are currently trying to setup load balancing in our environment and as after testing the Load Balancing it would appear to be working. I have run up two applications sessions, one of whi

Embedding XML documents as children of the context-param element

2007-08-16 Thread Robert Segal
Hi everyone, I am curious about a certain possibility to embed XML as a child of a context-param value in a servlets web.xml file. Here is what I a looking for... ContextParam1 A happy element This doesn't seem to work correctly however I have found using CDATA tags this does work

Re: Tomcat benchmark

2007-08-16 Thread Leon Rosenberg
both links are from 2004... Leon On 8/16/07, bajistaman <[EMAIL PROTECTED]> wrote: > > Probably the best place to start is > http://tomcat.apache.org/faq/performance.html and > http://www.webperformanceinc.com/library/reports/ServletReport/index.html > -- > View this message in context: > http://

Re: Embedding XML documents as children of the context-param element

2007-08-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, Robert Segal wrote: > I am curious about a certain possibility to embed XML as a child of a > context-param value in a servlets web.xml file. Here is what I a > looking for... > > > ContextParam1 > > A happy element > > I don'

Re: Embedding XML documents as children of the context-param element

2007-08-16 Thread Brian Munroe
On 8/16/07, Robert Segal <[EMAIL PROTECTED]> wrote: > So as an alternative I know the second method will work but was curious > if anyone has tried the first method. > I doubt the 1st method is valid, since you are basically inventing new deployment descriptor elements, and I know for sure that E

Re: Installing APR on Fedora

2007-08-16 Thread Ole Ersoy
Hi Rainer and Filip, Could tcnative.so be called something else? I ran this: find / -name tcnative*.so and it came up blank. I tried find / -name *tc*.so And it finds: /home/ole/Desktop/tomcat-6.0.14/bin/tomcat-native-1.1.10-src/jni/native/.libs/libtcnative-1.so /usr/local/apr/lib/libtcn

RE: Installing APR on Fedora

2007-08-16 Thread Lakshmi Venkataraman
/usr/local/apr/lib should be in your LD_LIBRARY_PATH. --Lakshmi -Original Message- From: Ole Ersoy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 16, 2007 2:47 PM To: Tomcat Users List Subject: Re: Installing APR on Fedora Hi Rainer and Filip, Could tcnative.so be called something e

Re: Installing APR on Fedora

2007-08-16 Thread Filip Hanik - Dev Lists
ok, in your catalina.sh script you will need to do export LD_LIBRARY_PATH=/usr/local/apr/lib:$LD_LIBRARY_PATH the file it finds is the correct one. the CLASSPATH variable only applies to java libraries, this is a native C library. Filip Ole Ersoy wrote: Hi Rainer and Filip, Could tcnativ

Re: Tomcat benchmark

2007-08-16 Thread bajistaman
I'm still using tomcat 5 :-) (and Weblogic 8.1), maybe someone interested enough can apply the same test against newer products. Johann -- View this message in context: http://www.nabble.com/Tomcat-benchmark-tf4278535.html#a12190970 Sent from the Tomcat - User mailing list archive at Nabble.com

Re: utf-8 encoding problem

2007-08-16 Thread Mark Thomas
Joseph Shraibman wrote: > This is an old problem. See > https://bugzilla.mozilla.org/show_bug.cgi?id=18643 > https://bugzilla.mozilla.org/show_bug.cgi?id=7533 > > Firefox and MSIE use a magic _charset_ paramater, but I can't use it > because if I call request.getParamater("_charset_") I can't set

Re: utf-8 encoding problem

2007-08-16 Thread Mark Thomas
Joseph Shraibman wrote: > Mark Thomas wrote: > >>request.setCharacterEncoding("UTF-8"); > > Is this always safe? For responses I can (and do) check the > accept-charset request paramater, but I can't figure out how to tell > what the request encoding should be. It should be reasonable u

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Matthew Kerle
Hi Chris Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, I agree the documentation is terse and/or missing. If you implement any of these strategies, consider submitting an update to the documentation to help others in the future. will do. I'm changing jobs soo

how to submit updates to the tomcat documentation?

2007-08-16 Thread Matthew Kerle
Hi all In a recent thread, the issue of current documentation of setting up jndi datasources in tomcat 5.5/6.0 came up, with the observation that the existing doco was a bit terse on the subject. Are there any people on this list who know how to submit updates to the tomcat documentation? I

Re: Installing APR on Fedora

2007-08-16 Thread Ole Ersoy
Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's humming real well now, except for a few SSL complaints, but I should be able to bang those out. Thanks a gazillion Filip, Rainer, Stephen, Lakshmi, and Hassan. You gracious help enabled me to keep my last hair :-) - Ole

Re: how to submit updates to the tomcat documentation?

2007-08-16 Thread Mark Thomas
Matthew Kerle wrote: > Hi all > > In a recent thread, the issue of current documentation of setting up > jndi datasources in tomcat 5.5/6.0 came up, with the observation that > the existing doco was a bit terse on the subject. > > Are there any people on this list who know how to submit updates t

Re: how to submit updates to the tomcat documentation?

2007-08-16 Thread Matthew Kerle
thanks! Mark Thomas wrote: Matthew Kerle wrote: You can send the patch to the dev list or open a bugzilla item for it. The docs are all xml files in svn. Eg: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/docs/ Mark ---

RE: JDBC connection issue

2007-08-16 Thread Caldarale, Charles R
> From: Hehl, Thomas [mailto:[EMAIL PROTECTED] > Subject: RE: JDBC connection issue > > Before, we would run multiple webapps and each had their own > context file that matched the webapps. Like for the one below, > we had one called mo.xml. That's still true in Tomcat 6. However, the preferre

RE: JDBC connection issue

2007-08-16 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:[EMAIL PROTECTED] > Subject: Re: JDBC connection issue > > That's the big difference, before the classloader was delegating That's simply not true - the webapp classloader delegates ONLY if the classes cannot be found in the webapps's WEB-INF/lib or WEB-INF/class

RE: Embedding XML documents as children of the context-param element

2007-08-16 Thread Caldarale, Charles R
> From: Brian Munroe [mailto:[EMAIL PROTECTED] > Subject: Re: Embedding XML documents as children of the > context-param element > > ServletContext sc = getServletConfig().getServletContext(); > String myXMLFIlePath = sc.getRealPath("/WEB-INF/myXMLFIle.xml"); The ServletContext.getRealPath() ca

Register url in ROOT application

2007-08-16 Thread Thomas Kwan (eTechFocus)
I am using tomcat 5.5. I have a application with the context "/app1" already. But I want to register a servlet in the ROOT application to service request to the URI "/app1". Is it possible? thanks - To start a new topic, e-mai

RE: Register url in ROOT application

2007-08-16 Thread Caldarale, Charles R
> From: Thomas Kwan (eTechFocus) [mailto:[EMAIL PROTECTED] > Subject: Register url in ROOT application > > I am using tomcat 5.5. I have a application with the context > "/app1" already. But I want to register a servlet in the ROOT > application to service request to the URI "/app1". Not sure wh

Re: Register url in ROOT application

2007-08-16 Thread Thomas Kwan (eTechFocus)
Sorry for not being clear. Here is what I want. I have an web application and its name is "app1". It has multiple servlets registered in its web.xml already. For example, there are servlets running at /app1/servlet1, /app1/servlet2...etc I want to be able to register a servlet in the ROOT applic

Re: Embedding XML documents as children of the context-param element

2007-08-16 Thread Brian Munroe
On 8/16/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > The ServletContext.getRealPath() call will fail if the webapp is in an > unexpanded .war or running on a platform without a normal file system > (e.g., a mobile phone). Better to use > ServletContext.getResourceAsStream(), which will

Re: Installing APR on Fedora

2007-08-16 Thread Markus Schiegl
another way could be passing "-Djava.library.path=/usr/local/apr/lib" to tomcat using CATALINA_OPTS for example. @all: any drawbacks doing it this way? kind regards, Markus Ole Ersoy wrote: > Ooooh - OK - That makes a lot of sense :-) Sweet - It looks like it's > humming real well now, excep

<    1   2