RE: [PRE-PROPOSAL] jakarta-tomcat-doc sub-project : WAS: [TomcatD ocumentation Redactors To Hire]

2001-07-03 Thread Parayali, Jayesh 1065
Title: RE: [PRE-PROPOSAL] jakarta-tomcat-doc sub-project : WAS: [TomcatD ocumentation Redactors To Hire]





I like docbook.


-Original Message-
From: GOMEZ Henri [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 1:06 AM
To: [EMAIL PROTECTED]
Subject: RE: [PRE-PROPOSAL] jakarta-tomcat-doc sub-project : WAS: [TomcatD ocumentation Redactors To Hire]


Ok, ok.


Many debate here about using anakia, stylebook, docbook or xxxbook.
There is a tool today, that's let you documentation in a standard
format we could use, abiword (http://www.abisource.com/).


It's free, have a decent GUI, is available for Windows, 
Unix, GNOME, BeOS and QNX, and even MacOS X (for Pier purpose).


It let you export document in DocBook format WHICH is a 
standard. 


Apache used to follow standard, docbook is a standard, 
an Open Standard, so why not use this one ?


If we have remark or comments, or detect lack, we still 
could be involved



-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED] (. .) 
PGP KEY : 697ECEDD ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 





combined log fomat - AccessLogValve.java

2001-07-02 Thread Parayali, Jayesh 1065
Title: combined log fomat - AccessLogValve.java





Anyone working on combined log format for tomcat.


We just need two more patterns for user-agent and referer to get combined log format working.


 value =  + hreq.getHeader(User-Agent);
 value =  + hreq.getHeader(Referer);


Thanks,
Jayesh





RE: java.lang.OutOfMemoryError

2001-03-23 Thread Parayali, Jayesh 1065
Title: RE: java.lang.OutOfMemoryError





StringWriter wraps StringBuffer. So you are using StringBuffer.

-Original Message-
From: chu luk [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 6:26 PM
To: [EMAIL PROTECTED]
Subject: RE: java.lang.OutOfMemoryError


i am not doing a whole lot of contatenation, but i do
use stringWriter -- is it the same as stringBuffer?
thanks



--- Parayali, Jayesh 1065
[EMAIL PROTECTED] wrote:
 Here is one suggestion.
 Use StringBuffer instead of String if you are doing
 string contatenation.
 
  -Original Message-
  From: chu luk [SMTP:[EMAIL PROTECTED]]
  Sent: Thursday, March 22, 2001 5:17 PM
  To: [EMAIL PROTECTED]
  Subject: java.lang.OutOfMemoryError
  
  Hi,
  I have a servlet listens for HTTP POST request. 
 then
  query the oracle database and response -- request
 /
  response are XML. 
  
  I had 10 Load Test client keep sending HTTP
 request to
  servlet as fast as they can -- for 10 hours
  
  But within 10 hours, all the response are OK,
 except i
  got a couple of servlet internal error says Out
 of
  Memory for some of the client.
  
  Error: 500
  Location: /test/server
  Internal Servlet Error:
  java.lang.OutOfMemoryError 
  
  Do I have a memory leak? or that means too
 servlet is
  overLoad? or Any thing cause this error? Is this
 a
  common error? I believe my servlet's memeory
  requirement is not that big. but i had at least
 100
  String object in it.
  
  thanks.
  
  P.S, my Config is:
  oracle 8.1.6
  tomcat 3.2
  apache 1.3.17
  Sun OS 5.6
  use HTTP / XML for request / response
  average run time / request = 500 milli - second
  # of client = 10
  
  
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail. 
  http://personal.mail.yahoo.com/
 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/





RE: java.lang.OutOfMemoryError

2001-03-22 Thread Parayali, Jayesh 1065
Title: RE: java.lang.OutOfMemoryError





Here is one suggestion.
Use StringBuffer instead of String if you are doing string contatenation.


-Original Message-
From: chu luk [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 5:17 PM
To: [EMAIL PROTECTED]
Subject: java.lang.OutOfMemoryError


Hi,
I have a servlet listens for HTTP POST request. then
query the oracle database and response -- request /
response are XML. 


I had 10 Load Test client keep sending HTTP request to
servlet as fast as they can -- for 10 hours


But within 10 hours, all the response are OK, except i
got a couple of servlet internal error says Out of
Memory for some of the client.


Error: 500
Location: /test/server
Internal Servlet Error:
java.lang.OutOfMemoryError 


Do I have a memory leak? or that means too servlet is
overLoad? or Any thing cause this error? Is this a
common error? I believe my servlet's memeory
requirement is not that big. but i had at least 100
String object in it.


thanks.


P.S, my Config is:
oracle 8.1.6
tomcat 3.2
apache 1.3.17
Sun OS 5.6
use HTTP / XML for request / response
average run time / request = 500 milli - second
# of client = 10



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/





RE: Tomcat broke after Oracle installation

2001-03-12 Thread Parayali, Jayesh 1065
Title: RE: Tomcat broke after Oracle installation





could be that oracle is using an older JVM. Check it out.


-Original Message-
From: Kemp Randy [SMTP:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 9:10 AM
To: [EMAIL PROTECTED]
Subject: Tomcat broke after Oracle installation


Here is some additional information (see logs below)
on my problem. I installed Apache 1.2 and Tomcat 3.2
on Solaris 5.6, and the Tomcat examples and Apache
worked fine. When I installed Oracle enterprise 8.1.7
on the same machine, the Tomcat examples stopped
working. I suspect that the problem is related to
Oracle running an embedded Apache and Jserv, and maybe
the listeners are getting confused. Before consulting
Oracle, I thought I throw this out. Anyone else
running the same or similar combination on a Unix box
(Linus, Solaris, etc.) Any ideas what could be
causing it? And I have a simple question. If I put
the static pages in Apache htdocs, where do the
servlets and JSP pages get placed in Tomcat?


From: Kemp Randy-W18971 
Subject: Need Help with problem
Date: Fri, 9 Mar 2001 16:39:49 -0500
I have Tomcat 3.2.1 and Apache running, but I am
getting this error
on
http://ecad.mot.com:8080/examples/jsp/num/numguess.jsp
and need some
help


Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile
class for JSP
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at javax.servlet.ServletException.(Compiled Code)
 at org.apache.jasper.JasperException.(Compiled Code)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.loadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.service(Compiled
Code)
 at javax.servlet.http.HttpServlet.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
 at org.apache.tomcat.core.Handler.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.service(Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.service(Compiled
Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
 at java.lang.Thread.run(Compiled Code)
Root cause:
java.lang.IllegalArgumentException: Unknown argument
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at java.lang.RuntimeException.(Compiled Code)
 at java.lang.IllegalArgumentException.(Compiled Code)
 at java.text.MessageFormat.format(Compiled Code)
 at java.text.MessageFormat.format(Compiled Code)
 at java.text.Format.format(Compiled Code)
 at org.apache.jasper.Constants.getString(Compiled
Code)
 at org.apache.jasper.Constants.message(Compiled Code)
 at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled
Code)
 at
org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled
Code)
 at
org.apache.jasper.compiler.Parser$Directive.accept(Compiled
Code)
 at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
 at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
 at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
 at
org.apache.jasper.compiler.Compiler.compile(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.loadJSP(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
 at
org.apache.jasper.servlet.JspServlet.service(Compiled
Code)
 at javax.servlet.http.HttpServlet.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
 at org.apache.tomcat.core.Handler.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.service(Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.service(Compiled
Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
 at java.lang.Thread.run(Compiled Code)





__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great 

Locale

2001-01-23 Thread Jayesh

I compiled tomcat 3.2.1 on Redhat Linux 7.0. I use JDK1.3

when I start tomcat, I get the message below.

Anyone knows how to fix?

Jayesh

$ ./startup.sh
Using classpath:
/http/apps/tomcat3.2/classes:/http/apps/tomcat3.2/lib/ant.jar:/
http/apps/tomcat3.2/lib/servlet.jar:/http/apps/tomcat3.2/lib/test:/http/apps
/jdk
1.3/lib/tools.jar:/http/apps/build/ant/lib/ant.jar:/http/apps/jakarta/dist/s
ervl
etapi/lib/servlet.jar:/http/apps/jakarta/jcert.jar:/http/apps/jakarta/jnet.j
ar:/
http/apps/jakarta/jsse.jar:/http/apps/jakarta/jakarta-ant/lib/jaxp.jar:/http
/app
s/jakarta/jakarta-ant/lib/parser.jar:.
[ devonshire /http/apps/tomcat3.2/bin ]
$ Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.Mi
ssingResourceException: Can't find bundle for base name
org.apache.tomcat.resour
ces.LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at
org.apache.tomcat.util.StringManager.init(StringManager.java:112)
at
org.apache.tomcat.util.StringManager.getManager(StringManager.java:26
3)
at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24)


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




load balancing and failsafety

2001-01-21 Thread Jayesh

Anybody implemented load balancing and failsafety on tomcat stand alone?

Thanks,
Jayesh

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: load balancing and failsafety

2001-01-21 Thread Jayesh

yes.

-Original Message-
From: James Courtney [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 1:23 PM
To: [EMAIL PROTECTED]
Subject: RE: load balancing and failsafety


You mean tomcat sans Apache or IIS out front?
-Jamey

-Original Message-
From: Jayesh [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 10:56 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: load balancing and failsafety


Anybody implemented load balancing and failsafety on tomcat stand alone?

Thanks,
Jayesh

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: load balancing and failsafety

2001-01-21 Thread Jayesh

Thanks Kief. I would like to help too. Let me take a look at the messages.

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 3:22 PM
To: [EMAIL PROTECTED]
Subject: Re: load balancing and failsafety


Jayesh typed the following on 10:55 AM 1/21/2001 -0800
Anybody implemented load balancing and failsafety on tomcat stand alone?

I've started some work on session persistence, which works with
a single-instance application, which should lead into sharing
sessions between instances of a distributable application. If you're
interested in this area I'd appreciate if you'd have a look and let
me know what you think. It isn't in CVS yet because the 4.0 repository 
is being reorganized a bit, but if you check the archive for this list you 
should find the messages and patches, mostly in the past 2 weeks.

Kief


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

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




welcome-file

2001-01-19 Thread Jayesh

I tried configuring welcome-file attribute like below.
welcome-file-list
 welcome-file
HomePage.jsp
/welcome-file
/welcome-file-list

It doesn't work.

Please help.
Jayesh


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: session timeout

2001-01-18 Thread Jayesh

I tried the first approach, it works great with 3.x.

Thank you,
Jayesh

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 8:26 AM
To: [EMAIL PROTECTED]
Subject: Re: session timeout


Jayesh typed the following on 08:00 AM 1/17/2001 -0800
I need to do some work when tomcat session gets timed out. Could anyone of
you suggest how I can do it.

With servlet 2.2 (Tomcat 3.x) you should make sure one of the attributes
you're
adding to the session implements HttpSessionBindingListener. When the
session
gets timed out, the container will call valueUnbound() on that object. As
long as
you know you're not the one unbinding the object (e.g. by calling
removeAttribute()
or replacing the attribute by calling setAttribute() with the same name),
you can
assume the session is being expired or invalidated.

With servlet 2.3 (Tomcat 4.x) you can also create an object which implements
HttpSessionListener, and configure it in your web.xml like this:

web-app

listener
listener-classcom.foo.SessionAttributeSnoop/listener-class
/listener

/web-app

This object will have its sessionDestroyed() method called
when it is destroyed for any reason.

Of course, if the server goes down in a bad way none of these
events will be called, so there are no guarantees.


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




session timeout

2001-01-17 Thread Jayesh

Hi,

I need to do some work when tomcat session gets timed out. Could anyone of
you suggest how I can do it.

Changing invalidate/expire method would be the last thing I like to do. Is
there any other way (call back method??).

Thanks,
Jayesh


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




netscape timing out

2000-12-28 Thread Parayali, Jayesh 1065
Title: netscape timing out





I am using tomcat 3.2.1 release build on winnt4.0


when I use jsp:forward, IE works fine.Netscape gets timed out.


%
str1 = myPage.jsp;
str1 = response.encodeURL(str1);
%
jsp:forward page='%= str1 %' /



Any idea?


Thanks,
Jayesh





FW: Virtual hosting

2000-12-14 Thread Parayali, Jayesh 1065
Title: FW: Virtual hosting





-Original Message-
From: Parayali, Jayesh 1065 [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 3:29 PM
To: '[EMAIL PROTECTED]'
Subject: Virtual hosting


I have set up 2 virtual hosts on a server running tomcat 3.2 running one web application. 


now the question is how do I differentiate the requests coming from 2 different URLs 


In other words, is the url name accessible within my JSP? 


Thanks,
Jayesh