jsps giving NoClassDefFoundError in production

2007-11-15 Thread Gaurav Kushwaha
Hi, I have an application running under heavy load. While redeploying, some of my JSPs start throwing NoClassDefFoundError. java.lang.NoClassDefFoundError: com/proj/tag/TagCloud at org.apache.jsp.WEB_002dINF.jsps_.detail_005fpages..Entity1Detail_jsp._jspService

Unable to compile class for JSP

2007-04-17 Thread Gaurav Kushwaha
Hi, I am getting Unable to compile class for JSP error in one of my JSPs which was working perfectly until 2 days back. It says: An error occurred at line: 10 in the jsp file: /WEB-INF/jsps/Listing.jsp String perspective = null; ^ This jsp is being included in another JSP and

Re: Unable to compile class for JSP

2007-04-17 Thread Gaurav Kushwaha
the libraries in the main JSP not in every included file If u use Netbeans Right click on the main JSP and compile it... it will show you the errors have fun - Original Message - From: Gaurav Kushwaha [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday

Re: Classloader leak

2007-04-17 Thread Gaurav Kushwaha
Isn't it a known problem that if you redeply a webapp using tomcat admin tool, the older class definitions are not dumped from the memory hence causing the memory leak ?? I dont remember but I read it somewhere. Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880110695 Bangalore, India.

Log4j problems in Tomcat 5.x

2007-03-21 Thread Gaurav Kushwaha
I am trying to use log4j with Tomcat. I created a log4j.properties file and dumped it in WEB-INF/classes. I believe its still not being picked up by Tomcat. Any ideas ? Regards, Gaurav Singh Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183 Ph: +91-9880110695

Re: tomcat behind tomcat

2007-02-12 Thread Gaurav Kushwaha
Not sure about this but you can probably use Apache Web Server to do the job of first Tomcat. Or maybe you can use some port forwarding mechanism. Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880110695 Bangalore, India. On 2/12/07, siddharth karandikar [EMAIL PROTECTED] wrote: Hi

Re: log4j and CLASSPATH problems on linux

2007-02-04 Thread Gaurav Kushwaha
Log4j loads log4j.properties from the classpath of the classloader that loaded itself(log4j classes). In your case, log4j is loaded by tomcat classloader, since it is present in $TOMCAT_HOME/lib. Classes and files under WEB-INF/classes are not visible to that classloader, hence the problem.

Re: Tomcat and JSP Issue

2007-02-04 Thread Gaurav Kushwaha
A pair of curly brackets constitute a logical block. A variable declared inside a block is visible within that block and the blocks contained in that block. In your case the place where you are using the variable myname is outside the block where u declared it. Hence the problem. Can you please

Re: [OT] how to make a scheduled event on tomcat

2007-02-04 Thread Gaurav Kushwaha
Thanks Chirstopher for a detailed reply. A very insightful and convincing mail indeed. My problem is I have never tried writing a cron job before. So I have no idea on how to go about it. Hence I will try quartz first. Going by its description here, it should serve my purpose for the time being.

Re: how to make a scheduled event on tomcat

2007-02-04 Thread Gaurav Kushwaha
Thanks Chirstopher for a detailed reply. A very insightful and convincing mail indeed. My problem is I have never tried writing a cron job before. So I have no idea on how to go about it. Hence I will try quartz first. Going by its description here, it should serve my purpose for the time being.

how to make a scheduled event on tomcat

2007-02-01 Thread Gaurav Kushwaha
I would like to have a method that will run every-so-often. Lets say once in 2 weeks. How do I do that in Tomcat ? Thanks, Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India.

Re: How do I increase performance on Tomcat?

2007-02-01 Thread Gaurav Kushwaha
/29/07, Nelson, Tracy M. [EMAIL PROTECTED] wrote: | From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] | Sent: Monday, 29 January, 2007 06:11 | | I have an application that has been working fine for last half an year | or so. Recently the load has started increasing and the time it takes

Re: noClassDefFound error for class in [webapp]/WEB-INF/lib jar file

2007-02-01 Thread Gaurav Kushwaha
Check your Tomcat's server lib ($TOMCAT_HOME/server/lib) to make sure you don't have any non-standard (not shipped with standard Tomcat) jars lying there. If thats the case those jars will be loaded by the tomcat's classloader and hence the jars and classes in web app won't be visible to them.

How do I increase performance on Tomcat?

2007-01-29 Thread Gaurav Kushwaha
Hi, I have an application that has been working fine for last half an year or so. Recently the load has started increasing and the time it takes to serve a request is going up significantly. When I look at the resource utilization(memory and CPU), it hardly shows an increase. Garbage

Tomcat as root and security issues

2007-01-26 Thread Gaurav Kushwaha
I read somewhere that if I want to run Tomcat standalone on port 80, I will have to run it as root and that this is potentially unsafe. Is there any way for me to run it on port 80 without having to give the root privileges to the process. Thanks, Gaurav Singh Kushwaha http://www.chakpak.com

Re: Tomcat as root and security issues

2007-01-26 Thread Gaurav Kushwaha
Thanks, I will read about these. Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India. On 1/26/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Gaurav Kushwaha wrote: I read somewhere that if I want to run Tomcat standalone on port 80, I will have to run

Memory Mgmt Tomcat

