Re: Best Logging practices

2003-02-19 Thread Manavendra Gupta
Without an intent to offend anyone, I'd say majority of the posts were centered around what tools to use, rather than the best practices itself (apart from the posts of Jacob and Peter Lin). So, from what I understand: 1. Web applications written using tomcat should have the logging path

Re: Best Logging practices

2003-02-19 Thread Manavendra Gupta
I agree. When I posted that, it was a summation of the posts that I had seen till that time. What I've been looking for is a standard way to configure my .war archives, such that we can call it a true deployable - without any interference from the users. Like someone else pointed out, the intent

Re: Best Logging practices

2003-02-19 Thread Manavendra Gupta
Hi Peter, Thanks a lot for the response. here are some other considerations. For some of the projects I've worked on in the past, there were established directories for logs. Therefore I used log4j to write my logs asynchronisly. Could you elaborate on established directories? I assume these

Best Logging practices

2003-02-18 Thread Manavendra Gupta
Any pointers/thoughts about web application logging practices? You generally see almost each individual with different opinion about this (from logging into the system temporary directory to inside WEB-INF). Are there any best practices for this? Thanks, Manav.

Tomcat security configuration guide

2003-02-12 Thread Manavendra Gupta
Hi, I have begun to work on a tomcat security configuration guide as a one-stop guide for helping system administrators, security professionals and programmers to configure system user accounts and groups, file permissions, tomcat security realms, java security manager, etc in the optimal way

Filter problems

2003-02-08 Thread Manavendra Gupta
Hi, I have a simple security filter for authentication used for a custom MVC framework application. Everything works properly, however, if a large file is uploaded (about 17MB), I get the error listed below. As you can see the root cause is RTIFilter.java line 67. This line has the following

Re: may i have answer and help

