Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread nils-olov . fransson
Is the while... line number 19? If so make atest that is != null before you continue. Regards Nils-Olov Fransson - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Need Help w. Null Pointer Exception.

2006-08-30 Thread Edoardo Panfili
Steve R Burrus ha scritto: I need some pretty immediate help/assistance with always getting a NullPointerException Java exception when I try to view a particular image in my favorite web browser!!! The line of text in my servlet file which is, I think, problemmatic is a while loop. Well here

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Bruno M Luque
I would use Nagios, its worth the effort of dealing with C, you dont have that meny choices!, cheers On 8/24/06, Andrés González [EMAIL PROTECTED] wrote: Hi. I'm searching a tool similar to nagios wich allows me do client-side real testing of my Tomcat webapps. Something that lets me do a

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrew Miehs
Why do you need c? Works with perl and shell scripts... You could even use java if you wanted Andrew On 30/08/2006, at 10:36 AM, Bruno M Luque wrote: I would use Nagios, its worth the effort of dealing with C, you dont have that meny choices!, cheers

restrict access to application via RemoteHostValve

2006-08-30 Thread Dirk Weigenand
Hi, i'd like to restrict access to an application for a time using the RemoteHostValve in Tomcat. Since we host that application for our user base it won't suffice to greet them during the duration of restricted access with a 403 permission denied reply. Is there a possibility to provide a

CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Mallik
HI Friends i am new to this group and tomcat too. i have downloaded tomcat5.5.x and jdk1.5 and i have oracle8i just i started a sample application which has database connection. but it is throwing exception called:ClassNotFoundException for

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Viraj Turakhia
why zipped files? i feel, you will have to unzip them and put jar files in lib directory vraj On 8/30/06, Mallik [EMAIL PROTECTED] wrote: HI Friends i am new to this group and tomcat too. i have downloaded tomcat5.5.x and jdk1.5 and i have oracle8i just i started a sample application

Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
1. a POST request 2. all request parameter (in form of key-value pairs) in the message body 3. application/x-www-form-urlencoded 4. (need more? ... please tell me.) Normally, the parameterMap (for HttpServletRequest.getParameter() method) is not built. But when I use a RequestDumperValve in

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread David Smith
The classloader is most likely skipping over your .zip files. I believe there are newer JDBC drivers from Oracle packaged as .jar files. Try one of those. --David Mallik wrote: HI Friends i am new to this group and tomcat too. i have downloaded tomcat5.5.x and jdk1.5 and i have

RE: Why would this happen?

2006-08-30 Thread Peter Crowther
From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED] 4. (need more? ... please tell me.) Tomcat version? :-) - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Mark Thomas
Mallik wrote: why this is ? i have placed classes12.zip, classes111.zip and classes102.zip in tomcatRoot/common/lib it is not working Try renaming the .zip files to .jar See http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and search for zip in the text, HTH,

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
I sorted it out moments later of posting this mail. It was a mistake from my side. Thanks any sorry for any inconvenience, if caused. But there is still something I am curious about. How does Tomcat 4.1.x deal with HTTP requests that have *transfer-coding=chunked*? Santosh. Santosh

Re: Need Help w. Null Pointer Exception.

2006-08-30 Thread David Smith
getResourceAsStream() will return null if the requested resource is not available. Keep in mind that getRequestAsStream() is rooted to your webapp, so the requested image needs to be found relative to the top level of your web application. --David Steve R Burrus wrote: I need some pretty

Re: Why would this happen?

