session trakking in jsp or in Bean

2006-01-12 Thread marju jalloh
Hi I want to track a session of an input a user enter in my jsp page.The jsp page is using a bean to execute sql queries.That works wel. My question is it advisable to track the session in the jsp page or in the Bean.Which is better Thanks in advance

info required about no of connections..

2006-01-12 Thread babji
Hi i have some doubt in tomcat deployment, can some one clear that I have one web appliation that i deployed in the tomcat and running fine. it uses login, and all the valid users will login and use the site. it contains 10 servlets each will do one kind of job based on the user request. No my

Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### Pete Alvin [EMAIL PROTECTED] wrote message to Tomcat Users List users@tomcat.apache.org ### ### this is reply for: RE: Tomcat integegrated with Apache ### I'm using Tomcat 5.5. I want to keep it simple. It always seems to take me 2 days of anguish to get Apache/Tomcat working together.

Re: problem of setting up ssl in tomcat 5.5.9

2006-01-12 Thread Siddhartha Mehta
I am not sure if anyone has replied to you on this.. At least from what I understand, the error below means is that the certificate file server.pem is not found as specified in the server.xml (configuration file) entry. You will find the server.xml file in the conf folder (under

RE: session trakking in jsp or in Bean

2006-01-12 Thread marju jalloh
Thanks I know all about java session.What I mean is implementing session in jsp or in bean which one is advisable Fredrik Rubensson [EMAIL PROTECTED] wrote: Marju wrote: I want to track a session of an input a user enter in my jsp page.The jsp page is using a bean to execute sql

Re: Server push

2006-01-12 Thread vineesh kumar
Dear all, I just need to implement a telnet thru web. ie, I am using servelts, I can connect to a remote host and i am able to execute some commands and i can get the results. But my problem is that, i have to maintain the telnet session between the cleint and the servlet and has to

RE: Problem with servlets from upgrade

2006-01-12 Thread Francesca Jovanovic
Thanks so much for replying. My URL's are mapped, below is an example. I had this working on my old PC for the past 2 years with no problems then I got a new pc and installed the latest tomcat, set the environment vars and copied everything over to the relevant folders but things are going

how to suppor 30000 concurrent users

2006-01-12 Thread vishwas kharajge
howmany concurrent users does tomcat support? if i want to design a web application for 30,000 concurrent users in pick hours what is the step? Which type of server it needs How to configure the tomcat server for the same? How many maximum concurrent hit tomcat can serve per second? Thanks in

RE: how to suppor 30000 concurrent users

2006-01-12 Thread Peter Crowther
From: vishwas kharajge [mailto:[EMAIL PROTECTED] howmany concurrent users does tomcat support? Depends very largely on your webapp. How efficient is it? How many operations per minute is each user making? Does it require session state, or can you get away without it? Can it be clustered?

RE: Using Tomcat 5.5 as a standalone web server

2006-01-12 Thread Adam Johnston
Security is not a key issue for us, over and beyond observing good general site security principles. Given that there is far from a consensus opinion on this question, I am going to stick with Apache 2.0.46 / Tomcat 5.5.7 as an integrated solution, but do some testing on Tomcat standalone as well

Re: Problems Using Context Loader

2006-01-12 Thread Michel Costa
No, that is not a Tomcat problem... it's a specific application problem... I saw some people complaining about the same things in applications similar to mine. The big whole problem with my application is the framework usage: Hibernate and Struts... My guess is that hibernate is not finalizing

Re: Last-Modified not updated when file is changed / touched.

2006-01-12 Thread Michel Costa
Some filesystems in linux/unix does not save date stuff, to speed up access... I am not sure about what tomcat does, but I think he sends the date of the cached resource... - Segue mensagem original! - De: hanasaki [EMAIL PROTECTED] Data: Wed, 11 Jan 2006 21:44:27 -0600

Stop a file from getting cached.

2006-01-12 Thread Kamalmeet Singh
Hi, I am using this setting in my 'web.xml' to stop all files with extesion 'abc' from getting cached. The problem is that it works fine with IE, but in Firefox I can still see my files getting cached. How can I stop my files from getting cached in Firefox? Is there any other way to stop caching.

Re: Tomcat integegrated with Apache

2006-01-12 Thread David Smith
The connector is integrated into Apache Httpd 2.2 which was just released as stable in December. Versions prior still require you download and build mod_jk.so separately. Personally, I think you should avoid putting Apache in front unless you have other technologies to support (ie PHP or

RE: Tomcat integegrated with Apache

2006-01-12 Thread Gary Blomquist
Can you give any specifics as to why you think running Tomcat in front of Apache is bad? We were considering doing that for load balancing but now we are thinking about using a hardware appliance instead. Gary -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent:

RE: Tomcat integegrated with Apache

2006-01-12 Thread George Sexton
I can give a reason. Its called Connector de-jour. The preferred connector, changes every 6 months and they're bloody impossible to configure and keep straight. Building a connector is impossible unless you are a REALLY highly skill UNIX sysadmin. My advice is this: Set up your machine running

RE: Tomcat integegrated with Apache

2006-01-12 Thread Caldarale, Charles R
From: Gary Blomquist [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat integegrated with Apache Can you give any specifics as to why you think running Tomcat in front of Apache is bad? 1) Extra overhead. 2) Additional complexity. 3) Added points of failure. Certainly if you have a need for

RE: Tomcat integegrated with Apache

2006-01-12 Thread Gary Blomquist
Thanks. As I mentioned we are considering buying a hardware load balancer. I just wondered what problems I might encounter if we did choose to load balance with Apache. Our volume is relatively low. We want the load balancer so we can have hitless upgrades. Our app. uses frames. Could that

RE: how to suppor 30000 concurrent users

2006-01-12 Thread Caldarale, Charles R
From: Peter Crowther [mailto:[EMAIL PROTECTED] Subject: RE: how to suppor 3 concurrent users That said, http://www.theserverside.com/news/thread.tss?thread_id=38377 may be relevant - no doubt others will come up with better links! There's also the other Peter's excellent paper on

Re: Tomcat integegrated with Apache

2006-01-12 Thread Jess Holle
Does Tomcat now have caching of LDAP authentication (i.e. for basic authentication)? Does Tomcat allow a single web app (and URL therein) to be authenticated against multiple LDAPs (i.e. where part of the user community is defined by each)? Is there a SiteMinder plug-in for Tomcat? These

RE: Tomcat integegrated with Apache

2006-01-12 Thread Marco Rossi
George Sexton [EMAIL PROTECTED] wrote: I can give a reason. Its called Connector de-jour. The preferred connector, changes every 6 months and they're bloody impossible to configure and keep straight. Building a connector is impossible unless you are a REALLY highly skill UNIX sysadmin. I

RE: info required about no of connections..

2006-01-12 Thread Caldarale, Charles R
From: babji [mailto:[EMAIL PROTECTED] Subject: info required about no of connections.. No my question is how many user can login and open session in tomcat at a given point of time. No limit, other than the max number of threads configured for the connector. See:

running tomcat 5.0 as windows service - how do I get it to use the security manager and catalina.policy?

2006-01-12 Thread Stracchino, Peri
hi guys I am trying to get tomcat 5.0 to use the security manager and catalina.policy when running as a windows service. This works fine when I run it from startup.bat using the normal set CMD_LINE_ARGS= -security method. However I cant find any documentation - either on the tomcat site or on

Re: running tomcat 5.0 as windows service - how do I get it to use the security manager and catalina.policy?

2006-01-12 Thread Mladen Turk
Stracchino, Peri wrote: * If I try adding the line -Djava.security.manager -Djava.security.policy=C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\catalina.policy Add two lines -Djava.security.manager and -Djava.security.policy=C:\Program Files\Apache Software

Re: tomcat and javac (UNCLASSIFIED)

2006-01-12 Thread Zorro3692
Hi Chuck, Thanks for your reply. Can you please help me with the following question I posted earlier. Hi, I recently downloaded and installed Tomcat 5.5.12. I read the documentation on class loading. However, my webapp does not work on Tomcat 5.5.12 when I put

RE: problem with keytool for ssl

2006-01-12 Thread Iosev Perez Rivero
So, how to create self signed cert to import? Iósev Pérez Rivero Estudiante 4to. Año Universidad de las Ciencias Informáticas -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 12:47 AM To: Tomcat Users List Subject: Re: problem with keytool

Re: running tomcat 5.0 as windows service - how do I get it to use the security manager and catalina.policy?

2006-01-12 Thread Stracchino, Peri
Thanks Mladen That did the trick. I notice that not having any spaces at the start of the line is also crucial to making this work cheers Peri ** Experience the British Library online at www.bl.uk Help the British

Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### George Sexton [EMAIL PROTECTED] wrote message to 'Tomcat Users List' users@tomcat.apache.org ### ### this is reply for: RE: Tomcat integegrated with Apache ### If I can avoid using Apache, then I run tomcat on a non-privileged port and use IPTables to re-direct from port 80 to the

RE: Tomcat integegrated with Apache

2006-01-12 Thread Peter Crowther
From: Rafal Zawadzki [mailto:[EMAIL PROTECTED] Why not use squid? One view: Why go through another user-level process when you can simply redirect the socket connections via iptables for fewer CPU cycles and less RAM? Another view: squid may be faster at serving static content, so interposing

Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### Peter Crowther [EMAIL PROTECTED] wrote message to Tomcat Users List users@tomcat.apache.org ### ### this is reply for: RE: Tomcat integegrated with Apache ### From: Rafal Zawadzki [mailto:[EMAIL PROTECTED] Why not use squid? One view: Why go through another user-level process when you

RE: Tomcat integegrated with Apache

2006-01-12 Thread George Sexton
Because I don't have a lot of static content. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Rafal Zawadzki [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 9:02 AM To: Tomcat Users List Subject: Re: Tomcat

Re: Changing default web apps

2006-01-12 Thread Marco Rossi
Ok for list archive http://wiki.apache.org/tomcat/HowTo#head-e82228c43a0ce77f71ebe64fc99ced33c9506ffe Marco Rossi [EMAIL PROTECTED] wrote: Hi all, I'm trying to deploy a single web app to serve a whole web site on port 80. I'm able (finally:-) to use jsv to redirect port 80 to 8080, but I'm

Re: Changing default web apps

2006-01-12 Thread Dennis Leary
The simplist way is to rename your app to ROOT. If read about creating a ROOT.xml in conf/Catalina/localhost and pointing the docbase to your webapp by I didn't have much luck with it. - Original Message - From: Marco Rossi [EMAIL PROTECTED] To: Tomcat Users List

Re: Problems Using Context Loader

2006-01-12 Thread Sriram Narayanan
On 1/12/06, Michel Costa [EMAIL PROTECTED] wrote: No, that is not a Tomcat problem... it's a specific application problem... I saw some people complaining about the same things in applications similar to mine. By No, that is not a Tomcat problem..., I believe you're saying that there's no

RE: tomcat and javac (UNCLASSIFIED)

2006-01-12 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: tomcat and javac (UNCLASSIFIED) However, my webapp does not work on Tomcat 5.5.12 when I put my servlet classes in common\classes. You shouldn't do that. Read the servlet spec, and put the servlet classes where they belong:

Re: Question regarding tomcat class path handling

2006-01-12 Thread Oded Arbel
On Wednesday, 11 בJanuary 2006 18:38, Sriram Narayanan wrote: I wrote something that works for me: http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 Thanks. I didn't use your implementation for the reason noted in the comment I attached to the issue, but you pointed me in the right

Re: Image Scaling Code

2006-01-12 Thread Wendy Smoak
On 1/12/06, Justin Jaynes [EMAIL PROTECTED] wrote: I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? javax.servlet.ServletException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

Re: Image Scaling Code

2006-01-12 Thread Mark Hagger
You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On Thursday 12 January 2006 19:31, Frank W. Zammetti wrote: I

RE: Image Scaling Code

2006-01-12 Thread Lawrence, Gabriel
The environment variable is below: JAVA_OPTS=-Djava.awt.headless=true Cheers, -gabe Gabriel Lawrence ACT Data Security Manager, UC San Diego -Original Message- From: Justin Jaynes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:39 AM

Re: Problems Using Context Loader

2006-01-12 Thread Michel Costa
The major problem is not about putting hibernate in the context's lib folder, but as you may know, hibernate does some mapping stuff, which means it reads a bunch of .hbm.xml files into memory, connects and validate these mappings everytime the context gets reloaded, and depending on how much

Re: Image Scaling Code

2006-01-12 Thread Frank W. Zammetti
D'oh! Now *THAT* rings a bell :) Mark Hagger wrote: You need to have: -Djava.awt.headless=true in your java start up args, this will prevent it from trying to talk to an X server. Obviously some image related stuff has to talk to an X server, but just ImageIO stuff is fine. Mark On

Re: Image Scaling Code

2006-01-12 Thread Tim Funk
FAQ .. http://tomcat.apache.org/faq/unix.html#x -Tim Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction? - To

Re: Image Scaling Code

2006-01-12 Thread Ryan McDonald
i believe adding this to your CATALINA_OPTS variable will solve this issue -Djava.awt.headless=true On 12-Jan-06, at 2:26 PM, Justin Jaynes wrote: Hello all, I've written a java class to scale jpeg images. But I can't seem to get it to work. Can anyone point me in the right direction?

problem with tomcat and SSL

2006-01-12 Thread Iosev Perez Rivero
Obtain configure the SSL protocol with tomcat, BUT when I use this url: https://localhost:8443 https://localhost:8443/ in the browser, this is delay so much and the end no load the tomcat home page. What I can do? Iósev Pérez Rivero Estudiante 4to. Año Universidad de las Ciencias

Re: how to enable SSL protocol with tomcat 5.5.12

2006-01-12 Thread Dhaval Patel
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html --- Iosev Perez Rivero [EMAIL PROTECTED] wrote: I use the tomcat�s documentation about that but I have an error, I need that someone explain to me how to that I�sev P�rez Rivero Estudiante 4to. A�o Universidad

connection pooling mysql (Pool Exhausted exception)

2006-01-12 Thread Khawaja Shams
Hello, I am consistently getting exceptions about my connection pool being exhausted in my application. I am curious where I can configure the number of connections tomcat should maintain in the connection pool. Lastly, am I right in assuming that the only thing I need to do in order to

PreparedStatement w/ Connection Pooling

2006-01-12 Thread Khawaja Shams
Hello all, I am working on a web application that will manage assignments/students/classes for the teachers at a school. Most of my pages in the application need to access our mysql database very frequently. For this and for other security reason, I would like to use preparedStatements.

concurrency of users on tomcat

2006-01-12 Thread vishwas kharajge
Hi we are running tomcat5.0 on sun V20z server Backed is mysql Our requirement is to provide 200 concurrent hits per second There are 300K users registration on the server For this what is the requirement? How much bandwidht it require for giving above concurrency? How to configure the server?

Tomcat 5.5 system requirements

2006-01-12 Thread David Schwartz
Is there a list of Tomcat 5.5 system requirements for a windows based install? David Schwartz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help for error javax.servlet.ServletException

2006-01-12 Thread Qaiser Mehmood
Does anyone know why I am getting this error : javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:275) at

RE: PreparedStatement w/ Connection Pooling

2006-01-12 Thread George Sexton
Generally speaking, if you were using most SQL databases the approach would be to use a stored procedure. The stored procedure compilation saves the various query plans as part of the data of the stored procedure. I doubt MySQL does it, but you could ask on their development list. George Sexton

Re: Question regarding tomcat class path handling

2006-01-12 Thread Sriram Narayanan
On 1/10/06, Oded Arbel [EMAIL PROTECTED] wrote: What you could do is to write your own WebAppClassLoader that'd add these folders to its lookup list. Hmm. interesting. How can I let such a class loader implementation to be used instead of tomcat's WebAppClassLoader ? The following

Re: how to change the APR protocol for may use keytool self-signed certificate

2006-01-12 Thread Dhaval Patel
Hi, I hope you have read my post a while ago (in which I explained about configuring SSL with APR in Tomcat 5.5.12). If you haven't, http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html If you read that post fully, you will understand basics of SSL with Tomcat. If you want

Re: Question regarding tomcat class path handling

2006-01-12 Thread erh
On Mon, Jan 09, 2006 at 08:16:00PM +0200, Oded Arbel wrote: The problem is like this (the actual system is far more complex): - suppose two web applications, app1 and app2, both use some API (which I developed myself). - I don't want to develop the API twice on both web applications, so I

Tomcat start but many errors in catalina.out

2006-01-12 Thread Sven Gehr
[EMAIL PROTECTED], I use tomcat-5.0.30 on a suse10-system. When I start tomcat I get an long error-output in catalina.out. Can anybody help me to fix this? Sorry for this long error-posting! Jan 13, 2006 12:18:54 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web

Http11AprProtocol tomcat 5.5. page not loading with compression off

2006-01-12 Thread M A
Hi All, My config .. tomcat 5.5 jdk1.5._06 apr 1.2.2 tomcat-jni 1.1.0 server.xml Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 compression=on

RE: PreparedStatement w/ Connection Pooling

2006-01-12 Thread Marc Richards
If you're already using pooling then I imagine you already have a resource defined for the pool in either server.xml or in the context xml file. To pool prepared statements, which is desireable, you should configure it to look something like this in Tomcat 5.5: Resource

Tomcat5 and supporting files

2006-01-12 Thread Bob Hartung
Hi all, I need direction to an information repository that will explain what I need to do to get java-1.5.0 and tomcat5 installed and running and then allow installation of MIRC software, that requires tomcat5 on jvm-1.5.0 for the newer version. I have spent nearly two weeks of off ours

Re: Recommended way to selectively RequestDispatch.include/forward to form based login?

2006-01-12 Thread Bill Barker
Ken Johanson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Does anyone have a suggested way to selectively, inside a simple JSP or Servlet, cause the built-in Tomcat form-login to be presented? Currently, I'm doing the following: -Have protected URI inside my webapp,

Re: Tomcat start but many errors in catalina.out

2006-01-12 Thread Bill Barker
Wendy Smoak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 1/12/06, Sven Gehr [EMAIL PROTECTED] wrote: I use tomcat-5.0.30 on a suse10-system. When I start tomcat I get an long error-output in catalina.out. Can anybody help me to fix this? ... Jan 13, 2006 12:19:30 AM

rebuild-jar-repository error

2006-01-12 Thread Bob Hartung
I have installed tomcat5, with java 1.5.0.0. Now trying to start tomcat5 I get this in the output followed by an [OK] /usr/bin/rebuild-jar-repository error all detected jars were not found for this jvm. I am not sure what to read at this point. TNX Bob

Re: rebuild-jar-repository error

2006-01-12 Thread Ghislain Bob Hachey
I'm having the exact same problems. I also reinstalled FC4, jdk 1.5.05 and tomcat 5...still same problem. I'm tired of this so I'm gonna try NOT using the rpms. Good luck. Bob On Thu, 2006-01-12 at 21:22 -0600, Bob Hartung wrote: I have installed tomcat5, with java 1.5.0.0. Now trying to

RE: PreparedStatement w/ Connection Pooling

2006-01-12 Thread George Sexton
I would try testing it. I did some informal testing with SQL server and found that it was MUCH less useful than everyone thought. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Khawaja Shams [mailto:[EMAIL PROTECTED] Sent:

Re: rebuild-jar-repository error

2006-01-12 Thread Bob Hartung
Ghislain, I downloaded the sun tarball, the tomcat5 tarball and had both installed in less than 5 minutes. Tomcat5 tested fine with $JAVA_HOME defined in /etc/profile. I was the able to install the MIRC storage service in an additional 5 minutes. Now, I may have upgrade problems but

Re: rebuild-jar-repository error

2006-01-12 Thread Ghislain Bob Hachey
Bob, I did the same and it worked perfectly right away. Now I'm having problem with OpenReports and JasperReports but that's a different story. Good luck to you. Cheers, Ghislain On Thu, 2006-01-12 at 22:11 -0600, Bob Hartung wrote: Ghislain, I downloaded the sun tarball, the tomcat5

Re: Image Scaling Code

2006-01-12 Thread Dakota Jack
You need to set a java command option so that your code won't search for a display. Apparently you are using this with a server that has no monitor? I forget the option but look them up under the java command and it will be obviously. It ends in less as I recall. On 1/12/06, Justin Jaynes

Question reg. setting the environment variable

2006-01-12 Thread gupta vidhi
hello, i'd installed jdk-1_5_0_02-windows-i586-p-iftw and jakarta-tomcat-4.1.31 on desktop.but unable to set its required path.i request u to kindly help me out for the same and starting my Tomcat. Regards, Vidhi - Yahoo!

Re: PreparedStatement w/ Connection Pooling

2006-01-12 Thread Khawaja Shams
I am guessing the main attribute to change is the following: poolPreparedStatements=true Suppose that this is set to true, how do I access these pooled statement? My setup is exactly as you described, so this modification seems minor, but I would appreciate guidance on how to get a hold of

Where are input output files located?

2006-01-12 Thread Per Arve
Newbie running Tomcat 5.0.28 on OSX. Hi, I am starting tomcat by running a script that runs the catalina.sh script. I have experienced that files that my jsp-app produces end up at different places depending on how tomcat is started. Possibly I could understand this if I knew a little

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
This may or may not be the case with you. I had a similar error (X11, DISPLAY) with an earlier version of tomcat included in a 3rd party package, on linux. After I installed Xvfb (x virtual frame buffer) server rpm, the error went away. (http://www.xfree86.org/4.0.1/Xvfb.1.html) I think there

Re: java.lang.VerifyError Wrong return type in function

2006-01-12 Thread Ole Chr Langfjæran
Found the problem/solution. The error occurs because Tomcat uses java 5.0 while the servlet has been compiled with java 1.4. Compiling the servlet with 5.0 resulted in a much nicer log! Ole Chr Langfjran wrote: My servlet seems seemingly to work just fine, but running through the log I've

Re: Image Scaling Code

2006-01-12 Thread Ben Kim
Sorry, a correction to my post. I checked my server and found that Xvfb is actually running on display 1.0. These are the processes. Xvfb :1 bash -c export DISPLAY=:1.0; . /opt//tomcat.sh I'll have to dig up for the details of tweaking, but googling of tomcat xvfb