Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-06 Thread Marc Mendez

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]

 You can suppress directory indexes in the $CATALINA_HOME/conf/web.xml
 file.  See the listings init parameter for the default servlet.


Read my previous post.


 You have complete control over which requests your filter applies to,
 because you are defining a filter-mapping for it.  In particular, if you
 use a URL pattern of /* in your filter mapping, then *all* requests for
 your webapp will go through the filter.


Ok, I'll check


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread François Vallet
Could you explain me or give me an url to tell me how to install tomcat 4.1
as service !
Thanks.

 -Original Message-
 From: Kwok Peng Tuck [mailto:pengtuck;makmal.com]
 Sent: mercredi 6 novembre 2002 08:26
 To: Tomcat Users List
 Subject: Re: [Windows2k] Start tomcat as Service
 
 So have I. Works like a charm on my setup.
 
 
 Nicholas Orr wrote:
 
 I have, why?
 
 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Wednesday, 6 November 2002 3:42 AM
 To: 'Tomcat Users List'
 Subject: [Windows2k] Start tomcat as Service
 
 
 Who have ever start Tomcat 4.1 as service on Windows 2k ? Thanks in
advance.
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 *
 *
 The information contained in this e-mail is confidential and is
 intended only for the use of the addressee(s).
 If you receive this e-mail in error, any use, distribution or
 copying of this e-mail is not permitted. You are requested to
 forward unwanted e-mail and address any problems to the
 MIM Holdings Limited Support Centre.
 
 For general enquires:++61 7 3833 8000
 Support Centre e-mail:   [EMAIL PROTECTED]
 Support Centre phone:Australia 1800500646
  International ++61 7 38338042
 *
 *
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Performance Test

2002-11-06 Thread David Tildesley
4.1.12 appears to be the stable version that most people are using.
Can you provide some metrics from your performance test (e.g. average
requests/sec, time to first byte, time to last byte). For the linux, what is
the hardware spec? What JDK version? using SSL? What is the CPU utilisation?
Can you do the same test on the example servlets that come with Tomcat and
get similar results?

-Original Message-
From: Ganesh [mailto:ganesh;planet.magnetpoint.com]
Sent: Wednesday, 6 November 2002 7:53 a.m.
To: [EMAIL PROTECTED]
Subject: Performance Test


Hi All,


We are testing our software on jakarta-tomcat-4.1.10 under different
environment (Windows, Linux, Solaris). When we run the performance test (50
user login and do some operation like send mail, read mail etc. and logoff),
the JVM size is keep on increasing and the response time is also very slow.
Basically this problem will happen in all platforms, but comparatively less
in Linux. We have increased the JVM size, but still the result is same. The
same test is looking good in iPlanet Webserver. Please let us know any
parameter do we need to configure in Tomcat or if anyone has some
suggestion/comments etc will be really helpful.



Thanks

Nagaraja




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: [Windows2k] Start tomcat as Service

2002-11-06 Thread Kwok Peng Tuck
If you use the .exe distribution it will ask you whether you would want 
to register it as a NT service.

François Vallet wrote:

Could you explain me or give me an url to tell me how to install tomcat 4.1
as service !
Thanks.

 

-Original Message-
From: Kwok Peng Tuck [mailto:pengtuck;makmal.com]
Sent: mercredi 6 novembre 2002 08:26
To: Tomcat Users List
Subject: Re: [Windows2k] Start tomcat as Service

So have I. Works like a charm on my setup.


Nicholas Orr wrote:

   

I have, why?

-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: Wednesday, 6 November 2002 3:42 AM
To: 'Tomcat Users List'
Subject: [Windows2k] Start tomcat as Service


Who have ever start Tomcat 4.1 as service on Windows 2k ? Thanks in
 

advance.
 

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


*
 

*
   

The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:	++61 7 3833 8000
Support Centre e-mail:	[EMAIL PROTECTED]
Support Centre phone:  	Australia 1800500646
  International ++61 7 38338042
*
 

*
   

--
To unsubscribe, e-mail:
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 

For additional commands, e-mail: mailto:tomcat-user-
 

[EMAIL PROTECTED]
   



 


--
To unsubscribe, e-mail:
   

mailto:tomcat-user-unsubscribe;jakarta.apache.org
 

For additional commands, e-mail:
   

mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




DrWatson alert with httpd 2.0.43, Tomcat 4.1.12, mod_jk2 on W2k

2002-11-06 Thread Peter Nabbefeld

Hi,

when I'm stopping or restarting the httpd service (Apache httpd 2.0.43,
running as a service),
the Windows 2000 agent called DrWatson alerts a problem and writes the
following log:


Microsoft (R) Windows 2000 (R) Version 5.00 DrWtsn32
Copyright (C) 1985-1999 Microsoft Corp. Alle Rechte vorbehalten.



Anwendungsausnahme aufgetreten:
Anwendung:  (pid=2092)
Wann: 05.11.2002  12:13:40.593
Ausnahmenummer: c005 (Zugriffsverletzung)

* Systeminformationen *
Computername: TUCHOLA
Benutzername: SYSTEM
Prozessoranzahl: 1
Prozessortyp: x86 Family 6 Model 8 Stepping 6
Windows 2000-Version: 5.0
Aktuelles Build: 2195
Service Pack: 3
Aktueller Typ: Uniprocessor Free
Firma: 
Besitzer: pn

* Taskliste *
   0 Idle.exe
   8 System.exe
 136 SMSS.exe
 164 CSRSS.exe
 184 WINLOGON.exe
 212 SERVICES.exe
 224 LSASS.exe
 416 svchost.exe
 448 spoolsv.exe
 480 AVGUARD.exe
 496 Apache.exe
 516 AVWUPSRV.exe
 532 Ctsvccda.exe
 548 svchost.exe
 608 mysqld-max-nt.e.exe
 680 regsvc.exe
 692 mstask.exe
 724 tcpsvcs.exe
 772 WinMgmt.exe
 808 svchost.exe
2120 explorer.exe
2024 CTNotify.exe
2128 Ctmix32.exe
2176 cfosdnt.exe
2188 Mediadet.exe
2200 cdplayer.exe
2216 AVGNT.exe
2228 qttask.exe
2236 internat.exe
2264 DSLMON.exe
2276 ApacheMonitor.e.exe
2300 soffice.exe
 848 mozilla.exe
2084 taskmgr.exe
2092 Apache.exe
2496 Apache.exe
2488 DRWTSN32.exe
   0 _Total.exe

(0040 - 00405000) 
(7788 - 77901000) 
(6EE0 - 6EE1E000) 
(77E7 - 77F33000) 
(77DA - 77DFD000) 
(77D2 - 77D91000) 
(74FA - 74FB3000) 
(7800 - 78046000) 
(74F9 - 74F98000) 
(74F6 - 74F73000) 
(77E0 - 77E5F000) 
(77F4 - 77F79000) 
(7797 - 77994000) 
(74FC - 74FC9000) 
(06ED - 06EF6000) 
(6FF0 - 6FF3F000) 
(75DF - 75E0A000) 
(6C92 - 6C928000) 
(664B - 66504000) 
(7758 - 777CC000) 
(77C6 - 77CAA000) 
(77B4 - 77BC9000) 
(74F4 - 74F5D000) 
(74F8 - 74F87000) 
(6FCF - 6FCF6000) 
(6FCE - 6FCE6000) 
(6FCD - 6FCD6000) 
(6FCC - 6FCC6000) 
(6FCB - 6FCB6000) 
(6FCA - 6FCA8000) 
(6FC9 - 6FC97000) 
(6FC8 - 6FC86000) 
(6FC7 - 6FC76000) 
(6FC6 - 6FC67000) 
(6FC5 - 6FC5A000) 
(6FC4 - 6FC48000) 
(6FC3 - 6FC37000) 
(6FC2 - 6FC27000) 
(6FC1 - 6FC19000) 
(6FC0 - 6FC06000) 
(6FBF - 6FBF6000) 
(1000 - 1001E000) 
(6D33 - 6D45C000) 
(7754 - 77571000) 
(6D1D - 6D1D7000) 
(6D30 - 6D30D000) 
(6D21 - 6D229000) 
(6D32 - 6D32D000) 
(7783 - 7783C000) 
(7731 - 77323000) 
(774F - 774F5000) 
(772F - 77307000) 
(750C - 750D) 
(750E - 7512F000) 
(77BD - 77BDF000) 
(7513 - 75136000) 
(7794 - 7796B000) 
(77A4 - 77B35000) 
(779A - 77A3B000) 
(7738 - 773AF000) 
(7735 - 77372000) 
(7782 - 7782E000) 
(7831 - 783A) 
(77C0 - 77C5E000) 
(774B - 774E2000) 
(7749 - 774A1000) 
(7750 - 77522000) 
(7733 - 77349000) 
(777D - 777D8000) 
(777E - 777E5000) 

Statusabbild für Threadkennung 0x808

eax=0006fe34 ebx=0046b9c8 ecx= edx= esi=0006fdf0
edi=004edd28
eip=6d3943f7 esp=0006fdd4 ebp=0006fe20 iopl=0 nv up ei pl zr na po
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=0246


Funktion: nosymbols
6d3943de 8bc1 mov eax,ecx
6d3943e0 85c0 testeax,eax
6d3943e2 740e jz  6d39cef2
6d3943e4 8b4808   mov ecx,[eax+0x8] 
ds:00b7d406=
6d3943e7 3b4c2404 cmp ecx,[esp+0x4] 
ss:00b7d3a7=
6d3943eb 7407 jz  6d39cef4
6d3943ed 8b4004   mov eax,[eax+0x4] 
ds:00b7d406=
6d3943f0 ebee jmp 6d3977e0
6d3943f2 33c0 xor eax,eax
6d3943f4 c20400   ret 0x4
FEHLER -6d3943f7 8b01 mov eax,[ecx] 
ds:=
6d3943f9 56   pushesi
6d3943fa 57   pushedi
6d3943fb 8b7908   mov edi,[ecx+0x8] 
ds:00b0d5d2=
6d3943fe 8b7064   mov esi,[eax+0x64]
ds:00b7d406=
6d394401 6a0c push0xc
6d394403 e81709faff   call6d334d1f
6d394408 03c7 add eax,edi
6d39440a 59   pop ecx
6d39440b 5f   pop edi
6d39440c 8b0486   mov eax,[esi+eax*4]   
ds:0006fe34=00525c2c
6d39440f 5e   pop esi

* Stack Back Trace *

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0006FE20 1000F41D 004EDD04   00525C2C !nosymbols 
0001     
!Java_org_apache_jk_apr_AprImpl_jkInvoke 

* Raw Stack Dump 

Xrunhprof

2002-11-06 Thread Günter Kukies
Hello,

I tried to get a profiling file from tomcat. I set the JAVA_OPTS in catalina.sh to 
-server -Xrunhprof:file=/home/test/test.eprof -Xms64 
But no file was generated. 

System:
Linux
JDK1.4.0
tomcat 4.0.3

Thanks

Günter



Balancer and sessions

2002-11-06 Thread Ryszard Lach
Hi!

I'm trying to get work apache + tomcat4.0.5 with load balancer worker
(mod_jk), but it seems it doesn't forward all requests of one session to
the same worker. I've been used balancing with jserv and that wasn't a
problem - if servicing of the session was started with jserv1, then the
whole session was served with jserv1 (as long as jserv1 was running).
Now, with tomcat4.0.5 I see the requests are forwarding regardless of
sessions, what causes losing sessions after first (or second) request.

Is there something I'm missing with setting of the balancer?

My workers.properties is as follows:

worker.list=loadbalancer,ajp13  # I'm using ajp13 worker as is in other
# virtualhost too, I'hope it's not a
# problem

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=100

worker.ajp13s.port=8009
worker.ajp13s.host=192.168.130.9
worker.ajp13s.type=ajp13
worker.ajp13s.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13,ajp13s

Is there any documentation about using loadbalancer and its directives?

Thanks for any help.

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread François Vallet
But you cannot install it as service after the installation???


 -Original Message-
 From: Kwok Peng Tuck [mailto:pengtuck;makmal.com]
 Sent: mercredi 6 novembre 2002 09:23
 To: Tomcat Users List
 Subject: Re: [Windows2k] Start tomcat as Service
 
 If you use the .exe distribution it will ask you whether you would want
 to register it as a NT service.
 
 François Vallet wrote:
 
 Could you explain me or give me an url to tell me how to install tomcat
4.1
 as service !
 Thanks.
 
 
 
 -Original Message-
 From: Kwok Peng Tuck [mailto:pengtuck;makmal.com]
 Sent: mercredi 6 novembre 2002 08:26
 To: Tomcat Users List
 Subject: Re: [Windows2k] Start tomcat as Service
 
 So have I. Works like a charm on my setup.
 
 
 Nicholas Orr wrote:
 
 
 
 I have, why?
 
 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: Wednesday, 6 November 2002 3:42 AM
 To: 'Tomcat Users List'
 Subject: [Windows2k] Start tomcat as Service
 
 
 Who have ever start Tomcat 4.1 as service on Windows 2k ? Thanks in
 
 
 advance.
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 ***
 **
 
 
 *
 
 
 The information contained in this e-mail is confidential and is
 intended only for the use of the addressee(s).
 If you receive this e-mail in error, any use, distribution or
 copying of this e-mail is not permitted. You are requested to
 forward unwanted e-mail and address any problems to the
 MIM Holdings Limited Support Centre.
 
 For general enquires:  ++61 7 3833 8000
 Support Centre e-mail: [EMAIL PROTECTED]
 Support Centre phone:  Australia 1800500646
International ++61 7 38338042
 ***
 **
 
 
 *
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 
 
 For additional commands, e-mail: mailto:tomcat-user-
 
 
 [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 
 
 For additional commands, e-mail:
 
 
 mailto:tomcat-user-help;jakarta.apache.org
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: MBeans exception and mod_jk

2002-11-06 Thread Martin Jacobson
First off, some encouragement — I have Mac OS X 10.1.5, Apache 2.0.43, 
mod_jk.so (the latest), and Tomcat 4.1.12, and it works for me!

There may be differences with OS X 10.2, plus I installed Tomcat in 
/usr/local so my workers.properties file looks like this:

# BEGIN workers.properties
#
# Setup for apache system
#
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/usr/local/tomcat
#
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr
#
ps=/
worker.list=ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009

# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost

worker.ajp13.type=ajp13
#
# END workers.properties

I didn't notice any problem with your server.xml file, but anyway, 
here's the beginning of mine...

Server port=8005 shutdown=SHUTDOWN debug=0
  Service name=Tomcat-with JK
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009
   minProcessors=5
   maxProcessors=75
   acceptCount=10
   debug=0
/

I don't use the auto-generation feature, as I am using SSL on some/most 
of the pages, so I have the following in httpd.conf for the non-SSL part...

VirtualHost localhost
ServerName localhost

 localhost:/drs 
# Redirect Tomcat's http:.../login request to https:.../login
#
Redirect /drs/login https://localhost/drs/login
Redirect /drs/private/home https://localhost/drs/private/home

# Static files
Alias /drs /usr/local/tomcat/webapps/drs

Directory /usr/local/tomcat/webapps/drs
Options Indexes FollowSymLinks
DirectoryIndex web/index.html
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /drs/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /drs/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /drs/home  ajp13
JkMount /drs/auth_error  ajp13
JkMount /drs/login_error  ajp13
/VirtualHost

I should add that I was unable to build mod_jk.so successfully (it built 
without error, but didn't work - probably my incompetance!), so I'm 
using the pre-built one from the jakarta site.

I hope this helps! Please feel free to ask for more info.

Martin


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: [Windows2k] Start tomcat as Service

2002-11-06 Thread Remy Maucherat
François Vallet wrote:


But you cannot install it as service after the installation???


Tomcat is using a third party component (JavaService) to provide that 
functionality, so you should refer to its documentation.

Remy


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread Zaragoza, Carles
I have install two tomacat 4.1 as a service on a w2000 prof with no
problems.

run tomcat.exe -help and follow the syntax.

Regards,Carles.

-Original Message-
From: François Vallet [mailto:fvallet;infovista.com]
Sent: martes, 05 de noviembre de 2002 18:42
To: 'Tomcat Users List'
Subject: [Windows2k] Start tomcat as Service


Who have ever start Tomcat 4.1 as service on Windows 2k ?
Thanks in advance.

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




running tomcat using cvm virtual machine

2002-11-06 Thread karthik_s
Hi all,

I am  using tomcat 4.0.

I want to run tomcat using cvm virtual machine that comes with j2me.
 
To run the class org.apache.catalina.startup.Bootstrap, i have found some of the 
required classes and make 
them as a jar file and specified the jar file in -Xbootclasspath option of cvm 
executable.

when i started tomcat (using /.startup.sh command (in Linux)), I got the following 
exception.

java.lang.NoSuchMethodError: java.net.URLStreamHandler: method 
setURL(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
 not found

at 
sun.net.www.protocol.jar.Handler.parseURL(Ljava/net/URL;Ljava/lang/String;II)V(Handler.java:71)
at 
java.net.URL.init(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V(URL.java:492)
at java.net.URL.init(Ljava/net/URL;Ljava/lang/String;)V(URL.java:377)
at 
sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;(URLClassPath.java:495)
at 
sun.misc.URLClassPath.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;(URLClassPath.java:134)
at java.net.URLClassLoader$1.run()Ljava/lang/Object;(URLClassLoader.java:193)
at 
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(AccessController.java:330)
at 
java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;(URLClassLoader.java:189)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;(StandardClassLoader.java:674)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;(StandardClassLoader.java:1093)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;(StandardClassLoader.java:992)
at org.apache.catalina.startup.Bootstrap.main([Ljava/lang/String;)V(Bootstrap.java:218)


But the class java.net.URLStreamHandler (jdk1.3)has no such method of signature:
setURL(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)

In jdk1.3 the class URLStreamHandler has the following method signatures:
protected void setURL(java.net.URL, java.lang.String, java.lang.String, int, 
java.lang.String, java.lang.String, java.lang.String, java.lang.String, 
java.lang.String);
protected void setURL(java.net.URL, java.lang.String, java.lang.String, int, 
java.lang.String, java.lang.String);

Where can i find the method that is needed for tomcat to run using the cvm virtual 
machine?
How can i overcome this error?

thanks in advance,
Karthik.



Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-06 Thread Rodrigo Ruiz
Marc, in the message title you say you want to suppress directory listings,
but in the content, you
speak about preventing access to some directories. These are two completely
different things.

Almost all responses you are receiving are directed to the first issue, that
is, preventing Tomcat from presenting
its own directory page when you use a URLs like http://server/dir/.

I can only add that the $CATALINA_HOME/conf/web.xml is just a web.xml
template. You can override most
configurations in that file, by copying the part you are interested in into
your local web.xml, and making any
modification there. Particularly, you can redefine the default servlet, and
configure it as you want. So you don't
need access to the global web.xml file :-)

If we pass to the second issue, I see 3 options:
1. If you want to allow access to some directories only to certain logged in
users, you can setup security constraints in your web.xml, as Craigh pointed
before.
2. If you use those directories only for internal use of your servlets/jsps,
you could move them inside the WEB-INF directory. This way nobody will have
access to them from the web.
3. If you don't want to change directory locations (because there's too much
code to change, for example), you could use security constraints, and allow
access only to an inexistent role.

You said that you cannot change conf/web.xml. I suppose you plan to deploy
your webapp into a tomcat from a third person (client, ISP, or something).
If this is the case, be sure you have some control or knowledge about the
realm used by your webapp. If you cannot control the roles in the realm, the
third option can be insecure, as you will not control if a specified role
exists or will exist in the future.

Hope it helps!


- Original Message -
From: Marc Mendez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 9:12 AM
Subject: Re: Standalone Tomcat : suppress directory listing in web.xml



 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]

  You can suppress directory indexes in the $CATALINA_HOME/conf/web.xml
  file.  See the listings init parameter for the default servlet.
 

 Read my previous post.

 
  You have complete control over which requests your filter applies to,
  because you are defining a filter-mapping for it.  In particular, if
you
  use a URL pattern of /* in your filter mapping, then *all* requests
for
  your webapp will go through the filter.
 

 Ok, I'll check


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread François Vallet
Thanks ...


 -Original Message-
 From: Remy Maucherat [mailto:remm;apache.org]
 Sent: mercredi 6 novembre 2002 10:39
 To: Tomcat Users List
 Subject: Re: [Windows2k] Start tomcat as Service
 
 François Vallet wrote:
 
  But you cannot install it as service after the installation???
 
 Tomcat is using a third party component (JavaService) to provide that
 functionality, so you should refer to its documentation.
 
 Remy
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Balancer and sessions

2002-11-06 Thread Juan Fco. Herrera Utande
Hi,

Make sure that you have the following in the server.xml files:

- server.xml in Localhost: jvmroute=ajp13
- server.xml in 192.168.130.9: jvmroute=ajp13s

Regards,

Juan

-Mensaje original-
De: Ryszard Lach [mailto:[EMAIL PROTECTED]]
Enviado el: mircoles, 06 de noviembre de 2002 10:21
Para: [EMAIL PROTECTED]
Asunto: Balancer and sessions


Hi!

I'm trying to get work apache + tomcat4.0.5 with load balancer worker
(mod_jk), but it seems it doesn't forward all requests of one session to
the same worker. I've been used balancing with jserv and that wasn't a
problem - if servicing of the session was started with jserv1, then the
whole session was served with jserv1 (as long as jserv1 was running).
Now, with tomcat4.0.5 I see the requests are forwarding regardless of
sessions, what causes losing sessions after first (or second) request.

Is there something I'm missing with setting of the balancer?

My workers.properties is as follows:

worker.list=loadbalancer,ajp13  # I'm using ajp13 worker as is in other
# virtualhost too, I'hope it's not a
# problem

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=100

worker.ajp13s.port=8009
worker.ajp13s.host=192.168.130.9
worker.ajp13s.type=ajp13
worker.ajp13s.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13,ajp13s

Is there any documentation about using loadbalancer and its directives?

Thanks for any help.

Richard.

--
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




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




Re: Balancer and sessions

2002-11-06 Thread Ryszard Lach
On Wed, Nov 06, 2002 at 11:44:07AM +0100, Juan Fco. Herrera Utande wrote:
 Hi,
 
 Make sure that you have the following in the server.xml files:
 
 - server.xml in Localhost: jvmroute=ajp13
 - server.xml in 192.168.130.9: jvmroute=ajp13s
 

In which section should it be? 

R.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




RE: Balancer and sessions

2002-11-06 Thread Juan Fco. Herrera Utande
In the Engine section.

You have more details in the documentation.

Regards

-Mensaje original-
De: Ryszard Lach [mailto:[EMAIL PROTECTED]]
Enviado el: mircoles, 06 de noviembre de 2002 11:47
Para: Tomcat Users List; [EMAIL PROTECTED]
Asunto: Re: Balancer and sessions


On Wed, Nov 06, 2002 at 11:44:07AM +0100, Juan Fco. Herrera Utande wrote:
 Hi,

 Make sure that you have the following in the server.xml files:

 - server.xml in Localhost: jvmroute=ajp13
 - server.xml in 192.168.130.9: jvmroute=ajp13s


In which section should it be?

R.

--
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.



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




under IIS

2002-11-06 Thread Sipos Andras
Hi,

I can't install tomcat under iis.
The tomcat work perpertly on :8080 port
The iis work propertly on :80 port.
But when make a virtualweb width isapi_redirect.dll, not work.
There is nothing errorlog, or log (c:\jacarta-tomcat\logs\iis_redirect.log).
I maked step by step as the install doc say.

My versions:
Tomcat 4.0.3
IIS 4
NT 4 + sp6
jsdk1.3.1_04

That is the problem? or how to mak a debug log?

Andras


-
This email was sent using SquirrelMail.
   Webmail for nuts!
http://squirrelmail.org/



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




JSP error handling

2002-11-06 Thread Jan Kunzmann
Hi there,

I've a problem with JSP error handling.

I tried to make custom error pages with the
% page errorPage=... % element. If an error occurs during the 
execution of my jsp page, the error page is called, but the 
javax.servlet.error.* attributes do not contain any values.

I looked into the Tomcat 4.0 source and found a valve called 
ErrorDispatcherValve. Has it something to do with jsp error handling? I 
tried to include the valve with Valve... and with Host 
errorReportingValve=, but the error page still reports the attributes 
to be null.

I use Tomcat 4.0.4 from the Debian distribution with marginal chances in 
server.xml.

Thanks in advance,
Jan


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: under IIS

2002-11-06 Thread Juan Fco. Herrera Utande
If you don't have a c:\jacarta-tomcat\logs\iis_redirect.log maybe the isapi
filter didn't load properly.

You can check it in the event viewer in the System section.

-Mensaje original-
De: Sipos Andras [mailto:[EMAIL PROTECTED]]
Enviado el: mircoles, 06 de noviembre de 2002 12:09
Para: [EMAIL PROTECTED]
Asunto: under IIS


Hi,

I can't install tomcat under iis.
The tomcat work perpertly on :8080 port
The iis work propertly on :80 port.
But when make a virtualweb width isapi_redirect.dll, not work.
There is nothing errorlog, or log (c:\jacarta-tomcat\logs\iis_redirect.log).
I maked step by step as the install doc say.

My versions:
Tomcat 4.0.3
IIS 4
NT 4 + sp6
jsdk1.3.1_04

That is the problem? or how to mak a debug log?

Andras


-
This email was sent using SquirrelMail.
   Webmail for nuts!
http://squirrelmail.org/



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




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




Test

2002-11-06 Thread Rodrigo Ruiz
Please, ignore this mail. I'm just testing my messages arrive to this list

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat NT Service hogs 90% CPU - intermittent problem

2002-11-06 Thread Christopher Watson
Many thanks Ben

I've similarly NOT YET seen the 90% CPU on a
jdk1.4 and tomcat 4.1.12 system I set up
with much the same webapps as the one that's thrashing

I noticed some old mailing list messages related to this problem that talked
about garbage collection,
and I had begun to wonder whether 90% CPU was a jdk problem rather than a
tomcat problem
and your experience supports this.

Do you - or anyone else - know the pedigree of tomcat.exe?
Is it basically JavaService?

Also, has anyone any ideas how I might get -verbose:gc output from it?
I can do this with catalina_opts for catalina.bat,
but adding the -verbose:gc parameter to the registry key for the NT service
doesn't seem to result in any output for -verbose:gc,
though the -Xms64m and -Xrs parameters I've added do seem to be actioned.

Thanks again Ben

 -Original Message-
 From: Ben Walding [mailto:ben;walding.com]
 Sent: 06 November 2002 07:14
 To: Tomcat Users List
 Subject: Re: Tomcat NT Service hogs 90% CPU - intermittent problem


 I had this problem at one point (4.1.10, and no IIS in my config though)

 My solution was to upgrade to 4.1.12 and upgrade the JDK to 1.4.1.01,
 this seemed to work.

 No idea what caused it though.


 Christopher Watson wrote:

 Hello All,
 
 Currently my config is
 
 TOMCAT 4.1.12
 jdk1.3.1_03
 Windows 2000 Pro
 NT Service configured using the server\jvm.dll with -Xrs
 IIS 5.0
 ISAPI_REDIRECTOR version 2.0 using workers.properties
 
 however I have had this problem many times with different tomcat
 versions in
 the past.
 
 Suddenly, for no apparent reason - high load/ no load/ different webapps/
 doesn't seem to make any difference ...
 tomcat.exe grabs 90% of cpu and won't let go of it.
 Nothing unexpected appears in the logs
 
 Has anyone seen this and know a way round it?
 
 Failing that, could they suggest any logging I could turn on (and how) to
 try and diagnose the problem.
 
 As I say, I've had it with various combinations of applications
 in webapps.
 I THINK it ONLY happens with the NT Service tomcat.exe,
 I'm pretty sure I've not seen it by running catalina.bat
 
 Sometimes it happens if I restart the machine and leave it.
 Other times I may not encounter it for a couple of days.
 If I leave about a week, then it almost always turns up.
 
 Any help much appreciated .
 
 Christopher
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 




 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat and php

2002-11-06 Thread ben f

Hi

I'm new to tomcat but not php. I'm trying to get tomcat to run php as a servlet on 
WINNT 4.0.

Tomcat version 4.1.12

PHP version 4.2.3

I have amended my server.xml file to include an entry for a php servlet as below:

Context path=/phpserver docBase=php-server debug=99 reloadable=true /

I have added phpsrvlt.jar to my %TOMCAT_HOME%\webapps\php-server\WEB-INF\lib directory.

When I run a file named test.php under %TOMCAT_HOME%\webapps\php-server as 
http://localhost:8080/test.php it works for 3 strikes then tomcat falls over.

When I run a simple print script called /php-server/test2.php (or even the test.php 
that works under ROOT) from %TOMCAT_HOME%\webapps\ROOT I get the a http 500 and these 
errors:

javax.servlet.ServletException: bailout
at net.php.servlet.send(Native Method)
at net.php.servlet.service(servlet.java:162)
at net.php.servlet.service(servlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:479)

I'm sure this must be a simple error as tomcat itself is serving it's documents very 
well and quickly. Can anyone out there help?

Thanks for reading.




-
Get a bigger mailbox -- choose a size that fits your needs.



Re: Standalone Tomcat : suppress directory listing in web.xml

2002-11-06 Thread Rodrigo Ruiz
Marc, in the message title you say you want to suppress directory listings,
but in the content, you speak about preventing access to some directories.
These are two completely different things.

Almost all responses you are receiving are directed to the first issue, that
is, preventing Tomcat from presenting its own directory page when you
use a URLs like http://server/dir/.

I can only add that the $CATALINA_HOME/conf/web.xml is just a web.xml
template. You can override most configurations in that file, by copying the
part you are interested in into your local web.xml, and making any
modification there. Particularly, you can redefine the default servlet, and
configure it as you want. So you don't need access to the global web.xml
file :-)

If we pass to the second issue, I see 3 options:
1. If you want to allow access to some directories only to certain logged in
users, you can setup security constraints in your web.xml, as Craigh pointed
before.
2. If you use those directories only for internal use of your servlets/jsps,
you could move them inside the WEB-INF directory. This way nobody will have
access to them from the web.
3. If you don't want to change directory locations (because there's too much
code to change, for example), you could use security constraints, and allow
access only to an inexistent role.

You said that you cannot change conf/web.xml. I suppose you plan to deploy
your webapp into a tomcat from a third person (client, ISP, or something).
If this is the case, be sure you have some control or knowledge about the
realm used by your webapp. If you cannot control the roles in the realm, the
third option can be insecure, as you will not control if a specified role
exists or will exist in the future.

Hope it helps!


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: under IIS

2002-11-06 Thread Sipos Andras

Sorry, i want to write:
the log is empty and exist. 0 byte length.
On startup tomcat write to log: ajp started.
My server.xml is the default.
In the IIS admin show a green arrow alongside.
I donw know the iis webszerver fully,
please send some screnshot.

wery wery thx.

ps: sorry, but my engilsh is poor.

Andras

 If you don't have a c:\jacarta-tomcat\logs\iis_redirect.log maybe the
 isapi filter didn't load properly.

 You can check it in the event viewer in the System section.



-
This email was sent using SquirrelMail.
   Webmail for nuts!
http://squirrelmail.org/



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




RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread François Vallet
I don't have any tomcat.exe ... it is not apache :(


 -Original Message-
 From: Zaragoza, Carles [mailto:Carles.Zaragoza;es.compuware.com]
 Sent: mercredi 6 novembre 2002 10:52
 To: 'Tomcat Users List'
 Subject: RE: [Windows2k] Start tomcat as Service
 
 I have install two tomacat 4.1 as a service on a w2000 prof with no
 problems.
 
 run tomcat.exe -help and follow the syntax.
 
 Regards,Carles.
 
 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: martes, 05 de noviembre de 2002 18:42
 To: 'Tomcat Users List'
 Subject: [Windows2k] Start tomcat as Service
 
 
 Who have ever start Tomcat 4.1 as service on Windows 2k ?
 Thanks in advance.
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 The contents of this e-mail are intended for the named addressee only. It
 contains information that may be confidential. Unless you are the named
 addressee or an authorized designee, you may not copy or use it, or
disclose
 it to anyone else. If you received it in error please notify us
immediately
 and then destroy it.
 
 
 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat NT Service hogs 90% CPU - intermittent problem

2002-11-06 Thread Ben Walding
I didn't notice the java processes thrashing. When I checked task 
manager it was just the tomcat.exe that was at high cpu usage.  

I also don't know where the tomcat.exe comes from, presumably someone 
builds it at the same time they build the install wizard etc.

You could try -Xloggc:file
(from JDK1.4.1 - no idea if it exists on anything earlier)


Christopher Watson wrote:

Many thanks Ben

I've similarly NOT YET seen the 90% CPU on a
jdk1.4 and tomcat 4.1.12 system I set up
with much the same webapps as the one that's thrashing

I noticed some old mailing list messages related to this problem that talked
about garbage collection,
and I had begun to wonder whether 90% CPU was a jdk problem rather than a
tomcat problem
and your experience supports this.

Do you - or anyone else - know the pedigree of tomcat.exe?
Is it basically JavaService?

Also, has anyone any ideas how I might get -verbose:gc output from it?
I can do this with catalina_opts for catalina.bat,
but adding the -verbose:gc parameter to the registry key for the NT service
doesn't seem to result in any output for -verbose:gc,
though the -Xms64m and -Xrs parameters I've added do seem to be actioned.

Thanks again Ben

 

-Original Message-
From: Ben Walding [mailto:ben;walding.com]
Sent: 06 November 2002 07:14
To: Tomcat Users List
Subject: Re: Tomcat NT Service hogs 90% CPU - intermittent problem


I had this problem at one point (4.1.10, and no IIS in my config though)

My solution was to upgrade to 4.1.12 and upgrade the JDK to 1.4.1.01,
this seemed to work.

No idea what caused it though.


Christopher Watson wrote:

   

Hello All,

Currently my config is

TOMCAT 4.1.12
jdk1.3.1_03
Windows 2000 Pro
NT Service configured using the server\jvm.dll with -Xrs
IIS 5.0
ISAPI_REDIRECTOR version 2.0 using workers.properties

however I have had this problem many times with different tomcat
 

versions in
   

the past.

Suddenly, for no apparent reason - high load/ no load/ different webapps/
doesn't seem to make any difference ...
tomcat.exe grabs 90% of cpu and won't let go of it.
Nothing unexpected appears in the logs

Has anyone seen this and know a way round it?

Failing that, could they suggest any logging I could turn on (and how) to
try and diagnose the problem.

As I say, I've had it with various combinations of applications
 

in webapps.
   

I THINK it ONLY happens with the NT Service tomcat.exe,
I'm pretty sure I've not seen it by running catalina.bat

Sometimes it happens if I restart the machine and leave it.
Other times I may not encounter it for a couple of days.
If I leave about a week, then it almost always turns up.

Any help much appreciated .

Christopher


--
To unsubscribe, e-mail:
 

mailto:tomcat-user-unsubscribe;jakarta.apache.org
   

For additional commands, e-mail:
 

mailto:tomcat-user-help;jakarta.apache.org
   



 



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


   



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


 





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Balancer and sessions

2002-11-06 Thread Ryszard Lach
On Wed, Nov 06, 2002 at 11:56:51AM +0100, Juan Fco. Herrera Utande wrote:
 In the Engine section.
 
 You have more details in the documentation.
 

Yes, indeed. Now it works just great.

Thanks a lot.

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




Re: Logging UserAgent (browser)

2002-11-06 Thread Tim Funk
Yes - use combined for your access log pattern.
Ex:
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs
   prefix=localhost_access_log.
   suffix=.txt
   pattern=combined /


neal wrote:

Is it possible to instruct Tomcat to log the HTTP UserAgent (Aka which
browser), in the access logs?

Thanks!
Neal
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Logging User-Agent

2002-11-06 Thread Tim Funk
Use this instead ...
Ex:
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs
   prefix=localhost_access_log.
   suffix=.txt
   pattern=combined /

-Tim


neal wrote:

Does anyone know how to log the User-Agent (browser) in Tomcat access logs?

I found this reference on the web, but don't really get the context.  I
tried replacing the Logger node in my server.xml file with the second listed
RequestInterceptor but its still not logging the User-Agent.  Does anyone
know quite how this fits in? Also while on the topic - does anyone know how
Tomcat's default log format compares to Apache's?

   RequestInterceptor
 className=org.apache.tomcat.logging.AccessLogInterceptor
 logFile=logs/AccessLog format=combined/

   RequestInterceptor
 className=org.apache.tomcat.logging.AccessLogInterceptor
 logFile=logs/AccessLog
 format='%h %l %u %t %r %s %b %{User-Agent}'/

Thanks.
Neal




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




installation problems with Tomcat 4.1, mod_jk2 connectors

2002-11-06 Thread Marko Asplund

i'm trying to build and install the Tomcat 4.1.12 connectors for use with
Apache 2.0.43 and Tomcat 4.1.12. i've been reading through the
documentation but unfortunately, the Tomcat JK documentation pages only
discuss the configuration part and not the installation process itself so
i'm having problems figuring out how to exactly install the connectors.

i've installed the mod_jk2 part but do i need to install the connectors to
Tomcat as well? the Connectors List mentions that the mod_jk2 connectors
are enabled per default in Tomcat v4.1 which lead me to think that
connector installation is not necessary.

best regards,
-- 
aspa





--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Only one user at a time can use Tomcat ?

2002-11-06 Thread Turner, John

Please be more specific.  

What does log on mean?  Users don't log on to Tomcat.  Tomcat is a
service.

John


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:achana;saysit.com]
 Sent: Tuesday, November 05, 2002 5:52 AM
 To: [EMAIL PROTECTED]
 Subject: Only one user at a time can use Tomcat ?
 
 
 Has this thread been discussed already, sorry I was draining 
 the swamp
 and might have missed that.
 Only one user at a time can log onto my Tomcat. What have I missed and
 where should I be looking.
 TIA
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




tomcat 4.1.12 connector problems

2002-11-06 Thread Kevin McNamee
Hi,

I've been trying to connect tomcat to apache using mod_jk as described in the HOWTO at
http://www.johnturner.com/howto/apache2-tomcat4110-jk-howto.html

I compile apache 2.0.43 and mod_jk 4.1.12 from source.

I start tomcat and 10 seconds later start Apache. I can browse to http://localhost and 
http://localhost:8080 just fine. 
However when I test the connector by browsing to  http://localhost/examples I get a 
404 error.

The apache error.log says
  File does not exist: /var/www/html/examples

On inspection of the cataline.out file I see:

Nov 6, 2002 2:40:07 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Nov 6, 2002 2:40:07 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Nov 6, 2002 2:40:08 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Nov 6, 2002 2:40:11 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:369)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:777)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:751)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:339)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:206)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
Nov 6, 2002 2:40:23 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

Any help appreciated.

Regards,
Kevin McNamee




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




mapping URLs

2002-11-06 Thread Panos Konstantinidis
  Hello, this is the second time I am asking this
message and hopefully someone can help me this time.

  I am migrating from Resin to Tomcat 4.1 for Windows
NT with JDK1.3. We have a bunch of include files and
images in a shared folder that all web application
share using Resin. This folder resides on
c:\include\content. I have configured the
corresponding Resin's web.xml file, whenever the
pattern /content is encounter to look into the
c:\include\content folder. So whenever in the jsp
files Resin sees the /content/myInclude.inc url
pattern it is looking at the
c:\include\content\myInclude.inc fodler.

  Is there something similar I can do with Tomcat? If
Tomcat encounters the /content then it will look on
the root folder of the specific application, which I
do not want.

  I have look through the web.xml documentation and
have only found URL-mapping for Servlets.

  I'd really appreciate any help given.

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Problem running the examples..

2002-11-06 Thread Turner, John

Please post portions of the Tomcat log files that occur when you access
those URLs.

John


 -Original Message-
 From: Pavan Kumar Anumula [mailto:anumu_p;cs.odu.edu]
 Sent: Tuesday, November 05, 2002 2:54 PM
 To: [EMAIL PROTECTED]
 Subject: Problem running the examples..
 
 
 hi,
 
  I have successfully installed the jakarta-tomcat-4.1.12 on Unix.
 
  I am able to see the index.jsp (welcome page of tomcat 4.1.12).
  
  when i try to run the example servlets i get HTTP 404 exception.
  when i try to run the jsp's i get 500 exception status..something not
 found.
 
  i would appreciate if anyone can tell me whats the problem?
 
  i am using j2se ... this might be the problem or what? 
   
 thank you.
 
 Pavan Kumar Anumula
 Teched Teaching Assistant,
 Department of Computer Science,
 Old Dominion University.
 
 Student Intern, 
 Jefferson Lab, Newport News.
 
 home: (757) 4400256
 off : (757) 6835064
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Hi Panos

I have the following line in my server.xml (inside the host tag) to map my
images for jsp pages. It might do what u want

Context path=/images  docBase=C:\images/

hope it helps
Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis;yahoo.com]
Sent: 06 November 2002 12:58
To: [EMAIL PROTECTED]
Subject: mapping URLs

  Hello, this is the second time I am asking this
message and hopefully someone can help me this time.

  I am migrating from Resin to Tomcat 4.1 for Windows
NT with JDK1.3. We have a bunch of include files and
images in a shared folder that all web application
share using Resin. This folder resides on
c:\include\content. I have configured the
corresponding Resin's web.xml file, whenever the
pattern /content is encounter to look into the
c:\include\content folder. So whenever in the jsp
files Resin sees the /content/myInclude.inc url
pattern it is looking at the
c:\include\content\myInclude.inc fodler.

  Is there something similar I can do with Tomcat? If
Tomcat encounters the /content then it will look on
the root folder of the specific application, which I
do not want.

  I have look through the web.xml documentation and
have only found URL-mapping for Servlets.

  I'd really appreciate any help given.

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: installation problems with Tomcat 4.1, mod_jk2 connectors

2002-11-06 Thread Turner, John

That's correct.  The Tomcat side of the JK/JK2 connectors is enabled in
server.xml by default. 

Look for a Connector element in server.xml that calls the CoyoteConnector
class with a port assignment of 8009.  That's your JK2 connector on the
Tomcat end.

On the Apache end, mod_jk2.so goes in the standard location for Apache
modules.

John


 -Original Message-
 From: Marko Asplund [mailto:aspa;kronodoc.fi]
 Sent: Wednesday, November 06, 2002 7:34 AM
 To: [EMAIL PROTECTED]
 Subject: installation problems with Tomcat 4.1, mod_jk2  connectors
 
 
 
 i'm trying to build and install the Tomcat 4.1.12 connectors 
 for use with
 Apache 2.0.43 and Tomcat 4.1.12. i've been reading through the
 documentation but unfortunately, the Tomcat JK documentation 
 pages only
 discuss the configuration part and not the installation 
 process itself so
 i'm having problems figuring out how to exactly install the 
 connectors.
 
 i've installed the mod_jk2 part but do i need to install the 
 connectors to
 Tomcat as well? the Connectors List mentions that the mod_jk2 
 connectors
 are enabled per default in Tomcat v4.1 which lead me to think that
 connector installation is not necessary.
 
 best regards,
 -- 
   aspa
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: MBeans exception and mod_jk

2002-11-06 Thread Turner, John

[Tue Nov 05 21:36:07 2002]  [mod_jk.c (1277)]: Into handler 
r-proxyreq=0 r-handler=jakarta-servlet r-notes=3849720 worker=ajp13
[Tue Nov 05 21:36:07 2002]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name ajp13
[Tue Nov 05 21:36:07 2002]  [jk_worker.c (136)]: 
wc_get_worker_for_name, done did not found a worker

This tells me that there is no worker for ajp13 in workers.properties.

So, my guess is either the workers.properties file that is being used isn't
the workers.properties file you think is being used, or there is some sort
of typo/garbage in your workers.properties file preventing a successful
match for ajp13.  

Can you delete workers.properties, and recreate it?  I know it sounds silly,
but in the past couple of weeks there have been problems with typos posted
to the list, from using workers when it should be worker to using a
lowercase L instead of a one in 13.

All you need in there are 4 lines:

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

John


 -Original Message-
 From: Mark Diana [mailto:mldiana;vcu.edu]
 Sent: Tuesday, November 05, 2002 9:38 PM
 To: Tomcat Users List
 Subject: Re: MBeans exception and mod_jk
 
 
 OK, I tried all of the following:
 
 I copied the contents of the auto-mod_jk.conf file to httpd.conf and 
 removed the Include directive. Still no luck. I also added 
 the JkMount 
 /examples/* ajp13 statement just to be sure. No luck.
 
 I tried using the mod_jk.so binary for mac osx from the jakarta web 
 site. No luck. I tried removing the mod_jk.conf statements I 
 copied to 
 httpd.conf from the virtual host and all of the sudden I started 
 getting an Apache Internal Server error 500. So, I set the mod_jk log 
 level to debug and here's what I got (forgive the length, but I don't 
 know enough about this to know what to edit out):
 
 [Tue Nov 05 21:35:39 2002]  [jk_worker.c (111)]: wc_open, done 1
 [Tue Nov 05 21:36:06 2002]  [jk_uri_worker_map.c (460)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [Tue Nov 05 21:36:07 2002]  [jk_uri_worker_map.c (477)]: 
 Attempting to 
 map URI '/examples/'
 [Tue Nov 05 21:36:07 2002]  [jk_uri_worker_map.c (502)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a context match 
 ajp13 - 
 /examples/
 [Tue Nov 05 21:36:07 2002]  [mod_jk.c (1277)]: Into handler 
 r-proxyreq=0 r-handler=jakarta-servlet r-notes=3849720 worker=ajp13
 [Tue Nov 05 21:36:07 2002]  [jk_worker.c (132)]: Into 
 wc_get_worker_for_name ajp13
 [Tue Nov 05 21:36:07 2002]  [jk_worker.c (136)]: 
 wc_get_worker_for_name, done did not found a worker
 
 Any ideas?
 
 Take care,
 
 Mark
 
 On Tuesday, November 5, 2002, at 03:22 PM, Aryeh Katz wrote:
 
 
  Moving Tomcat might help, but if you are getting an apache 
 404, that
  means that Apache doesn't know what to do with
  http://localhost/examples, even though your httpd.conf 
 clearly has a
  virtual host for localhost and the requisite JkMount statements.
 
  Not so fast. His JkMount command doesn't have anything for 
 /examples/* 
  !. It
  might be just that simple.
  Aryeh
 
  ---
  Aryeh Katz
  VASCO   
  www.vasco.com   
 
 
  --
  To unsubscribe, e-mail:   
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail: 
  mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 Mark L. Diana, MBA
 Instructor
 LAN Manager  Webmaster
 Virginia Commonwealth University
 Department of Health Administration
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: JSP error handling

2002-11-06 Thread Ricardo Moral
There are two valves used to handle errors. The first
one is the ErrorDispatcherValve. This is the valve
that will forward the request to the error page if
there is a uncaught exception. The second valve is the
ErrorReportValve wich is the last valve on the list of
valves of a Host and is used to generate a error
report in HTML. 

You don't need to add this valves by hand because they
are added by the start method of the StandardHost
implementation. If you are using other implementation
of the Host interface you must add this valves
yourself.

The exception of JSP's are stored under the attibute
'javax.servlet.jsp.jspException' of the request. But
you must access this value directly using the
'exception' variable already declared on the context
of the error page.


--- Jan Kunzmann [EMAIL PROTECTED] wrote:
 Hi there,
 
 I've a problem with JSP error handling.
 
 I tried to make custom error pages with the
 % page errorPage=... % element. If an error
 occurs during the 
 execution of my jsp page, the error page is called,
 but the 
 javax.servlet.error.* attributes do not contain any
 values.
 
 I looked into the Tomcat 4.0 source and found a
 valve called 
 ErrorDispatcherValve. Has it something to do with
 jsp error handling? I 
 tried to include the valve with Valve... and with
 Host 
 errorReportingValve=, but the error page still
 reports the attributes 
 to be null.
 
 I use Tomcat 4.0.4 from the Debian distribution with
 marginal chances in 
 server.xml.
 
 Thanks in advance,
 Jan
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: [Windows2k] Start tomcat as Service

2002-11-06 Thread Juan Fco. Herrera Utande
You must have one under tomcat\bin. If not try to install again and make
sure during installation you choose Intall Tomcat as a Service.

I also have Tomcat 4.1.12 under W2K running as a service with no problems.

Regards,

Juan

-Mensaje original-
De: François Vallet [mailto:fvallet;infovista.com]
Enviado el: miércoles, 06 de noviembre de 2002 11:12
Para: 'Tomcat Users List'
Asunto: RE: [Windows2k] Start tomcat as Service


I don't have any tomcat.exe ... it is not apache :(


 -Original Message-
 From: Zaragoza, Carles [mailto:Carles.Zaragoza;es.compuware.com]
 Sent: mercredi 6 novembre 2002 10:52
 To: 'Tomcat Users List'
 Subject: RE: [Windows2k] Start tomcat as Service

 I have install two tomacat 4.1 as a service on a w2000 prof with no
 problems.

 run tomcat.exe -help and follow the syntax.

 Regards,Carles.

 -Original Message-
 From: François Vallet [mailto:fvallet;infovista.com]
 Sent: martes, 05 de noviembre de 2002 18:42
 To: 'Tomcat Users List'
 Subject: [Windows2k] Start tomcat as Service


 Who have ever start Tomcat 4.1 as service on Windows 2k ?
 Thanks in advance.

 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org


 --
 The contents of this e-mail are intended for the named addressee only. It
 contains information that may be confidential. Unless you are the named
 addressee or an authorized designee, you may not copy or use it, or
disclose
 it to anyone else. If you received it in error please notify us
immediately
 and then destroy it.


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Ricardo Moral
Send us the code of the DBQuery.java. (The shorter the
better)


--- Michael Nicholson [EMAIL PROTECTED] wrote:
 I'm building a webapp, and I want to use connection
 pooling with it.  In order to play around some, I
 made a dummy webapp that does virtually nothing, but
 uses the connection pool.  So then I cut and pasted
 some code out into the bigger webapp, but now I get
 this error:
 
 MonitorFilter::java.lang.ClassCastException:
 org.apache.commons.dbcp.BasicDataSource
 at CPPSDB.DBQuery.init(DBQuery.java:34)
 at

org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
 at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:174)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:247)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
 
 My server.xml has the same resource and resource
 params for both contexts, and my web.xml has the
 same resource-ref as the dummy app, but I still get
 the same error.  Any ideas?
 
 Michael Nicholsn


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For 

RE: Installing and using manager app in 4.1.12

2002-11-06 Thread Turner, John

Now it makes sense.  Thanks for the help.

John


 -Original Message-
 From: Stefan Wimmer [mailto:swimmer;gx.nl]
 Sent: Tuesday, November 05, 2002 6:34 PM
 To: '[EMAIL PROTECTED]'
 Subject: Re: Installing and using manager app in 4.1.12
 
 
 Hi John, 
 
 there is a nice HTML interface via
 
 http://your_host:your_port/manager/html/list
 
 You'll get the same auth request pop-up and then a very nice list of
 webapps our tomcat is running. 
 
 Hope this helps
 Stefan
 
 
 * Turner, John [EMAIL PROTECTED] wrote on 05/Nov/2002 - 02:56:40 :
  
  This is my first foray into the world of the Tomcat manager 
 app.  Any help
  is appreciated.
  
  I've been using this guide:
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
  
  I've modified conf/tomcat-users.xml: I added a new role 
 named manager, as
  I wasn't clear on whether the existing role of tomcat was equal to
  manager or not.  I also added a new user named admin like so:
  
  ?xml version='1.0' encoding='utf-8'?
  tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
user username=tomcat password=tomcat roles=tomcat/
user username=role1 password=tomcat roles=role1/
user username=both password=tomcat roles=tomcat,role1/
user username=admin password=myPassWord roles=manager/
  /tomcat-users
  
  When I access http://some.host.name:8080/manager, I get 
 prompted with a
  standard auth request pop-up.  I type in the username and 
 password of the
  admin user.
  
  The result is a blank white page and an error message that 
 says FAIL -
  Unknown command /.
  
  According to the guide, I can deploy the manager app simply 
 by having
  manager.xml in the appBase for my Host.
  
  The Host appBase is webapps which is the default.  There 
 is a manager.xml
  file in CATALINA_HOME/webapps, it's the one that came with 
 the install
  package.
  
  Can anyone tell me what I am missing?  Do I have 
 tomcat-users.xml screwed
  up?  In the default tomcat-users.xml, is the tomcat role 
 = manager role
  as mentioned in the docs?
  
  Thanks in advance.
  
  - John
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Installing and using manager app in 4.1.12

2002-11-06 Thread Turner, John

Got it.  I'm so used to accessing Tomcat via Apache on port 80, I didn't
even think to try it on port 8080.

Thanks for the help.

John


 -Original Message-
 From: Jon Eaves [mailto:jon;eaves.org]
 Sent: Tuesday, November 05, 2002 6:31 PM
 To: Tomcat Users List
 Subject: Re: Installing and using manager app in 4.1.12
 
 
 Turner, John wrote:
  This is my first foray into the world of the Tomcat manager 
 app.  Any help
  is appreciated.
  
 [ snip of great example of a good request for help ]
 
  
  When I access http://some.host.name:8080/manager, I get 
 prompted with a
  standard auth request pop-up.  I type in the username and 
 password of the
  admin user.
  
  The result is a blank white page and an error message that 
 says FAIL -
  Unknown command /.
 
 If you look at : http://some.host.hame:8080/
 
  From a fresh install, the default page gives you the clue you need.
 There are 2 links on the LHS of the page to the Administration and the
 Manager applications.
 
 You'll find that: http://some.host.name:8080/manager/html
 
 Does exactly what you need in this case.
 
 Cheers,
   -- jon
 
 -- 
 Jon Eaves [EMAIL PROTECTED]
 http://www.eaves.org/jon/
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Installing and using manager app in 4.1.12

2002-11-06 Thread Turner, John

Thanks for the help.

John


 -Original Message-
 From: Kaustuv Sharma [mailto:skaustuva;neline.com]
 Sent: Tuesday, November 05, 2002 11:10 PM
 To: Tomcat Users List
 Subject: Re: Installing and using manager app in 4.1.12
 
 
 the manager application request url is like this 
 
  http://{host}:{port}/manager/{command}?{parameters}
 
 you have to give the command which you want to execute. For 
 more details go to:
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
 
   - Original Message - 
   From: Jon Eaves 
   To: Tomcat Users List 
   Sent: Wednesday, November 06, 2002 5:01 AM
   Subject: Re: Installing and using manager app in 4.1.12
 
 
   Turner, John wrote:
This is my first foray into the world of the Tomcat 
 manager app.  Any help
is appreciated.

   [ snip of great example of a good request for help ]
 

When I access http://some.host.name:8080/manager, I get 
 prompted with a
standard auth request pop-up.  I type in the username and 
 password of the
admin user.

The result is a blank white page and an error message 
 that says FAIL -
Unknown command /.
 
   If you look at : http://some.host.hame:8080/
 
From a fresh install, the default page gives you the clue you need.
   There are 2 links on the LHS of the page to the 
 Administration and the
   Manager applications.
 
   You'll find that: http://some.host.name:8080/manager/html
 
   Does exactly what you need in this case.
 
   Cheers,
   -- jon
 
   -- 
   Jon Eaves [EMAIL PROTECTED]
   http://www.eaves.org/jon/
 
 
   --
   To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Michael Nicholson
The Code of DBQuery follows:  Remember, in one webapp, it works fine, in
another, it gives a class cast exception at the ***'d line



begin code snippet
/*
 * DBQuery.java
 *
 * Created on November 5, 2002, 10:14 AM
 */

package DBCPTestClasses;

import java.sql.*;
import javax.naming.*;
import javax.sql.*;

/**
 *
 * author  man
 */
public class DBQuery
{
  Context initContext = null;
  Context envContext = null;
  DataSource ds = null;
  Connection con = null;
  Statement stmt = null;
  ResultSet rs = null;

  /** Creates a new instance of DBQuery */
  public DBQuery() throws NamingException
  {
initContext = new InitialContext();
envContext  = (Context)initContext.lookup(java:comp/env);
ds = (DataSource) envContext.lookup(jdbc/myoracle);   //***- Class
Cast Exception Occurs Here
  }

  /**
   * Runs an SQL Query and returns the results as a resultset
   * returns ResultSet
   */
  public ResultSet select(String SQLStr) throws SQLException
  {
con = ds.getConnection();
stmt =
con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_
ONLY);
rs = stmt.executeQuery(SQLStr);
return rs;
  }

  /**
   * Closes all connections and such
   */
  public boolean close()
  {
try
{
  rs.close();
  rs = null;
  stmt.close();
  stmt = null;
  con.close();
  con = null;
  return true;
} catch (SQLException ex) {
  throw new RuntimeException(There was an error closing the connection
variables--   + ex.getMessage());
} finally {
  if(rs!=null) rs = null;
  if(stmt!=null) stmt = null;
  if(con!=null) con = null;
}
  }
}
/End Code Snippet

So that's it.  Any insight?  Thanks...

Mike


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Michael Nicholson
I'm running it through Forte/SunOneStudio, which is built on netbeans (I
think).  Does that make a difference?


- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 8:03 PM
Subject: Re: Connection pool question:


 Are you running the tomcat which is built into Netbeans ?


 Michael Nicholson wrote:

 I'm building a webapp, and I want to use connection pooling with it.  In
order to play around some, I made a dummy webapp that does virtually
nothing, but uses the connection pool.  So then I cut and pasted some code
out into the bigger webapp, but now I get this error:
 
 MonitorFilter::java.lang.ClassCastException:
org.apache.commons.dbcp.BasicDataSource
 at CPPSDB.DBQuery.init(DBQuery.java:34)
 at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
 at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
.service(IDEJspServlet.java:174)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
EJspServlet.java:247)
 at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
vlet.java:339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
.java:223)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:528)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.j
ava:142)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:536)
 
 My server.xml has the same resource and resource params for both
contexts, and my web.xml has the same resource-ref as the dummy app, but I
still get the 

Where to put my servlet classes

2002-11-06 Thread Fredro Harjanto

Hi:

I've successfully compiled my servlets using javac servlet-name.java.

Now I want to put my servlet-name.class in Tomcat. Where is the location to put my 
servlet classes?

I have tried many locations and still failed. I used Tomcat 5.0 
(http://jakarta.apache.org/builds/jakarta-tomcat/nightly-5/)

Thank you!.

- Fred

welcome.to/fredro



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: Where to put my servlet classes

2002-11-06 Thread Turner, John

Check the documentation.

For example, the Application Developer's Guide, and the ClassLoader HOWTO:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

John

 -Original Message-
 From: Fredro Harjanto [mailto:fredro_h;yahoo.com]
 Sent: Tuesday, November 05, 2002 10:10 PM
 To: [EMAIL PROTECTED]
 Subject: Where to put my servlet classes
 
 
 
 Hi:
 
 I've successfully compiled my servlets using javac 
 servlet-name.java.
 
 Now I want to put my servlet-name.class in Tomcat. Where is 
 the location to put my servlet classes?
 
 I have tried many locations and still failed. I used Tomcat 
 5.0 (http://jakarta.apache.org/builds/jakarta-tomcat/nightly-5/)
 
 Thank you!.
 
 - Fred
 
 welcome.to/fredro
 
 
 
 -
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Mehdi . Nejad

What are the differences between the jar files that you have in each
/WEB-INF/lib folder ?

Judging by the class cast exception, i'd advise you to try temporarily
removing the jars from your bigger webapps /lib folder, and run the same
code again.

regards,
M




   
 
  Michael 
 
  Nicholson   To:   Tomcat Users List 
[EMAIL PROTECTED]   
  [EMAIL PROTECTED]cc: 
 
  u   Subject:  Re: Connection pool question: 
 
   
 
  06/11/2002 14:11 
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 




The Code of DBQuery follows:  Remember, in one webapp, it works fine, in
another, it gives a class cast exception at the ***'d line



begin code snippet
/*
 * DBQuery.java
 *
 * Created on November 5, 2002, 10:14 AM
 */

package DBCPTestClasses;

import java.sql.*;
import javax.naming.*;
import javax.sql.*;

/**
 *
 * @author  man
 */
public class DBQuery
{
  Context initContext = null;
  Context envContext = null;
  DataSource ds = null;
  Connection con = null;
  Statement stmt = null;
  ResultSet rs = null;

  /** Creates a new instance of DBQuery */
  public DBQuery() throws NamingException
  {
initContext = new InitialContext();
envContext  = (Context)initContext.lookup(java:comp/env);
ds = (DataSource) envContext.lookup(jdbc/myoracle);   //***- Class
Cast Exception Occurs Here
  }

  /**
   * Runs an SQL Query and returns the results as a resultset
   * @returns ResultSet
   */
  public ResultSet select(String SQLStr) throws SQLException
  {
con = ds.getConnection();
stmt =
con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_

ONLY);
rs = stmt.executeQuery(SQLStr);
return rs;
  }

  /**
   * Closes all connections and such
   */
  public boolean close()
  {
try
{
  rs.close();
  rs = null;
  stmt.close();
  stmt = null;
  con.close();
  con = null;
  return true;
} catch (SQLException ex) {
  throw new RuntimeException(There was an error closing the connection
variables--   + ex.getMessage());
} finally {
  if(rs!=null) rs = null;
  if(stmt!=null) stmt = null;
  if(con!=null) con = null;
}
  }
}
/End Code Snippet

So that's it.  Any insight?  Thanks...

Mike


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Only one user at a time can use Tomcat ?

2002-11-06 Thread achana
Turner, John wrote:
 
 Please be more specific.
 
 What does log on mean?  Users don't log on to Tomcat.  Tomcat is a
 service.

Well, its not easy to explain .
I use j2sdk1.4/Apache/Tomcat/Oracle.
Typically a user surfs into the site, clicks on a link and starts an
Applet.
Applet would call a servlet , which in turn will query the database.
The result (including gif or tif images, some around 40+kBytes ) is
serialized and then delivered back to the browser screen.
Multiple users can do this at the same time.
As of the last 24 hours, I found only one user at a time can start the
servlet from the Applet.
I can see the client-side warnings on the JAVACOnsole. 
Error messages I have put into the applet shows that a second and
subsequent requests are wating... for something... 
I have deliberately chosen to starve this Tomcat server to see what
happens, it has only got 128MBytes sdram and a 1G Celeron. Oddly enough
, for a few users , it has performed okay sofar. Now it serves only one
client at a time.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Error with new install

2002-11-06 Thread Ronald Aronica
Please disregard as I found the problem by reading the thread 
Installing and using manager app.

Ronald Aronica wrote:

I just installed Tomcat 4.1.12 with JDK 1.4.1 and am running into a 
problem when trying to use the manager. I receive a server error 500 
with the following:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) 

at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) 

at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474) 

at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184) 

   etc.
Any ideas as to the problem, and its solution?



--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Where to put my servlet classes

2002-11-06 Thread Mehdi . Nejad

in the webappname/WEB-INF/classes directory - and look up the servlet
and servlet-mapping tags which live in your web.xml

http://www.google.com/search?sourceid=navclientie=UTF-8oe=UTF-8q=deploying+servlets+in+tomcat



regards
M




   
 
  Fredro Harjanto  
 
  [EMAIL PROTECTED]To:   
[EMAIL PROTECTED] 
  om  cc: 
 
   Subject:  Where to put my servlet 
classes
  06/11/2002 03:09 
 
  Please respond to
 
  Tomcat Users
 
  List
 
   
 
   
 





Hi:

I've successfully compiled my servlets using javac servlet-name.java.

Now I want to put my servlet-name.class in Tomcat. Where is the location
to put my servlet classes?

I have tried many locations and still failed. I used Tomcat 5.0 (
http://jakarta.apache.org/builds/jakarta-tomcat/nightly-5/)

Thank you!.

- Fred

welcome.to/fredro



-
Do you Yahoo!?
HotJobs - Search new jobs daily now




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Ricardo Moral
Sorry but I cant't find nothing wrong... Please send
the part of the server.xml and web.xml files where you
have defined the references. Are you sure there are no
diferences between the two web applications?

--- Michael Nicholson [EMAIL PROTECTED] wrote:
 I'm running it through Forte/SunOneStudio, which is
 built on netbeans (I
 think).  Does that make a difference?
 
 
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Tuesday, November 05, 2002 8:03 PM
 Subject: Re: Connection pool question:
 
 
  Are you running the tomcat which is built into
 Netbeans ?
 
 
  Michael Nicholson wrote:
 
  I'm building a webapp, and I want to use
 connection pooling with it.  In
 order to play around some, I made a dummy webapp
 that does virtually
 nothing, but uses the connection pool.  So then I
 cut and pasted some code
 out into the bigger webapp, but now I get this
 error:
  
  MonitorFilter::java.lang.ClassCastException:
 org.apache.commons.dbcp.BasicDataSource
  at CPPSDB.DBQuery.init(DBQuery.java:34)
  at

org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
  at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
 .service(IDEJspServlet.java:174)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
 EJspServlet.java:247)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
 vlet.java:339)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
  at

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
 .java:223)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:528)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.j
 ava:142)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
  at


Java Mail

2002-11-06 Thread Wilhelm Colln
I am using a virtualserver on server A and cannot send emails.

Error : No provider for smtp

But the same application on a remote server B using the smtp from server A
works fine.

If I try to use the activation.jar and mail.jar saved on the WEB-INF/lib
directory I get the following error :

java.security.AccessControlException: access denied 
(java.net.SocketPermission serverA.com resolve)

Perhaps someone can help.

Thanks,
Wilhelm




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: Connection pool question:

2002-11-06 Thread Michael Nicholson
Thanks... that was kinda my plan for now, but I'm in a rush to get something
running, so my temporary solution is to abandon the connection pool and just
create a connection to the DB each time...  Yay, big performance hit!  Oh
well.  But then I'm gonna start stripping jars

Thanks for the help.

Mike
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 9:34 AM
Subject: Re: Connection pool question:



 What are the differences between the jar files that you have in each
 /WEB-INF/lib folder ?

 Judging by the class cast exception, i'd advise you to try temporarily
 removing the jars from your bigger webapps /lib folder, and run the same
 code again.

 regards,
 M





   Michael
   Nicholson   To:   Tomcat Users
List [EMAIL PROTECTED]
   [EMAIL PROTECTED]cc:
   u   Subject:  Re: Connection
pool question:

   06/11/2002 14:11
   Please respond to
   Tomcat Users

   List






 The Code of DBQuery follows:  Remember, in one webapp, it works fine, in
 another, it gives a class cast exception at the ***'d line



 begin code snippet
 /*
  * DBQuery.java
  *
  * Created on November 5, 2002, 10:14 AM
  */

 package DBCPTestClasses;

 import java.sql.*;
 import javax.naming.*;
 import javax.sql.*;

 /**
  *
  * @author  man
  */
 public class DBQuery
 {
   Context initContext = null;
   Context envContext = null;
   DataSource ds = null;
   Connection con = null;
   Statement stmt = null;
   ResultSet rs = null;

   /** Creates a new instance of DBQuery */
   public DBQuery() throws NamingException
   {
 initContext = new InitialContext();
 envContext  = (Context)initContext.lookup(java:comp/env);
 ds = (DataSource) envContext.lookup(jdbc/myoracle);   //***- Class
 Cast Exception Occurs Here
   }

   /**
* Runs an SQL Query and returns the results as a resultset
* @returns ResultSet
*/
   public ResultSet select(String SQLStr) throws SQLException
   {
 con = ds.getConnection();
 stmt =

con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_

 ONLY);
 rs = stmt.executeQuery(SQLStr);
 return rs;
   }

   /**
* Closes all connections and such
*/
   public boolean close()
   {
 try
 {
   rs.close();
   rs = null;
   stmt.close();
   stmt = null;
   con.close();
   con = null;
   return true;
 } catch (SQLException ex) {
   throw new RuntimeException(There was an error closing the
connection
 variables--   + ex.getMessage());
 } finally {
   if(rs!=null) rs = null;
   if(stmt!=null) stmt = null;
   if(con!=null) con = null;
 }
   }
 }
 /End Code Snippet

 So that's it.  Any insight?  Thanks...

 Mike


 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org






 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Panos Konstantinidis
  Thank you Donnie for your time, but unfortunatelly
it did not help. I have added the line:

Context path=/content
docBase=C:\Tomcat4.1\webapps\content/

  in my server.xml file, restarted Tomcat but when my
JSP page has the following line:

  SPAN CLASS=Footer%@ include file =
/content/Common/JavaFooter.inc%/SPAN

  I am getting the error message:

org.apache.jasper.JasperException: /index.jsp(593,22)
File /wtgContent/English/Common/JavaFooter.inc not
found.

  Any more opinions? Do you have any more information 
in your web.xml file of the specified web application?
Currently mine is empty with just the web-app tag in
it.

   Thank you.

--- Donie Kelly [EMAIL PROTECTED] wrote:
 Hi Panos
 
 I have the following line in my server.xml (inside
 the host tag) to map my
 images for jsp pages. It might do what u want
 
 Context path=/images  docBase=C:\images/
 
 hope it helps
 Donie
 
 
 -Original Message-
 From: Panos Konstantinidis
 [mailto:girionis;yahoo.com]
 Sent: 06 November 2002 12:58
 To: [EMAIL PROTECTED]
 Subject: mapping URLs
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Java Mail

2002-11-06 Thread m batsis

Google is your friend ;-)

http://list.cobalt.com/pipermail/cobalt-developers/2001-July/032904.html

You can find many related solutions with a simple search...

Manos

Wilhelm Colln wrote:


I am using a virtualserver on server A and cannot send emails.

Error : No provider for smtp

But the same application on a remote server B using the smtp from server A
works fine.

If I try to use the activation.jar and mail.jar saved on the WEB-INF/lib
directory I get the following error :

java.security.AccessControlException: access denied
(java.net.SocketPermission serverA.com resolve)

Perhaps someone can help.

Thanks,
Wilhelm




--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Panos Konstantinidis
  Sorry

--- Panos Konstantinidis [EMAIL PROTECTED] wrote:
   Thank you Donnie for your time, but unfortunatelly
 it did not help. I have added the line:
 
 Context path=/content
 docBase=C:\Tomcat4.1\webapps\content/
 
   in my server.xml file, restarted Tomcat but when
 my
 JSP page has the following line:
 
   SPAN CLASS=Footer%@ include file =
 /content/Common/JavaFooter.inc%/SPAN
 
   I am getting the error message:

  the following 

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /wtgContent/English/Common/JavaFooter.inc not
 found.


  should be:

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /content/Common/JavaFooter.inc not
 found.

   The previous one was actually taken from another
browser window (the same problem there as well, but
still it is better to make things clearer).

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




DB Connection issue

2002-11-06 Thread Richard Johnstone
I have a system running on suse 7.3 and it is all working fine
I have since tried to build another box for deployment and I get an
error when connecting to the DB
java.sql.SQLException: Io exception: The Network Adapter could not
establish the connection
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at
oracle.jdbc.driver.OracleConnection.(OracleConnection.java:263)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)

I am using identical code from the original server.
I can open non-db servlets fine.
I can also ping and telnet to the DB from the new server.
I am using the same url in my connection on both servers.
I just seem to be missing something on the new server.
Any Ideas??

The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


mod_webapp.so binary for Solaris 2.6

2002-11-06 Thread Elena Blanco
Hi

Does anyone have a mod_webapp.so binary for Solaris 2.6?

Many thanks,

Elena
--
Elena Blanco
Systems Administrator, New DNB
Oxford University Press
Tel: (01865) 353329

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Williams, Kevin
You shouldn't include the context path in your URI to the included file.
The include occurs at translation time, meaning during the creation of the
background servlet which represents the JSP page and code. The file path
is rooted at the context root and may not extend outside the context root.
You should use %@include file=/Common/JavaFooter.inc %.


On Wed, 6 Nov 2002, Panos Konstantinidis wrote:

  Sorry

--- Panos Konstantinidis [EMAIL PROTECTED] wrote:
   Thank you Donnie for your time, but unfortunatelly
 it did not help. I have added the line:

 Context path=/content
 docBase=C:\Tomcat4.1\webapps\content/

   in my server.xml file, restarted Tomcat but when
 my
 JSP page has the following line:

   SPAN CLASS=Footer%@ include file =
 /content/Common/JavaFooter.inc%/SPAN

   I am getting the error message:

  the following

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /wtgContent/English/Common/JavaFooter.inc not
 found.


  should be:

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /content/Common/JavaFooter.inc not
 found.

   The previous one was actually taken from another
browser window (the same problem there as well, but
still it is better to make things clearer).

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Looks like the include file parameter works differently. Maybe you should
make it a URL

I have a img tag as follows img src=images/spacer.gif width=1
height=40 and this works with the supplied contect path. That path will
be translated to a URL.

Try using @include file=http:content/Common/Footer.inc and see what
happens.

Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis;yahoo.com]
Sent: 06 November 2002 15:11
To: Tomcat Users List
Subject: RE: mapping URLs

  Sorry

--- Panos Konstantinidis [EMAIL PROTECTED] wrote:
   Thank you Donnie for your time, but unfortunatelly
 it did not help. I have added the line:

 Context path=/content
 docBase=C:\Tomcat4.1\webapps\content/

   in my server.xml file, restarted Tomcat but when
 my
 JSP page has the following line:

   SPAN CLASS=Footer%@ include file =
 /content/Common/JavaFooter.inc%/SPAN

   I am getting the error message:

  the following

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /wtgContent/English/Common/JavaFooter.inc not
 found.


  should be:

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File /content/Common/JavaFooter.inc not
 found.

   The previous one was actually taken from another
browser window (the same problem there as well, but
still it is better to make things clearer).

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Panos Konstantinidis
  Hello Kevin, thank you for your reply. I have
already tried what you said as well, but still no
luck. I am still getting the same error.

  Even if my Context tag (within the Host tag) in the
server.xml file is set to:

  Context path=/content
docBase=C:\Tomcat4.1\webapps/

  and the include line looks:

SPAN CLASS=Footer%@ include file
=/content/Common/JavaFooter.inc%/SPAN

  it still cannot find the file...

  Any more thoughts?

--- Williams, Kevin [EMAIL PROTECTED] wrote:
 You shouldn't include the context path in your URI
 to the included file.
 The include occurs at translation time, meaning
 during the creation of the
 background servlet which represents the JSP page and
 code. The file path
 is rooted at the context root and may not extend
 outside the context root.
 You should use %@include
 file=/Common/JavaFooter.inc %.
 
 
 On Wed, 6 Nov 2002, Panos Konstantinidis wrote:
 
   Sorry
 
 --- Panos Konstantinidis [EMAIL PROTECTED]
 wrote:
Thank you Donnie for your time, but
 unfortunatelly
  it did not help. I have added the line:
 
  Context path=/content
  docBase=C:\Tomcat4.1\webapps\content/
 
in my server.xml file, restarted Tomcat but
 when
  my
  JSP page has the following line:
 
SPAN CLASS=Footer%@ include file =
  /content/Common/JavaFooter.inc%/SPAN
 
I am getting the error message:
 
   the following
 
  org.apache.jasper.JasperException:
  /index.jsp(593,22)
  File
 /wtgContent/English/Common/JavaFooter.inc not
  found.
 
 
   should be:
 
  org.apache.jasper.JasperException:
  /index.jsp(593,22)
  File /content/Common/JavaFooter.inc not
  found.
 
The previous one was actually taken from
 another
 browser window (the same problem there as well,
 but
 still it is better to make things clearer).
 
   Thank you.
 

 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: DB Connection issue

2002-11-06 Thread achana
Richard J
 java.sql.SQLException: Io exception: The Network Adapter could not
 establish the connection
snip
 I am using identical code from the original server.
 I can open non-db servlets fine.
 I can also ping and telnet to the DB from the new server.
 I am using the same url in my connection on both servers.
 I just seem to be missing something on the new server.
 Any Ideas??

I don't think you can use the same TNS name and ip address on another
Ora-Server 
I believe your JDBC is using SQLNet, that need to be set up in
tnsnames.ora
I am making some assumption because your email has got no further
detail...
If u r using MS,
then go to c:\Oracle\Ora90\Network\Admin\tnsnames.ora 
else if u r using Linux
then go to $ORACLE_HOME/network/Admin/tnsnames.ora
In both cases, change tnsnames.ora.
Hope that helps.

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Tomcat Threads never stop growing, why?

2002-11-06 Thread Brandon Cruz
I am using Tomcat 3.2.4.  When I start the server, about 300 threads are
created, which seems like a lot, but the server runs fine.  As time goes on,
the amount of threads grows and grows.  The threads are all sleeping and
don't look like they are taking any resources, but they never close.  After
a full day, there are well over 700 threads and the parent process for these
threads is hogging CPU, RAM is way up, etc.

This seems like it may be a Tomcat 3.2.4 issue, but may also be related to
the DB connections.  We use mySQL database and the mm.mysql driver.  We have
mySQL set to automatically close DB connections after 15 minutes of non-use,
but will that kill the java objects created for the connections or only kill
things on the mysql end?  Before someone says to use a connection pool, we
have hundreds of databases, one for each virtual host client.

Where should I start looking?  Do we have to do something other than tell
mySQL to kill connections, or would this more likely be a Tomcat issue and
not even related to DB connections.  Finally, if the answer is to use a
profiler to monitor this, what is a fairly simple profiler to connect to a
remote machine and use for testing?

Thanks!


Brandon Cruz


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: DB Connection issue

2002-11-06 Thread Richard Johnstone
I haven't got oracle installed on either server.
my url connection is jdbc:oracle:thin:@192.2.100.9:1521:test for both
servers.
the classes12 is in the classpath


 [EMAIL PROTECTED] 11/05/02 11:31pm 
Richard J
 java.sql.SQLException: Io exception: The Network Adapter could not
 establish the connection
snip
 I am using identical code from the original server.
 I can open non-db servlets fine.
 I can also ping and telnet to the DB from the new server.
 I am using the same url in my connection on both servers.
 I just seem to be missing something on the new server.
 Any Ideas??

I don't think you can use the same TNS name and ip address on another
Ora-Server 
I believe your JDBC is using SQLNet, that need to be set up in
tnsnames.ora
I am making some assumption because your email has got no further
detail...
If u r using MS,
then go to c:\Oracle\Ora90\Network\Admin\tnsnames.ora 
else if u r using Linux
then go to $ORACLE_HOME/network/Admin/tnsnames.ora
In both cases, change tnsnames.ora.
Hope that helps.

--
To unsubscribe, e-mail:  
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


RE: mapping URLs

2002-11-06 Thread Panos Konstantinidis
  Thank you, I just tried it with images and it is
working fine. The problem is that it does not work
with include files. Any thoughts on this? Do include
files work differently?


--- Donie Kelly [EMAIL PROTECTED] wrote:
 Looks like the include file parameter works
 differently. Maybe you should
 make it a URL
 
 I have a img tag as follows img
 src=images/spacer.gif width=1
 height=40 and this works with the supplied
 contect path. That path will
 be translated to a URL.
 
 Try using @include
 file=http:content/Common/Footer.inc and see what
 happens.
 
 Donie
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




HELP for novice

2002-11-06 Thread Sam Harris
I installed tomcat 4.1.12 on Solaris 8, the intent here is to integrate
the functionality with apache, so far the first thing is that the conf
file is not being generated.
Then when I do an include httpd.conf complains about the missing .so
file.

Please help.

thanks

Sam Harris
Internet Services
614-744-8322
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Try putting http: in front of the path...

Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis;yahoo.com]
Sent: 06 November 2002 15:44
To: Tomcat Users List
Subject: RE: mapping URLs


  Thank you, I just tried it with images and it is
working fine. The problem is that it does not work
with include files. Any thoughts on this? Do include
files work differently?


--- Donie Kelly [EMAIL PROTECTED] wrote:
 Looks like the include file parameter works
 differently. Maybe you should
 make it a URL
 
 I have a img tag as follows img
 src=images/spacer.gif width=1
 height=40 and this works with the supplied
 contect path. That path will
 be translated to a URL.
 
 Try using @include
 file=http:content/Common/Footer.inc and see what
 happens.
 
 Donie
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: HELP for novice

2002-11-06 Thread Sriram N
Have you looked at the docs available with tomcat and also at
http://www.johnturner.com/howto/apache-tomcat-howto.html 

Never worked much on Un*x beyond a few shell commands and such, but I do think
that the mod_jk.so files might be missing. If you have taken these .so files,
are they in the appropriate location ? I'd guess that apache's httpd.conf must
have some way to indicate the parth to the .so file.
Perhaps something like modules/mod_jk.so -- (I remember reading something
like that about a year ago...)
If this line is present, then is the actual file present there too ?

Lastly, do you to the johnturner site, there are some binaries available there
for download, you might use them.

(Note: I recall mod_jk etc from the subject lines of the mails that I read
here; never used them myself. Just thought I'd help with what ever I can.)

-- Sriram

--- Sam Harris [EMAIL PROTECTED] wrote:
 I installed tomcat 4.1.12 on Solaris 8, the intent here is to integrate
 the functionality with apache, so far the first thing is that the conf
 file is not being generated.
 Then when I do an include httpd.conf complains about the missing .so
 file.
 
 Please help.
 
 thanks
 
 Sam Harris
 Internet Services
 614-744-8322
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




tomcat 4.1 stdout

2002-11-06 Thread Luigi Tenti

I'm trying to setup tomcat 4.1 to write stdout of different webapp to
different log files, but it keeps to write everything to catalina.out.

Can you help me ?

Thanks a lot

Luigi Tenti


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: HELP for novice

2002-11-06 Thread Turner, John

Solaris 8 Apache + Tomcat + Connector HOWTO:

http://www.johnturner.com/howto

John

 -Original Message-
 From: Sam Harris [mailto:HarrisS;franklin.edu]
 Sent: Wednesday, November 06, 2002 10:37 AM
 To: [EMAIL PROTECTED]
 Subject: HELP for novice
 
 
 I installed tomcat 4.1.12 on Solaris 8, the intent here is to 
 integrate
 the functionality with apache, so far the first thing is that the conf
 file is not being generated.
 Then when I do an include httpd.conf complains about the missing .so
 file.
 
 Please help.
 
 thanks
 
 Sam Harris
 Internet Services
 614-744-8322
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




DBConnection issue : UPDATE

2002-11-06 Thread Richard Johnstone
I have found out the issue with this but am more puzzled than before.
If I re-comment out 

  Manager
className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=false
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
Store
className=org.apache.catalina.session.FileStore/
  /Manager

from my server.xml it all works hunky dory.
Anyone know why adding this in will cause it to fail.
I could really do with having this in I think as I am having issues
with persistent objects

The information contained in this communication is intended solely for the use of the 
individual or entity to whom it is addressed and others authorized to receive it.  It 
may contain confidential or legally privileged information.  If you are not the 
intended recipient you are hereby notified that any disclosure, copying, distribution 
or taking any action in reliance on the contents of this information is strictly 
prohibited and may be unlawful. If you received this communication in error, please 
notify us immediately by responding to this email and then delete it from your system.
Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper 
and complete transmission of the information contained in this communication nor for 
any delay in its receipt.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


Re: JSP error handling

2002-11-06 Thread Kris Schneider
If the errorPage attribute references another JSP, make sure that page has:

%@ page isErrorPage=true %

Otherwise, attempting to use the implicit exception object *should* result in 
an error.

I'm guessing that the javax.servlet.error.* request attributes will only get 
populated if you make use of web.xml error pages. In other words, no errorPage 
attribute in the page directive but an error-page entry in web.xml for the 
appropriate exception type.

Quoting Ricardo Moral [EMAIL PROTECTED]:

 There are two valves used to handle errors. The first
 one is the ErrorDispatcherValve. This is the valve
 that will forward the request to the error page if
 there is a uncaught exception. The second valve is the
 ErrorReportValve wich is the last valve on the list of
 valves of a Host and is used to generate a error
 report in HTML. 
 
 You don't need to add this valves by hand because they
 are added by the start method of the StandardHost
 implementation. If you are using other implementation
 of the Host interface you must add this valves
 yourself.
 
 The exception of JSP's are stored under the attibute
 'javax.servlet.jsp.jspException' of the request. But
 you must access this value directly using the
 'exception' variable already declared on the context
 of the error page.
 
 
 --- Jan Kunzmann [EMAIL PROTECTED] wrote:
  Hi there,
  
  I've a problem with JSP error handling.
  
  I tried to make custom error pages with the
  % page errorPage=... % element. If an error
  occurs during the 
  execution of my jsp page, the error page is called,
  but the 
  javax.servlet.error.* attributes do not contain any
  values.
  
  I looked into the Tomcat 4.0 source and found a
  valve called 
  ErrorDispatcherValve. Has it something to do with
  jsp error handling? I 
  tried to include the valve with Valve... and with
  Host 
  errorReportingValve=, but the error page still
  reports the attributes 
  to be null.
  
  I use Tomcat 4.0.4 from the Debian distribution with
  marginal chances in 
  server.xml.
  
  Thanks in advance,
  Jan
  
  
  --
  To unsubscribe, e-mail:  
  mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:tomcat-user-help;jakarta.apache.org
  
 
 
 __
 Do you Yahoo!?
 HotJobs - Search new jobs daily now
 http://hotjobs.yahoo.com/
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


-- 
Kris Schneider mailto:kris;dotech.com
D.O.Tech   http://www.dotech.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Alias vs VirtualHost - which is better for me ?

2002-11-06 Thread Matt Fury
The date of your emails are all out of wack. I hope
this isn't done on purpose to push emails forward! :-D


--- [EMAIL PROTECTED] wrote:
 Hi all.
 Both options work for me.
 Which is the better solution in terms of performance
 ?
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


=

int myName() {
  cout  -Matt Fury \n;
  return 0;
}


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Suppress Servlet-Engine Info in HTTP Header

2002-11-06 Thread Chad Cannell
I am trying to tighten up our Apache and Tomcat implementation. I want
to suppress server type and version to make fingerprinting harder. We
have Apache httpd in front of Tomacat on Win32. I can suppress the
Apache info passed in Server: parameter, but do not know how to
suppress the Servlet-Engine: that Tomcat passes.  Anyone?

HTTP response header

HTTP/1.1 200 OK
Date: Tue, 05 Nov 2002 17:49:51 GMT
Server: 
Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
1.3.1_04; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
---Want to null this  
Connection: close

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Suppress Servlet-Engine Info in HTTP Header

2002-11-06 Thread Tim Funk
See mod_headers: http://httpd.apache.org/docs/mod/mod_headers.html

In particular, you probably want this:
##
Header unset Servlet-Engine
##

-Tim


Chad Cannell wrote:

I am trying to tighten up our Apache and Tomcat implementation. I want
to suppress server type and version to make fingerprinting harder. We
have Apache httpd in front of Tomacat on Win32. I can suppress the
Apache info passed in Server: parameter, but do not know how to
suppress the Servlet-Engine: that Tomcat passes.  Anyone?

HTTP response header

HTTP/1.1 200 OK
Date: Tue, 05 Nov 2002 17:49:51 GMT
Server: 
Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
1.3.1_04; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
---Want to null this  
Connection: close



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Alias vs VirtualHost - which is better for me ?

2002-11-06 Thread Ralph Einfeldt
What is the problem with that mail ?

The mail you are referencing has been sent to the list
roughly a week ago. (I received it through the list 
last wednesday)

 -Original Message-
 From: Matt Fury [mailto:mattfury88;yahoo.com]
 Sent: Wednesday, November 06, 2002 5:11 PM
 To: Tomcat Users List
 Subject: Re: Alias vs VirtualHost - which is better for me ?
 
 
 The date of your emails are all out of wack. I hope
 this isn't done on purpose to push emails forward! :-D
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Newbie

2002-11-06 Thread Emma Johansson
Hi!

I'm trying to add a user in a user register via LDAP. The code below
works fine when I am testing it from a terminal.
But how do I do if I would like to do the same thing via Tomcat instead?

I've managed to create some services by using Java2wsdl2Java that only
confirms the connection.
Now I want to use the same tool, but I want the server to send the
request on to the user register. Where should I put this code to make it
work?

import netscape.ldap.*;
import java.io.*;
import java.util.*;

public class add
{
 public static void main(String args[])
 {
  /* define variables for the server and searching */
  String host = localhost;
  int port = 389;
  String dn = Directory Manager;
  String pwd = password;
  String new_dn = uid=identifier, ou=C38, o=myCompany.com;
  String objectclass_values [] = {top, person,
organizationalperson, inetorgperson};
  String cn_values [] = {Bob Johnson};
  String sn_values [] = {Johnson};
  String givenname_values [] = {Bob};
  String ou_values [] = {C38};
  String uid_values [] = {bobby};
  String mail_values [] = {[EMAIL PROTECTED]};

  LDAPAttributeSet attrib_set = null;
  LDAPAttribute attribute = null;
  LDAPEntry entry = null;

  LDAPConnection ld = null;

  try
  {
   ld = new LDAPConnection();

   /* Must bind as a user with rights to write to the server */
   ld.connect(host,port,dn,pwd);
   attrib_set = new LDAPAttributeSet();
   attribute = new LDAPAttribute(objectclass,objectclass_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(cn, cn_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(sn, sn_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(givenname, givenname_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(mail, mail_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(ou, ou_values);
   attrib_set.add(attribute);

   attribute = new LDAPAttribute(uid, uid_values);
   attrib_set.add(attribute);

   /* Create the entry object */
   entry = new LDAPEntry(new_dn,attrib_set);

   /* add the object */
   ld.add(entry);

   if (ld != null)
   {
ld.disconnect();
   }
  }
  catch(LDAPException e)
  {
   e.printStackTrace();
  }
 }
}
---



When I tried to put this code inside the implementation.java file I got
the following error;
---
Nov 6, 2002 3:54:25 PM org.apache.axis.client.Call invoke
INFO: Mapping Exception to AxisFault
AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultString: (500)Internal Server Error
 faultActor: null
 faultDetail:
null: return code:  500
...
...
-

So I guess that this wasn't the right place to put it.
This how I wrote:
---
import netscape.ldap.*;
import java.io.*;
import java.util.*;

public class LdapTestImpl
{
 //public static void main(String args[])
 public String add( String testString )
 {
  System.out.println( Inside Impl. String add() );
  /* define variables for the server and searching */

  String host = 150.132.7.140;
  int port = 389;
...
...
--

/ Emma



Servlet loading question

2002-11-06 Thread Sriram Chavali
I am trying to use Tomcat 4.0 for deploying a
web-application. I got the war file from a colleague
who was successfully able to deploy it in Tomcat 4.0
on his machine. However when I deploy the war file on
my machine and startup Tomcat, I see the following
errors in my console when a servlet in the war is
being loaded. I am at a loss, since the configuration
file, myDomain.xconf exists in the 'C:\Program
Files\Apache Tomcat 4.0\webapps\my_web_app\'
directory. I think that web-app classloader isn't
loading the servlet. One of its parent classloaders
appears to load the servlet and can't find the xconf
file in its root. How do I rectify this. Please help.

Thanks
Sriram

2002-11-06 07:37:24 WebappLoader[/my_web_app]: Deploy
JAR /WEB-INF/lib/jdom.jar to C:\Program Files\Apache
Tomcat 4.0\webapps\my_web_app\WEB-INF\lib\jdom.jar
2002-11-06 07:37:24 WebappLoader[/my_web_app]: Deploy
JAR /WEB-INF/lib/log4j.jar to C:\Program Files\Apache
Tomcat 4.0\webapps\my_web_app\WEB-INF\lib\log4j.jar
2002-11-06 07:37:24 WebappLoader[/my_web_app]: Deploy
JAR /WEB-INF/lib/velocity-1.2-dev.jar to C:\Program
Files\Apache Tomcat
4.0\webapps\my_web_app\WEB-INF\lib\velocity-1.2-dev.jar
2002-11-06 07:37:24 WebappLoader[/my_web_app]: Deploy
JAR /WEB-INF/lib/xalan.jar to C:\Program Files\Apache
Tomcat 4.0\webapps\my_web_app\WEB-INF\lib\xalan.jar
2002-11-06 07:37:24 WebappLoader[/my_web_app]:
Reloading checks are enabled for this Context
2002-11-06 07:37:24 StandardManager[/my_web_app]:
Seeding random number generator class
java.security.SecureRandom
2002-11-06 07:37:24 StandardManager[/my_web_app]:
Seeding of random number generator has been completed
2002-11-06 07:37:25
StandardWrapper[/my_web_app:default]: Loading
container servlet default
2002-11-06 07:37:25 default: init
2002-11-06 07:37:25 bootstrap: init
2002-11-06 07:37:25 bootstrap: config.domain =
myDomain
2002-11-06 07:37:25 bootstrap: unprocessed subdomains
= null
2002-11-06 07:37:26 bootstrap
class=com.xyz.MyBootstrap
2002-11-06 07:37:26 bootstrap:
config.getInitParameter( myapp.xml.config.map ) = null
2002-11-06 07:37:26 bootstrap:
config.getServletContext().getRealPath('/') =
C:\Program Files\Apache Tomcat 4.0\webapps\my_web_app\
2002-11-06 07:37:26 bootstrap: looking for xml config
map at C:\Program Files\Apache Tomcat
4.0\webapps\my_web_app\\WEB-INF\my_app-xmlconfig-map.xconf
2002-11-06 07:37:26 bootstrap: xml config map exists,
setting into xml config source
2002-11-06 07:37:26 bootstrap: looking for web app map
C:\Program Files\Apache Tomcat
4.0\webapps\my_web_app\WEB-INF\my_app-web-app.xconf
2002-11-06 07:37:26 bootstrap: web app map resource
path=my_app-web-app.xconf
2002-11-06 07:37:26 bootstrap:
classloader=WebappClassLoader
  available:
  delegate: false
  repositories:
/WEB-INF/classes/
  required:
-- Parent Classloader:
StandardClassLoader
  available:
  delegate: true
  repositories:
file:C:\Program Files\Apache Tomcat 4.0\classes\
file:C:\Program Files\Apache Tomcat
4.0\lib\jasper-compiler.jar
file:C:\Program Files\Apache Tomcat
4.0\lib\jasper-runtime.jar
file:C:\Program Files\Apache Tomcat
4.0\lib\naming-factory.jar
  required:
-- Parent Classloader:
StandardClassLoader
  available:
Extension[javax.mail, implementationmyDomain=Sun
Microsystems, Inc., implementationmyDomainId=com.sun,
implementationVersion=1.2, specificationmyDomain=Sun
Microsystems, Inc., specificationVersion=1.2]
  delegate: true
  repositories:
file:C:\Program Files\Apache Tomcat
4.0\common\classes\
file:C:\Program Files\Apache Tomcat
4.0\common\lib\activation.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\jdbc2_0-stdext.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\jta-spec1_0_1.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\mail.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\naming-common.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\naming-resources.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\servlet.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\tools.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\tyrex-0.9.7.0.jar
file:C:\Program Files\Apache Tomcat
4.0\common\lib\xerces.jar
  required:
-- Parent Classloader:
sun.misc.Launcher$AppClassLoader71732b



2002-11-06 07:37:26 bootstrap: resource web app
map=null
2002-11-06 07:37:26 bootstrap: web app map not found
in the WEB-INF directory, relying on xml config map
setting
2002-11-06 07:37:27 Bootstrap failed to execute.
com.xyz.config.my_appConfigurationException: i/o error
occurred parsing configuration documents
 + java.io.FileNotFoundException: myDomain.xconf (The
system cannot find the file specified)
 at
com.xyz.MyAppBootstrapServlet.init(MyAppBootstrapServlet.java:107)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)

__
Do you Yahoo!?
HotJobs - Search new jobs daily now

REPOST - Coyote Connector problem ?

2002-11-06 Thread Fabio Mengue
Hello,

I posted this a while ago, and nobody seems to be interested :) I'm 
trying again, as I updated my server to 4.1.14 and the problem 
continues. If somebody could at least give me a direction (like install 
Apache, write to other list, send more info...).

I have a Tomcat 4.0.6 server (Linux, Sun JVM 1.3.1_05). My system uses 
JSP's and servlets. Everything works fine.

I'm testing Tomcat 4.1.14 (Linux, Sun JVM 1.3.1_05). Just cp -R 
tomcat-4.0.6/webapps/myapps tomcat-4.1.14/webapps/myapps. Started 
4.1.14.

Navigating on my apps, sometimes the answer that I get is something like

html
body
/body
/html

where there should be information. If I hit Reload on my browser, 
sometimes I get the expected answer, sometimes I don't (I also tried on 
different browsers).

The log files shows that thr processing is happening (servlets are 
getting instantiated, catalina.out shows the garbage colletion), but the 
answer never comes to my browser. I mean, I get a blank page with some 
tags, but not the answer I expected.

Then, on tomcat-4.1.14/conf/server.xml, I altered

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
...

To

Connector className=org.apache.catalina.connector.http.HttpConnector
...

After the restart, things work fine, like tomcat-4.0.6. Anyone knows 
what (why) this is happening ? Is it a bug on Coyote ? I did not found 
anything on mailing lists (perhaps my search did not contained the right 
words - I'm not a native english speaker, you know :).

Thanks a lot,

Fabio.

--
Fabio Mengue - Centro de Computacao - Unicamp
[EMAIL PROTECTED]   [EMAIL PROTECTED]
Quem se mata de trabalhar merece mesmo morrer. - Millor



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



determining version of mod_jk

2002-11-06 Thread Maureen Barger
how can you tell what version of mod_jk you have installed on your system?

Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: determining version of mod_jk

2002-11-06 Thread Aryeh Katz

 how can you tell what version of mod_jk you have installed on your
 system?

see jk/native/common/jk_version.h


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: UPDATE : Only one user at a time can use Tomcat ?

2002-11-06 Thread achana
Turner, John wrote:
 
 Please be more specific.
 
 What does log on mean?  Users don't log on to Tomcat.  Tomcat is a
 service.
 
 John

We are checking the output on the JAVA Console.
It seems that Tomcat served up the myserlvet.class once and once only to
the first person who comes in from www. Then, if a second person tries
to access the same service, JAVA/Tomcat says that it cannot find
(access) myservlet.class ???
Any ideas ???
TIA

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: tomcat 4.1 stdout

2002-11-06 Thread Craig R. McClanahan


On Wed, 6 Nov 2002, Luigi Tenti wrote:

 Date: Wed, 6 Nov 2002 17:03:53 +0100
 From: Luigi Tenti [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: tomcat 4.1 stdout


 I'm trying to setup tomcat 4.1 to write stdout of different webapp to
 different log files, but it keeps to write everything to catalina.out.


The System.err and System.out streams are global to an entire JVM, not
specific to a webapp.  The simplest way to get per-webapp log info is to
use the ServletContext.log() methods, and embed a Logger element inside
the Context element for each webapp which points at different log files.
Details are in the server config documentation.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/

 Can you help me ?

 Thanks a lot

 Luigi Tenti

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: determining version of mod_jk

2002-11-06 Thread Aryeh Katz
 how can you tell what version of mod_jk you have installed on your
 system?
One more way.
Unless you've changed the defaults, it will print the mod_jk version in (the 
apache) error_log on server startup

---
Aryeh Katz
VASCO   
www.vasco.com   


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: determining version of mod_jk

2002-11-06 Thread Maureen Barger
one that is already compied I should have stated




 how can you tell what version of mod_jk you have installed on your
 system?

see jk/native/common/jk_version.h




Maureen Barger, CIT/ID, Cornell University
Ithaca, NY 14850
[EMAIL PROTECTED]
http://mo.cit.cornell.edu/

Experience is something you don't get until just after you need it.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JkMount only *jsp but include index.jsp?

2002-11-06 Thread Oliver Meyn
Hi all,

Running Apache 2 and Tomcat 4.0.4 integrated with Jk on RH 7.3, I would like
my virtual hosts to display the index.jsp file instead of the dir listing,
but only send *jsp to tomcat, so that other files (most notably a phpBB) are
handled normally under apache.  In httpd.conf my (snipped) virtual host
looks like this:

DirectoryIndex index.jsp index.php index.html
JkMount /*jsp ajp13

which allows everything to work except when looking into directories eg
http://mydomain.com/ which produces a dir listing instead of the rendered
index.jsp.

If I change the virtual host listing to:

DirectoryIndex index.jsp index.php index.html
JkMount /* ajp13

then I get index.jsp for my directory instead of a contents listing (good),
but then everything is getting passed to tomcat and it doesn't understand
php (bad).

All help appreciated, and TIA,
Oliver


Oliver Meyn
[EMAIL PROTECTED]
Things should be made as simple as possible, but no simpler. - Albert
Einstein


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Digest authentication with JDBCRealm: doesn't seems to work

2002-11-06 Thread Iran Marcius
Hi.

I'm trying to do a digest authentication using a JDBCRealm with SHA
digest.

Here is my context:

Context docBase=permission path=/permission reloadable=true
privileged=true
ResourceLink name=jdbc/global global=jdbc/global
type=javax.sql.DataSource/
Realm className=org.apache.catalina.realm.JDBCRealm
driverName=org.postgresql.Driver digest=SHA
connectionURL=jdbc:postgresql://testhost/global
connectionName=global connectionPassword=password
userTable=users userRoleTable=user_role
userNameCol=username userCredCol=password
roleNameCol=rolename/
/Context

And here is my relevant lines in web.xml:

login-config
auth-methodDIGEST/auth-method
/login-config

When I use the BASIC method, as a lot of people wrote before, everything
works fine, but with DIGEST method I can't authenticate.

I tried to turn off my digest configuration in server.xml, but didn't
work. I tried so set a plain password in my user table. Didn't work too.
So, I've tried a lot of combinations without success.

Someone can help me?

iran


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Suppress Servlet-Engine Info in HTTP Header

2002-11-06 Thread Chad Cannell
Still not doing the trick, tried adding to the server level directive
and the Root directory directive. Have the modules added and loaded. 

LoadModule headers_module modules/mod_headers.so
AddModule mod_headers.c

Any other modules needed? Any other thoughts

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Wednesday, November 06, 2002 11:18 AM
To: Tomcat Users List
Subject: Re: Suppress Servlet-Engine Info in HTTP Header


See mod_headers: http://httpd.apache.org/docs/mod/mod_headers.html

In particular, you probably want this:
##
Header unset Servlet-Engine
##

-Tim


Chad Cannell wrote:
 I am trying to tighten up our Apache and Tomcat implementation. I want
 to suppress server type and version to make fingerprinting harder. We
 have Apache httpd in front of Tomacat on Win32. I can suppress the
 Apache info passed in Server: parameter, but do not know how to
 suppress the Servlet-Engine: that Tomcat passes.  Anyone?
 
 HTTP response header
 
 HTTP/1.1 200 OK
 Date: Tue, 05 Nov 2002 17:49:51 GMT
 Server: 
 Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
 Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
 Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
 1.3.1_04; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
 ---Want to null this  
 Connection: close
 


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: JkMount only *jsp but include index.jsp?

2002-11-06 Thread Turner, John

Check out the welcome-file option in web.xml.  Set that to index.jsp and you
should be OK.

If you need Apache to understand that / = index.jsp you'll need to do
something like set DirectoryIndex in your virtual host container in
httpd.conf, and if that doesn't work, you'll need to either get the
sledgehammer out and use mod_rewrite, or just stick a file called index.html
in the same directory as index.jsp, and have index.html contain a
zero-second META refresh to index.jsp.  You could also write a filter that
would look at every request and trap requests without a filename and do a
redirect to index.jsp.

Lots of options, it pretty much depends on what you are comfortable doing,
and how much work you want to devote to doing it.  My preference is to use
the index.html refresh option...my personal rule is to stick an index.html
file into _every_ directory reachable by Apache that does a refresh back to
the main page.  Stops prowlers.

John

 -Original Message-
 From: Oliver Meyn [mailto:oliver;mineallmeyn.com]
 Sent: Wednesday, November 06, 2002 12:17 PM
 To: TOMCAT
 Subject: JkMount only *jsp but include index.jsp?
 
 
 Hi all,
 
 Running Apache 2 and Tomcat 4.0.4 integrated with Jk on RH 
 7.3, I would like
 my virtual hosts to display the index.jsp file instead of the 
 dir listing,
 but only send *jsp to tomcat, so that other files (most 
 notably a phpBB) are
 handled normally under apache.  In httpd.conf my (snipped) 
 virtual host
 looks like this:
 
 DirectoryIndex index.jsp index.php index.html
 JkMount /*jsp ajp13
 
 which allows everything to work except when looking into 
 directories eg
 http://mydomain.com/ which produces a dir listing instead of 
 the rendered
 index.jsp.
 
 If I change the virtual host listing to:
 
 DirectoryIndex index.jsp index.php index.html
 JkMount /* ajp13
 
 then I get index.jsp for my directory instead of a contents 
 listing (good),
 but then everything is getting passed to tomcat and it 
 doesn't understand
 php (bad).
 
 All help appreciated, and TIA,
 Oliver
 
 
 Oliver Meyn
 [EMAIL PROTECTED]
 Things should be made as simple as possible, but no 
 simpler. - Albert
 Einstein
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




tomcat configuration for a newbie

2002-11-06 Thread ben f

Hi

I am trying to get tomcat to work but unfortunately I am not getting far.

Tomcat version is 4.1.12

I have created a directory under webapps called phpserver. This directory is intended 
to serve php pages using php as a servlet from an NT 4.0 machine. I will go onto that 
once I have the basic config up and running.

I've written a web.xml file and put it under phpserver\WEB-INF:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/phpserver/url-pattern
  /servlet-mapping

/web-app

I've added the following context to the default server.xml under conf\:

Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true/

I copied the example HelloWorldExample.class across to the directorty 
\webapps\phpserver\WEB-INF\classes and restarted tomcat.

I then entered the URL http://localhost/phpserver/servlet/HelloWorldExample into my 
browser but I get a 404 resource not found.

%TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all correct.

I've tried permutations on a theme for the entries in server.xml and web.xml (under 
phpserver\WEB-INF) but I've hit a brick wall here. I have read many docs (official and 
not official) and have learnt a lot but somewhere I'm missing something obvisous.

Can anyone please help me out with this issue??

Thanks

Ben




-
Get a bigger mailbox -- choose a size that fits your needs.



Re: Suppress Servlet-Engine Info in HTTP Header

2002-11-06 Thread Tim Funk
I'm out of ideas at this point. In any case I would try the following:
- Add another header of the same name and see what happens
- Add another header of a diff name and see what happens. If this 
doesn't work - then I would go to the apache user lists for help.

My admin installed (compiled) mod_headers for me and I use it with no 
problem w/respect to P3P. (http://www.w3.org/P3P/ for those curious) So 
I can't be of anymore help except for the debugging advice above.

-Tim

Chad Cannell wrote:
Still not doing the trick, tried adding to the server level directive
and the Root directory directive. Have the modules added and loaded. 

LoadModule headers_module modules/mod_headers.so
AddModule mod_headers.c

Any other modules needed? Any other thoughts

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Wednesday, November 06, 2002 11:18 AM
To: Tomcat Users List
Subject: Re: Suppress Servlet-Engine Info in HTTP Header


See mod_headers: http://httpd.apache.org/docs/mod/mod_headers.html

In particular, you probably want this:
##
Header unset Servlet-Engine
##

-Tim


Chad Cannell wrote:

I am trying to tighten up our Apache and Tomcat implementation. I want
to suppress server type and version to make fingerprinting harder. We
have Apache httpd in front of Tomacat on Win32. I can suppress the
Apache info passed in Server: parameter, but do not know how to
suppress the Servlet-Engine: that Tomcat passes.  Anyone?

HTTP response header

HTTP/1.1 200 OK
Date: Tue, 05 Nov 2002 17:49:51 GMT
Server: 
Set-Cookie2: JSESSIONID=naa2in3fj1;Version=1;Discard;Path=/
Set-Cookie: JSESSIONID=naa2in3fj1;Path=/
Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java
1.3.1_04; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
---Want to null this  
Connection: close




--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-06 Thread Arthur Danekyants
try localhost:8080, which is a default for Tomcat

-Original Message-
From: ben f [mailto:ben_m_f;yahoo.co.uk]
Sent: Wednesday, November 06, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: tomcat configuration for a newbie



Hi

I am trying to get tomcat to work but unfortunately I am not getting
far.

Tomcat version is 4.1.12

I have created a directory under webapps called phpserver. This
directory is intended to serve php pages using php as a servlet from an
NT 4.0 machine. I will go onto that once I have the basic config up and
running.

I've written a web.xml file and put it under phpserver\WEB-INF:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/phpserver/url-pattern
  /servlet-mapping

/web-app

I've added the following context to the default server.xml under conf\:

Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true/

I copied the example HelloWorldExample.class across to the directorty
\webapps\phpserver\WEB-INF\classes and restarted tomcat.

I then entered the URL
http://localhost/phpserver/servlet/HelloWorldExample into my browser but
I get a 404 resource not found.

%TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all
correct.

I've tried permutations on a theme for the entries in server.xml and
web.xml (under phpserver\WEB-INF) but I've hit a brick wall here. I have
read many docs (official and not official) and have learnt a lot but
somewhere I'm missing something obvisous.

Can anyone please help me out with this issue??

Thanks

Ben




-
Get a bigger mailbox -- choose a size that fits your needs.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-06 Thread Hari Venkatesan
Try this

servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/helloworld/url-pattern
  /servlet-mapping

http://localhost:8080/phpserver/helloworld

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: Arthur Danekyants [mailto:ADanekyants;ctdi.com] 
Sent: Wednesday, November 06, 2002 4:31 PM
To: 'Tomcat Users List'
Subject: RE: tomcat configuration for a newbie

try localhost:8080, which is a default for Tomcat

-Original Message-
From: ben f [mailto:ben_m_f;yahoo.co.uk]
Sent: Wednesday, November 06, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: tomcat configuration for a newbie



Hi

I am trying to get tomcat to work but unfortunately I am not getting
far.

Tomcat version is 4.1.12

I have created a directory under webapps called phpserver. This
directory is intended to serve php pages using php as a servlet from an
NT 4.0 machine. I will go onto that once I have the basic config up and
running.

I've written a web.xml file and put it under phpserver\WEB-INF:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/phpserver/url-pattern
  /servlet-mapping

/web-app

I've added the following context to the default server.xml under conf\:

Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true/

I copied the example HelloWorldExample.class across to the directorty
\webapps\phpserver\WEB-INF\classes and restarted tomcat.

I then entered the URL
http://localhost/phpserver/servlet/HelloWorldExample into my browser but
I get a 404 resource not found.

%TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all
correct.

I've tried permutations on a theme for the entries in server.xml and
web.xml (under phpserver\WEB-INF) but I've hit a brick wall here. I have
read many docs (official and not official) and have learnt a lot but
somewhere I'm missing something obvisous.

Can anyone please help me out with this issue??

Thanks

Ben




-
Get a bigger mailbox -- choose a size that fits your needs.


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Logging UserAgent (browser)

2002-11-06 Thread neal
Thanks but this didn't affect my logs at all. I changed the pattern to
combined from common per your suggestion and the log is still using
common format - no user-agent.

Did you mean that I should use this in combination with one of the
RequestInterceptor nodes I was referring to (where to explicitly define a
format)?  If so, what would the association be there?  I failed to find this
information in the tomcat manual.  :(

Thanks.
Neal

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Wednesday, November 06, 2002 4:14 AM
To: Tomcat Users List
Subject: Re: Logging UserAgent (browser)


Yes - use combined for your access log pattern.
Ex:
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=localhost_access_log.
suffix=.txt
pattern=combined /


neal wrote:
 Is it possible to instruct Tomcat to log the HTTP UserAgent (Aka which
 browser), in the access logs?

 Thanks!
 Neal



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Logging UserAgent (browser)

2002-11-06 Thread Shapira, Yoav
Hi,
What version of tomcat are you using?

In 4.x, changing the pattern from common to combined is all you need to
do.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: neal [mailto:nealcabage;yahoo.com]
Sent: Thursday, November 07, 2002 1:44 AM
To: Tomcat Users List
Subject: RE: Logging UserAgent (browser)

Thanks but this didn't affect my logs at all. I changed the pattern to
combined from common per your suggestion and the log is still using
common format - no user-agent.

Did you mean that I should use this in combination with one of the
RequestInterceptor nodes I was referring to (where to explicitly define
a
format)?  If so, what would the association be there?  I failed to find
this
information in the tomcat manual.  :(

Thanks.
Neal

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Wednesday, November 06, 2002 4:14 AM
To: Tomcat Users List
Subject: Re: Logging UserAgent (browser)


Yes - use combined for your access log pattern.
Ex:
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=localhost_access_log.
suffix=.txt
pattern=combined /


neal wrote:
 Is it possible to instruct Tomcat to log the HTTP UserAgent (Aka
which
 browser), in the access logs?

 Thanks!
 Neal



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


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


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org


TomCat 3.2.4 servlet is not a url Error and File Not Found'...

2002-11-06 Thread Gary Fix

 Hi!
 I'm new to Tomcat on Windows NT 4.0 Server, SP6, with IIS and Tomcat
 3.2.4...
 I am able to run the example servlets...
 I installed our first application and it works fine...
 I installed a second applicatiion and each time I try to access the
 servlet I get a HTTP 404 - File not found...
 I checked the log files and the only thing I could find was in the
 iis_redirect.log file a message like myclass is not a servlet url...
 If I copy the same class file to the other application directory, it works
 and the same log file reads myclass is a servlet url...
 I'm thinking this might be a configuration problem...I have compared the
 server.xml and web.xml files and these appear fine...
 I have searched the docs, FAQs and archives with no luck...
 Any suggestions?
 thanks in advance...gary...
 
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Logging UserAgent (browser)

2002-11-06 Thread neal
Really?!?!?!  yeah I'm using 4.0.4 so I guess it should have worked.  :-\

I restarted my server and looked for the most recent entries in the log. Do
I need to delete the existing log?  Or something else to restart it?

Thanks.
Neal


-Original Message-
From: Shapira, Yoav [mailto:Yoav.Shapira;mpi.com]
Sent: Wednesday, November 06, 2002 10:48 AM
To: Tomcat Users List
Subject: RE: Logging UserAgent (browser)


Hi,
What version of tomcat are you using?

In 4.x, changing the pattern from common to combined is all you need to
do.


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: neal [mailto:nealcabage;yahoo.com]
Sent: Thursday, November 07, 2002 1:44 AM
To: Tomcat Users List
Subject: RE: Logging UserAgent (browser)

Thanks but this didn't affect my logs at all. I changed the pattern to
combined from common per your suggestion and the log is still using
common format - no user-agent.

Did you mean that I should use this in combination with one of the
RequestInterceptor nodes I was referring to (where to explicitly define
a
format)?  If so, what would the association be there?  I failed to find
this
information in the tomcat manual.  :(

Thanks.
Neal

-Original Message-
From: Tim Funk [mailto:funkman;joedog.org]
Sent: Wednesday, November 06, 2002 4:14 AM
To: Tomcat Users List
Subject: Re: Logging UserAgent (browser)


Yes - use combined for your access log pattern.
Ex:
Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
prefix=localhost_access_log.
suffix=.txt
pattern=combined /


neal wrote:
 Is it possible to instruct Tomcat to log the HTTP UserAgent (Aka
which
 browser), in the access logs?

 Thanks!
 Neal



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


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



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




older mod_jk version for Apache 2.0.39

2002-11-06 Thread susrosario
I'm looking for the JK mod_jk version for Apache 2.0.39. It looks like the only mod_jk 
version available at the website is 2.0.42. 

Susanna





Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




  1   2   >