2007-01-25 Thread Gaurav Kushwaha
I am running Tomcat 5.0.28 on Linux. It works fine for few days but starts throwing OutOfMemoryException after that. Any clues ?? Thanks, Gaurav Singh Kushwaha http://www.chakpak.com Ph: +91-9880101496 Bangalore, India.

Re: Memory Mgmt Tomcat

2007-01-25 Thread Gaurav Kushwaha
- From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 5:10 PM To: Tomcat Users List Subject: Memory Mgmt Tomcat I am running Tomcat 5.0.28 on Linux. It works fine for few days but starts throwing OutOfMemoryException after that. Any clues ?? Thanks, Gaurav Singh

Re: Tomcat Exception

2006-11-24 Thread Gaurav Kushwaha
Did you try your web app in a different installation of Tomcat ? I think your Tomcat installation is messed up. On 11/25/06, nayabinghi [EMAIL PROTECTED] wrote: I recently deployed a application and on startup Tomcat throws the exception below. I have posted this in java forum thinking it is

Re: Memory Usage

2006-11-22 Thread Gaurav Kushwaha
See, tomcat doesn't create a thread per request. It uses one from the pool and after doing its job the thread returns to the pool. What might be happening in your case is that those threads are not going back to the pool after processing the request. So you will need to find out where those

Re: Tomcat hang and port in used problem

2006-11-22 Thread Gaurav Kushwaha
The reason might be that your threads are getting blocked and are not returning to Tomcat's thread pool. In that case, since tomcat doesn't have any worker thread left to cater to requests, it would seem that it has hung. Also, when you try to terminate tomcat normally (using shutdown.sh), Tomcat

Re: Tomcat et log4j

2006-11-22 Thread Gaurav Kushwaha
I am not sure if putting log4j.properties in WEB-INF will work. It has to be in the classpath. So he will need to put it in WEB-INF/classes. On 11/23/06, Andrew Stepanenko [EMAIL PROTECTED] wrote: I'm not sure about this line: log4j.rootLogger=WARN,monAppender In my log4j.properties it is:

Re: Memory Usage

2006-11-22 Thread Gaurav Kushwaha
About thread dump: When you are using Tomcat Manager to dump threads, it might be doing that in your catalina.out file. So check that file after dumping. About timer threads: When you stop Tomcat, it waits for all the non-daemon threads to finish execution before proceeding with normal shutdown.

Re: WEB-INF/lib/*.jar

2006-11-22 Thread Gaurav Kushwaha
Moreover, you should never put your applicaiton jars to common/lib since then those will be loaded by Application classloader and not WebAppClassLoader. This results in serious problems when you are running multiple web apps or upgrading your application's version. On 11/22/06, Caldarale,

Re: Basic commands to work with a Tomcat

2006-11-21 Thread Gaurav Kushwaha
Here is a quick start guide for Tomcat. Try it out. http://piglet.uccs.edu/~cs526/jwsdp/docs/tutorial/doc/GettingStarted.html On 11/21/06, Vijay Hatewar [EMAIL PROTECTED] wrote: Hi All , I am new to use of Tomcat , could anybody write me few basic commands that can help me , for ex I need

Re: Memory Usage

2006-11-21 Thread Gaurav Kushwaha
I would say you are barking on a wrong tree in suspecting the garbage collector to be the culprit. Garbage collection not running in time(or in proper intervals) can cause the applicatin to slow down or have spikes in the performance but it will not cause the applicaiton to stop. Lets try to

Re: logging

2006-11-21 Thread Gaurav Kushwaha
Can you mail the contents of your log4j.properties file. On 11/21/06, Kevin R. Gutch [EMAIL PROTECTED] wrote: I am trying to correctly configure logging in my application. Currently I have placed logging.properties in the /WEB-INF/classes folder. With this I get a log file specific to the

Tomcat Performance Concerns

2006-11-18 Thread Gaurav Kushwaha
I have a simple JSP-application that makes use of an ODBC database (access). When I run it using Tomcat on PC2 (XP) its performance is very good. However, running on PC1 (W2K Server) is orders of magnitudes slower! :-( I have already read most of the relevant manuals and tried various settings

Re: Tomcat Performance Concerns

2006-11-18 Thread Gaurav Kushwaha
Thanks Martin and Everyone else for the suggestions. Martin, Oracle I dont want to go with since its expensive. I will infact try out MySQL and will let you guys know. Regards, Gaurav. On 11/18/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Morning Gaurav- It is truly Amazing how many

Re: Tomcat Out Of Memory

2006-11-15 Thread Gaurav Kushwaha
A quick fix would be to specify minimum and maximum heap size using JVM parameters -Xms and -Xmx. -Xms specifies the minimum heap size and -Xmx is used to determine the maximum allowed heap size. So, lets say if you have enough memory to allocate 512 MB to your java process you shoud write

Re: Logging problem

2006-01-02 Thread Gaurav Kushwaha
I think you haven't defined the root category in your log4j.properties file. That might be causing the problem. Adding following lines should fix the problem: log4j.rootCategory=[priority], appenderName Regards, gaurav On 1/2/06, mukesh [EMAIL PROTECTED] wrote: Hi friends,

obtaining http port in a running application

2005-11-08 Thread Gaurav Kushwaha
How do i programmatically determine the HTTP port on which tomcat is listeming for requests in a web application ? Thanks, Gaurav. http://www.gauravkushwaha.com