2006-08-30 Thread Mikolaj Rydzewski
Santosh Puranshettiwar wrote: 1. a POST request 2. all request parameter (in form of key-value pairs) in the message body 3. application/x-www-form-urlencoded 4. (need more? ... please tell me.) Normally, the parameterMap (for HttpServletRequest.getParameter() method) is not built. But when I

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Mallik
HI Friends thanks a lot now it is working i just wasted 3 days on this thanku friends -- View this message in context: http://www.nabble.com/CLASSPATH-problem-on-tomcat5.5.x-tf2189178.html#a6057382 Sent from the Tomcat - User forum at Nabble.com.

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Viraj Turakhia
renaming would not work.. you will have to unzip zipped files and put jars in lib directory. (provided zipped files has jar files :) ) vraj On 8/30/06, Mark Thomas [EMAIL PROTECTED] wrote: Mallik wrote: why this is ? i have placed classes12.zip, classes111.zip and classes102.zip in

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrés González
I'm using JMeter right now... and it's is *very* good. What provides nagios that can't be done with JMeter? On 8/30/06, Bruno M Luque [EMAIL PROTECTED] wrote: I would use Nagios, its worth the effort of dealing with C, you dont have that meny choices!, cheers On 8/24/06, Andrés González

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Marc Farrow
Apache Benchmark will do the same as well. On 8/30/06, Andrés González [EMAIL PROTECTED] wrote: I'm using JMeter right now... and it's is *very* good. What provides nagios that can't be done with JMeter? On 8/30/06, Bruno M Luque [EMAIL PROTECTED] wrote: I would use Nagios, its worth the

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
That was sorted out. Thanks :). I had another question though (if you refer my earlier mail). But there is still something I am curious about. How does Tomcat 4.1.x deal with HTTP requests that have *transfer-coding=chunked*? This was a mind baffling problem for which, I didn't have time to

Re: Why would this happen?

2006-08-30 Thread Santosh Puranshettiwar
Version: Tomcat 4.1.x OS: Fedora core 2 (also reproduced on Windows XP) Peter Crowther wrote: From: Santosh Puranshettiwar [mailto:[EMAIL PROTECTED] 4. (need more? ... please tell me.) Tomcat version? :-) - Peter

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Martin Gainty
Hello Andrew- Just as a FYI- The majority of the tomcat catalina engine is written in C and C++ for performance reasons Thus far I have not seen the fast performance of C/C++ with perl or php or CF (without some sort of translator to native code) Has anyone seen or heard benchmarks to prove

Re: revision 227023 commons-discovery

2006-08-30 Thread Martin Gainty
Good Morning Luis- I am happy to hear that axis now incorporates the patch-- As this is one of those 'hard to reach' bugs that 'stock' test scenarios would miss (without thorough analysis) I am disappointed to find commons-discovery has not incorporated the dims patch into the main build and am

Sticky session with multiple load balancer ?

2006-08-30 Thread Romain Bourgue
Hi, I have a cluster of Tomcat servers. The load balancing is made by a single apache mod_proxy_ajp server. I'd like to know if it's possible to have this : -- -- | LB 1 | | LB 2 | -- -- __ __ __ | Tomcat1 | | Tomcat2 | |

RE: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Tool for monitoring Tomcat from the client side The majority of the tomcat catalina engine is written in C and C++ for performance reasons Not true - the Tomcat code is pure Java. You can optionally replace some of the comm code

Re: Sticky session with multiple load balancer ?

2006-08-30 Thread Mladen Turk
Romain Bourgue wrote: Do you know if it's already/technically/theoretically possible ? Yes. It should work out of the box if you keep your worker names the same on both LBs. Regards, Mladen. - To start a new topic,

Using a proprietary 3rd Party RMI Connector

2006-08-30 Thread Thomas Wollner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello List, has anybody an idea how to solve the following: we want to monitor Tomcat 5.0 / 5.5 via JMX. The monitoring Software requires us to use a proprietary 3rd party RMI Connector to connect to the tomcat (catalina) mbean server. But, how I

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrés González
Mmmm... the GUI is an important advantage of JMeter... On 8/30/06, Marc Farrow [EMAIL PROTECTED] wrote: Apache Benchmark will do the same as well. On 8/30/06, Andrés González [EMAIL PROTECTED] wrote: I'm using JMeter right now... and it's is *very* good. What provides nagios that can't be

