CATALINA WHERE IS THE USERAGENT IN ACCESS LOG

2001-07-04 Thread niv the tool

Hi all gurus.

In catalina there is an access log that is configure in server.xml with
a pattern
But in this pattern there is no mention of user agent and rx bytes
I look at the code in AccessLogValve.java (latest cvs) and nothing in
it.
So as far as I see it it's a must values since tomcat is widely used
with mobile phones (wap,hdml etc).


BTW what about tomcat 3.x and access logs

Thanks niv the tool




***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool


Very simple to simulate this bug :

When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib 


Ok now if ur asking why do I need it it so the answer is soap

I have a soap 2_2 context that needs to load a class in 
c:\java\my-web-app-dir\web-inf\classes


The only thing I manage to make this situation to work 
Is to put all my jars and myweb-inf\classes in the SYSTEM
CLASSPATH

But then I need to maintain this CLASSPATH when ever I am adding a new 
Jar file 


So Thanks in Advance

Niv the tool.




RE: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool

Since we both consider it to be a tomcat bug 
I hope that one of tomcat guru will treat and answer this behavior

But I still cant understand why by putting my web-inf/classes in
CLASSPATH
Makes tomcat fail to find the web-inf/lib

-Original Message-
From: Carl Rosenberger [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, June 24, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: Re: ***ANOTHER TOMCAT CLASSPATH BUG***


 When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH Tomcat

 is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib

Hi Niv,

we have also spent 2 days last week to debug this problem, since a user
of our object database had problems to get in running.

The setup:
The jar of our engine was registered in the global CLASSPATH. The user
had his classes in ..\project-dir\web-inf\classes (not in the
CLASSPATH). The phenomena was very interesting: The classes would work
O.K. but our engine got a ClassNotFoundException calling Class.forName()
for all web-inf\classes when it was invoked from the
init() of the servlet.

Two workarounds were possible:
- ..\project-dir\web-inf\classes added to the CLASSPATH
- placing all Jars in ..\project-dir\web-inf\lib

Maybe the second solution might work our for you.

I would also consider the behaviour to be a Tomcat bug.


Kind regards,
Carl
---
Carl Rosenberger
db4o - database for objects - http://www.db4o.com




RE: ***ANOTHER TOMCAT CLASSPATH BUG***

2001-06-24 Thread niv the tool

Let me rephrase 

I have 2 contexts in tomcat 
1. my-web-app context
2. soap_2_2 context

In order for context2 to see my context 1 classes I must add
/my-web-app-dir/web-inf/classes
To the CLASSPATH

Adding this makes context 1 not to see the jars in
/my-web-app-dir/web-inf/lib


Weird isn't it




Performance Result on Tomcat 3.2.2 beta 1

2001-02-27 Thread niv the tool

hi all .
Hope That one of tomcat guru will response to this TIA.

i have just install Tomcat Version 3.2.2 beta 1

and test it with MS web Stress Application with the folowing setting :
==

Tomcat Version  3.2.2 beta 1.
OS  win2k server 512M.
concurrent connections:
===
num threads 100
sockets per thread  10
URL http://207.232.10.101:8080/examples/servlet/HelloWorldExample



test results are :
=

1.In tomcat console :
=

lots of these error
2001-02-27 06:20:15 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:195)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)Overview

Web Stress Results :


Report name:  2/27/2001 6:19:11 PM
Run on:   2/27/2001 6:19:11 PM
Run length:   00:01:05

Web Application Stress Tool Version:1.1.293.1

Number of test clients:   1

Number of hits:   6449
Requests per Second:  107.45

Socket Statistics


Socket Connects:  7332
Total Bytes Sent (in KB): 2391.76
Bytes Sent Rate (in KB/s):39.85
Total Bytes Recv (in KB): 4003.51
Bytes Recv Rate (in KB/s):66.70

Socket Errors


Connect:  3471
Send: 0
Recv: 0
Timeouts: 0

RDS Results


Successful Queries:   0


Script Settings


Server:   localhost
Number of threads:1000

Test length:  00:01:00
Warmup:   00:00:00
Cooldown: 00:00:00

Use Random Delay: No

Follow Redirects: Yes
Max Redirect Depth:   15


Clients used in test


localhost

Clients not used in test




Result Codes
Code  Description   Count


200   OK6449


Page Summary
PageHits  TTFB Avg  TTLB Avg  Auth
Query


GET /examples/servlet/HelloWor  6449  3822.48   5183.40   NoNo




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




RE: Problem with Tomcat - Red Hat 7

2001-02-25 Thread niv the tool

i also have prb. running tomcat 4 on redhat 7 i get these error
( BTW tomcat 3.2 works fine )

Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)
Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:166)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:106)

any idea


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




CATALINA ON REDHAT 7

2001-02-15 Thread niv the tool

Hi all.
i managed to setup tomcat 3.2.1 on redhat7 and it works fine

now trying to use catalina(tomcat 4.1 b) does not seem to work when running
startup.sh .
BTW
JAVA_HOME is set to /usr/java/jdk1.3
am i missing something.
on win2k catalina works.
TIA.


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




RE: A lot of params equals in web.xml

2001-02-05 Thread niv the tool

better use
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
context-param
param-nameproxy_server/param-name
param-valuelabproxy/param-value
/context-param
context-param
param-nameproxy_port/param-name
param-value8080/param-value
/context-param
.
.
.

and in your servlet use

  /**Initialize global variables*/
  public void init(ServletConfig config) throws ServletException
  {
super.init(config);
ServletContext context = config.getServletContext();
PROXY_SERVER = context.getInitParameter("proxy_server");

Niv Maman - Vice President, RD
Movious Inc.

E-mail : [EMAIL PROTECTED]
Mobile : +972 54 830880
Tel: +972 9 8858555
Fax: +972 9 8858556



-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 05, 2001 3:08 PM
To: [EMAIL PROTECTED]
Subject: Re: A lot of params equals in web.xml




Alberto wrote:

 Hi everyone.
 I've a question:
 in my web.xml I have a lot of servlets that use the same set of parameters
 (same param name, same param value). The value of these parameters could
 change a lot of time in a month so:
 there's a way to write only one set of param name / param value and call
it
 in all my servlet?


Sure - create all of those name/value pairs in a properties file
and have web.xml point to it.
In your init method use a java.util.Properties object to read
the properties file and recover the parameters that servlet needs.

I do this all the time, makes it easy to synchronize all servlets
with the same properties.

--
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2

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


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