2003-02-02 Thread Manavendra Gupta
what do the logs say? - Original Message - From: rekha upadhyaya [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 02, 2003 2:41 AM Subject: may i have answer and help hello sir/madam i have operating system 98. and i have develop a small

Re: WAR Problem

2003-01-19 Thread Manavendra Gupta
You said you were able to see the first jsp page, but not the servlet. Do you have a web.xml inside your war ? - Original Message - From: eric [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 19, 2003 12:40 AM Subject: WAR Problem Greetings! New to Jakarta and I'm stuck.

Re: WAR Problem - No Go

2003-01-19 Thread Manavendra Gupta
Hi Eric, I'm not sure what has happened. I see two things in error.log that you posted: 1. tomcat tries to remove the child while shutting down, and gets an error that the context /apress has not been started yet. 2. while starting up, tomcat again tries to bring up the context /apress but

Re: WAR Problem - That was it

2003-01-19 Thread Manavendra Gupta
will be the effect of that? Thanks for your help!! Eric On Monday 20 January 2003 02:53, Manavendra Gupta wrote: Hi Eric, I'm not sure what has happened. I see two things in error.log that you posted: 1. tomcat tries to remove the child while shutting down, and gets an error

Re: Tool for HTTP Request Stress Test

2003-01-18 Thread Manavendra Gupta
1. Apache JMeter (http://jakarta.apache.org/jmeter) 2. http://grinder.sourceforge.net 3. LoadRunner (www.merc-int.com/products/loadrunner/) 4. openSTA (http://www.opensta.org/) ~Manav. - Original Message - From: randie ursal [EMAIL PROTECTED] To: A mailing list about TOMCAT [EMAIL

Re: Tomcat Won't start on NT

2003-01-18 Thread Manavendra Gupta
This problem of running tomcat 4.1 and above, with JDK 1.4 and above has been documented (and quite well too) at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html (scroll down to the section XML Parsers and JDK 1.4). In essence, the conflict is caused by the built-in JAXP

Common problems faced with tomcat configuration

2003-01-18 Thread Manavendra Gupta
Hi, In the past several months that I have been in the list, I have seen the following problems faced commonly by the users (new or old): 1. Configuring DataSource with tomcat 2. Configuring tomcat to run with apache (using AJP or JK2) I would like to know if there is anything being done to

tomcat in production mode

2003-01-14 Thread Manavendra Gupta
Hi, What are the steps/precautions that should be taken to run tomcat 4.1.x in production on windows (apart from running it as a service, and turning auto-compilation of JSP pages off)? Is there a checklist of standard practices out there? Regards, Manav. -- To unsubscribe, e-mail:

setting up classpath for tomcat running as windows NT service

2003-01-08 Thread Manavendra Gupta
Hi, How to setup classpath for tomcat 4.x running as windows NT service? Apparently, when started, tomcat.exe does not read from catalina.bat (or so i think). Regards, Manav.

Re: tomcat 4.1.12 just stopped working, help !

2003-01-07 Thread Manavendra Gupta
8080 :(( /Dan -Ursprungligt meddelande- Från: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Skickat: den 7 januari 2003 23:42 Till: Tomcat Users List Ämne: Re: tomcat 4.1.12 just stopped working, help ! As the log suggests, the deployment descriptor of the servlet does not conform

Re: DataSource error (DBCP)

2002-12-23 Thread Manavendra Gupta
tomcat 4.x doesn't like classes in the root directory - place that class into a package and then try again. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 23, 2002 12:42 AM Subject: Re: DataSource error (DBCP) while

bizarre error

2002-12-19 Thread Manavendra Gupta
Hi, I have a home-grown framework akin to struts, and a li'l Filter for authorization and authentication. Sometimes, when upon starting tomcat, I get the error listed below. If I refresh the page, everything starts working - and its not necessary that the error will occur on every restart. So

slightly OT: tag library for paging

2002-12-19 Thread Manavendra Gupta
Hi, I apologize for the slightly off-topic post, but is there a tag library available out there for pagination of records fetched from the database? I did google, but didn't find any. thanks, manav.

Re: slightly OT: tag library for paging

2002-12-19 Thread Manavendra Gupta
library for paging Will this work: http://edhill.its.uiowa.edu/display-examples-0.8/ -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 11:26 PM To: Tomcat Users List Subject: slightly OT: tag library for paging Hi, I apologize

nulls in tomcat logs

2002-12-12 Thread Manavendra Gupta
Hi, I had posted a similar message (on the datasource thread) a few days ago, but I guess it was lost in the flurry of I don't understand the objective of this list messages. Below is a snippet of the tomcat 4.1 logs on my NT workstation. Notice there are two null entries... while, both the

RE: learning filters

2002-12-11 Thread Manavendra Gupta
I wrote a simple filter for authentication: public void doFilter(ServletRequest request, ServletResponse response, FilterChain next) throws java.io.IOException, javax.servlet.ServletException { // HTTP request and response that we work with. HttpServletRequest

RE: oracle+tomcat 4.1.x+dbcp = driverClassName is required!

2002-12-10 Thread Manavendra Gupta
|ResourceLink} /context If you could explain this, it would be just fine! For now I'll use the DefaultContext... thanks, Pedro Salazar On Mon, 2002-12-09 at 16:09, Manavendra Gupta wrote: Hi Pedro, Welcome to the club - there are a number of ppl facing the exact same problem, but are unable to find

slight OT: RequestInterceptor

2002-12-10 Thread Manavendra Gupta
Hi, This probably is slightly off-topic, but I would like to know: 1. How to implement a RequestInterceptor? Is there some sample code available? 2. Is it a good idea to implement one for managing sessions? Thanks, Manav. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Valve [was slight OT: RequestInterceptor]

2002-12-10 Thread Manavendra Gupta
before and would share some docs/code? Or do i need to look into the tomcat-dev list? :-) Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 5:04 PM To: Tomcat Users List Subject: slight OT: RequestInterceptor Hi, This probably

RE: Enough please!

2002-12-10 Thread Manavendra Gupta
-Original Message- From: Roberts, Eric [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 7:35 PM To: Tomcat Users List Subject: Enough please! have been attempting to help people with database pooling (mine works :-)) for the last few days, but I have had to spend far too

RE: Enough please!

2002-12-10 Thread Manavendra Gupta
i agree! and if i don't get any replies for my posts, i can be the next one to spam and resend all my emails :-) woohoo! -Original Message- From: Caton, Paul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 7:41 PM To: Tomcat Users List Subject: RE: Enough please! I agree.

RE: Connection Pooling Help

2002-12-09 Thread Manavendra Gupta
I am surprised with the number of ppl facing this problem, including myself. And it makes me wonder how others on this list have been able to use DataSource/Connection Pooling with tomcat. It seems to be one feature where majority of ppl have been facing problems, yet there is not much of

RE: Connection Pooling Help

2002-12-09 Thread Manavendra Gupta
surprised by the number of people facing this problem. Andy. -Original Message- From: Manavendra Gupta To: Tomcat Users List Sent: 09/12/2002 14:14 Subject: RE: Connection Pooling Help I am surprised with the number of ppl facing this problem, including myself. And it makes me wonder how others

RE: Connection Pooling Help

2002-12-09 Thread Manavendra Gupta
anymore and does not work correctly with apache 1.*, 2.*. USE mod_jk2 it works fine with the pool connection. I had the same problem a few days ago and I resolve the problem changing connectors. I hope this help. Quoting Manavendra Gupta [EMAIL PROTECTED]: I am surprised with the number of ppl

RE: oracle+tomcat 4.1.x+dbcp = driverClassName is required!

2002-12-09 Thread Manavendra Gupta
Hi Pedro, Welcome to the club - there are a number of ppl facing the exact same problem, but are unable to find answer. Do let me know what you did if you find a solution. Manav. -Original Message- From: Pedro Salazar [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 9:12 PM

RE: Tomcat 4.1, DBCP and Oracle

2002-12-09 Thread Manavendra Gupta
Oracle has changed the driver class for version 1.1x to 1.2. In 1.1x it was oracle.jdbc.driver.OracleDriver while in 1.2 is oracle.jdbc.OracleDriver - so use the driver depending upon the version you are using (you can unjar/unzip and you'd find what class you really have). Regards, Manav.

RE: Tomcat 4.1, DBCP and Oracle

2002-12-09 Thread Manavendra Gupta
I had faced a similar situation, but wasn't sure why it was working on windoze! -Original Message- From: Campano, Troy [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 11:15 PM To: Tomcat Users List Subject: RE: Tomcat 4.1, DBCP and Oracle Ok...now the problem is stranger. I

RE: Tomcat 4.1, DBCP and Oracle

2002-12-09 Thread Manavendra Gupta
=Container, scope=Shareable] No such message on linux though. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 10:30 AM To: Tomcat Users List Subject: RE: Tomcat 4.1, DBCP and Oracle I had faced a similar situation, but wasn't sure why

newbie: Realm

2002-12-06 Thread Manavendra Gupta
Hi, Like all web applications, I need to provide some kind of session maintenance. Would the concept of a Realm help in this? 1. Is this the correct application/use of a realm? 2. Is a realm akin to a SSO/LDAP server, where the user's roles and mapping to actions is stored? 3. How extensible is

(apparent) tomcat configuration problem

2002-12-06 Thread Manavendra Gupta
Hi, tomcat 4.1 starts succesfully, but on shutdown gives the following error: Uing CATALINA_TMPDIR: /usr/local/tomcat/temp Using JAVA_HOME: /usr/local/jdk PARSE error at line 1 column -1 of /usr/local/tomcat/conf/server.xml org.xml.sax.SAXParseException: Document root element is missing.

DataSource problem.

2002-12-06 Thread Manavendra Gupta
Hi, I am trying to obtain a connection from a DataSource in a test class and get the following error: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
Tried the same with a simplistic jsp page: %@ page import=java.sql.*, javax.sql.*, javax.naming.* % HTML BODY % out.println(hello); Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/rtidb); Connection

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
I haven't been able to solve this yet... but was wondering if tomcat logs somewhere that the Resource Manager added a new resource (a DataSource)? Thanks, Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 3:46 PM To: Tomcat Users

Thread dump

2002-12-06 Thread Manavendra Gupta
I have tomcat 4.1 running on Linux. How do i see the thread dump? The startup.sh on linux just starts it in the background, while i could use startup.bat on windows and get the thread dump. thanks, manav. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: Thread dump

2002-12-06 Thread Manavendra Gupta
, December 06, 2002 9:18 PM To: Tomcat Users List Subject: Re: Thread dump kill -3 pid RS Manavendra Gupta To: Tomcat Users List [EMAIL PROTECTED] [EMAIL PROTECTED

RE: Thread dump

2002-12-06 Thread Manavendra Gupta
Thanks. I'm gonna try jpda - i have just started exploring it. i was interested to see the thread dump from the point tomcat's main() starts, to get a hang of the sequence of the class loaders/resource managers/security realms, etc starting up. thanks, manav. -Original Message- From:

RE: DataSource problem.

2002-12-06 Thread Manavendra Gupta
*deep breath. I'm lost about this... would anyone take a shot at helping me? Thanks Manav. -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 9:19 PM To: Tomcat Users List Subject: RE: DataSource problem. I haven't been able to solve

Transactions

2002-12-05 Thread Manavendra Gupta
Hi, 1. How do I implement transactions in tomcat for a non-J2EE web application? 2. Can anyone provide me with any links on this? 3. Do I need to use JTA for this? 4. Does tomcat support JTA? TIA, Manav. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

RE: configuring tomcat not to generate java source

2002-12-04 Thread Manavendra Gupta
so what do you think should happen to the jsp pages if tomcat does not generate code? -Original Message- From: Ronen Shenkar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: configuring tomcat not to generate java source I wonder if

Re: Problems running Tomcat from command line

2002-11-25 Thread Manavendra Gupta
Hi, All your problems stem from the lack of environment space. If you run this on '95/98 you'd get the same error. While running tomcat, do you really need to have such a long path (as specified)? You could write a small batch file to keep the path to the bare minimum - this way you'd have more

Re: Problems running Tomcat from command line

2002-11-25 Thread Manavendra Gupta
Did you try this by opening a new command window? (After you change the comspec parameters, the changes take place only in a new window). Manav. - Original Message - From: Steve Russell [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 4:09 AM

Fw: Oracle thin client DataSource configuration with tomcat

2002-11-19 Thread Manavendra Gupta
Hi, Any hints anyone? Joel Sather gave me a couple of replies, but I haven't been able to proceed. Thanks, manav. - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 18, 2002 8:59 PM Subject: Oracle thin

Re: Fw: Oracle thin client DataSource configuration with tomcat

2002-11-19 Thread Manavendra Gupta
configuration with tomcat Do you get a neverending page ? Manavendra Gupta wrote: Hi, Any hints anyone? Joel Sather gave me a couple of replies, but I haven't been able to proceed. Thanks, manav. - Original Message - From: Manavendra Gupta [EMAIL PROTECTED

Fw: Oracle thin client DataSource configuration with tomcat

2002-11-19 Thread Manavendra Gupta
=javax.sql.DataSource, auth=Container, scope=Shareable] Any clues? TIA, Manav. - Original Message - From: Manavendra Gupta [EMAIL PROTECTED] To: Manavendra Gupta [EMAIL PROTECTED] Sent: Wednesday, November 20, 2002 5:50 AM Subject: Re: Oracle thin client DataSource configuration with tomcat Sorry, forgot

Oracle thin client DataSource configuration with tomcat

2002-11-18 Thread Manavendra Gupta
Hi, I'm sure the gurus have discussed this issue a number of times and probably found a solution too, but after reading all the documents i found, i came to a naught. Its the same problem: server.xml and web.xml seem to have been configured properly, yet when i try to obtain a datasource i get

Re: Who can help ???

2002-11-18 Thread Manavendra Gupta
Did you try using the '.htaccess' from apache? Manav. - Original Message - From: Jean-Luc BEAUDET [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; tomcat-user [EMAIL PROTECTED] Sent: Monday, November 18, 2002 8:52 PM Subject: Who can help ??? Hi all, Runnin' Tomcat

Re: Oracle thin client DataSource configuration with tomcat

2002-11-18 Thread Manavendra Gupta
client DataSource configuration with tomcat What happens when you attempt to refrence the JSP from a browser ? The connection pool with Oracle is not established until a JSP which uses the pool is requested. as -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED