Tomcat5.0 Database Connection Pooling Configuration

2005-07-14 Thread Foo Shyn
Hi there, Have a question on dbcp settings. I'd done the settings by configuring the server.xml and the web.xml of my application and it works fine. But since i need to install multiple application on the same Tomcat server, i'll need to place different context tag in the server.xml for each

Putting JNDI configurable info. inside of a properties file only

2005-07-14 Thread Ben Bookey
Dear List, In the example docs on the Apache web-site, all the JNDI info. is configured inside of the server.xml and web.xml. Is it possible or better said usual to make a data source, with the Oracle configurable JDBC URL connection info. in a separate properties file. This would mean

Re: [OT] photo album software for web site

2005-07-14 Thread Giuseppe Briotti
== Date: Wed, 13 Jul 2005 21:13:33 -0500 From: epyonne [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: [OT] photo album software for web site == All, Sorry about this off topic post, but I am looking for a couple free

Nested Web applications.

2005-07-14 Thread Ravi Nathwani
Hi all, I have multiple web applications. Currently all of them are distributed as WAR files and each one has a web.xml file with its own configurations. When they are installed, a separate directory for each is created in the /webapps folder. These applications are currently working fine.

out of memory error while load testing

2005-07-14 Thread srikanth peddireddy
Hi All, Recently we started load testing our application using Jmeter. Following error is coming in tomcat while test is run at higher loads like 1500 virtual users etc == SEVERE: Caught exception (java.lang.OutOfMemoryError) executing

org.apache.catalina.util.ParameterMap.put exception

2005-07-14 Thread cristi
Hello all I receive the following exception in a non deterministic manner. The reader should understand that the exception is not thrown due to my direct action on a ParameterMap instance. Is there any possibility of knowing what to do in this case ? - BEGIN EXCEPTION - HTTP Status 500

Re: org.apache.catalina.util.ParameterMap.put exception

2005-07-14 Thread Foo Shyn
- Original Message - From: cristi [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, July 14, 2005 5:01 PM Subject: org.apache.catalina.util.ParameterMap.put exception Hello all I receive the following exception in a non deterministic manner. The

Re: org.apache.catalina.util.ParameterMap.put exception

2005-07-14 Thread cristi
Are u trying to redirect the user to another page from Hello?? Probably u can try using response.sendRedirect instead to redirect the user? Yes. Hello is a servlet. The last action in my servlet is to call RequestDispatcher.forward() to a jsp which is creating the HTML page. Do you have

Re: Serving .jsp's from other dirs (newbie)

2005-07-14 Thread pacea
Have you created a proper directory structure under /site? (i.e. /site/WEB-INF, etc) and written your /site/WEB-INF/web.xml file for the app? Change the JkMount directives in httpd.conf and omit the .jsp (i.e. JkMount /site/*). Save html and jsp file in /site. Save servlets in

Which is the latest 'stable' JK connector?

2005-07-14 Thread Alex Sansom
Hi, Can someone please confirm which is the latest stable JK connector please? I've been looking at the JK documentation located at http://jakarta.apache.org/tomcat/connectors-doc/index.html but it is not clear which is the most recent 'stable' release. I'm currently using 1.2.10 for testing but

Tomcat Configuration

2005-07-14 Thread Iin Nurhidayat
Hi All, I have a problem with my deployment. I have some servlets and one Login.html. I will put my servlets and Login.html on /myapplication Based on book i have read : a) I configure the server.xml Context path= /myapplication docBase= /webapps/myapplication reloadable= true

Re: out of memory error while load testing

2005-07-14 Thread Bhaskar
You need to check on whether it is giving Outofmemory error is immediately after starting loadtesting with 1500 users or over period of time. If it is over period of time then you need to check whether there are any memory leaks. Or your design for ex., it might happen if you query db and that

Re: Trying to configure apache, tomcat and mod_jk

2005-07-14 Thread Matthew Strawbridge
Thanks to Paul Constantine and Alan Chandler for their responses. I've managed to get it all working (eventually!). I think there were two stumbling blocks: 1. I had rebuild Apache but was accidentally running the old version, so the httpd.conf was not being picked up. 2. Paul's blog clarified

RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Context path= /myapplication docBase= myapplication reloadable= true crossContext= true Remove ( /webapps/ ) Regards Guru -Original Message- From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 12:14 To: Tomcat Users List Subject: Tomcat Configuration Hi All, I

RE: Tomcat Configuration

2005-07-14 Thread Iin Nurhidayat
Hi Guru, i replced webapps but i have same problem also ... Thanks - IN - --- Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Context path= /myapplication docBase= myapplication reloadable= true crossContext= true Remove ( /webapps/ ) Regards Guru -Original

RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Did you restart tomcat ? -Original Message- From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 13:30 To: Tomcat Users List Subject: RE: Tomcat Configuration Hi Guru, i replced webapps but i have same problem also ... Thanks - IN - --- Raghupathy,Gurumoorthy [EMAIL

RE: Tomcat Configuration

2005-07-14 Thread Iin Nurhidayat
yess --- Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Did you restart tomcat ? -Original Message- From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 13:30 To: Tomcat Users List Subject: RE: Tomcat Configuration Hi Guru, i replced webapps but i

RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Send me the server.xml -Original Message- From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 13:36 To: Tomcat Users List Subject: RE: Tomcat Configuration yess --- Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Did you restart tomcat ? -Original

Re: Tomcat Configuration

2005-07-14 Thread Jon Wingfield
Do you have a web.xml in WEB-INF? What do the tomcat logs say on startup? You can tweak the logger verbosity by increasing the debug attributes on elements within server.xml. What version of tomcat? Not sure Logger elements are supported in 5.5.x Jon PS: books are generally out of date by the

Re: Tomcat Configuration

2005-07-14 Thread Bryan Scarbrough
Will it load the Login.html file, or do you simply see nothing at all? On 7/14/05, Iin Nurhidayat [EMAIL PROTECTED] wrote: Hi All, I have a problem with my deployment. I have some servlets and one Login.html. I will put my servlets and Login.html on /myapplication Based on book i

Re: Tomcat Configuration

2005-07-14 Thread Iin Nurhidayat
See nothing at all, get 404 resource /myapplication is not available .. - IN - --- Bryan Scarbrough [EMAIL PROTECTED] wrote: Will it load the Login.html file, or do you simply see nothing at all? On 7/14/05, Iin Nurhidayat [EMAIL PROTECTED] wrote: Hi All, I have a problem

Re: Linking Tomcat to Apache

2005-07-14 Thread Bryan Scarbrough
How is it all currently configured (the mod_jk portions)? Bryan On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote: I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 I followed the instructions and I thought I had it all right! But I edited my httpd.cong file to support virtual hosts

Re: Which is the latest 'stable' JK connector?

2005-07-14 Thread Bryan Scarbrough
I believe it is v. 1.2.13. Bryan On 7/14/05, Alex Sansom [EMAIL PROTECTED] wrote: Hi, Can someone please confirm which is the latest stable JK connector please? I've been looking at the JK documentation located at http://jakarta.apache.org/tomcat/connectors-doc/index.html but it is not

Re: Admin account - embedded tomcat in netbeans

2005-07-14 Thread Geertjan Wielenga
Hi Jay, Did you find the answer to your problem? If not, I can help. (Basically, don't edit tomcat_users.xml in the NetBeans installation directory, but in the NetBeans user directory instead.) -- Geertjan [EMAIL PROTECTED] wrote: All - I have installed netbeans and want to

Re: debugging tomcat itself with netbeans

2005-07-14 Thread Geertjan Wielenga
Hi Herman, Did you get further with this? -- Geertjan Hernan Ochoa wrote: Hi all, I'm trying to debug tomcat itself v5.5.9 using netbeans 4.1 without much luck. I'm able to attach to a running instance of tomcat using JPDA, but then my breakpoints are activated erraticaly. Did someone try

Is there another version of Tomcat coming any time soon

2005-07-14 Thread Edmon Begoli
Hi, I am trying to schedule a production release, so I would like to know if there is another point release of Tomcat coming out (like 5.5.10) within next month and a half. -- Thank you, Edmon Begoli http://blogs.ittoolbox.com/eai/software

Re: [OT] photo album software for web site

2005-07-14 Thread Ben Kim
Sorry about this off topic post, but I am looking for a couple free software for the pictures on my web sites. One is to display pictures as slide show, and the other one is to display pictures as thumbnails (clickable for full size). They must be able to run on UNIX server and do not

Re: [OT] photo album software for web site

2005-07-14 Thread Peter Lin
or you could just use one of the free sites out there like flickr.com spogger.com peter On 7/14/05, Ben Kim [EMAIL PROTECTED] wrote: Sorry about this off topic post, but I am looking for a couple free software for the pictures on my web sites. One is to display pictures as slide show,

RE: Which is the latest 'stable' JK connector?

2005-07-14 Thread Alex Sansom
Thanks for the response Bryan. Where did you get the information from? Do you have a link? No doubt it'll be handy for future reference... Regards, Alex -Original Message- From: Bryan Scarbrough [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 14:09 To: Tomcat Users List Subject: Re:

How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have done the trick if we replaced it, but I can't find any references to it in the latest source

What is allowed to do with a HttpServletRequest ?

2005-07-14 Thread cristi
Hello all I have a web application where I need to use in a second request the HttpServletRequest object sent to the same servelet in the first request. Here is what my servlet looks like : public void doGet( HttpServletRequest request, HttpServletResponse response ) { /* some code

Session Mixup

2005-07-14 Thread Srinivas Gunturu
Hello All, I have been fighting this session mix-up problem in our application which is very easily reproducible. Environment: Tomcat 5.0.9 Struts 1.1 Upon user login, we create a user bean object and store on user session. When 6 of us tried to login separately using our own logins, we

Re: What is allowed to do with a HttpServletRequest ?

2005-07-14 Thread Guillaume Lederrey
The question is probably : why do you need to refer to the first request ?. Dont you need to actually refer to some state of the request ? Could you extract that state from the request instead of storing the full request ? Maybe I'm just asking a dumb question, but I have problem understanding

RE: What is allowed to do with a HttpServletRequest ?

2005-07-14 Thread Peter Crowther
From: cristi [mailto:[EMAIL PROTECTED] I have a web application where I need to use in a second request the HttpServletRequest object sent to the same servelet in the first request. [...] session.setAttribute( FIRST_REQUEST_OBJECT, request ); Unsafe. Servlet containers may re-use

Re: Session Mixup

2005-07-14 Thread David Smith
Any static field storage in your bean object? --David Srinivas Gunturu wrote: Hello All, I have been fighting this session mix-up problem in our application which is very easily reproducible. Environment: Tomcat 5.0.9 Struts 1.1 Upon user login, we create a user bean object and store on

Re: Session Mixup

2005-07-14 Thread Srinivas Gunturu
Thanks for the quick response. We do have some static final constants in the user bean, but not marked Transient. [EMAIL PROTECTED] 07/14/05 10:26 AM Any static field storage in your bean object? --David Srinivas Gunturu wrote: Hello All, I have been fighting this session mix-up problem

Re: Session Mixup

2005-07-14 Thread Peddireddy Srikanth
Hi, It never happened to me and it will not happen also unless there is some serious bug in ur code. Are you six people trying to login simultaneously from different machines? Or trying to login from same system one after another from same system? If it is the second case, then it copuld be the

Re: Session Mixup

2005-07-14 Thread Srinivas Gunturu
All 6 of us are logging simultaneously from different machines. The way, we store the user object in session is inside LoginAction class and not inside the jsp. session.setAttribute(Constants.USER_KEY, userInfo); [EMAIL PROTECTED] 07/14/05 10:34 AM Hi, It never happened to me and

Strange problem with tomcat 5.5.9

2005-07-14 Thread Paulo Neves
Hi all, I've a strange problem with my tomcat. When I have a network problem with my router my tomcat that is install in another machine reload webapps (balancer, manager, admin ) except my webapp. If i run tomcat manager and see webapps list, manager said that webapp is running but is not. To

robots.txt

2005-07-14 Thread Eric J. Pastoor
The msn bot has been hammering one of my webapps for about 2 weeks now. I have a calendar style transaction page that is not password protected. Essentially this calendar goes on forever. This means that the msn bot is basically going on forever. It is making my log files insanely large. Is

Re: Which is the latest 'stable' JK connector?

2005-07-14 Thread Bryan Scarbrough
If you look at the following link it only says that the 1.2.14 version is still awaiting approval to be specified as stable. http://jakarta.apache.org/tomcat/connectors-doc/news/20050101.html#20050713.1 Bryan On 7/14/05, Alex Sansom [EMAIL PROTECTED] wrote: Thanks for the response Bryan.

Re: robots.txt

2005-07-14 Thread Tim Funk
Place a robots meta tag in the head tag of your html. -Tim Eric J. Pastoor wrote: The msn bot has been hammering one of my webapps for about 2 weeks now. I have a calendar style transaction page that is not password protected. Essentially this calendar goes on forever. This means that the msn

Re: robots.txt

2005-07-14 Thread Mark Benussi
With follow = false or something cant remember the exact syntax Original Message Follows From: Tim Funk [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: robots.txt Date: Thu, 14 Jul 2005

Re: [OT] robots.txt

2005-07-14 Thread Rahul Akolkar
Marked OT. On 7/14/05, Eric J. Pastoor [EMAIL PROTECTED] wrote: The msn bot has been hammering one of my webapps for about 2 weeks now. I have a calendar style transaction page that is not password protected. Essentially this calendar goes on forever. This means that the msn bot is basically

Re: Session Mixup

2005-07-14 Thread David Smith
Ok. One other thought that's burned me once -- servlet instances are recycled between requests without resetting any of it's field members. The next request gets it exactly as the one before left it. That means you should either avoid field members in favor of method parameters + method local

mod_jk - multiple workers for same Tomcat instance?

2005-07-14 Thread David Hay
Hi, Is it possible to specify multiple workers for the same Tomcat instance? We'd like to balance different contexts with different load factors to the same Tomcat (hope that makes sense!). I'm thinking we could define another AJP13 connector on a different port, but not sure how to specify

Re: mod_jk - multiple workers for same Tomcat instance?

2005-07-14 Thread Mladen Turk
David Hay wrote: Hi, Is it possible to specify multiple workers for the same Tomcat instance? Yes. But this will impose additional load to the tomcat doubling the number of connections from apache to mod_jk for each worker. For ten workers you may end up with 2500 connections with 250

OracleDataSourceFactory

2005-07-14 Thread Durfee, Bernard
In the ever confusing quest to properly create an Oracle data source in Tomcat 5.5.x using the 10g JDBC drivers, I am stuck trying to properly configure connection caching. I've tried the following in my context XML file... Resource name= jdbc/suny auth=

Re: mod_jk - multiple workers for same Tomcat instance?

2005-07-14 Thread David Hay
Hi, We have set up several contexts eg one for client requests and one for admin requests, for a set of Tomcat servers, fronted by Apache. We would like to balance them differently, allowing one machine to take most of the admin load. There doesn't seem to be a lbfactor parameter for a

Re: robots.txt

2005-07-14 Thread Eric J. Pastoor
thanks for your help with both the meta solution as well as the servlet solution. ~eric - Original Message - From: Mark Benussi [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, July 14, 2005 2:22 PM Subject: Re: robots.txt With follow = false or something cant

RE: Session Mixup

2005-07-14 Thread Caldarale, Charles R
From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Session Mixup Ok. One other thought that's burned me once -- servlet instances are recycled between requests without resetting any of it's field members. Actually, a given servlet object may be accessed by multiple

RE: RFC-2047 Header Character Set Encoding JK + Tomcat 5

2005-07-14 Thread Guernsey, Byron \(GE Consumer Industrial\)
For others who might be interested- and the tomcat developers should correct me if I'm wrong since this goes into the archive, Tomcat 5.5.9 or does not appear to support RFC-2047 for processing MIME-Headers that use different character encodings besides ISO-8859-1. Searching through 1000's of

Re: Tomcat5.0 Database Connection Pooling Configuration

2005-07-14 Thread Alon Belman
you can define resources for all of a host's contexts by using a GlobalNamingResources element see here for more info: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/globalresources.html On 7/13/05, Foo Shyn [EMAIL PROTECTED] wrote: Hi there, Have a question on dbcp settings. I'd

Starting Tomcat 5.0.19 without the console

2005-07-14 Thread Mitchell Teixeira
Hi - I'm trying to use the javaw option in catalina.bat to kick off Tomcat without opening a console window. Besides not having an always open command prompt window (console) I hope to get the various messages which print to the console to go into the standard log. I've been experimenting with the

Assistance

2005-07-14 Thread Medha Parathasarathy
Hi By any chance, any body in the group is interested in a party time assignment of maintaining the my-lending.com site of mine. If any body is interested, please revert with your profile and cost per hour regards On Thu, 14 Jul 2005 14:35:10 -0700 (PDT), Mitchell Teixeira [EMAIL PROTECTED]

Re: How to Replace Tomcat authentication?

2005-07-14 Thread Bill Barker
ohaya [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have done the trick if we

Re: Is there another version of Tomcat coming any time soon

2005-07-14 Thread Bill Barker
I would guess that 5.5.10 will likely come out within the next month+0.5, but this is only a guess. No timetable for a release has been mentioned recently on the dev list. Edmon Begoli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to schedule a production release,

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: ohaya [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have

Re: What is allowed to do with a HttpServletRequest ?

2005-07-14 Thread Bill Barker
cristi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all I have a web application where I need to use in a second request the HttpServletRequest object sent to the same servelet in the first request. Here is what my servlet looks like : public void doGet(

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: ohaya [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have

Re: Session Mixup

2005-07-14 Thread Peddireddy Srikanth
srinivas, can u post the code fragment which contains all statements from creating the new user bean : userInfo to settin it in session and any other related XML if any On 7/14/05, Srinivas Gunturu [EMAIL PROTECTED] wrote: All 6 of us are logging simultaneously from different machines.

Re: How to Replace Tomcat authentication?

2005-07-14 Thread ohaya
Bill Barker wrote: ohaya [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I've been looking into possibly replacing Tomcat's authentication with our own functionality. It looks like there use to be a class called SimpleRealm in the older Tomcat versions that would have

Production cluster crashed with SEVERE: TCP Worker thread... error

2005-07-14 Thread Joseph Lam
Hi In my 4-node TC5.5.9 cluster, the catalina.out suddenly got flooded by the error below and the whole cluster simply stopped responding to web clients. I have to restart all nodes in order to get it back to normal. It seemed to be triggerred by a surge in loading but not able to resume even

Re: Production cluster crashed with 'SEVERE: TCP Worker thread...' error

2005-07-14 Thread Joseph Lam
Several minutes before the crash, I found some session replication error. That seemed to cause all my JK connector threads being hold up and no responding to further requests. catalina.out: Jul 15, 2005 10:29:01 AM org.apache.catalina.cluster.tcp.DataSender pushMessage INFO: resending 504 bytes

Re: out of memory error while load testing

2005-07-14 Thread Peddireddy Srikanth
Hi, Its giving out of memory over a period of time (i.e after test ran for some time ) not immediately after starting the test Follwing settings are given in my server.xml For HTTP Connector port=80 maxThreads=500 minSpareThreads=25 maxSpareThreads=75

Re: out of memory error while load testing

2005-07-14 Thread Peddireddy Srikanth
I forgot to give details about my Application and test. These details might give you people an idea about the problem area. In this app. users has to enter login ID and pwd in home page which will be sent to a resource which validates these details, say LoginValidation this resource will then

Re: session replication problem: ClassCastException

2005-07-14 Thread Christian Schuhegger
Hi Peter, thank you very much for your quick response! I have more information on this topic now. Peter Rossbach wrote: First your are sure that your wars inside the installation art identical? Yes I am. Our automated install procedure ensures that. You stacktraces are strange. The