Repost::Connection Timeout

2004-07-09 Thread Sameer Danthurthy
Hello,
  Iam working on high perf servlet that needs to return the response 
within few seconds and hence I want to emulate an non existant connection
rather than a delayed response i.e. the webserver break the tcp connection
rather than hold the client for delayed response from the servlet. I played
around
with the connection timeout parameter in server.xml as well as the timeout
directive in httpd.conf for apache without much success. Iam running the apps
on redhat 8 on intel platform. How should I approach such a thing?
Apache 2.0.47
tomcat 5.x
JK 2

Thanks
sameer


This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as information could
be intercepted, corrupted,lost, destroyed, arrive late or incomplete
or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message, which
arise as a result of e-mail transmission.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache JK Tomcat RequestTimeout

2004-07-08 Thread Sameer Danthurthy
Hello,
  Iam working on high perf servlet that needs to return the response 
within few seconds and hence I want to emulate an non existant connection
rather than a delayed response i.e. the webserver break the tcp connection
rather than hold the client for delayed response from the servlet. I played
around
with the connection timeout parameter in server.xml as well as the timeout
directive in httpd.conf for apache without much success. Iam running the apps
on redhat 8 on intel platform. How should I approach such a thing?
Apache 2.0.47
tomcat 5.x
JK 2

Thanks
sameer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat behavior

2003-01-16 Thread Mohbe, Sameer


Hi Folks ,
 I have a question Folks : Does Tomcat Processes become 0 at some point
if Web Application is not accessed for a while. What has happened is twice
in our environment that on a Weekend Morning around 2:00 AM Tomcat Processes
became 0 and they later increased to 36 processes .I found out it through a
small Script that checks for the number of Apache and Tomcat processes every
Minute .I found the similar behavior for Apache Twice with Apache processes
becoming 0 and then after a while number changing to 8 which is normal in
our environment.

My question is : Does Tomcat Shuts down and restarts itself at a certain
regular interval like once in a month or so .If yes then ,is there any
Configuration file in Tomcat from where this can be Controlled.The same
question applies for Apache --if Apache shuts and restarts itself at a
certain regular interval .


Thanks in Advance 
Sameer

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Two instances of Tomcat with Formula 1 Software(E-spreadsheet)

2002-12-11 Thread Mohbe, Sameer

Hi Folks,
  Thanks to Ben and John on their inputs,But second instance of
Tomcat(tomcat2) still errors out when it tries to create a report with
Formula 1 software with Java.Lang.Out.Of.Memory error --though i increased
the Heap size upto upper limit of 1 GB.The system has total 2GB of Memory
.Everything else in the application in tomcat2 instance works fine.But that
Report part is a Crucial part of the Apps.
Is anyone using Two Instances of Tomcat on the same server with Formula1
s/w.Guys any help on this will be greatly APPRECIATED.
Configuration :
Red Hat Linux 7.0
Apache 1.3.12
Tomcat 4.0.4 -Two instances i.e  tomcat and tomcat2


Regards
Sameer
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Two instances of Tomcat

2002-12-10 Thread Mohbe, Sameer
Hi Folks ,
 Need some  urgent help regarding  setting  up two instances
of Tomcat .Here goes the details .We used to have Apache 1.3.23 + Tomcat
4.0.2 configuration running on Red hat 7.0.We were running two web apps
under Single instance of tomcat. To make them independent we are moving
towards Two instances of tomcat .So we installed second instance residing in
/opt/tomcat2 directory ,first being  in the directory called
/opt/tomcat.Changes on server.xml were made for  two different  port nos.Now
Everything works ok till the point  when we try to generate a report in
second web application it gives a Java.lang Out of Memory error.This Final
report feature uses the Formula 1 Software which is  a e-spreadsheet.Can any
one please tell me what all settings are required for the TWO instances of
tomcat.do we need TWO copies of  Worker.properties files (Coz we have only
one ) and if yes then what changes need to be done .Is the Java error
related to JVM memory settings .We have set TOMCAT_OPTS in /etc/profile for
-Xms64 and -Xmx512.

Regards
Sameer



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat Version 4.0.4 Performance Tuning Ques:

2002-08-30 Thread Mohbe, Sameer

