Re: AW: mod_webapp, tomcat 4.0.3, apache 2.0.35 question

2002-04-17 Thread Georg Huettenegger

hi,

this does work but now all requests are forwarded to tomcat (making the
whole setup useless). maybe i am missing an important point. still tahnx
for the answer but the question remains: how to setup apache + mod_webapp
so that /images gets handled by apache and /servlet by tomcat with tomcat
seeing the /servlet in the uri.

bye,
  georg

On Tue, 16 Apr 2002, O. Gross - Principio wrote:

 hi,
 
 instead of WebAppDeploy servlet warpConnection /servlet try WebAppDeploy
 servlet warpConnection /
 best within the configuration of the virtual host (if any).
 
 greetings
 olaf
 
 
 
 -Ursprungliche Nachricht-
 Von: Georg Huettenegger [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 16. April 2002 17:31
 An: [EMAIL PROTECTED]
 Betreff: mod_webapp, tomcat 4.0.3, apache 2.0.35 question
 
 
 hi,
 
 i have installed the named versions von solaris 2.6 and it does run
 successfully. but there are major problems i am having:
 
 o) the application i am trying to execute calls all servlets with
 /servlet/login for example. therefore i have set up the following line in
 my httpd.conf:
  WebAppDeploy servlet warpConnection /servlet
 i have a corresponding servlet directory in the webapps directory of
 tomcat and in principal the setup works. BUT i have to use
 http://localhost/servlet/servlet/login to get my servlet executed.
 
 can somebody tell me what i need to change so that
 http://localhost/servlet/login itself will work (but still having the
 possibility that apache is serving http://localhost/images/x.gif by
 itself)?
 
 o) more a tomcat setup question: i have a lot of java servlets as .class
 files. how do i instruct tomcat to execute these servlets without
 explicitly naming them in a web.xml file?
 
 i am not sure whether the following did achieve it in tomcat 3 and whether
 it still does work in tomcat 4 (would be part of server.xml):
 RequestInterceptor
 className=org.apache.tomcat.request.InvokerInterceptor
 debug=0 prefix=/servlet/ /
 
 
 o) mod_jk allows to have *.jsp files being served by tomcat and *.html
 files being served by apache in one and the same directory. i have read
 that with mod_webapp i would need a filtering functionality of tomcat to
 achieve the same behavour. is that correct and what would i need to do?
 
 hope you can help me with my pressing problems.
 
 bye,
  georg
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Tomcat and Thawte and the keytool utility

2002-04-17 Thread Gary McGowan

Hi Folks

Has anyone successfully installed a purchased SSL certificate from Thawte
using the keytool utility.

If so, I would really appreciate some advice on how this was done.

Ta


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




Re: AW: PLEASE HELP ME: JNDI ERROR 1

2002-04-17 Thread Laura

Hi all,

this morning I have discovered that my oracle version is 8.1.6.
Then I have taken the jdbc classes12.zip for 8.1.6 but the result is the same:

Errore = java.sql.SQLException: Eccezione IO: The Network Adapter could not 
establish the connection 
Eccezione IO: The Network Adapter could not establish the connection

I'm without words: is there some JNDI problem for oracle 8.1.6?

I have also seen network.log of oracle but it doesn't say anything (there is 
the connection of tomcat (my IP) but no error, I think).

Can someone help me ?

Please help


Laura

 



Alle 20:43, lunedì 15 aprile 2002, hai scritto:
 Thats a very good point.

 Also, look for any other old set of classes which Tomcat is picking up.
 Which may mean JNDI related classes too. I dont know if this would work
 but, change the time stamp's of all tomcat related .xml files by making a
 small change like adding a space, pressing enter etc and see if it makes
 any difference.


 regards
 hemant

 - Original Message -
 From: Angel Municio [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, April 15, 2002 1:00 PM
 Subject: RE: AW: PLEASE HELP ME: JNDI ERROR 1


 If the Oracle database that you are trying to connect to is a different
 version than the old one, check for updated Oracle jdbc drivers
 (classes12.zip). I have found that there are many releases of this file,
 and newer releases are not always backwards compatible. For instance,
 classes12.zip that work well with 8i do not work well with 9i.

 angel

 -Original Message-
 From: peter lin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 15, 2002 12:48 PM
 To: Tomcat Users List
 Subject: Re: AW: PLEASE HELP ME: JNDI ERROR 1



 look in the tnslistener network log to see if tomcat is getting to the
 machine correctly. If not, it's most likely a typo someplace. If it is,
 the log will give you more data to debug the problem.

 peter lin

 Laura wrote:
  But I have controlled all.
 
  If I try to connect with sql plus, I connect to the db.
 
  Any suggestions?
 
  Laura
 
  Alle 18:30, lunedì 15 aprile 2002, hai scritto:
   You said that you changed user, password, and url.
  
   I would suspect, that you mistyped either the name
   of the server or the port or that your new database
   is using different parameters than your old one.
  
-Ursprüngliche Nachricht-
Von: Laura [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 15. April 2002 18:26
An: Tomcat Users List
Betreff: PLEASE HELP ME: JNDI ERROR 1
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

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




JDK 1.4 /Tomcat 4 problem...

2002-04-17 Thread Mikael Aronsson

Hi !

When use Tomcat 4.0.3 I get:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.

I read that there is a problem with JDK 1.4, but as I understand it this
should only be a warning, I have digged around a bit but I have not found an
anser to this, I have read some posts that people do run Tomcat 4 with JDK
1.4 so I am doing something wrong, but what... ?

Any ideas ?



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




Tomcat 4 Apache 2

2002-04-17 Thread Lee Kyon


Hi, 
I'm looking for a documentation on how to run tomcat 4.0.3 together with the
new Apache 2.0.35 webserver.

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




Re: JDK 1.4 /Tomcat 4 problem...

2002-04-17 Thread Ingo Bruell

Hi Tomcat,

MA I read that there is a problem with JDK 1.4, but as I understand it this
MA should only be a warning, I have digged around a bit but I have not found an
MA anser to this, I have read some posts that people do run Tomcat 4 with JDK
MA 1.4 so I am doing something wrong, but what... ?

MA Any ideas ?

Please read the whole log, all time i got this message, my jsp
page had an error.


so long


Ingo Bruell

---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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




Securing webdav

2002-04-17 Thread Ingo Bruell

Hi,

i want to use webdav in the user directories, but wonder how i could
secure access with webdav.

The web application should have another security configuration then
webdav. But i have got webdav only working, if i mapp it too '/'. So
all constraints affect the whole application.

Any ideas ?


so long


Ingo Bruell

---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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




Done without a match...... this message makes me crazy!!! please help!!!!

2002-04-17 Thread staginfo-ar

Hi,
I'm using tomcat 4.0.3 with iis 5.0.
When i run jsp pages with tomcat it works properly.
But jsp's from iis can't be runned. The isapi_redirect.log contents in each
jk_uri_worker_map_t::map_uri_to_worker line a done without a match . What's
the problem, perhaps it's in application  Map in iis where I defined .jsp
extension pointed for isapi_redirect.dll

Please,, !!

jc


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




Re: JDK 1.4 /Tomcat 4 problem...

2002-04-17 Thread Mikael Aronsson

Ahh!, sorry to bug you all in that case, I will check later today, I was
assuming that the error was related to the deprecation message, it looked
that way

Mikael

- Original Message -
From: Ingo Bruell [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 9:12 AM
Subject: Re: JDK 1.4 /Tomcat 4 problem...


 Hi Tomcat,

 MA I read that there is a problem with JDK 1.4, but as I understand it
this
 MA should only be a warning, I have digged around a bit but I have not
found an
 MA anser to this, I have read some posts that people do run Tomcat 4 with
JDK
 MA 1.4 so I am doing something wrong, but what... ?

 MA Any ideas ?

 Please read the whole log, all time i got this message, my jsp
 page had an error.


 so long


 Ingo Bruell

 ---
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 ICQ# 40377720
 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648
169E E5FC
 Germany  PGP-Public-Key available at pgpkeys.mit.edu



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



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




Segmentation Fault

2002-04-17 Thread Steven Fries

I've looked everywhere in the discussion board and have found no answer to this 
problem. I start tomcat and get...

root@DevU:/usr/local/tomcat/bin# ./startup.sh
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/jdk

I try to access http://localhost:8080 from the same server and the page doesn't come 
up.

Oddly, when I try to shutdown the server, get this message...

root@DevU:/usr/local/tomcat/bin# ./shutdown.sh 
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME:   /usr/local/jdk
Segmentation fault

I noticed someone was able to use the debugger to get it to start up correctly. I 
followed the instructions and it worked! But it showed no errors, why the heck is it 
not starting using startup.sh?

OS: Linux (Slackware 8.0)
Tomcat Version: 4.0.3
JDK 1.3.1



Re: Done without a match...... this message makes me crazy!!! please help!!!!

2002-04-17 Thread Tomcat Huang


 You may try this page.  Hope it will help.
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
Chiming
  [EMAIL PROTECTED] wrote: Hi,
I'm using tomcat 4.0.3 with iis 5.0.
When i run jsp pages with tomcat it works properly.
But jsp's from iis can't be runned. The isapi_redirect.log contents in each
jk_uri_worker_map_t::map_uri_to_worker line a done without a match . What's
the problem, perhaps it's in application Map in iis where I defined .jsp
extension pointed for isapi_redirect.dll

Please,, !!

jc


--
To unsubscribe: 
For additional commands: 
Troubles with the list: 



-
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax


Hello sir/madam,

2002-04-17 Thread ganesh

Hello sir/madam,
We are testing with MYSQL on the remote unix server with the tomcatserver loaded on 
the server.Butwe are not able to access the database.

The error we are getting is INvalid authorisation specification Access denied for user 
[EMAIL PROTECTED] ( Using password:YES)

Waiting for your quick reply.

Thanking you.
ganesh 
   





[Fwd: tomcat 4.0.3 shares the sessions between the same app on ahttp and https instance]

2002-04-17 Thread Ismael Blesa Part



 Original Message 
Subject: tomcat 4.0.3 shares the sessions between the same app on a http 
and https instance
Date: Wed, 10 Apr 2002 18:22:18 +0200
From: Ismael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]



I have tested my webapp with last tomcat 4.0.3. I have uncommented the 
ssl section and I have installed my webapp putting the app.war file on 
the webapps folder.

My apps has a load-on-startup section that initializes the db connection 
and shows the progress on the console, before tomcat 4.0.3 I got an 
initialization per server (one for http and another one for https), but 
with tomcat 4.0.3 I only gets one for the two connectors (http  https)

I think the servlet context is shared between http and https. I thought 
that only orionserver supported this.
Is this a bug ?
Is there a way to make 4.0.3 work as the previous versions (that is 
without sharing the webcontext) ?
Is this behavious defined on the standard ?





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




Re: Apache 2.0.35+Tomcat 4.0.3

2002-04-17 Thread dbgroups

To make tomcat as a servlet container for apache 2:
1) Do i need both mod_webapp.so and mod_jk.so? i make it work fine using
mod_jk for apache 1.3.22 and tomcat 3.3
2) i use tomcat-4.0.3 for jdk1.4 with the mod_webapp.so and mod_jk-01.so
from Linux-1386. i can make tomcat-4.0.3 run as a default standalone http.
But Apache 2.0.35 gives errors: undefined symbol ap_table-get when it
attenps to load either mod_jk of mod_webapp.
3) Coud someone take a look at my httpd.config and server.xml to see
what i did wrong?