Apache + Tomcat configuration: static / dynamic content (with ROOT application deployed)

2006-08-30 Thread Hua Hou
I think this question had been asked before. But when I searched the tomcat user group, I don't find a satisfactory answer. Here is my question: How to configure Apache Tomcat so that Apache handles static content for virtual host with more than one web applications? My web application

RE: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Propes, Barry L
I had a similar problemyou need the ojdbc.jar file, or more specifically, the ojdbc14_g.jar file. -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 6:04 AM To: users@tomcat.apache.org Subject: CLASSPATH problem on tomcat5.5.x HI Friends i

Re: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Viraj Turakhia
odbc is required only when odbs bridge is used. if you are using jdbc for oracle, odbc jar is not required. correct me if i am wrong. vraj On 8/30/06, Propes, Barry L [EMAIL PROTECTED] wrote: I had a similar problemyou need the ojdbc.jar file, or more specifically, the ojdbc14_g.jar file.

RE: CLASSPATH problem on tomcat5.5.x

2006-08-30 Thread Propes, Barry L
Not sure about that. But perhaps he'd need this one. ojdbc14.jar. I copied the wrong one. I did (need it) before mine would work, and mine's configured almost exactly like his. -Original Message- From: Viraj Turakhia [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 9:45 AM

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Leon Rosenberg
On 8/30/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Tool for monitoring Tomcat from the client side The majority of the tomcat catalina engine is written in C and C++ for performance reasons Not true - the Tomcat code is pure

RE: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Tool for monitoring Tomcat from the client side This slightly besser performance, is it achieved by C or by using epoll? Good question, and I don't know the answer. It would be interesting to see if there's any performance

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Leon Rosenberg
I thought Filip coded something similar, a pooling NIO connector in java. Leon On 8/30/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Tool for monitoring Tomcat from the client side This slightly besser performance, is it

Re: Problem Bringing up Admin

2006-08-30 Thread eggmann
Hi Folks, I have been at this for a few hours today and what fixed my problem with going to admin page and getting a blank page, then refreshing to find error is HTTP Status 503 - Servlet admin.login_jsp is currently unavailable. download the tomcatadmin.tar.gz file, extracting it and copy the

Re: Tomcat 5.0.28 is showing an old applets

2006-08-30 Thread Jose Roberto Torres
The problem is back, now not even cleaning up the complete project and re-creating it from scratch is changing the old applet for the new. Any one knows how to make tomcat how to refresh its classes? or how do i make this behavior go away. José Renato wrote: Actually I just do this sometimes

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Filip Hanik - Dev Lists
Leon Rosenberg wrote: I thought Filip coded something similar, a pooling NIO connector in java. Leon thats correct, it will be included in 6.0, in terms of performance it ranks like this HTTP Nr Of Connections maxThreads 1. Blocking IO Connector 2. Java NIO connector and APR connector are

Michele A Shiels is out of the office.

2006-08-30 Thread Michele . A . Shiels
I will be out of the office starting 30/08/2006 and will not return until 05/09/2006. If you have an urgent issue please contact extension . - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Leon Rosenberg
Very interesting. So if you have a typical large-app production environment with a hardware ssl (for example by the load balancer) you don't need the APR? Hence another evidence that java's performance are equal or better than c? leon On 8/30/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Filip Hanik - Dev Lists
Leon Rosenberg wrote: Very interesting. So if you have a typical large-app production environment with a hardware ssl (for example by the load balancer) you don't need the APR? you'd need APR or NIO to be able to sustain a large number of keep alives. If you don't use keep alives, then it wont

Re: Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread Steve R Burrus
yes the while loop is on line number 19 okay. Please forgive me for my ignorance about this, but I was wondering how I should go about doing that check for a non-null value?? [EMAIL PROTECTED] wrote: Is the while... line number 19? If so make atest that is != null before you continue.

Re: Ang. Need Help w. Null Pointer Exception.

2006-08-30 Thread David Smith
Simply compare to the key word null: if ( is != null ) { while ( is.read..etc.) { } } --David Steve R Burrus wrote: yes the while loop is on line number 19 okay. Please forgive me for my ignorance about this, but I was wondering how I should go about doing that check for a

RE: Internet Explorer different browser windows different session ID ????

2006-08-30 Thread Paul Hamer
Hi, Don't know about FireFox, but for IE the way you start it makes a difference. If you start a new IE window using the File menu, and then new-window, or just CTRL+N, the new IE window will share any sessions with the one you're opening it from. Of you start a new IE window from your desktop

Re: Internet Explorer different browser windows different session ID ????

2006-08-30 Thread Martin Gainty
From my understanding Tomcats jvmRoute generates the Session ID so it would follow that the 'same route' would generate the same session Anyone else? M- * This email message and any files transmitted with it contain confidential

Yet Another Threads Servlets question but with a JSF twist

2006-08-30 Thread Geoff Davies
I have JSF managed bean running in a Tomcat 5.5 server on windows xp. The code in a nutshell is this: EndToEndThread etoE = new EndToEndThread(term,freq,year,month,period); bgTask = new Thread(etoE); bgTask.run(); System.err.println(TimeUtils.dateNow() + Thread is running); return result; The

Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Andrew Miehs
From http://tomcat.apache.org/tomcat-5.5-doc/apr.html When APR is enabled, the HTTP connector will use sendfile for hadling large static files (all such files will be sent ansychronously using high performance kernel level calls), and will use a socket poller for keepalive, increasing

Re: Yet Another Threads Servlets question but with a JSF twis

2006-08-30 Thread Michael Jouravlev
I suggest changing bgTask.run() to bgTask.start(). On 8/30/06, Geoff Davies [EMAIL PROTECTED] wrote: I have JSF managed bean running in a Tomcat 5.5 server on windows xp. The code in a nutshell is this: EndToEndThread etoE = new EndToEndThread(term,freq,year,month,period); bgTask = new

Need Help w. A UnsupportedClassVersionError.

2006-08-30 Thread Steve R Burrus
I was trying to see a simple servlet when I got the following server error! What does that mean, a UnsupportedClassVersionError and how do I go about fixing this problem in hopefully the quickest way possible?? HTTP Status 500 -

Re: Need Help w. A UnsupportedClassVersionError.

2006-08-30 Thread Mark Thomas
Steve R Burrs wrote: I was trying to see a simple servlet when I got the following server error! What does that mean, a UnsupportedClassVersionError and how do I go about fixing this problem in hopefully the quickest way possible?? Usually something along the lines of running a class

build error

2006-08-30 Thread Anthony Ennis
I was trying to build tomcat when I got this error... build.xml:88: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison I can't figure it out -Anthony - To start a new topic, e-mail:

blank pages

2006-08-30 Thread kalin mintchev
hi all.. here is a situation: after restarting apache and tomcat - using mod_jk - requested pages return blank. the httpd log logs everything as if the request turned out ok. the mod_jk log is clean. and the servers otherwise seem to be working fine any ideas? thanks...

Re: blank pages

2006-08-30 Thread kalin mintchev
hi all.. here is a situation: after restarting apache and tomcat - using mod_jk - requested pages return blank. the httpd log logs everything as if the request turned out ok. the mod_jk log is clean. and the servers otherwise seem to be working fine i mean this is a site in

Re: blank pages

2006-08-30 Thread Mark Thomas
kalin mintchev wrote: hi all.. here is a situation: after restarting apache and tomcat - using mod_jk - requested pages return blank. the httpd log logs everything as if the request turned out ok. the mod_jk log is clean. and the servers otherwise seem to be working fine i mean