HI Folks,
  I recently  performed a Tomcat Upgrade to Version 4.0.4
from version 3. In version 3 the server.xml file I had added  following
entries as per our environment needs : 
Parameter name=max_threads value=200/
 Parameter name=min_spare_threads calue=10/
 Parameter name=max_spare_threads calue=20/ 
My question  is : Are these entries/Parameters still valid in Tomcat Version
4.0.4 .If yes where do I need to add these in server.xml.Are the settings
same as version 3 
Any help will be greatly appreciated.
Thanks
Sameer Mohbe



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




tomcat webdav question

2002-02-27 Thread Sameer Manepally

Hi,
I am not sure where to send this question, I guess
here would be a good starting point.

Is it possible to configure the webdav servlet in
tomcat to get files from a new filesystem, which has a
java api to access files, rather than the local
filesystem or an an nfs mounted file system.

Slide is supposed to do something like this, but it
has much more functionality than what is needed here
which may make it hard to integrate.

The filesystem that webdav would need to
support is implemented through a mysql server, and
with its own acls. So the webdav servlet would also
need to use a mysql table for authentication which
could be implemented through a tomcat jdbc realm.

How should I go about it?, Do I need to
completely hack the webdav servlet, and implement the
new filesystem code there, or is there a simpler
method, and if this is not the right mailing list
which other mailing lists should I send this question
to. Please let me know.

thanx,
sameer.




__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Hekp regarding Heap Settings

2001-10-01 Thread Mohbe, Sameer


Hi Everyone,
  Gentlemen i need some help regarding the Heap seetings
in JVM.
The environment is Linux 7-Tomcat -JDK1.3 .Right now the Heap settings are
set to default)i.e. Minimim=1 and Max=64MB.
How do we change the settings ,i know its using JVM Commands but where shd
we make the changes ??

Thanks in advance !
Sam Mohbe 



Problem in loading applet.

2001-03-15 Thread Sameer Pokarna


Hi All,

I am trying to use Tomcat as a standalone web server.
I am not able to get Applet working with this setup.
I bascically have a webpage with applet tag in the html loading a class
from an archive. Then the applet reads some gif files.
If I copy the jar file in the Root directory of Tomcat, the place of the
applet comes as blank. But the status bar in the browser says 'applet
loaded'.
If I remove this jar file, the browser returns an error that the class is
not found.

Is there any basic setup I am missing? Where should the gif files the the
applet
reads be present?

Thanks in advance,
Sameer





Cookie Deletion

2000-12-21 Thread Sameer

Hi all,

I'm trying to delete a cookie using this :


%
String name1 = request.getParameter("cookieno");
Cookie delCookie = new Cookie(name1,null);
delCookie.setMaxAge(0);
response.addCookie(delCookie);
%
 ...

where name1 is the name of the cookie, this piece of code runs fine on Java
Web Server, but when I use this on a Tomcat Server, I get a null pointer
exception when I try to retrieve the cookies after I have executed the above
code,
any help?...or suggestions on where im going wrong

thanks in anticipation,
Sameer




Login Page

2000-11-24 Thread Sameer

Hi everybody,

Following is the code for a login.jsp page developed in JRun. What changes
would be required to have the same page running in Tomcat Server.
Please help.

html
body bgcolor="#ff"
%@
import="javax.servlet.*,javax.servlet.http.*,java.util.Date,java.text.DateFo
rmat,java.io.*,java.net.*,java.sql.*,com.livesoftware.jrun.plugins.jsp.JSPSe
ssion" %

%
HttpSession session = request.getSession(true);
%

%
int content_length=0;
String url = "jdbc:odbc:Booking";
Statement stmt = null;
String EmpIdAll = "";

try
{
 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 Connection con = DriverManager.getConnection(url, "", "");
 stmt = con.createStatement();
}
catch(java.lang.Exception e)
{
 out.println ("e:" +e);
}
%

%
int validated = 0;
String temp[] = new String[5];

  if (!Request.ServerVariables("Content_Length").equals(""))
  {
   content_length =
Integer.parseInt(Request.ServerVariables("Content_Length"));
  }

if (content_length  0)
{
 try
 {
  String EmpPasswdAll = null;
  String EmpRolesAll = null;
  int flag = 0;
  ResultSet rsEmp = stmt.executeQuery("select UserId, Password, Roles from
Employee");
  while(rsEmp.next())
  {
   EmpIdAll = rsEmp.getString("UserId");
   EmpPasswdAll = rsEmp.getString("Password");
   EmpRolesAll = rsEmp.getString("Roles");

if(EmpIdAll.equals(Request.Form("UserId")) 
EmpPasswdAll.equals(Request.Form("Password")))
 {
   session.putValue("EmpId", ""+EmpIdAll);
   session.putValue("EmpRole", ""+EmpRolesAll);
   response.sendRedirect("contents.jsp");
 }
else
 {
  flag = 1;
 }
  }
  if(flag == 1)
  {
   EmpIdAll = Request.Form("UserId");
   out.println("centerfont color=redb Incorrect login or password.
Please Login again. /b/font");
  }

 }

 catch (SQLException ex)
 {
  out.println ("\n\n\n*** SQLException caught ***\n\n\n");
  out.println ("ex: " +ex);
 }
}
%


center
form name=login method=post action="login.jsp"

table width=600 border=1 bgcolor="#dd"
tr
td colspan=2 align=center
font size=+2 face=arialb Login Screen
/td
/tr
tr
td
font size=2 face=arialb Employee Id
/td
td
input type=text size=10 name=UserId value="%=EmpIdAll%"
/td
/tr
tr
td
font size=2 face=arialb Password
/td
td
input type=password size=10 name=Password
/td
/tr
tr
td align=center
input type="submit" value="Submit"
/td
td align=center
input type="reset" value="Reset"
/td
/tr
/table

/form
/body
/html


Thanks in anticipation,
Sameer





NoClassDefFoundError

2000-11-24 Thread Sameer

Hi,

Just installed Tomcat according to the instructions given in the
Development/Deployment guide give at http://jakarta.apache.org for Tomcat.

When I say ./build, I get an error
"NoClassDefFoundError org/apache/tools/ant"

I have not installed Ant (if that is something to be installed - I believe
it is pre-installed) and neither have I used CVS as www.sourcegear.com/cvs
is down. I hope it is not essential to use that.

What could be the problem? Thanks in advance.

Regards,
Sameer Kachroo


- Original Message -
From: "Miles Daffin" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 24, 2000 3:48 PM
Subject: Re: News Group needed desperately


 Dear Craig,

 See below.

  Miles Daffin wrote: (I did)
 
   I have been on this list for a week or so now and I am flooded with
 mails
   everyday. When this happened on the Orion Interest list I had no
choice
 bu to
   unsubscribe. The sheer volume of mails (50% of which ask ill
considered
   questions) suggests the need for a news group, maybe two. The virtues
of
 doing
   it like this are numerous, e.g. threads can be viewed, followed etc.
It
 simply
   organises the mails better, allowing me to filterwithout cluttering up
 my
   system first. Who can set this up? Craig (I know you are a busy
fella)?
 Miles
 
  Yes, I am busy :-), but that is not why I'm not likely to act upon this
 request.
 
  None of the virtues you mention are compelling reasons to establish a
  newsgroup.  After all, many mail readers (including Netscape
Communicator,
 which
  I use) can do exactly what you ask for.  For example, I have a message
 filter
  set up that copies all messages with a "To" or "Cc" of
  [EMAIL PROTECTED] into a folder containing only those
 messages
  (actually, I have one of these folders for each of the 30 or so mailing
 lists I
  subscribe to, totalling over 600 messages a day).  Netscape, like most
 mail
  readers, allows you to specify a threaded organization for such a
folder,
 which
  is my default approach to dealing with mailing lists.  Now, I can
 concentrate on
  a particular list when I want to -- *exactly* as if it were a newsgroup.
 
  What is more important, though, is a different principle -- having a
 newsgroup
  instead of a mailing list would disenfranchise all of the TOMCAT-USER
  subscribers who are behind firewalls that do not allow access to
 newsgroups.
  Therefore, I do not consider this to be a viable solution to mail
 "floods" -- if
  your mail reader doesn't support what you need to deal with mailing list
  volumes, I would suggest that you get a new one.

 Your words are wise and true - I see the light and shall complain no more.

  Craig McClanahan

 Miles Daffin