Here is the server.xml
Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --

Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector

port=8008 minProcessors=5 maxProcessors=75

enableLookups=true appBase=webapps

acceptCount=10 debug=0/

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector

port=8009 minProcessors=5 maxProcessors=75

acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine

name=Apache debug=0

!-- Global logger unless overridden at lower levels --

Logger className=org.apache.catalina.logger.FileLogger

prefix=apache_log. suffix=.txt

timestamp=true/

!-- Because this Realm is here, an instance will be shared globally --

Realm className=org.apache.catalina.realm.MemoryRealm /

Host name=dev1.dbgroups.com

Context path=

docBase=/data/ws/dev1/web

crossContext=false

debug=0

reloadable=true /

Context path=dbgroups.com

docBase=/data/ws/dbgroups.com/web

crossContext=false

debug=0

reloadable=true /

/Host

/Engine

/Service

!-- Define the Tomcat Stand-Alone Service --

Service name=Tomcat-Standalone

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --

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

port=8080 minProcessors=5 maxProcessors=75

enableLookups=true redirectPort=8443

acceptCount=10 debug=0 connectionTimeout=6/

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector

port=8009 minProcessors=5 maxProcessors=75

acceptCount=10 debug=0/

Engine name=Standalone defaultHost=localhost debug=0

Logger className=org.apache.catalina.logger.FileLogger

prefix=catalina_log. suffix=.txt

timestamp=true/

Realm className=org.apache.catalina.realm.MemoryRealm /

!-- Define the default virtual host --

Host name=localhost debug=0 appBase=webapps unpackWARs=true

Valve className=org.apache.catalina.valves.AccessLogValve

directory=logs prefix=localhost_access_log. suffix=.txt

pattern=common/

Logger className=org.apache.catalina.logger.FileLogger

directory=logs prefix=localhost_log. suffix=.txt

timestamp=true/

!-- Tomcat Root Context --

!--

Context path= docBase=ROOT debug=0/

--

!-- Tomcat Manager Context --

Context path=/manager docBase=manager

debug=0 privileged=true/

!-- Tomcat Examples Context --

Context path=/examples docBase=examples debug=0

reloadable=true crossContext=true

Logger className=org.apache.catalina.logger.FileLogger

prefix=localhost_examples_log. suffix=.txt

timestamp=true/

Ejb name=ejb/EmplRecord type=Entity

home=com.wombat.empl.EmployeeRecordHome

remote=com.wombat.empl.EmployeeRecord/

Environment name=maxExemptions type=java.lang.Integer

value=15/

Parameter name=context.param.name value=context.param.value

override=false/

Resource name=jdbc/EmployeeAppDb auth=SERVLET

type=javax.sql.DataSource/

ResourceParams name=jdbc/EmployeeAppDb

parameternameuser/namevaluesa/value/parameter

parameternamepassword/namevalue/value/parameter

parameternamedriverClassName/name

valueorg.hsql.jdbcDriver/value/parameter

parameternamedriverName/name

valuejdbc:HypersonicSQL:database/value/parameter

/ResourceParams

Resource name=mail/Session auth=Container

type=javax.mail.Session/

ResourceParams name=mail/Session

parameter

namemail.smtp.host/name

valuelocalhost/value

/parameter

/ResourceParams

/Context

/Host

/Engine

/Service

/Server


Here is relevant part of my httpd.config file:
LoadModule jk_module modules/mod_jk-01.so

AddModule mod_jk.c

JkWorkersFile /apps/tomcat-4.0.3/conf/jk/workers.properties

JkLogFile /apps/httpd-2.0.35/logs/mod_jk.log

JkLogLevel info

LoadModule webapp_module modules/mod_webapp.so

AddModule mod_webapp.c

NameVirtualHost 192.168.1.65

VirtualHost 192.168.1.65

ServerAdmin [EMAIL PROTECTED]

DocumentRoot /data/ws/dev1/web

ServerName dev1.dbgroups.com

JkMount /*.jsp ajp13

JkMount /*.do ajp13

Alias /dbgroups.com /data/ws/dbgroups.com/web

# The MOD_WEBAPP connector for this VirtualHost

WebAppConnection warpConnection warp localhost:8008

WebAppDeploy dbgroups.com warpConnection /dbgroups.com/

/VirtualHost

# Virtual Host for all web applications from appsdev1.dbgroups.com

VirtualHost 192.168.1.65:80

ServerAdmin [EMAIL PROTECTED]

DocumentRoot /apps/tomcat-4.0.3/webapps/ROOT

ServerName appsdev1.dbgroups.com

JkMount /*.jsp ajp13

JkMount /*.do ajp13

Alias 

Tomcat + PHP + CGI

2002-04-17 Thread Stefan Schwarzer

Hi,

I am running Apache 1.3 + Tomcat 4. As I had before Apache and PHP properly 
installed, I don't get how I have to configure Tomcat to make PHP running 
as a module. Same thing actually for a cgi which was before installed in 
the cgi-bin directory of Apache, but which doesn't work anymore. Any help?

Thanks,

Stefan


=
Stefan Schwarzer, Consultant on GEO-3
UNEP/DEWA/GRID-Geneva
Chemin des Anemones 11
CH - 1219 Chatelaine - Switzerland
Tel: (+41) 22.917.83.49 - Fax: (+41) 22.917.80.29
eMail: [EMAIL PROTECTED]
Internet: http://geo3.grid.unep.ch/
=



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




RE: please help me

2002-04-17 Thread Jon Gibbs-Smith

First thing to do is look at the log.  tomcat 4 is much better at logging
than version 3.  If you did not chnge the logging entry in the server.xml
the examples log file will show details about what is happening when your
webapp (context as Tomcat4 calls it) is loaded.

If you simply see an entry about what is expected in a web.xml the most
likely thing is that you have servlet-mapping entries mixed in among your
servlet entries.  Now all the servlet mapping must appear after all the
servlet entries.  The parameter icon has changed to become small or large -
again look at the log for details.

Another thing we noticed in Windows (if that is your platform) was that in
Tomcat 3 the WEB-INF directory name could be lower case, Tomcat 4 insists
that it must be upper case.

hope this helps,

Jon G-S

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Janarthanan,
 Prasanna
 Sent: 14 April 2002 14:04
 To: '[EMAIL PROTECTED]'
 Subject: please help me



 we have our web application running with tomcat 3.2.3. It is working fine
 but now iam upgradin to tomcat 4.0. here i face problem in context of
 server.xml. I have written the context in server.xml.
 I wonder whether it has any touch with the web.xml file of my web
 application.
 coz the examples given in tomcat 4 has a web.xml file which has some large
 contents which i don't have it in web.xml file of my web application. but
 with my own web.xml itself it was working fine with tomcat 3.2.3.

 please calrify me where i need to make changes for this tomcat 4 to work
 with my web application.. probably u can help in the best way..
 as i saw ur
 mail in tomcat user list as u are very well working with tomcat 4.0.2.

 please help me out.

 prassana
 deshaw india software pvt limited.


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

 ___
 tomcat-users mailing list
 [EMAIL PROTECTED]
 https://mailman.real-time.com/mailman/listinfo/tomcat-users






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




DirectoryIndex and mod_jk

2002-04-17 Thread Tomas Edwardsson

Hi

I have a config question, what I'm trying to accomplish is the following:

DirectoryIndex index.jsp index.html

JkMount /*.jsp ajp13

So in short I wan't index.jsp to be parsed by tomcat if there is a index.jsp
file in a directory else go back to regular stuff *.html..

I've tried this with the config above but I get a Forbidden error.

Server Version: HP Apache-based Web Server/2.0.32 (Unix) mod_ssl/3.0a0
OpenSSL/0.9.6c mod_jk/1.2.0

Thanks

- Tomas Edwardsson

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




Usage Question

2002-04-17 Thread Mark Raynes

Hi,

I’m sorry to ask such a question here but I don’t know who else to go to.

I have looked through the Apache software license but find it impossible to
cut through the jargon and get a definitive answer to my question.  I am
also afraid that there is some assumed knowledge of which I am not aware and
I will get my company in trouble if I go ahead.

My question is this: Can we use Tomcat on our web server to serve jsp’s and
servlets for our own website and those of our clients (commercial, profit
making companies)?

If the answer is yes to the above question can you give me any indication of
the sorts of loads which the server is capable?  …is it usable for high
traffic sites?

Regards,
Mark Raynes - Dynamic Media Tools Ltd (England).




RE: AUTHORIZATION HEADER MISSING

2002-04-17 Thread Ignacio J. Ortega

 De: Robert Priest [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 16 de abril de 2002 15:50

J-T-C jk from CVS HEAD has that problem solved,  i can provide binaries
to test this new feature... send me a private mail if you want it..

Apropos i'm talking about Bug#2432 ;)

Saludos ,
Ignacio J. Ortega



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




Session Context Reload

2002-04-17 Thread Jason Webber

Is there an event my object that I have created and stored in the servlet
context to know when the servlet context is being destroyed or refreshed?

Tomcat 3.3
Apache 1.3.22


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




Re: Certificate authentication: How to read properties of aclient certificate?

2002-04-17 Thread John Brayton

   The thing I want to know is: how can you read properties from the client
   certificate (such as public key, common name, organisation etc) inside a
   servlet or JSP page?

To retrieve the certificate from the request, use the following call:

X509Certificate[] certArray = (X509Certificate[] ) =
  req.getAttribute(javax.servlet.request.X509Certificate);

The certArray is an array of certificates in the certificate chain.
[In most cases there is just one certificate in the chain.  If there
is more than one certificate, then the certificate at index 0 is the
certificate of the client, the certificate at index 1 is the
certificate used to sign the certificate at index 0, etc.

 From each certificate, you can call methods such as the following:

getSerialNumber()
GetSubjectDN()

For more details on what you can retrieve from individual
certificates, see the JavaDoc file at:

http://java.sun.com/j2se/1.3/docs/api/java/security/cert/X509Certificate.html

John

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




RE: Usage Question

2002-04-17 Thread KC Berg

yes and check netcraft's web site and yes

-Original Message-
From: Mark Raynes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Usage Question


Hi,

I'm sorry to ask such a question here but I don't know who else to go to.

I have looked through the Apache software license but find it impossible to
cut through the jargon and get a definitive answer to my question.  I am
also afraid that there is some assumed knowledge of which I am not aware and
I will get my company in trouble if I go ahead.

My question is this: Can we use Tomcat on our web server to serve jsp's and
servlets for our own website and those of our clients (commercial, profit
making companies)?

If the answer is yes to the above question can you give me any indication of
the sorts of loads which the server is capable?  ...is it usable for high
traffic sites?

Regards,
Mark Raynes - Dynamic Media Tools Ltd (England).


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




Re: JDBC Connection problem.

2002-04-17 Thread @Basebeans.com

Subject: Re: JDBC Connection problem.
From: Vic Cekvenich [EMAIL PROTECTED]
 ===
Unit test the beans in a java system main console application. Then put 
in Tomcat.

Diego, Emil wrote:

 it works as a stand alone application.  I have used this driver before many
 times and have never had a problem using first() before.
 
 -Original Message-
 From: peter lin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 17, 2002 10:25 AM
 To: Tomcat Users List
 Subject: Re: JDBC Connection problem.
 
 
 
 Are you using a jdbc 2.0 compliant driver which supports scrollable
 resultsets?
 
 jdbc 1.0 drivers typically do not support scrollable resultsets, so that
 could be the cause.
 
 peter lin
 
 
 Diego, Emil wrote:
 
Hello

I am gettign a rather unusual exception everytime one of my beans calls
Resultset.first().  I was able to trace the app at it seems to open the
connection to mysql and execute the query without any problems.  I keep
getting an exception when the bean calls first though.  If anyone has any
ideas, please let me know.  thanx.

Here is the error:

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error



 
 


type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server

 Error)
 
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org.gjt.mm.mysql.ResultSet.first()Z
at


 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 
l.java:463)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:163)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at


 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 
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.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.valves.CertificatesValve.invoke(CertificatesValve.java:2
 
46)
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.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.warp.WarpRequestHandler.handle(WarpRequestHand
 
ler.java:217)
at


 org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
 
4)
at java.lang.Thread.run(Thread.java:536)

root cause

java.lang.AbstractMethodError: org.gjt.mm.mysql.ResultSet.first()Z
at umJavaLib.tbl_um_user.getUserID(tbl_um_user.java:431)
at umJavaLib.sbaLogin.checkLogin(sbaLogin.java:185)
at 

Tomcat 4.03 + Verisign + SSL

2002-04-17 Thread Kandavelu,Shivshankar

Hi All,

This question has been posted before by many. But I guess I have some different 
problem. I went through archives but I cant find a solution. I hope somebody has a 
solution for it. 

I have problems using trusted certificate with Tomcat. We are moving from Weblogic to 
Tomcat.  The certificate issued by Verisign is working with Weblogic at this point. I 
did exactly what it has been said in Tomcat SSL how-to. 

1. I imported the cert file given  by Verisign in to a keystore,
keytool -import -alias tomcat -trustcacerts -v -file myversign.cert. 
- it asked for password, i gave the password as  'changeit'
-it asked for trust the certificate (no)?. I gave 'y'
it created a file called .keystore in my home directory i.e. 
/home/skandave/.keystore. 

2. In the server.xml I uncommented the SSL Section. Added the attribute 
keystoreFile=/home/skandave/.keystore in the Factory tag.

I can bring the server up and it listens to that appropriate port for SSL. But when i 
try to invoke the page in IE, it fails, the page doesn't get displayed and IE throws a 
DNS look up error.

Then I tried starting up the server with -Djavax.net.debug=all. I see the server has 
sent a bunch of certificates and this message is printed,

%% Created: [Session-2, SSL_NULL_WITH_NULL_NULL]
HttpProcessor[9443][4], SEND SSL v3.0 ALERT: fatal, description=handshake_failure
HttpProcessor[9443][4], WRITE: SSL v3.0 ALERT, length=2

I guess there is aproblem in my import of my certificate but I don't how to solve it. 
Please help!!


thanks,
Shiv



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only for the individual 
named.  If you are not the named addressee you should not disseminate, distribute or 
copy this e-mail.  Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses.  The sender therefore does not accept liability for any errors or 
omissions in the contents of this message which arise as a result of e-mail 
transmission.  If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be construed as a 
solicitation or offer to buy or sell any securities or related financial instruments.


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




RE: JNDI DataSource Problem: MS SQL Server

2002-04-17 Thread Sean LeBlanc



 -Original Message-
 From: Peter D Wilson [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 16, 2002 9:19 PM
 To: Tomcat Users List
 Subject: JNDI DataSource Problem: MS SQL Server


 Could somebody provide jakarta-tomcat-4.0.3, server.xml +
 web.xml + java
 code,  working fragments similar to those that Eichfelder,
 Frank provided
 earlier today on this mail list. I am using MS SQL Server
 6.5, where the
 direct DriverManager approach outside of Tomcat works perfectly.

 In the JNDI approach under Tomcat, I can list context, jdbc
 in context,
 java:comp/env and get my ResourceRef, JobsDataSource from
 the default
 context in server.xml listed, but I am unable to get a DataSource (or
 ConnectionPoolDataSource) returned.

 This is a very frustrating exercise!

Hi Peter,

I'm trying the same thing you are. Well, similar.
I'm using the Beta 2 version of Microsoft's JDBC driver to
connect to a SQL Server 2000 database. I'm not having much luck with it, though.
Any help you or anyone else can offer would be very much appreciated.

I tried putting this in my server.xml:

  Resource name=jdbc/nutrosDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/nutrosDB

parameter
namedatabase/namevaluedbname/value
/parameter

parameter

namefactory/namevaluecom.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value
/parameter


parameter

namedriverClassName/namevaluecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter

parameter

namedriverName/namevaluejdbc:microsoft:sqlserver://serverbox;user=user;Password=pwd;DatabaseName=dbname/value
/parameter

parameter
nameuser/namevalueuser/value
/parameter

parameter
namepassword/namevaluepassword/value
/parameter

/ResourceParams

And this in my web.xml:

resource-ref
descriptiontest jdbc/nutrosDB/description
res-ref-namejdbc/nutrosDB/res-ref-name
res-typecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
/resource-ref

In my code, I am doing this:

Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup(java:comp/env);
System.out.println( About to get ds.);
com.microsoft.jdbcx.sqlserver.SQLServerDataSource ds =
(com.microsoft.jdbcx.sqlserver.SQLServerDataSource)envCtx.lookup(jdbc/nutrosDB);
System.out.println(About to get pooledconnection.);
PooledConnection x = ds.getPooledConnection(usr,pwd);
System.out.println(About to get connection.);
Connection conDB1 = x.getConnection();


This fails, and here is what is in the log file:

 About to get ds.
javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at Nutros.Beans.DatabaseBean.init(Unknown Source)
at Nutros.Beans.beanBrand.loadProduct(Unknown Source)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:578)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
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: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.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 

Re: AW: AW: mod_webapp, tomcat 4.0.3, apache 2.0.35 question

2002-04-17 Thread Georg Huettenegger

hi,

 a good explanation for setting up tomcat apache integration can be found at:
 http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
 
 It works fine at my servers. In the http access.log all the static content
 (images at most) is listed. No further path statements for tomcat or apache
 configuration (except stuff like virtual hosts) were done.
 Do you access the server through the port
 (http://hostname:8080/anydir/something.jsp)? When configured right this is
 not useful since tomcat would deliver all content (omit :8080).

my problem is that i have static web pages and servlets using a given
(and fixed) directory scheme. so i have: http://xy.com/login.html and
http://xy.com/servlet/login.

lets say my tomcat context is named servlets. with the standard tomcat
configuration tomcat needs to get /servlet/login to invoke the login
servlet. but using the webapp connector and forwarding everything starting
with /servlet to the context servlets does mean that tomcat just gets
a request for /login.

my workaround for the moment is to treat everything coming to the context
servlets as a servlet but this is rather inflexible.

for my problem mod_webapp would need to give tomcat a request for
/servlet/login for the http://xy.com/servlet/login url while my
webappdeploy line looks like:

WebAppDeploy servlets warpConnection /servlet

at the moment tomcat gets a request for /login.

bye,
 georg


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




New Apache/Tomcat How-To

2002-04-17 Thread Joseph Molnar

Hi folks. I had mentioned earlier about putting this together, and I have
finally posted an article to aid folks out there on how to get Apache
1.3/Tomcat 4/WARP all working together. It demonstrates:

a) multiple tomcat instances
b) multiple virtual hosts
c) SSL and non-SSL

(and extra tid-bits of information)

There URL is:

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/

Feel free to have a look and send feedback! I tried to be fairly detailed,
so I hope it helps out!

Joe

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




webapps not found

2002-04-17 Thread Peter Choe

i am trying to run tomcat 4.0.3.  i have transfered some web application 
from a tomcat 3.2.  for some reason, some of the webapps are showing up 
when i type the url, but others come with the message file not found.

why is it showing some webapps but not others?  i haven't changed the 
server.xml file that came with tomcat.

Peter


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




OT: Money for Projects

2002-04-17 Thread Christopher Reed


Apologies in advance if this feels spammy. 

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below 

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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




RE: Money for Projects

2002-04-17 Thread Jay Gardner

Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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


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




RE: Money for Projects

2002-04-17 Thread Dahnke, Eric


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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


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

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




RE: Money for Projects

2002-04-17 Thread Jay Gardner

Sorry for the knee-jerk reaction! I am all for rewarding developers for
their hard work. I just don't want some organization skimming off the top
when you can just as easily contact a developer or organization directly and
donate that way. I guess I need to go find out about the service before
passing judgment.

--Jay Gardner

-Original Message-
From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: Money for Projects


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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


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

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


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




Java Mail problems with Tomcat. Tomcat send mail example not working too.

2002-04-17 Thread IvanLatysh

Hi.

I am trying to get JSP example send mail working.
And what I did found. I couldn't get parameter mail.smtp.host.
I did change this value (in server.xml file), restart server, and nothing changed, 
example
trying to send mail thru localhost.

This is code from JSP Send mail example:

  Context initCtx = new InitialContext();
// here initCtx is empty there are no any parameters.
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
// after this I am getting exception
  Session session = (Session) envCtx.lookup(mail/Session);

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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




RE: Money for Projects

2002-04-17 Thread Jay Gardner

O.K., my bad! I went and looked and this looks like a reputable site. I hope
the money does indeed go to the right places.

--Jay Gardner

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:15 PM
To: Tomcat Users List
Subject: RE: Money for Projects

Sorry for the knee-jerk reaction! I am all for rewarding developers for
their hard work. I just don't want some organization skimming off the top
when you can just as easily contact a developer or organization directly and
donate that way. I guess I need to go find out about the service before
passing judgment.

--Jay Gardner

-Original Message-
From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: Money for Projects


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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


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

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


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


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




RE: Money for Projects

2002-04-17 Thread Ganey, Todd

They don't seem to mention how much they take off the top as in: Affero
takes a bit off the top for our expenses
but their web site does say 100% of the donation amount is sent to the
designated non-profit

So which is it?

Todd

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 11:20 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Money for Projects


O.K., my bad! I went and looked and this looks like a reputable site. I hope
the money does indeed go to the right places.

--Jay Gardner

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:15 PM
To: Tomcat Users List
Subject: RE: Money for Projects

Sorry for the knee-jerk reaction! I am all for rewarding developers for
their hard work. I just don't want some organization skimming off the top
when you can just as easily contact a developer or organization directly and
donate that way. I guess I need to go find out about the service before
passing judgment.

--Jay Gardner

-Original Message-
From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:09 PM
To: 'Tomcat Users List'
Subject: RE: Money for Projects


imo there's nothing wrong with what this person is putting together. what's
the harm.


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 1:57 PM
To: Tomcat Users List
Subject: RE: Money for Projects


Go away and don't come back!!

-Original Message-
From: Christopher Reed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: OT: Money for Projects


Apologies in advance if this feels spammy.

I have been working with a few folks on a grassroots way for people to
donate money to various non-profits  projects such as Apache, Hurd,
EFF, or even to a given developer.  This donation might be in response
to some helpful feedback given by that developer in response to a
question; it might be because their name and URL were in some software
they used.  Affero takes a bit off the top for our expenses , which we
think is reasonable given the costs involved in credit card auth and the
like. The software used to deliver the service is open source.

Take a look at a the link I created below

People can go to that URL and donate money, 35% of which goes to the
Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.

We're very interested in any comments and feedback on the
site/service. You can check it out at http://www.affero.com.
BTW, we have been told that we should lower our $15.00 minimum donation.
What do you think?

Thanks

Reed


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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


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

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


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


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



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




OT: Tomcat Wiki

2002-04-17 Thread Mark Shaw

I was looking for a Wiki (http://c2.com/cgi/wiki?WikiWikiWeb
http://c2.com/cgi/wiki?WikiWikiWeb ) to allow our developers to easily
collaborate and I found an excellent and simple implementation of a
servlet-based Wiki on SourceForge called VeryQuickWiki:
http://sourceforge.net/projects/veryquickwiki.  It took me under 5 minutes
to set-up w/ Tomcat.  
 



RE: Money for Projects

2002-04-17 Thread Timothy Fisher

Do you know how much they skim off the top for their
service fee?

--- Jay Gardner [EMAIL PROTECTED] wrote:
 O.K., my bad! I went and looked and this looks like
 a reputable site. I hope
 the money does indeed go to the right places.
 
 --Jay Gardner
 
 -Original Message-
 From: Jay Gardner [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 17, 2002 12:15 PM
 To: Tomcat Users List
 Subject: RE: Money for Projects
 
 Sorry for the knee-jerk reaction! I am all for
 rewarding developers for
 their hard work. I just don't want some organization
 skimming off the top
 when you can just as easily contact a developer or
 organization directly and
 donate that way. I guess I need to go find out about
 the service before
 passing judgment.
 
 --Jay Gardner
 
 -Original Message-
 From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 17, 2002 12:09 PM
 To: 'Tomcat Users List'
 Subject: RE: Money for Projects
 
 
 imo there's nothing wrong with what this person is
 putting together. what's
 the harm.
 
 
 -Original Message-
 From: Jay Gardner [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 17, 2002 1:57 PM
 To: Tomcat Users List
 Subject: RE: Money for Projects
 
 
 Go away and don't come back!!
 
 -Original Message-
 From: Christopher Reed [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 17, 2002 12:00 PM
 To: [EMAIL PROTECTED]
 Subject: OT: Money for Projects
 
 
 Apologies in advance if this feels spammy.
 
 I have been working with a few folks on a grassroots
 way for people to
 donate money to various non-profits  projects such
 as Apache, Hurd,
 EFF, or even to a given developer.  This donation
 might be in response
 to some helpful feedback given by that developer in
 response to a
 question; it might be because their name and URL
 were in some software
 they used.  Affero takes a bit off the top for our
 expenses , which we
 think is reasonable given the costs involved in
 credit card auth and the
 like. The software used to deliver the service is
 open source.
 
 Take a look at a the link I created below
 
 People can go to that URL and donate money, 35% of
 which goes to the
 Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.
 
 We're very interested in any comments and feedback
 on the
 site/service. You can check it out at
 http://www.affero.com.
 BTW, we have been told that we should lower our
 $15.00 minimum donation.
 What do you think?
 
 Thanks
 
 Reed
 


 How valuable is my contribution? Share your feedback
 at Affero:
 http://svcs.affero.net/rm.php?r=creedp=Projects
 
 Office: 415 371 9900
 [EMAIL PROTECTED]
 http://www.affero.com
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Help? tomcat 4.0.2 and jdk1.4 with poolman

2002-04-17 Thread se ra

Hello,
I am running into the same problem with: Poolman/JDK1.4/Tomcat4.0
Are there any other workarounds?
thanx
-sen

This may already have been responded to, but FYI JDK 1.4 includes Xml
parsing.  Trying using 4.0.2 lite I think it's called.  That distrib is
designed to not include it's own XML package but use JDK 1.4's instead.

HTH,
Bill Barnhill
- Original Message -
From: Cavan Morris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 2:57 PM
Subject: Help? tomcat 4.0.2 and jdk1.4 with poolman


Hey everybody,
I've been running tomcat 4.0.2 with jdk 1.3.1 and poolman 2.0.4 supported
JDBC Realms for a while now with no problems.  I recently tried to switch to
jdk 1.4 (Something that I think I need to do for it's Headless support on my
Linux box) and it gave me the following exception on startup.

java.lang.NullPointerException
at
com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfiguration
.java:117)
at
com.codestudio.management.PoolManConfiguration.loadConfiguration(PoolManConf
iguration.java:75)
at
com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.java:61)
at com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:109)
at
com.codestudio.util.SQLManager.requestConnection(SQLManager.java:190)

at com.codestudio.sql.PoolMan.connect(PoolMan.java:184)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Line 117 of PoolManConfiguration.java is the following.
URL confURL =
PoolManConfiguration.class.getClassLoader().getResource(configFile);
It's basically trying to load poolman.xml from common/classes.

It looks like it's having a major problem with the classloader.  I.e.,
PoolManConfiguration.class.getClassLoader() is what is null.  I've checked
this with some println()'s.
The strange thing is that this is not simply due to the change from jdk1.3.1
to jdk1.4 because I can run tomcat 4.0.1 with the same configuration with no
problems.  Incidentally, I have to use 4.0.2 because I need to use the
error-page element in my application and it is broken in 4.0.1.

Does anyone have any idea what changed in both tomcat and the jdk from
versions 4.0.1 and 1.3.1 to versions 4.0.2 and 1.4 that would account for
this?

Does anyone know of an easy way to fix the error-page problem in 4.0.1?
If so I'll just use that.

If not I'll have to investigate another connection pooler for MySQL.  Any
ideas on that?

Hope I hear from you guys.
Cavan Morris



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




URGENT - Tomcat 4.0.3 thread pool allocation out-of-control bug (bugzilla 5735)

2002-04-17 Thread Drew Cox

We're having a killer problem on our production server, where tomcat 4.0.3
goes crazy allocating threads in its thread pool, until it either runs out
of threads or heap (for us it's heap).

Searching the list I found a reference to a (closed, not reproducible) bug
that looks the same:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735

We are using tomcat standalone, with the https connector.

I have re-opened the bug, as it looks very much like what is happening to
us.  I'd really like to know from people is what further specific
information we can contribute to help diagnose this problem.

Failing that we are looking at an emergency fallback to Tomcat 3, where we
didn't see this problem.

Thanks
Drew


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




Mod_jk log message question

2002-04-17 Thread Brandon Cruz

Anyone know what this means or what causes it?


[jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed

If nobody knows anything about it, do you know what to set my log level to
in httpd.conf so that it doesn't take up so much time for Tomcat to serve my
pages when transferring via mod_jk?


Thanks in advance for any advice!


Brandon Cruz


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




Sealing Violation

2002-04-17 Thread Walden Mathews

I found a couple of messages in the archives about this, but not enough to
understand
what to do about it.

I get the following exception when I try to start Catalina with the 'run'
command.  This is the 4.0.4.b2-01 package I downloaded last week, and which
ran then but not now(??).

catalina run
Using CATALINA_BASE:   c:\jakarta-tomcat-4.0.4-b2-01
Using CATALINA_HOME:   c:\jakarta-tomcat-4.0.4-b2-01
Using CATALINA_TMPDIR: c:\jakarta-tomcat-4.0.4-b2-01\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
Exception during startup processing
java.lang.reflect.InvocationTargetException:
javax.xml.parsers.FactoryConfigurationError: Provider o
rg.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.SecurityException: s
ealing violation
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



I did a clean install from the zip file, and still the same problem.  I am
taking whatever XML parser libs provided in the package, without change.  No
clue as to what changed between last week and this.  Does anyone know how to
fix this?

Walden Mathews
ILX Systems

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




Re: Money for Projects

2002-04-17 Thread Christopher Reed

100% of the designated amount goes to the beneficiary, and we add a
separate 10% service fee which we hope will someday cover our expenses.
If it's too much...then the market will drive it down. If it's too
little, then we won't be around long or we'll raise it;) If someone can
do a better job at delivering the service, they can click the (0) in
any screen of our service, download a tarball of our source, set up a
bunch of machines and compete.-Reed


 On Wed, 17 Apr 2002 11:57:56 -0700 (PDT)
Timothy Fisher [EMAIL PROTECTED] wrote:

 Do you know how much they skim off the top for their
 service fee?
 
 --- Jay Gardner [EMAIL PROTECTED] wrote:
  O.K., my bad! I went and looked and this looks like
  a reputable site. I hope
  the money does indeed go to the right places.
  
  --Jay Gardner
  
  -Original Message-
  From: Jay Gardner [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 17, 2002 12:15 PM
  To: Tomcat Users List
  Subject: RE: Money for Projects
  
  Sorry for the knee-jerk reaction! I am all for
  rewarding developers for
  their hard work. I just don't want some organization
  skimming off the top
  when you can just as easily contact a developer or
  organization directly and
  donate that way. I guess I need to go find out about
  the service before
  passing judgment.
  
  --Jay Gardner
  
  -Original Message-
  From: Dahnke, Eric [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 17, 2002 12:09 PM
  To: 'Tomcat Users List'
  Subject: RE: Money for Projects
  
  
  imo there's nothing wrong with what this person is
  putting together. what's
  the harm.
  
  
  -Original Message-
  From: Jay Gardner [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 17, 2002 1:57 PM
  To: Tomcat Users List
  Subject: RE: Money for Projects
  
  
  Go away and don't come back!!
  
  -Original Message-
  From: Christopher Reed [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 17, 2002 12:00 PM
  To: [EMAIL PROTECTED]
  Subject: OT: Money for Projects
  
  
  Apologies in advance if this feels spammy.
  
  I have been working with a few folks on a grassroots
  way for people to
  donate money to various non-profits  projects such
  as Apache, Hurd,
  EFF, or even to a given developer.  This donation
  might be in response
  to some helpful feedback given by that developer in
  response to a
  question; it might be because their name and URL
  were in some software
  they used.  Affero takes a bit off the top for our
  expenses , which we
  think is reasonable given the costs involved in
  credit card auth and the
  like. The software used to deliver the service is
  open source.
  
  Take a look at a the link I created below
  
  People can go to that URL and donate money, 35% of
  which goes to the
  Squid, 35% to XFree86 and 30% to FSF Gen Fund-GCC.
  
  We're very interested in any comments and feedback
  on the
  site/service. You can check it out at
  http://www.affero.com.
  BTW, we have been told that we should lower our
  $15.00 minimum donation.
  What do you think?
  
  Thanks
  
  Reed
  
 
 ~
 ~~~ How valuable is my contribution? Share your feedback
  at Affero:
  http://svcs.affero.net/rm.php?r=creedp=Projects
  
  Office: 415 371 9900
  [EMAIL PROTECTED]
  http://www.affero.com
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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




Re: Tomcat and Thawte and the keytool utility

2002-04-17 Thread David Gladstone

yes i have
thawte has a page on this
-dave

On Wed, 17 Apr 2002, Gary McGowan wrote:

 Hi Folks

 Has anyone successfully installed a purchased SSL certificate from Thawte
 using the keytool utility.

 If so, I would really appreciate some advice on how this was done.

 Ta


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



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




Re: URGENT - Tomcat 4.0.3 thread pool allocation out-of-control bug (bugzilla 5735)

2002-04-17 Thread Remy Maucherat

 We're having a killer problem on our production server, where tomcat 4.0.3
 goes crazy allocating threads in its thread pool, until it either runs out
 of threads or heap (for us it's heap).

 Searching the list I found a reference to a (closed, not reproducible) bug
 that looks the same:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735

 We are using tomcat standalone, with the https connector.

 I have re-opened the bug, as it looks very much like what is happening to
 us.  I'd really like to know from people is what further specific
 information we can contribute to help diagnose this problem.

 Failing that we are looking at an emergency fallback to Tomcat 3, where we
 didn't see this problem.

There are a few possibilities:
- it happens because of GC (see the analysis posted by Glenn a while ago)
- it happens because of some bug in the thread pool; maybe, but I doubt it;
the most recent Tomcat 4 connector (Coyote b7 and up) uses the Tomcat 3
thread pool, so it would be relatively easy to solve your problem in that
case
- it happens because of some memory leak (I mentioned the possibility of
having too many active sessions, but it could be something else)

Remy


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




Re: Tomcat and Thawte and the keytool utility

2002-04-17 Thread Gary McGowan

Thanks Dave - could you tell me where it is??

- Original Message -
From: David Gladstone [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Gary McGowan
[EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 10:11 PM
Subject: Re: Tomcat and Thawte and the keytool utility


 yes i have
 thawte has a page on this
 -dave

 On Wed, 17 Apr 2002, Gary McGowan wrote:

  Hi Folks
 
  Has anyone successfully installed a purchased SSL certificate from
Thawte
  using the keytool utility.
 
  If so, I would really appreciate some advice on how this was done.
 
  Ta
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


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






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




Tomcat 4.0.x and OpenSSL

2002-04-17 Thread Jordan C N Chong

Dear all,

I am sorry that I have to ask this question again. Is there anyone having
experience in integrating the Tomcat 4.0.x with OpenSSL, with maybe
mod_jk.dll or maybe Apache?

Please help me. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



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




Re: Tomcat and Thawte and the keytool utility

2002-04-17 Thread David Gladstone

http://www.thawte.com/getinfo/products/devel/sunjava.html

On Wed, 17 Apr 2002, Gary McGowan wrote:

 Thanks Dave - could you tell me where it is??

 - Original Message -
 From: David Gladstone [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]; Gary McGowan
 [EMAIL PROTECTED]
 Sent: Wednesday, April 17, 2002 10:11 PM
 Subject: Re: Tomcat and Thawte and the keytool utility


  yes i have
  thawte has a page on this
  -dave
 
  On Wed, 17 Apr 2002, Gary McGowan wrote:
 
   Hi Folks
  
   Has anyone successfully installed a purchased SSL certificate from
 Thawte
   using the keytool utility.
  
   If so, I would really appreciate some advice on how this was done.
  
   Ta
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



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



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




Servlet Mapping Revisited...

2002-04-17 Thread Per Kreipke

I've searched for answers and also read the previous discussion at:

http://marc.theaimsgroup.com/?t=9868470582r=1w=2

about servlet mapping but have some follow up questions that boil down to
the same question: how do I exclude certain directories.

I'm using Tomcat 4.0.3 and I've got a directory structure of:

\myapp
   \images
 tomcat.gif
   \private
 hello.jsp
 index.html
   \WEB-INF
  web.xml
  \classes
 Nodes.java

and my web.xml contains the following:

servlet
  servlet-nameNodeServlet/servlet-name
  servlet-classNodes/servlet-class
/servlet

servlet-mapping
  servlet-nameNodeServlet/servlet-name
  url-pattern//url-pattern
/servlet-mapping

- NodeServlet simply returns some text so I can see it running for now.

- /myapp/node/hello.jsp is correctly processed, which is as it should be
since JSP's are implicitly handled, .

- /myapp/images/tomcat.gif is not returned, instead NodeServlet intercepts
it

- /myapp/node/index.html is not returned, instead NodeServlet intercepts it

So, I've tried various things to fix it.

1) does the url-mapping of / really catch all requests or should it be
/*?

I think / works as advertised.


2) without declaring them explicitly, are the 'default' and 'jsp' servlets
(from Tomcat's web.xml) known to the 'myapp' web application deployment
descriptor (web.xml)? Or do I have to re-declare them in the web.xml for
each web app?

That is, I thought adding the following would solve my problems. Alas no:

servlet-mapping
  servlet-namedefault/servlet-name
  url-pattern/node/*/url-pattern
/servlet-mapping

Either the rule is wrong or the default servlet doesn't exist.

3) when I added the rule in 2), /myapp/node/hello.jsp stopped working also,
it returns the page but doesn't execute the JSP. So I tried adding:

servlet-mapping
  servlet-namejsp/servlet-name
  url-pattern/node/*.jsp/url-pattern
/servlet-mapping

No change. Again, it seems as if the 'jsp' servlet isn't known in the webapp
(it is still declared in my Tomcat web.xml).

4) According to the spec, order of servlet-mapping tags doesn't matter
(most specific wins instead). Please confirm.

Needless to say, this doesn't work the way I expected it to. Everything is
served by the servlet.

5) is there a way to debug/trace the matching algorithms?

Any help is greatly appreciated,
Per


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




Re: Tomcat 4.0.x and OpenSSL

2002-04-17 Thread Ken Anderson

If Apache is an option, I'd use it, since current builds (for many 
distros of linux) come with mod_ssl  openssl built in. All you have to 
do is install Tomcat, configure the apache connector 'mod_webapp' (there 
are good links on the list for how to do that), then Apache will handle 
all SSL requests for you, including your /servlet requests. This is a 
much better solution, since openssl/mod_ssl is much faster than java ssl 
in tomcat standalone, and also much easier to configure, plus you get 
all the advantages of Apache's wide variety of configuration options.
Ken


Jordan C N Chong wrote:
 Dear all,
 
 I am sorry that I have to ask this question again. Is there anyone having
 experience in integrating the Tomcat 4.0.x with OpenSSL, with maybe
 mod_jk.dll or maybe Apache?
 
 Please help me. Thank you very much.
 
 
 Best regards,
 
 Jordan Cheun Ngen, Chong
 INF-4067 Universiteit Twente
 Postbus 217
 7500 AE Enschede
 The Netherlands
 
 Distributed and Embedded Systems (DIES)
 
 Office Phone: +31 53 4894655
 Web site: http://www.cs.utwente.nl/~chong
 Email Add.: [EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 



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




Re: Money for Projects

2002-04-17 Thread Christopher Reed

On Wed, 17 Apr 2002 11:37:30 -0700
Ganey, Todd [EMAIL PROTECTED] wrote:

 They don't seem to mention how much they take off the top as in:
 Affero takes a bit off the top for our expenses
 but their web site does say 100% of the donation amount is sent to
 the designated non-profit

So I am super clear. The projects get 100% of the donation. Currently
10% of the donation is charged to donor. 

 
 So which is it?
 
 


How valuable is my contribution? Share your feedback at Affero:
http://svcs.affero.net/rm.php?r=creedp=Projects

Office: 415 371 9900
[EMAIL PROTECTED]
http://www.affero.com

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




Followup to Tomcat intermittent failures

2002-04-17 Thread David Bank

Hello, and thanks to Ralph and others who tried to help me with this problem on the 
first go-round. I've got new information in my possession, and I'd like to try again.

To recap:
Our environment
Windows 2000 Server (sorry) with SP2 (we're moving to Linux, I promise!)
Apache v1.3.23
Tomcat v3.3a (running as a NT service)
Sun JDK 1.3.1_02

Our problem
Occasionally, especially after editing a JSP file or files, Tomcat will suddenly fail 
to find the .java and .class files that go with a
particular JSP. Looking in the work directory reveals that the files exist, but when 
we attempt to access that particular JSP thru Apache, we get 404 - File Not Found.  
The Apache error.log file gives no indication of a problem. The access.log file shows 
normal file access.

Upon checking, we find the following sorts of entries in Tomcat's jvm.stderr file on 
the server:

2002-04-17 17:21:48 - Ctx(/CATS) : Class not found: TOMCAT/JSP/Math/Practice/MP6.jsp
2002-04-17 17:21:48 - Ctx(/CATS) : Status code:404 request:R( /CATS + 
/Math/Practice/MP6.jsp + null) msg:null
2002-04-17 17:21:50 - Ctx(/CATS) : Status code:404 request:R( /CATS + 
/Math/Practice/MP6.jsp + null) msg:null
2002-04-17 17:21:52 - Ctx(/CATS) : Status code:404 request:R( /CATS + 
/Math/Practice/MP6.jsp + null) msg:null

We have had some success in causing this problem to go away by shutting down the 
Apache and Tomcat services, deleting the appropriate .java and .class (and .ver) 
files, restarting the Tomcat and Apache services, and hitting Reload on the browser. 
Sometimes (about 50% of the time) when we do this, Tomcat suddenly finds the files 
and the JSP runs, new .java and .class files are created, and we get the proper 
output. The remaining 50% of the time, it falls to one of two happenstances. Either 
(30%) we do the shutdown-services-and-delete routine followed by a reboot and the 
problem goes away, or (20%) we keep retrying on different clients until the problem 
suddenly vanishes.

This problem is intermittent. Sometimes we'll get it with FOO.JSP but not BAR.JSP. 
We'll then take a corrective action (described above) and suddenly we'll get it with 
BAR.JSP but not FOO.JSP. Both JSP files are very similar, and there's nothing exotic 
about our coding. Sometimes the problem goes away with some waiting.

This happens with both IE and Netscape clients, and with clients on different networks 
and behind different firewall/proxy situations, so we don't think that firewall, proxy 
or other network architecture issues are contributing factors. This happens to clients 
on the same LAN as the servers.


Needless to say, we're quite perplexed, and don't understand what is going wrong. If 
anyone has any suggestions or recommendations, please respond.

David Bank
NC CATS Project Manager
Accountability Services - Testing
NC Department of Public Instruction
301  Wilmington Street
Raleigh, NC  27601
919-807-3796



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




getServletContext() error

2002-04-17 Thread Jeff Macomber

Hi all,

I am trying to share an object from a servlet to a JSP by using the
getServletContext().setAttribute() method in the init() of my servlet.  I am
able to return the context from the JSP page but am unable to retrieve the
attribute (getAttribute() returns null). 

I have setup the Context in the Server.xml file to contain
crossContext=true and override=true for the jsp context.  This allowed
me to get the context as a non-null object.  The attribute name and case are
the same as in the setAttribute() statement.  Also in the Servlet I am
calling super.init(ServletConfig) so I am pretty sure that the Attribute is
being added correctly.  This technique worked in the 3.X versions of tomcat
but I have tried it on both 4.0.1 and 4.0.3 and am not making any progress.
If anyone has some experience with using a servlet context in a JSP I would
gladly take any advice.  

Server.xml snippet:
!--This is the Servlet Context --
Context path=/DBPoolingServer docBase=DBPoolingServer
reloadable=true crossContext=true debug=9 override=true/
!--This is the Context for the JSP webapp--
Context path=/test docBase=test
reloadable=true crossContext=true debug=9 override=true/

Servlet web.xml mappings:
servlet-mapping
  servlet-namedbpoolingservlet/servlet-name
  url-pattern/dbpoolingservlet/url-pattern
/servlet-mapping

Servlet init() snippet:

 public void init(ServletConfig config) throws ServletException {
super.init(config);

mDBPoolHandler = new DBPoolingHandler();
mDBPoolHandler.initialize();

getServletContext().setAttribute(DBPool, mDBPoolHandler);
  }

JSP Snippet:

 ServletContext lContext =
application.getContext(/DBPoolingServer/dbpoolingservlet/*);
  if (lContext != null) {
   Object lHandler = lContext.getAttribute(DBPool);
   if (lHandler != null) {
Object lConn = new String();
if (lConn !=null) {
  out.println(Connected);
}else {
  out.println(not connected);
}
   } else {
 out.println(lHandler = null);
   }
 } else {
   out.println(Context = null);
 }

The JSP example above returns a non-null lContext and then a null lHandler.
So the getAttribute() appears to be failing.  

Any help would be appreciated.

Jeff

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




Include ENTITY file in XML

2002-04-17 Thread Tesar, Mark

I am having difficulty including an ENTITY file in the Server.xml or the
Web.xml file, see the following except:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app 
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
web-app_2_3.dtd
[
!ENTITY % productBase SYSTEM WEBX.PRODUCT.ENT
%productBase;
]

web-app id=WebApp
.
.
.

I appear to be getting an error from the SAX Parser trying to read the .ENT
file.  The .ENT file just contains some ENTITY definitions.  

Has anyone else tried this and gotten it to work?

Thanks,
Mark


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




Tomcat 3.3.1 and JDBC Realms - no luck

2002-04-17 Thread colin . madere


I'm trying to do the basic setup of this and failing.  I had this working
under Tomcat 3.2 a year ago or so and don't know what I'm missing this time.

OS: WinNT
Tomcat: 3.3.1 (also tried 3.3a prior to upgrading)
DB: SQLServer

I'm doing the simple one in server.xml (not the context one) and followed
all the directions and even used my old 'web.xml' security configuration to
be sure I was doing it right.  Problem is, I never see the JDBCRealm
connected like I used to 3.2 when Tomcat starts, NOR anything related when
the page is accessed, nor am I prompted for authentication.  Basically it
looks like Tomcat is ignoring all my settings with respect to JDBCRealms.

When setting the debug lvl to 10, I do get this upon startup:

2002-04-17 17:02:47 - LogEvents: addInterceptor
org.apache.tomcat.modules.aaa.JDBCRealm@3ca5f1

but nothing when the page is accessed.

Here are the relevent sections of my server.xml and web.xml, respectively:

(server.xml)

JDBCRealm
debug=99
driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver 

connectionURL=jdbc:microsoft:sqlserver://DBServer:1433;user=bob;password=th
ing;database=WebLogin;SelectMethod=cursor
userTable=users 
userNameCol=username  
userCredCol=userpass 
userRoleTable=userroles 
roleNameCol=rolename /

(web.xml)

security-constraint
web-resource-collection
web-resource-nameResume System/web-resource-name
url-pattern/ResumeSystem/*/url-pattern
/web-resource-collection
auth-constraint
role-nameemployee/role-name
/auth-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameBasic Authentication Area/realm-name
/login-config

(also tried these web.xml entries)

security-constraint
web-resource-collection
web-resource-nameResumeSystem/web-resource-name
url-pattern/ResumeSystem/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameemployee/role-name
/auth-constraint
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
realm-nameIEM Web/realm-name
/login-config

security-role
role-nameemployee/role-name
/security-role

NOTE:
Servlets work, JDBC connection works

Searched the archives but nothing helped.

Colin Madere

P.S. I apologize for any formatting madness, Outlook hid my Plain Text
option and company policy dictates email client :(



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




RE: URGENT - Tomcat 4.0.3 thread pool allocation out-of-control bug (bugzilla 5735)

2002-04-17 Thread Drew Cox

Thanks for the info Remy.  I was not familiar with Coyote, but from the
release notes for 4.0.4-b2:

Coyote: This release include a completely new HTTP/1.1 connector and
connector
  API, called Coyote. This connector provides much improved performance and
  robustness over the default HTTP/1.1 connector.
  This connector is disabled in the default configuration, but can be
enabled
  by uncommenting an element in the server.xml configuration file.

So it seems that this new architecture would be worth trying, if only to
rule out the possibility of the thread pool bug.

We are watching the active session count fairly closely, it does get up
there during the day, but not at the times we have this problem.  Still,
can't rule it out, but there is a very good chronological match between the
leap in heap usage and tomcat creating 70 new threads in 3 minutes.

Thanks
Drew


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 2:11 PM
To: Tomcat Users List
Subject: Re: URGENT - Tomcat 4.0.3 thread pool allocation out-of-control
bug (bugzilla 5735)


 We're having a killer problem on our production server, where tomcat 4.0.3
 goes crazy allocating threads in its thread pool, until it either runs out
 of threads or heap (for us it's heap).

 Searching the list I found a reference to a (closed, not reproducible) bug
 that looks the same:
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5735

 We are using tomcat standalone, with the https connector.

 I have re-opened the bug, as it looks very much like what is happening to
 us.  I'd really like to know from people is what further specific
 information we can contribute to help diagnose this problem.

 Failing that we are looking at an emergency fallback to Tomcat 3, where we
 didn't see this problem.

There are a few possibilities:
- it happens because of GC (see the analysis posted by Glenn a while ago)
- it happens because of some bug in the thread pool; maybe, but I doubt it;
the most recent Tomcat 4 connector (Coyote b7 and up) uses the Tomcat 3
thread pool, so it would be relatively easy to solve your problem in that
case
- it happens because of some memory leak (I mentioned the possibility of
having too many active sessions, but it could be something else)

Remy


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



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




URLConnection was rejected in Apache-Tomcat Web envirment!

2002-04-17 Thread Yaogeng Cheng

Hi:
 
I was testing my servlet under Apach-Tomcat envirment in Linux system. I
opened 200 threads in my Win 2000 and kept opening URLConnections and sent
some String to the servlet using DataOutputStream dateOut = new
DataOutputStream(conn.getOutputStream());. After a period of time, a lot of
threads was failed to connect to the servlets by throwing
java.net.ConnectionException. 
 
I checked Linux machine, and I found a lot of sockets were opend by my test
client and were not closed and waiting time out. Is it normal that all these
tcp connection did not close by themself and is it the reason that some
URLConnection was rejected? How can I fix the problem? 
 
Is there any limitations with my Linux machine or TomCat on the number of
TCP socket (by URLConnection on port 8080) connections? How can I check it
and change the number?
 
Thanks
 
Yaogeng



Re: URLConnection was rejected in Apache-Tomcat Web envirment!

2002-04-17 Thread Ken Anderson

For apache limits, see:
http://httpd.apache.org/docs/mod/directives.html
For linux, try 'sysctl -a' to see a list of limits.

How many connections/sec were you creating?

Ken




Yaogeng Cheng wrote:
 Hi:
  
 I was testing my servlet under Apach-Tomcat envirment in Linux system. I
 opened 200 threads in my Win 2000 and kept opening URLConnections and sent
 some String to the servlet using DataOutputStream dateOut = new
 DataOutputStream(conn.getOutputStream());. After a period of time, a lot of
 threads was failed to connect to the servlets by throwing
 java.net.ConnectionException. 
  
 I checked Linux machine, and I found a lot of sockets were opend by my test
 client and were not closed and waiting time out. Is it normal that all these
 tcp connection did not close by themself and is it the reason that some
 URLConnection was rejected? How can I fix the problem? 
  
 Is there any limitations with my Linux machine or TomCat on the number of
 TCP socket (by URLConnection on port 8080) connections? How can I check it
 and change the number?
  
 Thanks
  
 Yaogeng
 



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




Re: URGENT - Tomcat 4.0.3 thread pool allocation out-of-control bug (bugzilla 5735)

2002-04-17 Thread Remy Maucherat

 Thanks for the info Remy.  I was not familiar with Coyote, but from the
 release notes for 4.0.4-b2:

 Coyote: This release include a completely new HTTP/1.1 connector and
 connector
   API, called Coyote. This connector provides much improved performance
and
   robustness over the default HTTP/1.1 connector.
   This connector is disabled in the default configuration, but can be
 enabled
   by uncommenting an element in the server.xml configuration file.

 So it seems that this new architecture would be worth trying, if only to
 rule out the possibility of the thread pool bug.

The Coyote version included in 4.0.4-b2 has the same thread pooling code as
the old connector (but it has a brand new HTTP/1.1 processor). The new TP
code is included in Coyote 1.0 b7 (which has slightly broken SSL
configuration code, though), and will be bundled with 4.0.4-b3 (and used as
the default in 4.next).

Remy


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




RE: getServletContext() error

2002-04-17 Thread Jeff Macomber

Please ignore the previous message I found the problem and it was just a
mistake on my side.  



-Original Message-
From: Jeff Macomber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 5:39 PM
To: 'Tomcat Users List'
Subject: getServletContext() error 


Hi all,

I am trying to share an object from a servlet to a JSP by using the
getServletContext().setAttribute() method in the init() of my servlet.  I am
able to return the context from the JSP page but am unable to retrieve the
attribute (getAttribute() returns null). 

I have setup the Context in the Server.xml file to contain
crossContext=true and override=true for the jsp context.  This allowed
me to get the context as a non-null object.  The attribute name and case are
the same as in the setAttribute() statement.  Also in the Servlet I am
calling super.init(ServletConfig) so I am pretty sure that the Attribute is
being added correctly.  This technique worked in the 3.X versions of tomcat
but I have tried it on both 4.0.1 and 4.0.3 and am not making any progress.
If anyone has some experience with using a servlet context in a JSP I would
gladly take any advice.  

Server.xml snippet:
!--This is the Servlet Context --
Context path=/DBPoolingServer docBase=DBPoolingServer
reloadable=true crossContext=true debug=9 override=true/
!--This is the Context for the JSP webapp--
Context path=/test docBase=test
reloadable=true crossContext=true debug=9 override=true/

Servlet web.xml mappings:
servlet-mapping
  servlet-namedbpoolingservlet/servlet-name
  url-pattern/dbpoolingservlet/url-pattern
/servlet-mapping

Servlet init() snippet:

 public void init(ServletConfig config) throws ServletException {
super.init(config);

mDBPoolHandler = new DBPoolingHandler();
mDBPoolHandler.initialize();

getServletContext().setAttribute(DBPool, mDBPoolHandler);
  }

JSP Snippet:

 ServletContext lContext =
application.getContext(/DBPoolingServer/dbpoolingservlet/*);
  if (lContext != null) {
   Object lHandler = lContext.getAttribute(DBPool);
   if (lHandler != null) {
Object lConn = new String();
if (lConn !=null) {
  out.println(Connected);
}else {
  out.println(not connected);
}
   } else {
 out.println(lHandler = null);
   }
 } else {
   out.println(Context = null);
 }

The JSP example above returns a non-null lContext and then a null lHandler.
So the getAttribute() appears to be failing.  

Any help would be appreciated.

Jeff

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

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




RE: Mod_jk log message question (mod_jk is so slow!!!)

2002-04-17 Thread Brandon Cruz

Does anyone at all know of any way to optimize the speed of sending requests
to tomcat from apache?  I have turned off all logging, which has helped a
bunch, is there anything else I can do?  The biggest problem is that all
static resources (.gif, .html, etc.) get sent to apache if they are inside a
webapp.

How do you get around this on tomcat 3.2.4?  Can I force apache to serve up
the images even if they are inside a webapp?  Would the newer mod_webapp
solve my problem?  I have seen a lot of posts about problems with that
connector...

Please Help!

Brandon Cruz



-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 2:38 PM
To: Tomcat Users List
Subject: Mod_jk log message question


Anyone know what this means or what causes it?


[jk_ajp13_worker.c (326)]: Error ajp13_process_callback - write failed

If nobody knows anything about it, do you know what to set my log level to
in httpd.conf so that it doesn't take up so much time for Tomcat to serve my
pages when transferring via mod_jk?


Thanks in advance for any advice!


Brandon Cruz


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



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




RE: URLConnection was rejected in Apache-Tomcat Web envirment!

2002-04-17 Thread Yaogeng Cheng

Ken:

Thanks for your info. I was creating one URLConnection per 5 seconds per
thread. When I created 400 threads, a lot of threads failed to connect after
about 5 minutes. If I run 200 threads, there was not any exception, but
connecting to server is obviously slow. So I was thinking I was creating
around 20 connections/sec to generate ConnectException. 

Is that the limit of Tomcat/Apache? I thought Tomcat/Apache is much more
powerful than that.

Any more thoughts on that?

Thanks a lot!

Yaogeng

-Original Message-
From: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 17, 2002 3:44 PM
To: Tomcat Users List
Subject: Re: URLConnection was rejected in Apache-Tomcat Web envirment!


For apache limits, see: http://httpd.apache.org/docs/mod/directives.html
For linux, try 'sysctl -a' to see a list of limits.

How many connections/sec were you creating?

Ken




Yaogeng Cheng wrote:
 Hi:
  
 I was testing my servlet under Apach-Tomcat envirment in Linux system. 
 I opened 200 threads in my Win 2000 and kept opening URLConnections 
 and sent some String to the servlet using DataOutputStream dateOut = 
 new DataOutputStream(conn.getOutputStream());. After a period of time, 
 a lot of threads was failed to connect to the servlets by throwing 
 java.net.ConnectionException.
  
 I checked Linux machine, and I found a lot of sockets were opend by my 
 test client and were not closed and waiting time out. Is it normal 
 that all these tcp connection did not close by themself and is it the 
 reason that some URLConnection was rejected? How can I fix the 
 problem?
  
 Is there any limitations with my Linux machine or TomCat on the number 
 of TCP socket (by URLConnection on port 8080) connections? How can I 
 check it and change the number?
  
 Thanks
  
 Yaogeng
 



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

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




RE: Servlet Mapping Revisited...

2002-04-17 Thread Per Kreipke

Any insight would be greatly appreciated.

 I've searched for answers and also read the previous discussion at:

 http://marc.theaimsgroup.com/?t=9868470582r=1w=2

 about servlet mapping but have some follow up questions that boil down to
 the same question: how do I exclude certain directories.

 I'm using Tomcat 4.0.3 and I've got a directory structure of:

 \myapp
\images
  tomcat.gif
\private
  hello.jsp
  index.html
\WEB-INF
   web.xml
   \classes
  Nodes.java

 and my web.xml contains the following:

 servlet
   servlet-nameNodeServlet/servlet-name
   servlet-classNodes/servlet-class
 /servlet

 servlet-mapping
   servlet-nameNodeServlet/servlet-name
   url-pattern//url-pattern
 /servlet-mapping

 - NodeServlet simply returns some text so I can see it running for now.

 - /myapp/node/hello.jsp is correctly processed, which is as it should be
 since JSP's are implicitly handled, .

 - /myapp/images/tomcat.gif is not returned, instead NodeServlet intercepts
 it

 - /myapp/node/index.html is not returned, instead NodeServlet
 intercepts it

 So, I've tried various things to fix it.

 1) does the url-mapping of / really catch all requests or should it be
 /*?

 I think / works as advertised.


 2) without declaring them explicitly, are the 'default' and 'jsp' servlets
 (from Tomcat's web.xml) known to the 'myapp' web application deployment
 descriptor (web.xml)? Or do I have to re-declare them in the web.xml for
 each web app?

 That is, I thought adding the following would solve my problems. Alas no:

 servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern/node/*/url-pattern
 /servlet-mapping

 Either the rule is wrong or the default servlet doesn't exist.

 3) when I added the rule in 2), /myapp/node/hello.jsp stopped
 working also,
 it returns the page but doesn't execute the JSP. So I tried adding:

 servlet-mapping
   servlet-namejsp/servlet-name
   url-pattern/node/*.jsp/url-pattern
 /servlet-mapping

 No change. Again, it seems as if the 'jsp' servlet isn't known in
 the webapp
 (it is still declared in my Tomcat web.xml).

 4) According to the spec, order of servlet-mapping tags doesn't matter
 (most specific wins instead). Please confirm.

 Needless to say, this doesn't work the way I expected it to. Everything is
 served by the servlet.

 5) is there a way to debug/trace the matching algorithms?

 Any help is greatly appreciated,
 Per


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




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




Tomcat 4.0 and Apache 2.0.35 (yet again)

2002-04-17 Thread Jeffrey Bonevich

There have been a number of postings regarding this subject, but none of
them has made the answer clear:

* Has anyone got Tomcat 4.0 integrated with Apache 2.0.35?

* If so, using mod_jk or mod_webapp?

* Where can I find the version of mod_jk|webapp used to do so?  Binary
or source, I do not care.

Thanx!

jeff

-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!



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




Re: processing page

2002-04-17 Thread David Lu


i did this a few weeks ago.

what i did was have the processing request send to a simple
Please wait page, and then use javascript to post the
real request to the processing servlet.  this is done in
javascript by hooking in with the body.onLoad() event.

a little messy but it works.


On 2002.04.17 03:54 Michael Reutter wrote:
 Hi!
 
 PLEASE HELP ME how to implement this with servlets:
 
 A page is requested - but tomcat needs 15-30 seconds to create the
 result!
 What I want is a page Please wait ... Your page is being processed, and
 the 
 moment tomcat has created the output, the real page is being loaded by
 the 
 browser!!!
 
 if this isn't a real tomcat-issue, please let me know where to ask my 
 question instead
 
 thanks for any help
 michi
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


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




whether tomcat is running

2002-04-17 Thread # Lalit Nagpal #


hello 2 all,

i have put the entry path-to-tomcat\startup.sh in the rc.local file but

whenever i reboot, i find tomcat is not running. Is their a way by which

i can see if tomcat is running (a way other than typing url in your browser to get 

the index page).  plz tell me if their is a way to make tomcat run as a service, so 

that if i reboot the machine tomcat should automatically start. 

Thanx



 

Lalit Nagpal



-
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax


iplanet/tomcat authentication

2002-04-17 Thread Manjiri Godbole

Hi,

I have configured tomcat to work with iPlanet. Also I am running tomcat as
NT service. Currently iPlanet is using .nsconfig and tomcat is using
tomcat-users.xml for basic authentication.

What I need is a common authentication, ie. tomcat makes use of the iPlanet
authentication. So when users access tomcat through iPlanet they do not
have to log in twice , but if they access tomcat directly they should be
prompted to log in.

Has anybody done this? Can they share their knowledge?

Thanks,
Manjiri


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




Re: processing page

2002-04-17 Thread Ken Anderson

see the server push example - countdown.java

http://www.servlets.com/jservlet2/examples/ch06/index.html#ex06_13


On 2002.04.17 03:54 Michael Reutter wrote:

Hi!

PLEASE HELP ME how to implement this with servlets:

A page is requested - but tomcat needs 15-30 seconds to create the
result!
What I want is a page Please wait ... Your page is being processed, and
the 
moment tomcat has created the output, the real page is being loaded by
the 
browser!!!

if this isn't a real tomcat-issue, please let me know where to ask my 
question instead

thanks for any help
michi

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




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







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




Re: processing page

2002-04-17 Thread Neale Rudd

Hi,

The server push example is very cool, but it only works on
Netscape 4 (not Internet Explorer or Netcape 6).  I would
recommend using the following instead:

1. Output a page that says to wait
2. Flush the result (make sure all tables are closed and the page
is complete, so it shows on the browser).
3. Perform processing
4. Output javascript to cause a page location change.

Alternatively (as some clients have javascript disabled...), use the
following method, which is what I did with some credit card processing
software once:

1. Start a session that manages the request thread and user
transaction
with the server
2. Output a wait page that contains a meta-refresh every X seconds,
and start processing in a new thread (5-10 seconds is a good wait
time).
3. If further requests come and the thread is still not finished
processing,
send a new wait page saying you are still waiting.
4. If the thread has completed when the requests come, send the
result.

Regards,
Neale Rudd
metawerx
http://www.metawerx.net



- Original Message -
From: Ken Anderson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, 18 April 2002 15:34
Subject: Re: processing page


 see the server push example - countdown.java

 http://www.servlets.com/jservlet2/examples/ch06/index.html#ex06_13

 
 On 2002.04.17 03:54 Michael Reutter wrote:
 
 Hi!
 
 PLEASE HELP ME how to implement this with servlets:
 
 A page is requested - but tomcat needs 15-30 seconds to create the
 result!
 What I want is a page Please wait ... Your page is being
processed, and
 the
 moment tomcat has created the output, the real page is being
loaded by
 the
 browser!!!
 
 if this isn't a real tomcat-issue, please let me know where to ask
my
 question instead
 
 thanks for any help
 michi
 
 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]
 
 
 




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




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




client authentication problem: IE's choose cert dialog empty

2002-04-17 Thread george moudry

I am trying to run Tomcat https with clientAuth=true, but my browser 
(IE) fails to authenticate. It presents a blank select one of your 
certificates to use when connecting screen.
My personal certificate that I usually use when connecting to Weblogic 
does not appear.
I believe that I installed the same server certs into tomcat as I 
installed into weblogic.

Question1) can anyone tell me the exact steps to create and install new 
certs on both tomcat and IE to make clientAuth work? (do I have to 
create the personal cert via OpenSSL?)
Question2) any ideas how to debug the handshake of my existing certs? 
Why do they work on Weblogic but not on Tomcat?
Thanks, George.

Some details:
I have Tomcat 4.0.3 running on 2 computers: Linux and Windows 2000.
On both Win and Linux I installed certificates via keytool:

 keytool -list
Enter keystore password:  changeit
Keystore type: jks
Keystore provider: SUN
Your keystore contains 6 entries
john_apr15, Apr 15, 2002, trustedCertEntry,
Certificate fingerprint (MD5): 
EF:B8:24:40:6C:F9:2A:D4:39:3C:C4:C8:DB:5C:14:2F
zproot, Apr 14, 2002, trustedCertEntry,
Certificate fingerprint (MD5): 
21:40:3B:EC:C5:01:5E:22:EB:90:AC:05:4E:BB:8D:0C
tomcat, Apr 14, 2002, keyEntry,
Certificate fingerprint (MD5): 
90:F3:B9:04:BD:B1:BB:DF:FE:FC:F6:6B:0F:AE:C2:95
zplevel2, Apr 14, 2002, trustedCertEntry,
Certificate fingerprint (MD5): 
8D:B0:BB:02:88:94:65:11:5E:A8:A1:99:43:FD:51:34
zplevel1, Apr 14, 2002, trustedCertEntry,
Certificate fingerprint (MD5): 
4F:59:C8:8D:35:CE:AA:C6:21:B0:14:70:A1:1C:A8:E3
mykey, Apr 14, 2002, trustedCertEntry,
Certificate fingerprint (MD5): 
E6:1C:88:86:9A:09:52:9F:A0:37:83:84:58:A2:86:DB



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