Exception message

2001-06-18 Thread cheong voonleong

hi,
  I'm new user of tomcat web server. I'm able to setup the web server and view the 
default Tomcat home page but sometimes I got an exception message displayed on my dos 
screen when I try to run the my test program. Is my program caused this exception or 
the setup ?

Thanks

Here is the exception message:  

2001-06-18 11:50:34 - Ctx( /mytest ): IOException in: 
R( /mytest + /test.html + null) Connection aborted by peer: socket write error  


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/



Re: URGENT: Problem's in configuring Tomcat 3.2.1 with Apache 1.3.20

2001-06-18 Thread Daniel Koo

no idea about your initial problem, but in order to access the Login
servlet at http://localhost/MyApp/Login you need to change the
url-pattern to just Login (assuming the context is called MyApp).. well
you don't _need_ to, since there are other ways of accessing the servlet..
 

On Thu, Jun 01, 2000 at 11:14:09AM -, Bhootnath Singh wrote:
 Yes I am able to request http://localhost/MyApp/jsp/Login.jsp .After 
 entering the login values when I press enter
 a servlet is called the URL for which is http://localhost/MyApp/Login  but 
 it is not able to locate the servlet and gives a Not found error .
 
 I have made this entry in the web.xml
 
   servlet
   servlet-nameLogin/servlet-name
   servlet-classcom.base.login.web.Login/servlet-class
   /servlet
   servlet-mapping
   servlet-nameAgentLogin/servlet-name
   url-patternAgentLogin/url-pattern
   /servlet-mapping
 



RE: URGENT: Problem's in configuring Tomcat 3.2.1 with Apache 1.3.20

2001-06-18 Thread Bhootnath Singh

I am sorry for having written the wrong servlet mapping the correct one is :


servlet
servlet-nameLogin/servlet-name
servlet-classcom.base.login.web.Login/servlet-class
/servlet
servlet-mapping
servlet-nameLogin/servlet-name
url-patternLogin/url-pattern
/servlet-mapping

Bhootnath

-Original Message-
From:   Daniel Koo [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, June 18, 2001 12:13 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:Re: URGENT: Problem's in configuring Tomcat 3.2.1 with Apache 1.3.20

no idea about your initial problem, but in order to access the Login
servlet at http://localhost/MyApp/Login you need to change the
url-pattern to just Login (assuming the context is called MyApp).. well
you don't _need_ to, since there are other ways of accessing the servlet..
 

On Thu, Jun 01, 2000 at 11:14:09AM -, Bhootnath Singh wrote:
 Yes I am able to request http://localhost/MyApp/jsp/Login.jsp .After 
 entering the login values when I press enter
 a servlet is called the URL for which is http://localhost/MyApp/Login  but 
 it is not able to locate the servlet and gives a Not found error .
 
 I have made this entry in the web.xml
 
   servlet
   servlet-nameLogin/servlet-name
   servlet-classcom.base.login.web.Login/servlet-class
   /servlet
   servlet-mapping
   servlet-nameAgentLogin/servlet-name
   url-patternAgentLogin/url-pattern
   /servlet-mapping
 



RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.


Of sure, there it is.


 Could you retry with openssl s_client in full debug mode ?

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



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 15, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 So, every seems to be well configured, but I always get this
 handshake error, what could be the problem in that case ?
 
 # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
 -key cl_key.pem -state
 Enter PEM pass phrase:
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 SSL_connect:SSLv2/v3 write client hello A
 SSL3 alert read:fatal:handshake failure
 SSL_connect:error in SSLv2/v3 read server hello A
 
 
  ok now it's done, but same error
  HandShake Failure
  
  I made the new server request, the new server certification,
  the new server x509 conversion, and the new server into tomcat
  keystore importation
  
  (I send you the new server certificate)
  
  must we also replace to CN of the client ? (I didn't do it)
  maybe the CN of the CA ?
  
  CN of you client could be what you want
 
  
   The problem is in the CN of the server cert :
  
   replace CN=server by CN=thehostname !!!
  
   Certificate:
   Data:
   Version: 3 (0x2)
   Serial Number: 2 (0x2)
   Signature Algorithm: md5WithRSAEncryption
   Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
  OU=UNIT, CN=ca
   Validity
   Not Before: Jun 14 08:47:55 2001 GMT
   Not After : Jun 14 08:47:55 2002 GMT
   Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
   Subject Public Key Info:
   Public Key Algorithm: rsaEncryption
   RSA Public Key: (1024 bit)
   Modulus (1024 bit):
   00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
   3b:c3:9f:ac:e3:5e:77:cb:7b
   Exponent: 65537 (0x10001)
   X509v3 extensions:
   X509v3 Basic Constraints:
   CA:FALSE
   Netscape Comment:
   OpenSSL Generated Certificate
   X509v3 Subject Key Identifier:
  
  44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
   X509v3 Authority Key Identifier:
  
   keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
  
   DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
   serial:00
  
   Signature Algorithm: md5WithRSAEncryption
   05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
   97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
   28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
   be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
   7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
   b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
   94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
   20:a8
  
  
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
  __
  Voila vous propose une boite aux lettres gratuite sur Voila Mail:
  http://mail.voila.fr
  
  
 
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http://mail.voila.fr
 
 
 



__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr


 error2.txt


mod_webapp.so needed

2001-06-18 Thread Jari Salmela

Hi,

Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? I need it 
asap.

thanks

-jari




Help Configuring TOMCAT 4.0.5 BETA

2001-06-18 Thread BA HIMA

I couldn't install tomcat4.0.5 beta with 
jdk1.4 on REDHAT 6.2. I get following errors.
I tried both SOURCE/BINARY it gives the same error.
I will be really thankfull to u if u could tell
me where did I went wrong or whats needed exactly
to install tomcat4.0.5 with jdk1.4.

REGARDS
Himanshu
Note: forwarded message attached.


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/


From: [EMAIL PROTECTED] (usera)
Newsgroups: comp.lang.java.programmer
Subject: TOMCAT 4.0.5 BETA
NNTP-Posting-Host: 202.68.140.53
Message-ID: [EMAIL PROTECTED]

Hi,
I'am trying to install jakarta-tomcat bet 4.05 on linux but I get
error like 'import javax.ObjectName.* not found' below is my
.bash_profile
file and error at the end:


   
ENVIRONMENT SETTING:
==
ANT_HOME=/var/local/jakarta-ant-1.3/dist
BASH=/bin/bash
BASH_VERSION=1.14.7(1)
CLASSPATH=/var/local/classes/mail.jar:/classes/activation.jar:/var/local/classes/cimapi.jar:/var/local/classes/freemarker.jar:/var/local/classes/gnuregexp.jar:/var/local/classes/imap.jar:/var/local/classes/jta.jar:/var/local/classes/mail.jar:/var/local/classes/mailapi.jar:/var/local/classes/mof2mbean.jar:/var/local/classes/mofcomp.jar:/var/local/classes/niggle.jar:/var/local/classes/oreo.jar:/var/local/classes/pop3.jar:/var/local/classes/servlet.jar:/var/local/classes/smtp.jar:/var/local/classes/webmacro.jar:/var/local/classes/xerces.jar:/var/local/classes/xml.jar:/home/download/src/j2sdk1.4.0/lib/dt.jar:/home/download/src/j2sdk1.4.0/lib/htmlconverter.jar:/home/download/src/j2sdk1.4.0/lib/tools.jar:/home/download/src/j2sdk1.4.0/jre/lib/i18n.jar:/home/download/src/j2sdk1.4.0/jre/lib/javaplu
in.jar:/home/download/src/j2sdk1.4.0/jre/lib/jce.jar:/home/download/src/j2sdk1.4.0/jre/lib/jsse.jar:/home/download/src/j2sdk1.4.0/jre/lib/rt.jar:/home/download/src/j2sdk1.4.0/jre/lib/sunrsasign.jar:/home/download/src/j2sdk1.4.0/src.zip:
COLORTERM=gnome-terminal
COLUMNS=80
DISPLAY=:0
ENV=/root/.bashrc
EUID=0
HISTFILE=/root/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
HOME=/root
HOSTNAME=dummy144
HOSTTYPE=i386
IFS=

INPUTRC=/etc/inputrc
JAVA_HOME=/home/download/src/j2sdk1.4.0
JAXP_HOME=/var/local/jaxp-1.1
JMX_HOME=/var/local/jmx-1_0_1-ri_bin
JNDI_HOME=/var/local/classes/jndi
JSSE_HOME=/var/local/jsse1.0.2
KDEDIR=/usr
LANG=en_US
LESSOPEN=|/usr/bin/lesspipe.sh %s
LINES=24
LOGNAME=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MAIL=/var/spool/mail/root
MAILCHECK=60
MYPATH=/var/local
OLDPWD=/var/local/jakarta-tomcat-4.0-b5-src/catalina/src
OPTERR=1
OPTIND=1
OSTYPE=Linux
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/var/local/jakarta-ant-1.3/dist/dist/bin:/root/bin:/home/download/src/j2sdk1.4.0/bin::/var/local/jakarta-ant-1.3/dist/dist/bin:/root/bin:/home/download/src/j2sdk1.4.0/bin:
PPID=2880
PROMPT_COMMAND=echo -ne \033]0;${USER}@${HOSTNAME}: ${PWD}\007
PS1=[\u@\h \W]\$ 
PS2= 
PS4=+ 
PWD=/var/local/jakarta-tomcat-4.0-b5-src/catalina
QTDIR=/usr/lib/qt-2.1.0
REGEXP_HOME=/var/local/jakarta-regexp-1.2
SERVLETAPI_HOME=/var/local/jakarta-servletapi-4.0-b5
SESSION_MANAGER=local/dummy144:/tmp/.ICE-unix/2614,tcp/dummy144:2487
SHELL=/bin/bash
SHLVL=4
TERM=xterm
UID=0
USER=root
USERNAME=root
WINDOWID=62914671
_=aa
i=/etc/profile.d/which-2.sh



Compiling jakarta-tomcat-4.0b5-src/catalina/
$ sh build.sh

Buildfile: build.xml

build-prepare:

copy-jaxp-jar:

build-static:

build-main:
[javac] Compiling 163 source files to
/var/local/jakarta-tomcat-4.0-b5-src/catalina/build/classes
[javac] 
/var/local/jakarta-tomcat-4.0-b5-src/catalina/src/share/org/apache/catalina/startup/CatalinaManager.java:66:
Class javax.management.NotificationBroadcasterSupport not found in
import.
[javac] import javax.management.NotificationBroadcasterSupport;
[javac]^
[javac] 
/var/local/jakarta-tomcat-4.0-b5-src/catalina/src/share/org/apache/catalina/startup/CatalinaManager.java:67:
Class javax.management.ObjectName not found in import.
[javac] import javax.management.ObjectName;
[javac]^
[javac] 
/var/local/jakarta-tomcat-4.0-b5-src/catalina/src/share/org/apache/catalina/startup/CatalinaManager.java:68:
Class javax.management.MBeanServer not found in import.
[javac] import javax.management.MBeanServer;
[javac]^
[javac] 
/var/local/jakarta-tomcat-4.0-b5-src/catalina/src/share/org/apache/catalina/startup/CatalinaManager.java:69:
Class 

Logging

2001-06-18 Thread Roland Carlsson

Hi!
I wonder if it's possible to put a servlet or bean to pre-process all or some of the 
requests that a tomcat-server will serv? The use I'm thinking of is customized logging 
to be able to track sessions much closer than the apache common log does without have 
put logging-code on every page that is requested.

Regards
Roland Carlsson





Tomcat.log

2001-06-18 Thread Rajeshwar Rao.V

Hi all,
when start Tomcat, on the console I came across mthis message.

*Starting tomcat. Check logs/tomcat.log for error messages*

But in the Tomcat environment, i did not find file called tomcat.log.
where it is going?
please clarify

-raj-



RE: SSL handshake failure URGENT

2001-06-18 Thread GOMEZ Henri

Could you try the server cert on apache/SSL or Apache-mod_ssl
and see if it works ?



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



-Original Message-
From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: RE: SSL handshake failure URGENT



Of sure, there it is.


 Could you retry with openssl s_client in full debug mode ?
 
 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .) 
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
 
 
 
 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 15, 2001 12:21 PM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 So, every seems to be well configured, but I always get this
 handshake error, what could be the problem in that case ?
 
 # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem 
 -key cl_key.pem -state 
 Enter PEM pass phrase:
 CONNECTED(0003)
 SSL_connect:before/connect initialization
 SSL_connect:SSLv2/v3 write client hello A
 SSL3 alert read:fatal:handshake failure
 SSL_connect:error in SSLv2/v3 read server hello A
 
 
  ok now it's done, but same error
  HandShake Failure
  
  I made the new server request, the new server certification, 
  the new server x509 conversion, and the new server into tomcat 
  keystore importation
  
  (I send you the new server certificate)
  
  must we also replace to CN of the client ? (I didn't do it)
  maybe the CN of the CA ?
  
  CN of you client could be what you want
  
  
   The problem is in the CN of the server cert :
   
   replace CN=server by CN=thehostname !!!
   
   Certificate:
   Data:
   Version: 3 (0x2)
   Serial Number: 2 (0x2)
   Signature Algorithm: md5WithRSAEncryption
   Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG, 
  OU=UNIT, CN=ca
   Validity
   Not Before: Jun 14 08:47:55 2001 GMT
   Not After : Jun 14 08:47:55 2002 GMT
   Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
   Subject Public Key Info:
   Public Key Algorithm: rsaEncryption
   RSA Public Key: (1024 bit)
   Modulus (1024 bit):
   
00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   
f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   
12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   
a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   
a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   
85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   
6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   
e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
   3b:c3:9f:ac:e3:5e:77:cb:7b
   Exponent: 65537 (0x10001)
   X509v3 extensions:
   X509v3 Basic Constraints: 
   CA:FALSE
   Netscape Comment: 
   OpenSSL Generated Certificate
   X509v3 Subject Key Identifier: 
   
  44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
   X509v3 Authority Key Identifier: 

   
keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31

   DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
   serial:00
   
   Signature Algorithm: md5WithRSAEncryption
   05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
   97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
   28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
   be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
   7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
   b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
   94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
   20:a8
   
   
   
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .) 
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
   
  
  
  __
  Voila vous propose une boite aux lettres gratuite sur Voila Mail:
  http://mail.voila.fr
  
  
  
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 http://mail.voila.fr
 
 
 
 


__
Voila vous propose une boite aux lettres gratuite sur Voila Mail:
http://mail.voila.fr





RE: Logging

2001-06-18 Thread Christopher Kirk


Best Approach:
In the Servlet 2.3 spec (So Tomcat 4.0) you could use Filters.. a Filter may
be run before or after a Servlet.. modifying what it sees, or what it
returns. 


- Chris.

 -Original Message-
 From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
 Sent: 18 June 2001 9:45
 To: [EMAIL PROTECTED]
 Subject: Logging
 
 
 Hi!
 I wonder if it's possible to put a servlet or bean to 
 pre-process all or some of the requests that a tomcat-server 
 will serv? The use I'm thinking of is customized logging to 
 be able to track sessions much closer than the apache common 
 log does without have put logging-code on every page that is 
 requested.
 
 Regards
 Roland Carlsson
 
 


--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



Re: Tomcat.log

2001-06-18 Thread unplug

edit server.xml and read the Logging paragraph.
It will tell you how to do it.

Rajeshwar Rao.V wrote:
 
 Hi all,
 when start Tomcat, on the console I came across mthis message.
 
 *Starting tomcat. Check logs/tomcat.log for error messages*
 
 But in the Tomcat environment, i did not find file called tomcat.log.
 where it is going?
 please clarify
 
 -raj-



RE: Tomcat.log

2001-06-18 Thread David DELGRANCHE

This file is under the logs only if there are problems during start. If this file does 
not exist, there is no error!

-Message d'origine-
De: Rajeshwar Rao.V [SMTP:[EMAIL PROTECTED]]
Date:   lundi 18 juin 2001 10:58
A:  '[EMAIL PROTECTED]'
Objet:  Tomcat.log

Hi all,
when start Tomcat, on the console I came across mthis message.

*Starting tomcat. Check logs/tomcat.log for error messages*

But in the Tomcat environment, i did not find file called tomcat.log.
where it is going?
please clarify

-raj-




Re: Logging

2001-06-18 Thread Sam Newman

Tomcat 4 supports filters, which may do exactly what you want. They are
defined on the 2.3 spec IIRC. Basically, its a bit of code that gets
accessed before the requested page. There was an article about the use of
filters i think either on javaworld or servlets.com. Assuming you want a 3.2
anwser, then you could direct all traffic through a servlet (or several)
which does the logging, and then have that servlet forward on to the
original page, e.g.:

http://myserver.com/LogAccess?page=userpage.jsp

Would log access from the client, and forward the user to userpage.jsp. Of
course, you could equally develop some tags to automatically log the
request.

sam
- Original Message -
From: Roland Carlsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 9:44 AM
Subject: Logging


 Hi!
 I wonder if it's possible to put a servlet or bean to pre-process all or
some of the requests that a tomcat-server will serv? The use I'm thinking of
is customized logging to be able to track sessions much closer than the
apache common log does without have put logging-code on every page that is
requested.

 Regards
 Roland Carlsson






RE: Tomcat.log

2001-06-18 Thread Rajeshwar Rao.V

thanks david
iso i have no probs with TC

-Original Message-
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 3:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat.log


This file is under the logs only if there are problems during start. If this
file does not exist, there is no error!

-Message d'origine-
De: Rajeshwar Rao.V [SMTP:[EMAIL PROTECTED]]
Date:   lundi 18 juin 2001 10:58
A:  '[EMAIL PROTECTED]'
Objet:  Tomcat.log

Hi all,
when start Tomcat, on the console I came across mthis message.

*Starting tomcat. Check logs/tomcat.log for error messages*

But in the Tomcat environment, i did not find file called tomcat.log.
where it is going?
please clarify

-raj-



Re: Logging

2001-06-18 Thread Roland Carlsson

Well, tomcat are only in 3.2.2 and I'm looking at what I can do today. Do I have any 
options to to loggningcode into every page??

Thanks in advance
Roland Carlsson


- Original Message - 
From: Christopher Kirk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 11:04 AM
Subject: RE: Logging


 
 Best Approach:
 In the Servlet 2.3 spec (So Tomcat 4.0) you could use Filters.. a Filter may
 be run before or after a Servlet.. modifying what it sees, or what it
 returns. 
 
 
 - Chris.
 
  -Original Message-
  From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
  Sent: 18 June 2001 9:45
  To: [EMAIL PROTECTED]
  Subject: Logging
  
  
  Hi!
  I wonder if it's possible to put a servlet or bean to 
  pre-process all or some of the requests that a tomcat-server 
  will serv? The use I'm thinking of is customized logging to 
  be able to track sessions much closer than the apache common 
  log does without have put logging-code on every page that is 
  requested.
  
  Regards
  Roland Carlsson
  
  
 
 
 --
 
 NOTICE:  The information contained in this electronic mail transmission is
 intended by Convergys Corporation for the use of the named individual or
 entity to which it is directed and may contain information that is
 privileged or otherwise confidential.  If you have received this electronic
 mail transmission in error, please delete it from your system without
 copying or forwarding it, and notify the sender of the error by reply email
 or by telephone (collect), so that the sender's address records can be
 corrected.
 




Re: Tomcat.log

2001-06-18 Thread Sam Newman

Or it errored before the log got createdbut yes, its just letting you
know where the log will be if you get errors. On a related note, does anyone
know of a good tail program for M$ which doesn't get defeated by win32 file
locking? I'd like to be able to keep an eye on my tomcat logs without having
to shut tomcat down - I HATE the file locking on windows :-(

sam
- Original Message -
From: David DELGRANCHE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 11:07 AM
Subject: RE: Tomcat.log


 This file is under the logs only if there are problems during start. If
this file does not exist, there is no error!

 -Message d'origine-
 De: Rajeshwar Rao.V [SMTP:[EMAIL PROTECTED]]
 Date: lundi 18 juin 2001 10:58
 A: '[EMAIL PROTECTED]'
 Objet: Tomcat.log

 Hi all,
 when start Tomcat, on the console I came across mthis message.

 *Starting tomcat. Check logs/tomcat.log for error messages*

 But in the Tomcat environment, i did not find file called tomcat.log.
 where it is going?
 please clarify

 -raj-





RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.

I would try to do that following a document you wrote about SSL via apache, but I was 
a little lost in your indication
(for example some Jk... directives are not recognized, [JkExtractSSL, ...] ) and I 
don't have a mod_jk.so module to load)

 Could you try the server cert on apache/SSL or Apache-mod_ssl
 and see if it works ?



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



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 
 Of sure, there it is.
 
 
  Could you retry with openssl s_client in full debug mode ?
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 15, 2001 12:21 PM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  So, every seems to be well configured, but I always get this
  handshake error, what could be the problem in that case ?
  
  # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
  -key cl_key.pem -state
  Enter PEM pass phrase:
  CONNECTED(0003)
  SSL_connect:before/connect initialization
  SSL_connect:SSLv2/v3 write client hello A
  SSL3 alert read:fatal:handshake failure
  SSL_connect:error in SSLv2/v3 read server hello A
  
  
   ok now it's done, but same error
   HandShake Failure
   
   I made the new server request, the new server certification,
   the new server x509 conversion, and the new server into tomcat
   keystore importation
   
   (I send you the new server certificate)
   
   must we also replace to CN of the client ? (I didn't do it)
   maybe the CN of the CA ?
   
   CN of you client could be what you want
  
   
The problem is in the CN of the server cert :
   
replace CN=server by CN=thehostname !!!
   
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
   OU=UNIT, CN=ca
Validity
Not Before: Jun 14 08:47:55 2001 GMT
Not After : Jun 14 08:47:55 2002 GMT
Subject: C=FR, ST=France, O=THE_ORG, OU=UNIT, CN=server
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
   
 00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
   
 f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
   
 12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
   
 a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
   
 a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
   
 85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
   
 6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
   
 e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
3b:c3:9f:ac:e3:5e:77:cb:7b
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
   
   44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
X509v3 Authority Key Identifier:
   
   
 keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
   
DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
serial:00
   
Signature Algorithm: md5WithRSAEncryption
05:0a:10:ec:dd:04:9e:8d:bb:98:2d:82:8f:c5:a0:f7:6b:06:
97:52:c0:a2:c0:f2:25:8c:81:41:a5:80:f2:1e:72:da:a5:d2:
28:df:44:77:0f:6b:df:9a:1e:06:c7:83:6a:7d:40:89:96:1f:
be:f5:2b:b2:fc:4c:91:a9:0c:89:e8:00:37:d5:a1:ab:a8:82:
7b:92:d9:ba:e9:1b:57:3d:32:62:96:ba:29:1d:3f:9b:83:64:
b8:92:37:74:16:4d:3f:be:bf:cf:25:70:03:05:06:de:d2:52:
94:ff:6a:fc:0c:32:ef:aa:ab:63:6d:e1:77:56:fc:3f:32:c6:
20:a8
   
   
   
-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
   
   
   
   __
   Voila vous propose une boite aux lettres gratuite sur Voila Mail:
   http://mail.voila.fr
   
   
  
  
  __
  Voila vous propose une boite aux lettres gratuite sur Voila Mail:
  http://mail.voila.fr
  
  
  
 
 
 
 __
 Voila vous propose une boite aux lettres gratuite sur Voila Mail:
 

Formatting Apache+Tomcat Java stack output errors: how?

2001-06-18 Thread Michael 'Mickey' Sattler

I apologize if this is covered somewhere, but I've spent the last few 
hours searching the Apache, Tomcat, and Java realms without success. 
There's just *too much* stuff out there :-|

I want to tweak the Java stack output. Specifically, I'd like to (at 
a minimum) make the whole damn thing get word-wrapped so I can see 
everything without moving horizontally. If I could get tighter 
control over the main error line, etc., I'd do more formatting...

Where is this controlled? Is there something which grabs all 
subshell-generated output, or is it more detailed as all that?

Clueless and sleepy, I thank you for a helping hand...

-- 
Michael Mickey Sattler, Geek Times   mailto:[EMAIL PROTECTED]
San Francisco, California, USAhttp://www.GeekTimes.com/michael/

I was born not knowing and have had only a little time to change that here
and there. -- Richard Feynman (1918 - 1988)



url redirection and tomcat

2001-06-18 Thread Carlos Ferreira



hi all,


i'm looking for information on url redirection and 
it's effects on tomcat:

i'm using Apache 1.3.20 / PHP 4.0.5 / Tomcat 3.2.1 
on WinMe

what i want to do is to split an url like http://www.myhost.com/product/XXX/.jsp 
be split up into http://www.myhost.com/product/.jsp; 
 being transmitted as an argument.

The rewrite rules i've used in apache are as 
follows:

RewriteEngine on
RewriteRule^/product/([^/]+)/(.*) 
/product/$2?param1=$1 [QSA]RewriteRule ^(.+) - 
[PT]
Alias /product 
"c:/Apache/tomcat/webapps/product"
In Tomcat's server.xml i've added:

 
Context path="/product" 
 
docBase="webapps/product" 
 
crossContext="false" 
debug="0" 
 
reloadable="true"   
/Context
When i try to call the page http://www.myhost.com/product/XXX/.jsp 
Tomcat says there is an error: can't find page /product/XXX/.jsp ( seems 
doesn't Apache doesn't request the correct/rewirten page name or Tomcat doesn't 
correctly understand the request... :( ; i've tried to call the page 
/product/.jsp without the rewriting rules which works fine; i've also used 
PHP pages with the rewriting rule which worked. Only have problems with servlets 
and jsp pages.

If you have any ideas... Are there any replacements 
for SimpleMapper1???


thxs in adavance for your help


Regards


Carlos Ferreira

ps sorry for the bad english :(





Re: Formatting Apache+Tomcat Java stack output errors: how?

2001-06-18 Thread Sam Newman

Well, IIRC the stack outputs simply get sent to Stderr (e.g. when you do
excp.printStackTrace()). You could make stderr point to a different stream
(can do it via the System object) and then have that output stream do the
formatting. The exception reporting provided by Alphaworks JLog can
certainly do some decent formatting (by-the-by, Jlog is NOT log4j, although
they were both originally written by IBM). If you decide to use JLog, please
check the license - it may still be under one of IBM's dodgy ones, as it was
last time I looked (e.g. free to use, but if you use it in your code IBM can
ask for your source code. And believe me, they've done it in the past!).
Personally, I found JLog a little easier to use that Log4j (if less powerful
in some regards), and would still be using it now if not for the shitty
license :-(

sam
- Original Message -
From: Michael 'Mickey' Sattler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 10:52 AM
Subject: Formatting Apache+Tomcat Java stack output errors: how?


 I apologize if this is covered somewhere, but I've spent the last few
 hours searching the Apache, Tomcat, and Java realms without success.
 There's just *too much* stuff out there :-|

 I want to tweak the Java stack output. Specifically, I'd like to (at
 a minimum) make the whole damn thing get word-wrapped so I can see
 everything without moving horizontally. If I could get tighter
 control over the main error line, etc., I'd do more formatting...

 Where is this controlled? Is there something which grabs all
 subshell-generated output, or is it more detailed as all that?

 Clueless and sleepy, I thank you for a helping hand...

 --
 Michael Mickey Sattler, Geek Times
mailto:[EMAIL PROTECTED]
 San Francisco, California, USAhttp://www.GeekTimes.com/michael/

 I was born not knowing and have had only a little time to change that here
 and there. -- Richard Feynman (1918 - 1988)





Re: mod_webapp.so needed

2001-06-18 Thread james

It would help if you specified for which platform.
 
 Hi,
 
 Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? I need 
it asap.
 
 thanks
 
 -jari
 




Re: Default web.xml

2001-06-18 Thread Rob Agar

we also found this to be the case when setting up mime types.  I think it's
a 'feature' - if you create a new context, only the local web.xml has any
effect.

Rob


pretty
- Original Message -
From: Timothy Shadel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 8:07 PM
Subject: Default web.xml


 I have a quick question about how the default web.xml found in the conf
directory is supposed to act.  The Tomcat User's guide says it acts as a
default web.xml for all web applications.  I tried to add the following to
it:

 servlet-mapping  !-- This was there by default --
 servlet-name
 jsp
 /servlet-name
 url-pattern
 *.jsp
 /url-pattern
 /servlet-mapping
 servlet-mapping  !-- I added this --
 servlet-name
 jsp
 /servlet-name
 url-pattern
 *.tem
 /url-pattern
 /servlet-mapping

 because we wanted to logically separate our JSP files used as templates
from those providing major content.  However, accessing a valid JSP file
that's been renamed with a .tem extension returns only the actual file
contents instead of being translated as a JSP.  The same servlet-mapping
tag works perfectly in an application's web.xml.  Am I supposed to be able
to modify the web.xml in the conf directory and have it affect all
applications, or is it only supposed to work with the one that comes with
Tomcat by default?

 Thanks,

 Tim Shadel






Problem with Postgresql JDBC driver

2001-06-18 Thread Ryszard Lach

Hi!

I have serious problem with JDBC driver for postgresql. I'm using tomcat 3.2.2
with jdk1.3.1 (I've tried 1.2.2 too). I've tried to put jdbc7.0-1.2.jar into:

$TOMCAT_HOME/lib
$TOMCAT_HOME/webapp/my_app/WEB-INF/lib

and unpacked jdbc7.0-1.2.jar into 

$TOMCAT_HOME/classes
$TOMCAT_HOME/webapp/my_app/WEB-INF/classes

and I still receive an error (included at bottom of the message) while calling
Class.forName("postgresql.Driver") in a .jsp file located in .../webapp/my_app
directory.


I'm sure that classpath containing jdbc.*.jar is used by tomcat's startup
script, but it seems I'm missing something...

What could be wrong ? Do I have to configure workers or webapps in any special
way? 

Any help would be very appreciated.

This is the error I receive:

Error: 500

Location: /test_pgsql.jsp

Internal Servlet Error:

javax.servlet.ServletException: No suitable driver
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java, 
Compiled Code)
at 
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java,
 Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled 
Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java, 
Compiled Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, 
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled 
Code)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled 
Code)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java,
 Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, 
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

Root cause: 

java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java, Compiled Code)
at 
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java,
 Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled 
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java, 
Compiled Code) 
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled 
Code)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, 
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled 
Code)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java,
 Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, 
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)


-- 
** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/



socket write and Connection reset by peer

2001-06-18 Thread Venkatesh T


Hi

  I am getting frequently these errors.   I am using some flash and gif
files in my jsp page.  For each and every image i am using i am getting
the following errors. But the pages displaying properly.

 Ctx(  ): IOException in: R(  + /ssp/jsp/righttop.swf + null) socket
write error (code=10053)

 Ctx(  ): IOException in: R(  + /ssp/jsp/true.gif + null) Connection
reset by peer: socket write error


Can any one know about this errors.  Tell me how to remove these errors
from the console.

regards
venkatesh



Vs: mod_webapp.so needed

2001-06-18 Thread Jari Salmela

SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 12:54 PM
Subject: Re: mod_webapp.so needed


 It would help if you specified for which platform.
  
  Hi,
  
  Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? I 
need it asap.
  
  thanks
  
  -jari
  
 
 




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Tim Stoop

Ryszard Lach wrote:
 
 and I still receive an error (included at bottom of the message) while calling
 Class.forName(postgresql.Driver) in a .jsp file located in .../webapp/my_app
 directory.

Try not using the DriverManager, like so:

Driver drv = org.postgresql.Driver;
Connection conn = drv.connect(jdbc:postgresql:localhost, username,
password);

Worked for me (although you should look for the exact connect-method,
I'm not very sure about this one).

Kind regards,
Tim Stoop



Re: Vs: mod_webapp.so needed

2001-06-18 Thread james

I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 7.1 (I 
assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload it to 
my server?

James
 
 SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
 
 
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 12:54 PM
 Subject: Re: mod_webapp.so needed
 
 
  It would help if you specified for which platform.
   
   Hi,
   
   Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? I 
need it asap.
   
   thanks
   
   -jari
   
  
  
 




RE: What are EJB

2001-06-18 Thread Reynir Hübner

What do you mean by include EJBs in Tomcat4 ?

It´s possible to use EJBs with tomcat in current verison,to do so you
can download Jboss (www.jboss.org) and you have an EJB container...

bye
-r




-Original Message-
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 10:08 PM
To: [EMAIL PROTECTED]
Subject: Re: What are EJB


bean work in the name
Correction. *bean* word (not work)


- Original Message -
From: Luba Powell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 17, 2001 1:17 PM
Subject: Re: What are EJB


 putting Tomcat in your message was smart.  this way we won't get in
 trouble with our colleagues.

 From were I stand the only thing that EJB and JavaBeans have in
 common is the presence of bean work in the name.

 I am sure that you know what is the advantage of JavaBeans since
 you wrote some.  EJB is normally used in e-commerce applications
 that remotely communicate with enterprise databases and maintain
 sessions across many machines.  Again, from where I stand - they
 are perfect for some e-commerce apps, but it is not the greatest fit
 of engineering.

 There is a way to include EJBs in Tomcat4.  Haven't tried it yet.

 r/luba


 - Original Message -
 From: Alexandre Bouchard [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 17, 2001 1:07 PM
 Subject: What are EJB


  I've got a simple question: What are Enterprise Java Beans. I mean,
what's
  the difference between EJB and the beans I develop with JDK and run
with
  Tomcat?
 
  Thx
 
 





Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Ryszard Lach

On Mon, Jun 18, 2001 at 12:52:56PM +0200, Tim Stoop wrote:
 Ryszard Lach wrote:
  
  and I still receive an error (included at bottom of the message) while calling
  Class.forName("postgresql.Driver") in a .jsp file located in .../webapp/my_app
  directory.
 
 Try not using the DriverManager, like so:
 
 Driver drv = org.postgresql.Driver;
 Connection conn = drv.connect("jdbc:postgresql:localhost", "username",
 "password");
 
 Worked for me (although you should look for the exact connect-method,
 I'm not very sure about this one).
 

The effect is the same. I forgott to write, that normal (java) program using 
this driver works fine. I've checked also whether java executable
($JAVA_HOME/bin/java) opens apropriate files (using unix strace command) and I
found it doaes.

Do you have any other suggestions ? 

R.

-- 
** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/



RE: Exception message

2001-06-18 Thread Michael Wentzel

   I'm new user of tomcat web server. I'm able to setup the 
 web server and view the default Tomcat home page but 
 sometimes I got an exception message displayed on my dos 
 screen when I try to run the my test program. Is my program 
 caused this exception or the setup ?
 
 Thanks
 
 Here is the exception message:  
 
 2001-06-18 11:50:34 - Ctx( /mytest ): IOException in: 
 R( /mytest + /test.html + null) Connection aborted by peer: 
 socket write error  


This is not really an exception.  What is happening is the
browser realizes that it already has a cached copy of the doc
and closes the connection with the server before transfer has
been completed.  The server has no way of knowing the difference
between a erroneous socket close and a pre-empted socket close
such as this one.  Therefore it assumes an error since it can't
write to a socket which was previously open.



---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Tomcat starting problem

2001-06-18 Thread Randy Layman


The problem is that the JAVA_HOME environment variable is not set
correctly - it has an equal sign in it (that's why its saying
usr/java1.2=/bin/java: not found).  It also looks like the classpath has
the same issue.  I would suggest looking though the environment variables
and resetting them without the equals sign.  If they aren't in the
environment variables then look through the script, the shell might have a
different syntax for the set command in use.

Randy

-Original Message-
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 10:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat starting problem


Using classpath:
/user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/
./tomcat.sh: usr/java1.2=/bin/java: not found
 
This should be simple.  Just go thru each directory in you classpath 
and make sure that those directories indeed exist as well as their content.
Also make sure that your ENV variables are set correctly.
 
Regards,
L
 
- Original Message - 
From: yilmaz 
To: [EMAIL PROTECTED] 
Sent: Saturday, June 16, 2001 4:14 AM
Subject: Re: Tomcat starting problem


Hi Luba,
dbs[160] startup.sh  was not part of the error message
it is the command i used to start the tomcat.
the following 
Using classpath:
/user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/
./tomcat.sh: usr/java1.2=/bin/java: not found

is the error message.
any help ?
thanks

- Original Message - 
From: Luba Powell 
To: [EMAIL PROTECTED] 
Sent: Saturday, June 16, 2001 12:34 AM
Subject: Re: Tomcat starting problem


dbs[160] startup.sh

This an OS error, not tomcat.  Unix admin should be able to
help you
- Original Message - 
From: yilmaz 
To: [EMAIL PROTECTED] 
Sent: Friday, June 15, 2001 11:58 AM
Subject: Tomcat starting problem


hi everyone
at first it looks as it is a very basic question
though not so..
i have installed tomcat nearly one month ago, on unix OS
everything went fine, it was working smoothly.
however, today when i tried to access the files i put in hte webapps
directory previously , i couldn't.
the server dosen't work anymore. the reason is that when the http server of
our campus restarted, all the 
environment variables set by users have been cancelled,
so i tried to set again according to the instructions on hte tomcat docs
as follows:
setenv TOMCAT_HOME  /user/staff/wapteam/tomcat
setenv JAVA_HOME  /usr/java1.2/
setenv CLASSPATH user/staff/wapteam/tomcat/bin
where tomcat is the directory that tomcat files reside
when i try to start the server by :
'startup.sh '   command
it gives the following error:
dbs[160] startup.sh
Using classpath:
/user/staff/wapteam/tomcat=/lib/*:/user/staff/wapteam/tomcat/
./tomcat.sh: usr/java1.2=/bin/java: not found
what is wrong ?
can someone help me , please?
thanks in advance :)
cheers



RE: TomCat with win2000 and IIS....help...urgent

2001-06-18 Thread Randy Layman


The problem seems to be in your Tomcat configuration - the isapi
redirect log file indicates that the 404 error is coming from Tomcat.  Check
your tomcat logs or console for messages about the request and where it was
trying to go.

Randy


 -Original Message-
 From: Ruairi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, June 16, 2001 3:40 PM
 To: [EMAIL PROTECTED]
 Subject: TomCat with win2000 and IIShelp...urgent
 
 
 Hi I am trying to use TomCat with IIS on Win2000
 
 It's not working...and I'm very sadHELPPP.  Any 
 suggestions would be
 greatly appreciated.
 
 TomCat is working on its own through port 8080 and it looks 
 great.  But the
 IIS filter is not working, and yes the dll has execute privilages.
 
 I try to request:
 http://localhost/examples/jsp/index.html
 
 The registry settings are:
 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
 Redirector\1.0]
 extension_uri=/jakarta/isapi_redirect.dll
 log_file=C:\\jakarta-tomcat-3.2.2\\logs\\iis_redirect.log
 log_level=debug
 worker_file=C:\\jakarta-tomcat-3.2.2\\conf\\workers.properties
 worker_mount_file=C:\\jakarta-tomcat-3.2.2\\conf\\uriworker
 map.properties
 
 
 
 
 Tomcat.log gives this:
 2001-06-16 09:33:14 - Ctx(  ): 404 R(  + 
 /jakarta/isapi_redirect.dll + null)
 null
 
 
 
 These are the ISAPI logs for this request:
 [jk_isapi_plugin.c (408)]: HttpFilterProc started
 [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
 /examples/jsp/index.html
 [jk_uri_worker_map.c (345)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (407)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a
 match ajp12
 [jk_isapi_plugin.c (439)]: HttpFilterProc 
 [/examples/jsp/index.html] is a
 servlet url - should redirect to ajp12
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if
 [/examples/jsp/index.html] is points to the web-inf directory
 [jk_isapi_plugin.c (408)]: HttpFilterProc started
 [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
 /jakarta/isapi_redirect.dll
 [jk_uri_worker_map.c (345)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (435)]: 
 jk_uri_worker_map_t::map_uri_to_worker, done
 without a match
 [jk_isapi_plugin.c (452)]: HttpFilterProc 
 [/jakarta/isapi_redirect.dll] is
 not a servlet url
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if
 [/jakarta/isapi_redirect.dll] is points to the web-inf directory
 [jk_isapi_plugin.c (517)]: HttpExtensionProc started
 [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
 [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
 [jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for 
 name ajp12
 [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
 [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
 [jk_connect.c (108)]: Into jk_open_socket
 [jk_connect.c (115)]: jk_open_socket, try to connect socket = 3556
 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
 [jk_connect.c (140)]: jk_open_socket, return, sd = 3556
 [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 3556
 [jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
 [jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the 
 ajp12 start
 sequence
 [jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
 [jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the 
 terminating
 mark
 [jk_ajp12_worker.c (477)]: ajpv12_handle_request done
 [jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
 [jk_ajp12_worker.c (493)]: Into ajpv12_handle_response
 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read 
 Status: 404 Not
 Found
 [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read 
 Status=404 Not Found
 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Content-Type:
 text/html
 [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read
 Content-Type=text/html
 [jk_ajp12_worker.c (547)]: ajpv12_handle_response, allocating 
 header arrays
 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read 
 Content-Length: 201
 [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read 
 Content-Length=201
 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read 
 Servlet-Engine:
 Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.1; 
 Windows 2000 5.0
 x86; java.vendor=Sun Microsystems Inc.)
 [jk_ajp12_worker.c (535)]: ajpv12_handle_response, read
 Servlet-Engine=Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; 
 Java 1.3.1;
 Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
 [jk_ajp12_worker.c (507)]: ajpv12_handle_response, read
 [jk_ajp12_worker.c (509)]: ajpv12_handle_response, headers are done
 [jk_ajp12_worker.c (568)]: ajpv12_handle_response, starting response
 [jk_isapi_plugin.c (201)]: Into jk_ws_service_t::start_response
 [jk_ajp12_worker.c 

Vs: Vs: mod_webapp.so needed

2001-06-18 Thread Jari Salmela

why notI can´t lose anything...:)thanks! and yes, we are talking about RH.
Will you give me address where I can download it?

-jari

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 1:46 PM
Subject: Re: Vs: mod_webapp.so needed


 I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 7.1 (I 
assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload it to 
my server?
 
 James
  
  SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
  
  
  
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 12:54 PM
  Subject: Re: mod_webapp.so needed
  
  
   It would help if you specified for which platform.

Hi,

Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? I 
need it asap.

thanks

-jari

   
   
  
 
 




RE: Problem starting NT service

2001-06-18 Thread Randy Layman


Check the jvm.stdout/.stderr files, but a common cause of this is
spaces in the path to the JVM or Tomcat Home.



 -Original Message-
 From: Barney Dalgarno [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, June 17, 2001 2:48 AM
 To: [EMAIL PROTECTED]
 Subject: Problem starting NT service
 
 
 Hi,
 
 I'm trying to install Jakarta Tomcat as an NT service. I have 
 sucessfully 
 installed and configured Jakarta, and my servlets are working 
 fine when I 
 start Jakarta using startup.bat.
 
 I am following the instructions in Gal Shachor's documentation.
 
 I am using Jakarta 3.2.2 and JDK 1.3.1
 
 I can install the service using the command:
 jk_nt_service -I Jakarta wrapper.properties
 
 But when I go to start it using the command:
 net start Jakarta
 
 I get the following messages:
 
 The Jakarta service is starting.
 The Jakarta service could not be started.
 
 The service did not report an error.
 
 I get a similar error if I try to start it using the Services 
 Contrl Panel.
 
 Your help appreciated,
 
 Barney Dalgarno
 
 
 
 ***
 * Barney Dalgarno *
 * Lecturer in Information Technology  *
 * School of Information Studies   *
 * Charles Sturt University*
 * Locked Bag 675  *
 * Wagga Wagga, NSW, 2678, Australia   *
 * Email: [EMAIL PROTECTED] *
 * WWW: http://farrer.riv.csu.edu.au/~dalgarno *
 * Phone: 02 6933 2305 *
 * Fax: 02 6933 2733   *
 ***
 



RE: Getting file information

2001-06-18 Thread Michael Wentzel

 Greetings to all, newbie here.
 Would like to ask if anyone knows how to get the file 
 information such as the file name(not the entire path)
 of the running JSP file?
 
 Let's say i were to run confirmation.jsp, how do i get the 
 filename to a string when confirmation.jsp is running?
 I tried getRealpath and it returns the entire directory with 
 the filename.Could i just get the filename instead?

Why not just do a substring on getRealPath() based on the
lastIndexOf(FILE_SEPARATOR)?  Parsing this String is not
very complicated.  You can even write it in such a way that
code will not have to be changed if it is moved to a OS with a
different file separator( using java.io.File.separator ).


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: access log for Tomcat

2001-06-18 Thread Randy Layman


There isn't a module for Tomcat that does this that I know of (and
nothing built into Tomcat, regardless of what Luba says), although it should
be fairly easy to do - you need to write a RequestInterceptor that just
logs, not intercepts, the requests.

Randy

-Original Message-
From: David Rosenstark [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 17, 2001 7:45 AM
To: '[EMAIL PROTECTED]'
Subject: access log for Tomcat


Is there some way to configure Tomcat to have a log of all web requests
coming in similar to access_log in Apache?
 
TIA,
David



Re: Vs: Vs: mod_webapp.so needed

2001-06-18 Thread james

Give this a whirl:

http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so

The next part is actually configuring it?!

James
 
 why notI can´t lose anything...:)thanks! and yes, we are talking about RH.
 Will you give me address where I can download it?
 
 -jari
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 1:46 PM
 Subject: Re: Vs: mod_webapp.so needed
 
 
  I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 7.1 (I 
assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload it to 
my server?
  
  James
   
   SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
   
   
   
   - Original Message - 
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, June 18, 2001 12:54 PM
   Subject: Re: mod_webapp.so needed
   
   
It would help if you specified for which platform.
 
 Hi,
 
 Can somebody tell me where I can get mod_webapp.so or perhaps send it to me? 
I need it asap.
 
 thanks
 
 -jari
 


   
  
  
 




request and jsp:include

2001-06-18 Thread Antoni Reus

Hi, first of all I would like to excuse for my poor english.

I'm using tomcat 3.2.2 in a Win NT 4

I'm trying to do some kinda printing template, so calling de template (
imprimir.jsp )
with a parameter for the page to show it whould display it in a
printer friendly way.

In imprimir.jsp is something like this:

html
...
...
jsp:include page=%request.getParameter(pagina) % /
...
..
/html

when I call localhost:8080/imprimir.jsp?pagina=listado.jsp
I get a tomcat exception when parsing imprimir.jsp, saying that
pagina has no value.

But if I write imprimr.jsp  this way:

html
...
...
%! String pagina = request.getParameter(pagina);
%
jsp:include page=%=pagina % /
...
..
/html

it works!!

Someone could explain this???




RE: problem in getHeader()

2001-06-18 Thread Randy Layman


Uhh, headers don't work that way.  You send headers to help the
browser and network know what they are working with.  The browser sets the
headers for the new request to help you and the network deal with the
request.  One set of headers has no bearing on any others.

Randy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 2:18 AM
 To: A mailing list about Java Server Pages specification and reference
 Cc: A mailing list for discussion about Sun Microsystem's Java Servlet
 API Technology.; [EMAIL PROTECTED]
 Subject: problem in getHeader()
 
 
 i can't  get headers in second  page set in first page .
 i am  using  tomact 3.2.2 .
 
 
 this is my detail problem
 this is first.jsp
 response.setHeader(Cache-Control, no-cache);
  response.setHeader(Pragma, no-cache);
  response.setDateHeader(max-age, 0);
  response.setDateHeader(Expires, 0);
 
 this is second.jsp
 
  Enumeration e = request.getHeaderNames();
 
  while(e.hasMoreElements()){
   String  = (String) e.nextElement();
   System.out.println(Header is  = ++  = +
 request.getHeader());
 
 
  }
 
  System.out.println( Our Header is  = +
 request.getDateHeader(max-age));
  System.out.println( Our Header is  =  +
 request.getDateHeader(Expires));
 
 i can't get  headers in second.jsp  what  i set in first.jsp .
 i am  using  tomact 3.2.2
 



OutOfMem

2001-06-18 Thread Shai Deljo

Does anyone know the reason for this msg :

2001-06-18 07:47:31.729029 2001-06-18 07:47:31 - ThreadPool: Caught
exception executing org.apache.tomcat.service.TcpWorkerThread@47
8a2d, terminating thread - java.lang.OutOfMemoryError: unable to create new
native thread
2001-06-18 07:47:31.729051  at java.lang.Thread.start(Native Method)
2001-06-18 07:47:31.729057  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.init(ThreadPool.java:465
)
2001-06-18 07:47:31.729067  at
org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360)
2001-06-18 07:47:31.729076  at
org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:206)
2001-06-18 07:47:31.729084  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405)
2001-06-18 07:47:31.729093  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
2001-06-18 07:47:31.729103  at java.lang.Thread.run(Thread.java:484)

I get it before i reach the Thread limit of the tomcat or the machine, 
Does it have something to do with number of sessions in the apache ?

10x
Shai




Vs: Vs: Vs: mod_webapp.so needed

2001-06-18 Thread Jari Salmela

yesi know.i have bad feeling that it´s not going to be easy, because i have 
put together Apache 1.3.19, Tomcat 4b5 and Chilisoft ASP 3.6.and of course these 
don´t want work together ( or mayby it´s better say that ASP don´t want work ).btw 
have anyone try this before? 

-jari

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 2:13 PM
Subject: Re: Vs: Vs: mod_webapp.so needed


 Give this a whirl:
 
 http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
 
 The next part is actually configuring it?!
 
 James
  
  why notI can´t lose anything...:)thanks! and yes, we are talking about RH.
  Will you give me address where I can download it?
  
  -jari
  
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 1:46 PM
  Subject: Re: Vs: mod_webapp.so needed
  
  
   I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 7.1 
(I assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload it 
to my server?
   
   James

SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 12:54 PM
Subject: Re: mod_webapp.so needed


 It would help if you specified for which platform.
  
  Hi,
  
  Can somebody tell me where I can get mod_webapp.so or perhaps send it to 
me? I need it asap.
  
  thanks
  
  -jari
  
 
 

   
   
  
 
 




Re: Vs: Vs: Vs: mod_webapp.so needed

2001-06-18 Thread james

I wasn't actually thinking of that, the documentation is a touch sketchy, it doesn't 
say your webapp directives *MUST* appear within a VirtualHost directive, etc, etc, 
fortunately it throws loads of debug messages to STDERR (error_log).

Theoretically, I can't see why you should encounter problems, Apache's handler 
mechanism allows a nice degree of abstraction, handlers should operate pretty 
autonomously without having any bearing on the operation of others. 

Proviso - 'should' !

 
 yesi know.i have bad feeling that it´s not going to be easy, because i have 
put together Apache 1.3.19, Tomcat 4b5 and Chilisoft ASP 3.6.and of course these 
don´t want work together ( or mayby it´s better say that ASP don´t want work 
).btw have anyone try this before? 
 
 -jari
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 2:13 PM
 Subject: Re: Vs: Vs: mod_webapp.so needed
 
 
  Give this a whirl:
  
  http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
  
  The next part is actually configuring it?!
  
  James
   
   why notI can´t lose anything...:)thanks! and yes, we are talking about 
RH.
   Will you give me address where I can download it?
   
   -jari
   
   - Original Message - 
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, June 18, 2001 1:46 PM
   Subject: Re: Vs: mod_webapp.so needed
   
   
I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 
7.1 (I assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload 
it to my server?

James
 
 SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
 
 
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 12:54 PM
 Subject: Re: mod_webapp.so needed
 
 
  It would help if you specified for which platform.
   
   Hi,
   
   Can somebody tell me where I can get mod_webapp.so or perhaps send it to 
me? I need it asap.
   
   thanks
   
   -jari
   
  
  
 


   
  
  
 




Session with IE

2001-06-18 Thread Jose Luis Rodriguez

My developed employment is IIS 4.0, Tomcat 3.2.2 under Windows Nt 4.0.

I have a problem when I run mi application with IE 5.5, this lose the
session inmediatly that I run another time. With Netscape Communicator
that's Ok.

My application is in:
webapps/jsp_jsp/inicio.html, procesar_inicio.jsp, inicio.jsp,
responde.jsp
webapps/jsp_jsp/Web-inf/classes/jsp_jsp/beans/ManejoDatos.class
Only it show de session from a jsp to other jsp.

In SYSTEM32/LogFiles/W3SVC1 I see an error number 200 that say so:
12:04:51 197.100.1.12 GET /jsp_jsp/inicio.html 200
12:04:53 197.100.1.12 POST /jsp_jsp/procesar_inicio.jsp 200
12:04:53 197.100.1.12 GET /jsp_jsp/Inicio.jsp 200
12:04:55 197.100.1.12 GET /jsp_jsp/Responde.jsp 200

isapi.log is empty.

jasper.log:
2001-06-18 02:20:03 - JspEngine -- /procesar_inicio.jsp
2001-06-18 02:20:03 -   ServletPath: /procesar_inicio.jsp
2001-06-18 02:20:03 -  PathInfo: null
2001-06-18 02:20:03 -  RealPath:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\procesar_inicio.jsp
2001-06-18 02:20:03 -RequestURI: /jsp_jsp/procesar_inicio.jsp
2001-06-18 02:20:03 -   QueryString: null
2001-06-18 02:20:03 -Request Params:
2001-06-18 02:20:03 -password = fghj
2001-06-18 02:20:03 -login = hjfgh
2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
2001-06-18 02:20:03 - JspEngine -- /Responde.jsp
2001-06-18 02:20:03 -   ServletPath: /Responde.jsp
2001-06-18 02:20:03 -  PathInfo: null
2001-06-18 02:20:03 -  RealPath:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Responde.jsp
2001-06-18 02:20:03 -RequestURI: /jsp_jsp/Responde.jsp
2001-06-18 02:20:03 -   QueryString: null
2001-06-18 02:20:03 -Request Params:
2001-06-18 02:20:03 -password = fghj
2001-06-18 02:20:03 -login = hjfgh
2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
2001-06-18 02:20:05 - JspEngine -- /Inicio.jsp
2001-06-18 02:20:05 -   ServletPath: /Inicio.jsp
2001-06-18 02:20:05 -  PathInfo: null
2001-06-18 02:20:05 -  RealPath:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Inicio.jsp
2001-06-18 02:20:05 -RequestURI: /jsp_jsp/Inicio.jsp
2001-06-18 02:20:05 -   QueryString: null
2001-06-18 02:20:05 -Request Params:
2001-06-18 02:20:05 - classpath according to the Servlet Engine es:
D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes


My configuration is:

uriworkermap.properties:

# Mount my application context to the ajp12 worker
/jsp_jsp/*=ajp12

server.xml:

Context path=/jsp_jsp
 docBase=webapps/jsp_jsp
 crossContext=true
 debug=0
 reloadable=true 
/Context


workers.properties:

workers.tomcat_home=D:\jakarta-tomcat-3.2.2
workers.java_home=D:\jdk1.2.2
ps=\

worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
#worker.ajp13.cachesize

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

worker.inprocess.type=jni

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar

worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
worker.inprocess.cmd_line=-config
worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
worker.inprocess.cmd_line=-home
worker.inprocess.cmd_line=$(workers.tomcat_home)
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll

worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)

I haven't web.xml for my application.

What I do bad?


Thanks in advance,
José Luis












error 500

2001-06-18 Thread Karsa . Keith

Below is the error we are getting when trying to deploy java server pages.
Can you look into it or pass it along to someone who is familiar with AppDev
2.0 and JSPs? We would appreciate some feedback as to what might be causing
this error. also, do we need SAS v8.2 to run Appdev studio 2.0?
Thanks,



On WINNT4.0...

Error: 500
Location: /examples/jsp/wholesale.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fwholesale
_0002ejspwholesale_jsp_0.java:70: Undefined variable, class, or package
name: com
 
out.print(com.sas.servlet.beans.html.RB.getStringResource(WebEISJSP.needsFr
ames.txt));
  ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)






Don't get me wrong

2001-06-18 Thread lists


Don't get me wrong, this is a nice list and all, 
but attempts to unsubscribe (by emailing to 
[EMAIL PROTECTED] ) have 
been unsuccessful.  Anyone know of there another way?

Christopher Lambrou,
CGL Computer Services, Inc.
Empire State Building, 
PMB 16J Suite 3304 
New York, NY 10118
Tel: (212) 971-9723
Fax: (212) 564-1135
URL: http://www.cglcomputer.com
Email: [EMAIL PROTECTED]




Re: Default web.xml

2001-06-18 Thread Brett M. Bergquist

In tomcat 3.2.x, the web.xml in the conf directory is not used at all.  I
fact, you can completely remove it with no ill effects.  Internally, Tomcat
3.2.x compiles in some defaults; mime mappings, the JSP servlet mapping,
etc.  In your application's web.xml specify anything that you need too
override the defaults.  I believe I read the Tomcat 4.0 will once again have
a default web.xml.  I'm not sure about Tomcat 3.3, however.  Check the
Tomcat mailing list archives for more info

- Original Message -
From: Timothy Shadel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 3:07 PM
Subject: Default web.xml


 I have a quick question about how the default web.xml found in the conf
directory is supposed to act.  The Tomcat User's guide says it acts as a
default web.xml for all web applications.  I tried to add the following to
it:

 servlet-mapping  !-- This was there by default --
 servlet-name
 jsp
 /servlet-name
 url-pattern
 *.jsp
 /url-pattern
 /servlet-mapping
 servlet-mapping  !-- I added this --
 servlet-name
 jsp
 /servlet-name
 url-pattern
 *.tem
 /url-pattern
 /servlet-mapping

 because we wanted to logically separate our JSP files used as templates
from those providing major content.  However, accessing a valid JSP file
that's been renamed with a .tem extension returns only the actual file
contents instead of being translated as a JSP.  The same servlet-mapping
tag works perfectly in an application's web.xml.  Am I supposed to be able
to modify the web.xml in the conf directory and have it affect all
applications, or is it only supposed to work with the one that comes with
Tomcat by default?

 Thanks,

 Tim Shadel





Vs: Vs: Vs: Vs: mod_webapp.so needed

2001-06-18 Thread Jari Salmela

Yes, Apache handle this, but I have read Chilisoft´s documentation and it says it 
works only Apache 1.3.14 or older. And Chilisoft and Tomcat won´t work together, but I 
had tomcat 3.2.1 and chilisoft asp 3.5.2 together and working.

I haven´t try this mod_webapp.so yet, and I think testing is going to 
tomorrow.hope it´s work and i don´t stuck somewhere. Thanks for help!

-jari

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 2:40 PM
Subject: Re: Vs: Vs: Vs: mod_webapp.so needed


 I wasn't actually thinking of that, the documentation is a touch sketchy, it doesn't 
say your webapp directives *MUST* appear within a VirtualHost directive, etc, etc, 
fortunately it throws loads of debug messages to STDERR (error_log).
 
 Theoretically, I can't see why you should encounter problems, Apache's handler 
mechanism allows a nice degree of abstraction, handlers should operate pretty 
autonomously without having any bearing on the operation of others. 
 
 Proviso - 'should' !
 
  
  yesi know.i have bad feeling that it´s not going to be easy, because i 
have put together Apache 1.3.19, Tomcat 4b5 and Chilisoft ASP 3.6.and of course 
these don´t want work together ( or mayby it´s better say that ASP don´t want work 
).btw have anyone try this before? 
  
  -jari
  
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 2:13 PM
  Subject: Re: Vs: Vs: mod_webapp.so needed
  
  
   Give this a whirl:
   
   http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
   
   The next part is actually configuring it?!
   
   James

why notI can´t lose anything...:)thanks! and yes, we are talking about 
RH.
Will you give me address where I can download it?

-jari

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 1:46 PM
Subject: Re: Vs: mod_webapp.so needed


 I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 
7.1 (I assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload 
it to my server?
 
 James
  
  SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
  
  
  
  - Original Message - 
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 12:54 PM
  Subject: Re: mod_webapp.so needed
  
  
   It would help if you specified for which platform.

Hi,

Can somebody tell me where I can get mod_webapp.so or perhaps send it 
to me? I need it asap.

thanks

-jari

   
   
  
 
 

   
   
  
 
 




RE: Advice: SSLifying a Tomcat+IIS setup

2001-06-18 Thread Hughes, Tim

Hello,

I first setup Tomcat as a standalone running as an NT service. I have also
now plugged Tomcat into an IIS server so that I can either use Tomcat as a
standalone or query IIS which then forwards the request to Tomcat.
Everything works hunkydory and I think Tomcat is great. So clean!

I now would like to SSLify the servlets/JSPs responses that Tomcat serves up
(I don't care about SSLify any of the pages that IIS serves up). I would
like to have the SSL working such that it SSLifies the servlets/JSP
responses irrespective of whether the original request came direct to Tomcat
or via IIS.

I have read the documentation supplied with Tomcat (in particular Tomcat
and SSL). But it does not give me enough information and I don't want to go
charging in and mess up my nice smoothly working setup. How should I go
about installing SSL so that it works the way I want it (i.e. SSLifying the
servlets/JSP responses irrespective of whether the original request came
direct to Tomcat or via IIS). Is it enough to just follow the instructions
in the doc Tomcat and SSL in the subsection SSL direct or is there more
to it than that?

(Software: jakarta-tomcat-3.2.1 running as NT service, IIS 4.0, JDK1.3.1)

Tim.






RE: access log for Tomcat

2001-06-18 Thread David Rosenstark

I assume that this means that I have to do it all myself in terms of setting
up different options to log?

 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 1:09 PM
 To: [EMAIL PROTECTED]
 Subject: RE: access log for Tomcat
 
 
 
   There isn't a module for Tomcat that does this that I 
 know of (and
 nothing built into Tomcat, regardless of what Luba says), 
 although it should
 be fairly easy to do - you need to write a RequestInterceptor 
 that just
 logs, not intercepts, the requests.
 
   Randy
 
 -Original Message-
 From: David Rosenstark [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, June 17, 2001 7:45 AM
 To: '[EMAIL PROTECTED]'
 Subject: access log for Tomcat
 
 
 Is there some way to configure Tomcat to have a log of all 
 web requests
 coming in similar to access_log in Apache?
  
 TIA,
 David
 



Re: What are EJB

2001-06-18 Thread Sam Newman

The only real similarity between EJB's and normal JavaBeans is that they are
both based on component models. EJB's provide a java representation of some
data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB class
is tied to one table. XML is used to tie an EJB and its data to a database.
There is a bit of a problem with this approach, in that a typical OO  design
for such a system can result in a good OO system on the surface, but a real
mess of a database

EJB's need a compliant EJB server, and a database. There are a few free
versions around - try JBoss. They work fine with Servlets/Tomcat given that
they are also part of the j2ee. I personally use Cape Connect (previosly
Orcas) with tomcat without too many problems (there are a couple of class
loader issues in some circumstances however). Orcas actually bundles Tomcat
with it, and they pre-configure it to work with their ejb container.

sam
- Original Message -
From: Alexandre Bouchard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 17, 2001 6:07 PM
Subject: What are EJB


 I've got a simple question: What are Enterprise Java Beans. I mean, what's
 the difference between EJB and the beans I develop with JDK and run with
 Tomcat?

 Thx





I wonder what is this?

2001-06-18 Thread Rajeshwar Rao.V

Error: 500
Location: /myCon/servlets/LogOn.htm
Internal Servlet Error:

java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)



Tomcat-Apache configuration

2001-06-18 Thread Shicheng TIAN(CMS)


Hello there,
We have installed Tomcat 4.0 on our PC running Win2000;
Tomcat works fine itself.

We have the following two queries and would like to get advice from the list:

1. How to configure Tomcat so that it can work together
with the Web server running at the same PC, which is Apache 1.3,
i.e. Apache would pass servlet calls to Tomcat which would process the calls
and then return the result bact to Apache?

2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
C:\tomcat\webapps\ROOT;
we wonder how to configure a remote mapping so that we can put some test
files/code on
another drive of the same PC, e.g. on the D drive at: D:\Test

Thanks,

Shicheng 




JSP mapping

2001-06-18 Thread Eitan Ben Noach

HI,

I want to map JSPs called by browser at the http server root, like
http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
were else then
the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
c:\winnt\zz.jsp.

I've succeeded on configuring Tomcat to handle JSP files at the context path
/MyJspDirectory to be handled by JSP files at the c:\winnt directory by
changing the server.xml file by defining:
  Context path=/MyJspDirectory docBase=c:/winnt /

In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
handles by  c:\winnt\zz.jsp.
How can I do the same for the link http://victoria.xx.yy/zz.jsp ?

It seems that it should be solved through the ApJServMount and  Alias
directives as well as the server.xml ( and maybe web.xml ),
but how?

Thanks
-
Eitan Ben-Noach
Proficiency, Ltd.

Tel: +972.2.548.0287
Fax: +972.2.586.3871
email: [EMAIL PROTECTED]

The Intelligence in Engineering Supply Chain Collaboration
http://www.proficiency.com/




 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 2:13 PM
 Subject: Re: Vs: Vs: mod_webapp.so needed
 
 
  Give this a whirl:
  
  http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
  
  The next part is actually configuring it?!
  
  James
   
   why notI can´t lose anything...:)thanks! and yes, 
 we are talking about RH.
   Will you give me address where I can download it?
   
   -jari
   
   - Original Message - 
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, June 18, 2001 1:46 PM
   Subject: Re: Vs: mod_webapp.so needed
   
   
I've got it compiled for Redhat 6.2, although that's a 
 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is 
 2.4. If you want to give it a try I'll upload it to my server?

James
 
 SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
 
 
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 12:54 PM
 Subject: Re: mod_webapp.so needed
 
 
  It would help if you specified for which platform.
   
   Hi,
   
   Can somebody tell me where I can get 
 mod_webapp.so or perhaps send it to me? I need it asap.
   
   thanks
   
   -jari
   
  
  
 


   
  
  
 



newbie: Installing Servlets

2001-06-18 Thread LeRoi

Hello!

Now that I have Tomcat up and running, it's time that I starting doing some
real work.  Following a simple example in the book I'm using it says that
servlets are installed in the subdirectory webapps\WEB-INF\servlets.  I
put my class there (under examples directory of Tomcat) and shut down
Tomcat and re-started it.  Below is the code for textbook example:

// Fig. 19.5:  HTTPGetServlet.java
// Creating and sending a page to the client
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class HTTPGetServlet extends HttpServlet {
public void doGet(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException
{
PrintWriter output;

response.setContentType(text/html);  // content type
output = response.getWriter();  // get writer

// create and send HTML page to client
StringBuffer buf = new StringBuffer();
buf.append(HTMLHEADTITLE\n);
buf.append(A simple Servlet Example\n);
buf.append(/TITLE/HEADBODY\n);
buf.append(H1Welcome to Servlets!/H1\n);
buf.append(/BODY/HTML);
output.println(buf.toString());
output.close();  // close PrintWriter stream
}
}

!-- Fig. 19.6: HTTPGetServlet.html --
HTML
HEAD
TITLE
Servlet HTTP GET Example
/TITLE
/HEAD
BODY
FORM
ACTION=http://localhost:8080/servlets/HTTPGetServlet;
METHOD=GET
PClick the button to have the servlet send
  an HTML document/P
INPUT TYPE=submit VALUE=Get HTML Document
/FORM
/BODY
/HTML

Well, it didn't work.  My question is, in order to install this simple
servlet does that mean I have to go through all the steps as given in the
documentation for Developing Applications with Tomcat?

Cheers and many thanx in advance,
LeRoi





RE: Tomcat-Apache configuration

2001-06-18 Thread David DELGRANCHE

Just read the documentation on Tomcat all these things are explained!

-Message d'origine-
De: Shicheng TIAN(CMS) [SMTP:[EMAIL PROTECTED]]
Date:   lundi 18 juin 2001 15:34
A:  [EMAIL PROTECTED]
Objet:  Tomcat-Apache configuration


Hello there,
We have installed Tomcat 4.0 on our PC running Win2000;
Tomcat works fine itself.

We have the following two queries and would like to get advice from the list:

1. How to configure Tomcat so that it can work together
with the Web server running at the same PC, which is Apache 1.3,
i.e. Apache would pass servlet calls to Tomcat which would process the calls
and then return the result bact to Apache?

2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
C:\tomcat\webapps\ROOT;
we wonder how to configure a remote mapping so that we can put some test
files/code on
another drive of the same PC, e.g. on the D drive at: D:\Test

Thanks,

Shicheng 




Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Are you running standalone or with a web server?  Assuming you're
running standalone, and that there's not much else you're using tomcat
for, all you need to do is remove the /MyJspDirectory from the
context path and it should work fine.

cheesr
dim

Eitan Ben Noach wrote:
 
 HI,
 
 I want to map JSPs called by browser at the http server root, like
 http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
 were else then
 the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
 c:\winnt\zz.jsp.
 
 I've succeeded on configuring Tomcat to handle JSP files at the context path
 /MyJspDirectory to be handled by JSP files at the c:\winnt directory by
 changing the server.xml file by defining:
   Context path=/MyJspDirectory docBase=c:/winnt /
 
 In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
 handles by  c:\winnt\zz.jsp.
 How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
 
 It seems that it should be solved through the ApJServMount and  Alias
 directives as well as the server.xml ( and maybe web.xml ),
 but how?
 
 Thanks
 -
 Eitan Ben-Noach
 Proficiency, Ltd.
 
 Tel: +972.2.548.0287
 Fax: +972.2.586.3871
 email: [EMAIL PROTECTED]
 
 The Intelligence in Engineering Supply Chain Collaboration
 http://www.proficiency.com/
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 2:13 PM
  Subject: Re: Vs: Vs: mod_webapp.so needed
 
 
   Give this a whirl:
  
   http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
  
   The next part is actually configuring it?!
  
   James
   
why notI can´t lose anything...:)thanks! and yes,
  we are talking about RH.
Will you give me address where I can download it?
   
-jari
   
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 1:46 PM
Subject: Re: Vs: mod_webapp.so needed
   
   
 I've got it compiled for Redhat 6.2, although that's a
  2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
  2.4. If you want to give it a try I'll upload it to my server?

 James
 
  SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
 
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 12:54 PM
  Subject: Re: mod_webapp.so needed
 
 
   It would help if you specified for which platform.
   
Hi,
   
Can somebody tell me where I can get
  mod_webapp.so or perhaps send it to me? I need it asap.
   
thanks
   
-jari
   
  
  
 


   
  
  
 



Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Jeff Waugh

Sorry, I hadn't read your error message closely enough.

'No suitable driver' usually means a problem with the database
URL to which you are trying to connect.

That should look something like:

db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
"username", "password");

Try playing with that.

-Jeff

- Original Message -
From: "Ryszard Lach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 7:20 AM
Subject: Re: Problem with Postgresql JDBC driver


 On Mon, Jun 18, 2001 at 07:21:21AM -0400, Jeff Waugh wrote:
  Try Class.forName("org.postgresql.Driver")...

 Doesn't work too.

 R.

 --
 ** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/





RE: JSP mapping

2001-06-18 Thread Eitan Ben Noach

Thanks dim,

I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.

No meter what I've tried to do on the tomact-apache.conf and server.xml
files, Tomcat will not
let me map root JSP files to a directory other then
c:\jakarta-tomcat-3.2.3\webapps\root

Is there any doc that defines the exact syntax of the ApJServMount
directive?
The user guide gives examples but does not specify the exact definition.

I've tried the following at the tomact-apache.conf:

ApJServMount /  /MyJspDirectory

and then in the server.xml define:
Context path=/MyJspDirectory docBase=c:/winnt /

When restarting Tomcat the line ApJServMount /  /MyJspDirectory at the
tomact-apache.conf had been removed!

Trying the line:
ApJServMount /servlet  /MyJspDirectory

has the same results

Eitan

 -Original Message-
 From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: JSP mapping
 
 
 Eitan,
 
 Are you running standalone or with a web server?  Assuming you're
 running standalone, and that there's not much else you're using tomcat
 for, all you need to do is remove the /MyJspDirectory from the
 context path and it should work fine.
 
 cheesr
 dim
 
 Eitan Ben Noach wrote:
  
  HI,
  
  I want to map JSPs called by browser at the http server root, like
  http://victoria.xx.yy/zz.jsp to be handled by JSP file that 
 is located some
  were else then
  the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, 
 for example by
  c:\winnt\zz.jsp.
  
  I've succeeded on configuring Tomcat to handle JSP files at 
 the context path
  /MyJspDirectory to be handled by JSP files at the c:\winnt 
 directory by
  changing the server.xml file by defining:
Context path=/MyJspDirectory docBase=c:/winnt /
  
  In that way the browser link 
 http://victoria.xx.yy/MyJspDirectory/zz.jsp is
  handles by  c:\winnt\zz.jsp.
  How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
  
  It seems that it should be solved through the 
 ApJServMount and  Alias
  directives as well as the server.xml ( and maybe web.xml ),
  but how?
  
  Thanks
  -
  Eitan Ben-Noach
  Proficiency, Ltd.
  
  Tel: +972.2.548.0287
  Fax: +972.2.586.3871
  email: [EMAIL PROTECTED]
  
  The Intelligence in Engineering Supply Chain Collaboration
  http://www.proficiency.com/
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, June 18, 2001 2:13 PM
   Subject: Re: Vs: Vs: mod_webapp.so needed
  
  
Give this a whirl:
   
http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
   
The next part is actually configuring it?!
   
James

 why notI can´t lose anything...:)thanks! and yes,
   we are talking about RH.
 Will you give me address where I can download it?

 -jari

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 1:46 PM
 Subject: Re: Vs: mod_webapp.so needed


  I've got it compiled for Redhat 6.2, although that's a
   2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
   2.4. If you want to give it a try I'll upload it to my server?
 
  James
  
   SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
  
  
  
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, June 18, 2001 12:54 PM
   Subject: Re: mod_webapp.so needed
  
  
It would help if you specified for which platform.

 Hi,

 Can somebody tell me where I can get
   mod_webapp.so or perhaps send it to me? I need it asap.

 thanks

 -jari

   
   
  
 
 

   
   
  
 



Finding the XML parser in Tomcat

2001-06-18 Thread Frank Lawlor

In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for
example,

Parser parser =
ParserFactory.makeParser(org.apache.xerces.parsers.SAXParser);

but when I deploy to a standalone Tomcat environment, I get a class not
found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib
directory.

If I put the jar into jre\lib\ext, it is found, but having to put it there
is more imposition on the user and requires extra work beyond normal web app
deployment (just putting the WAR file in the webapps dir).
Further, If I put the jar there, then programs that use the no parameter
form
   Parser parser = ParserFactory.makeParser();
then start to throw an error:
  Null Pointer Exception: sax.parser is null
This can break other applications!

Why will it not find the parser in the Tomcat WEB-INF\lib directory?
Is this an XML, jdk, Tomcat issue or what?
If I add the XML lib to jre\lib\ext, what/how system properties must be set?

Thanks,
-- Frank


Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Yep - editing tomcat-apache.conf by hand is a bad idea as it is
generated by tomcat every time it starts, which would explain why your
changes disappear (o:  I'm assuming that in your server.xml you have a
line Context path= docbase=webapps/ROOT or something similar?  If
you change the docbase in that to point to c:/winnt, you should be
able to remove the context mapping you've put in atm and find that
http://foo/bar.jsp will work (as will
http://foo/servlet/myservletmapping).

hope this does the trick
cheers
dim

Eitan Ben Noach wrote:
 
 Thanks dim,
 
 I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
 
 No meter what I've tried to do on the tomact-apache.conf and server.xml
 files, Tomcat will not
 let me map root JSP files to a directory other then
 c:\jakarta-tomcat-3.2.3\webapps\root
 
 Is there any doc that defines the exact syntax of the ApJServMount
 directive?
 The user guide gives examples but does not specify the exact definition.
 
 I've tried the following at the tomact-apache.conf:
 
 ApJServMount /  /MyJspDirectory
 
 and then in the server.xml define:
 Context path=/MyJspDirectory docBase=c:/winnt /
 
 When restarting Tomcat the line ApJServMount /  /MyJspDirectory at the
 tomact-apache.conf had been removed!
 
 Trying the line:
 ApJServMount /servlet  /MyJspDirectory
 
 has the same results
 
 Eitan
 
  -Original Message-
  From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 4:05 PM
  To: [EMAIL PROTECTED]
  Subject: Re: JSP mapping
 
 
  Eitan,
 
  Are you running standalone or with a web server?  Assuming you're
  running standalone, and that there's not much else you're using tomcat
  for, all you need to do is remove the /MyJspDirectory from the
  context path and it should work fine.
 
  cheesr
  dim
 
  Eitan Ben Noach wrote:
  
   HI,
  
   I want to map JSPs called by browser at the http server root, like
   http://victoria.xx.yy/zz.jsp to be handled by JSP file that
  is located some
   were else then
   the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
  for example by
   c:\winnt\zz.jsp.
  
   I've succeeded on configuring Tomcat to handle JSP files at
  the context path
   /MyJspDirectory to be handled by JSP files at the c:\winnt
  directory by
   changing the server.xml file by defining:
 Context path=/MyJspDirectory docBase=c:/winnt /
  
   In that way the browser link
  http://victoria.xx.yy/MyJspDirectory/zz.jsp is
   handles by  c:\winnt\zz.jsp.
   How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
  
   It seems that it should be solved through the
  ApJServMount and  Alias
   directives as well as the server.xml ( and maybe web.xml ),
   but how?
  
   Thanks
   -
   Eitan Ben-Noach
   Proficiency, Ltd.
  
   Tel: +972.2.548.0287
   Fax: +972.2.586.3871
   email: [EMAIL PROTECTED]
  
   The Intelligence in Engineering Supply Chain Collaboration
   http://www.proficiency.com/
  
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 2:13 PM
Subject: Re: Vs: Vs: mod_webapp.so needed
   
   
 Give this a whirl:

 http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so

 The next part is actually configuring it?!

 James
 
  why notI can´t lose anything...:)thanks! and yes,
we are talking about RH.
  Will you give me address where I can download it?
 
  -jari
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 1:46 PM
  Subject: Re: Vs: mod_webapp.so needed
 
 
   I've got it compiled for Redhat 6.2, although that's a
2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
2.4. If you want to give it a try I'll upload it to my server?
  
   James
   
SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
   
   
   
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 12:54 PM
Subject: Re: mod_webapp.so needed
   
   
 It would help if you specified for which platform.
 
  Hi,
 
  Can somebody tell me where I can get
mod_webapp.so or perhaps send it to me? I need it asap.
 
  thanks
 
  -jari
 


   
  
  
 


   
 



RE: access log for Tomcat

2001-06-18 Thread Randy Layman


You would have to write the Java code yourself to implement this new
RequestInterceptor.  You could hard code all of the parameters for your
logging into the code, or you could make them parameters from the server.xml
file (which would be better), but this is a you do it all yourself kind of
effort.

Randy

 -Original Message-
 From: David Rosenstark [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 9:27 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: access log for Tomcat
 
 
 I assume that this means that I have to do it all myself in 
 terms of setting
 up different options to log?
 
  -Original Message-
  From: Randy Layman [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 1:09 PM
  To: [EMAIL PROTECTED]
  Subject: RE: access log for Tomcat
  
  
  
  There isn't a module for Tomcat that does this that I 
  know of (and
  nothing built into Tomcat, regardless of what Luba says), 
  although it should
  be fairly easy to do - you need to write a RequestInterceptor 
  that just
  logs, not intercepts, the requests.
  
  Randy
  
  -Original Message-
  From: David Rosenstark [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, June 17, 2001 7:45 AM
  To: '[EMAIL PROTECTED]'
  Subject: access log for Tomcat
  
  
  Is there some way to configure Tomcat to have a log of all 
  web requests
  coming in similar to access_log in Apache?
   
  TIA,
  David
  
 



Re: OutOfMem

2001-06-18 Thread Luba Powell

2 possibilities here.

you ran out of memory in which case decrease number of connectors
in conf/server.xml for the context

Or there is a buglet in their ThreadPool program.  I doubt this, primarily
because there haven't been many postings on this subject

r/luba

- Original Message -
From: Shai Deljo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 7:59 AM
Subject: OutOfMem


 Does anyone know the reason for this msg :

 2001-06-18 07:47:31.729029 2001-06-18 07:47:31 - ThreadPool: Caught
 exception executing org.apache.tomcat.service.TcpWorkerThread@47
 8a2d, terminating thread - java.lang.OutOfMemoryError: unable to create
new
 native thread
 2001-06-18 07:47:31.729051  at java.lang.Thread.start(Native Method)
 2001-06-18 07:47:31.729057  at

org.apache.tomcat.util.ThreadPool$ControlRunnable.init(ThreadPool.java:465
 )
 2001-06-18 07:47:31.729067  at
 org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360)
 2001-06-18 07:47:31.729076  at
 org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:206)
 2001-06-18 07:47:31.729084  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405)
 2001-06-18 07:47:31.729093  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 2001-06-18 07:47:31.729103  at java.lang.Thread.run(Thread.java:484)

 I get it before i reach the Thread limit of the tomcat or the machine,
 Does it have something to do with number of sessions in the apache ?

 10x
 Shai





Re: Tomcat-Apache configuration

2001-06-18 Thread Sam Newman

Read the mod_jk howto included with the documentation. Its fairly
straightforward. If you have problems after following the docs, post to the
list - loads of us have done this so there will be plenty of people around
who can help.

sam
- Original Message -
From: Shicheng TIAN(CMS) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 2:33 PM
Subject: Tomcat-Apache configuration



 Hello there,
 We have installed Tomcat 4.0 on our PC running Win2000;
 Tomcat works fine itself.

 We have the following two queries and would like to get advice from the
list:

 1. How to configure Tomcat so that it can work together
 with the Web server running at the same PC, which is Apache 1.3,
 i.e. Apache would pass servlet calls to Tomcat which would process the
calls
 and then return the result bact to Apache?

 2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
 C:\tomcat\webapps\ROOT;
 we wonder how to configure a remote mapping so that we can put some test
 files/code on
 another drive of the same PC, e.g. on the D drive at: D:\Test

 Thanks,

 Shicheng





Re: socket write and Connection reset by peer

2001-06-18 Thread Luba Powell

Network programmers!
I also frequently get code=10053 error although not w/Tomcat.
I learned to work around it, but would be nice to know the origins
of this code.

thanks,
luba

- Original Message - 
From: Venkatesh T [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 6:40 AM
Subject: socket write and Connection reset by peer


 
 Hi
 
   I am getting frequently these errors.   I am using some flash and gif
 files in my jsp page.  For each and every image i am using i am getting
 the following errors. But the pages displaying properly.
 
  Ctx(  ): IOException in: R(  + /ssp/jsp/righttop.swf + null) socket
 write error (code=10053)
 
  Ctx(  ): IOException in: R(  + /ssp/jsp/true.gif + null) Connection
 reset by peer: socket write error
 
 
 Can any one know about this errors.  Tell me how to remove these errors
 from the console.
 
 regards
 venkatesh




Help on: ThreadPool: pool exhausted with 100 threads

2001-06-18 Thread Jayson Yu

hi, I was wondering if anybody can provide  me some leads on how to deal 
with this
problem... I have a servlet that queries a database and churns out (in 
response) a
data populated html, however after some time and several hits on the 
servlet, I get
the Tomcat error that ThreadPool: pool exhausted with 100 threads.

I'm not so sure if this is a tomcat or servlet problem, would
certainly appreciate if anybody can provide some help. tia!

json




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

Try this:

Driver driver =
(Driver) Class.forName("driver URL").newInstance();
if (driver == null)
{
System.out.println("no driver found");
}


- Original Message -
From: "Ryszard Lach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 6:40 AM
Subject: Problem with Postgresql JDBC driver


 Hi!

 I have serious problem with JDBC driver for postgresql. I'm using tomcat
3.2.2
 with jdk1.3.1 (I've tried 1.2.2 too). I've tried to put jdbc7.0-1.2.jar
into:

 $TOMCAT_HOME/lib
 $TOMCAT_HOME/webapp/my_app/WEB-INF/lib

 and unpacked jdbc7.0-1.2.jar into

 $TOMCAT_HOME/classes
 $TOMCAT_HOME/webapp/my_app/WEB-INF/classes

 and I still receive an error (included at bottom of the message) while
calling
 Class.forName("postgresql.Driver") in a .jsp file located in
.../webapp/my_app
 directory.


 I'm sure that classpath containing jdbc.*.jar is used by tomcat's startup
 script, but it seems I'm missing something...

 What could be wrong ? Do I have to configure workers or webapps in any
special
 way?

 Any help would be very appreciated.

 This is the error I receive:

 Error: 500

 Location: /test_pgsql.jsp

 Internal Servlet Error:

 javax.servlet.ServletException: No suitable driver
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java, Compiled Code)
 at
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
 Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
 at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)

 Root cause:

 java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
 at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
 at
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
 at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java, Compiled Code)


 --
 ** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Ryszard Lach

On Mon, Jun 18, 2001 at 10:05:16AM -0400, Jeff Waugh wrote:
 Sorry, I hadn't read your error message closely enough.
 
 'No suitable driver' usually means a problem with the database
 URL to which you are trying to connect.
 
 That should look something like:
 
 db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
 "username", "password");
 
 Try playing with that.

Well, now it works. It seems you were right. I can not connect using
DriverManager, but the following code works pretty fine:

Driver drv = new org.postgresql.Driver();
Properties p = new Properties();
p.put("user","my_username");
p.put("password","my_password");
Connection con = drv.connect("jdbc:postgresql://localhost:5432/testowa",p);

Thanks all of you for your help.

Best regards,

R.

-- 
** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/



Re: Help on: ThreadPool: pool exhausted with 100 threads

2001-06-18 Thread Luba Powell

Ooh!  Shai is getting similar error.  Although in his case he runs out of
memory.
But both of your errors occur in their ThreadPool program.
I wonder if threads are not being returned to the pool, in which case you
would need to report it as a bug.
Json, how many connectors did you configure for this context?


- Original Message -
From: Jayson Yu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 10:49 AM
Subject: Help on: ThreadPool: pool exhausted with 100 threads


 hi, I was wondering if anybody can provide  me some leads on how to deal
 with this
 problem... I have a servlet that queries a database and churns out (in
 response) a
 data populated html, however after some time and several hits on the
 servlet, I get
 the Tomcat error that ThreadPool: pool exhausted with 100 threads.

 I'm not so sure if this is a tomcat or servlet problem, would
 certainly appreciate if anybody can provide some help. tia!

 json





Re: IllegalAccessError when run from Tomcat

2001-06-18 Thread sappling

After further investigation this seems to be something specific to the
4.0b5 version of Tomcat.  It does not occur in 3.3 milestone 3 or 3.2.  I
think this may indicate a  classloader problem.  I will investigate further
and post something to the bug database.  Thanks for your suggestions.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 15, 2001 11:20 AM
Subject: IllegalAccessError when run from Tomcat


 When running a servlet from within Tomcat I get the following exception:

 java.lang.IllegalAccessError: try to access field
org.w3c.tidy.ParserImpl._parseHead from class
org.w3c.tidy.ParserImpl$ParseHTML
  at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
  at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
  at org.w3c.tidy.Tidy.parse(Tidy.java)
  at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
 ...

 A method in the inner class $ParseHTML is trying to access a private field
 _parseHead in the containing class, but that is legal as far as I know.
 When I move the body of this servlet to a stand alone application it runs
 fine - no exceptions.  Is there some strange JVM security manager here
that
 is different from running as a real application?  Anyone have an idea what
 is going on?





Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

Ryszad:
   Please let me know if this works for you:

Driver driver =
(Driver) Class.forName("driver URL").newInstance();

This part of statement that you already had in your program:
(Driver) Class.forName("driver URL")

will load .class file into memory.

It is .newInstance() that will actually create and instance of Driver class.

Also make sure your URL is correct.






- Original Message -
From: "Luba Powell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 10:46 AM
Subject: Re: Problem with Postgresql JDBC driver


 Try this:

 Driver driver =
 (Driver) Class.forName("driver URL").newInstance();
 if (driver == null)
 {
 System.out.println("no driver found");
 }


 - Original Message -
 From: "Ryszard Lach" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 6:40 AM
 Subject: Problem with Postgresql JDBC driver


  Hi!
 
  I have serious problem with JDBC driver for postgresql. I'm using tomcat
 3.2.2
  with jdk1.3.1 (I've tried 1.2.2 too). I've tried to put jdbc7.0-1.2.jar
 into:
 
  $TOMCAT_HOME/lib
  $TOMCAT_HOME/webapp/my_app/WEB-INF/lib
 
  and unpacked jdbc7.0-1.2.jar into
 
  $TOMCAT_HOME/classes
  $TOMCAT_HOME/webapp/my_app/WEB-INF/classes
 
  and I still receive an error (included at bottom of the message) while
 calling
  Class.forName("postgresql.Driver") in a .jsp file located in
 .../webapp/my_app
  directory.
 
 
  I'm sure that classpath containing jdbc.*.jar is used by tomcat's
startup
  script, but it seems I'm missing something...
 
  What could be wrong ? Do I have to configure workers or webapps in any
 special
  way?
 
  Any help would be very appreciated.
 
  This is the error I receive:
 
  Error: 500
 
  Location: /test_pgsql.jsp
 
  Internal Servlet Error:
 
  javax.servlet.ServletException: No suitable driver
  at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 l.java, Compiled Code)
  at

_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
 005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
 Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled
  Code)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va, Compiled Code)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
 Compiled Code)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled Code)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled Code)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
 Compiled Code)
  at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
 Code)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
 Code)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled
 Code)
  at

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
 (Ajp12ConnectionHandler.java, Compiled Code)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
 Compiled Code)
  at java.lang.Thread.run(Thread.java, Compiled Code)
 
  Root cause:
 
  java.sql.SQLException: No suitable driver
  at java.sql.DriverManager.getConnection(DriverManager.java,
 Compiled Code)
  at java.sql.DriverManager.getConnection(DriverManager.java,
 Compiled Code)
  at

_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
 005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
 Compiled Code)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled Code)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va, Compiled Code)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
 Compiled Code)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled Code)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled Code)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
 Compiled Code)
  at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
 Code)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
 Code)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled
 Code)
  at


installing tomkat under linux: please help!

2001-06-18 Thread rino . mail

I have RedHat 7.1
I download file jakarta-tomcat-3.2.1.tar which create the directory: 
/home/rino/tomkat/jakarta-tomcat-3.2.1
I do:
export JAVA_HOME=...
export TOMCAT_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1
export CATALINA_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1

cd /home/rino/tomkat/jakarta-tomcat-3.2.1/bin

then:

[root@localhost bin]# ./startup.sh 
Using classpath: 
/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jasper.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jaxp.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/test:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/java/jdk1.3.0_02/lib/tools.jar
[root@localhost bin]# 

But didn't works!
Where I fall?
What I have to do?
Thank you in advance, Rino.




Re: installing tomkat under linux: please help!

2001-06-18 Thread Luba Powell

What are error messages? Can look in the log?

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 11:08 AM
Subject: installing tomkat under linux: please help!


 I have RedHat 7.1
 I download file jakarta-tomcat-3.2.1.tar which create the directory:
 /home/rino/tomkat/jakarta-tomcat-3.2.1
 I do:
 export JAVA_HOME=...
 export TOMCAT_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1
 export CATALINA_HOME=/home/rino/tomkat/jakarta-tomcat-3.2.1

 cd /home/rino/tomkat/jakarta-tomcat-3.2.1/bin

 then:

 [root@localhost bin]# ./startup.sh
 Using classpath:

/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/rino/tomkat/jakarta
-tomcat-3.2.1/lib/jasper.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jaxp
.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/rino/tomkat
/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1
/lib/test:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/java
/jdk1.3.0_02/lib/tools.jar
 [root@localhost bin]#

 But didn't works!
 Where I fall?
 What I have to do?
 Thank you in advance, Rino.





RE: SSL handshake failure URGENT

2001-06-18 Thread Tim O'Neil

At 02:41 AM 6/18/2001, you wrote:
I would try to do that following a document you wrote about SSL via 
apache, but I was a little lost in your indication
(for example some Jk... directives are not recognized, [JkExtractSSL, ...] 
) and I don't have a mod_jk.so module to load)

I know that a real (or non-test) cert works
with Apache/tomcat. There's documentation on
the Apache site for using mod_ssl, and also
search the net for more info. I don't have
the urls handy, but I was able to mine the net
for urls to some good info on using ssl with
Apache, Tomcat, and others. Also, I was never
able to get Tomcat standalone to use a real cert.




Re: What are EJB

2001-06-18 Thread Luba Powell

 but a real mess of a database

You are right here.  Because of it I stopped using Entity beans all
together...


- Original Message -
From: Sam Newman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 9:26 AM
Subject: Re: What are EJB


 The only real similarity between EJB's and normal JavaBeans is that they
are
 both based on component models. EJB's provide a java representation of
some
 data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB class
 is tied to one table. XML is used to tie an EJB and its data to a
database.
 There is a bit of a problem with this approach, in that a typical OO
design
 for such a system can result in a good OO system on the surface, but a
real
 mess of a database

 EJB's need a compliant EJB server, and a database. There are a few free
 versions around - try JBoss. They work fine with Servlets/Tomcat given
that
 they are also part of the j2ee. I personally use Cape Connect (previosly
 Orcas) with tomcat without too many problems (there are a couple of class
 loader issues in some circumstances however). Orcas actually bundles
Tomcat
 with it, and they pre-configure it to work with their ejb container.

 sam
 - Original Message -
 From: Alexandre Bouchard [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, June 17, 2001 6:07 PM
 Subject: What are EJB


  I've got a simple question: What are Enterprise Java Beans. I mean,
what's
  the difference between EJB and the beans I develop with JDK and run with
  Tomcat?
 
  Thx
 





RE: SSL handshake failure URGENT

2001-06-18 Thread GOMEZ Henri

If you use Apache-mod_ssl (apache with mod_ssl), you didn't
need to do anything in mod_jk.conf since it's default config
is for Apache + mod_ssl.

PS: Did you have a Linux boxes, I've packaged easy to use 
RPM which will let you install apache-mod_ssl, tomcat and 
mod_jk in less than 30 mins

http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
http://www.falsehope.com/ftp-site/home/gomez/tomcat/

Redhat 7.0/7.1 users allready have a Apache using mod_ssl

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



-Original Message-
From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 11:41 AM
To: [EMAIL PROTECTED]
Subject: RE: SSL handshake failure URGENT


I would try to do that following a document you wrote about 
SSL via apache, but I was a little lost in your indication
(for example some Jk... directives are not recognized, 
[JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)

 Could you try the server cert on apache/SSL or Apache-mod_ssl
 and see if it works ?
 
 
 
 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .) 
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
 
 
 
 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 10:05 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 
 Of sure, there it is.
 
 
  Could you retry with openssl s_client in full debug mode ?
  
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .) 
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
  
  
  
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 15, 2001 12:21 PM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  So, every seems to be well configured, but I always get this
  handshake error, what could be the problem in that case ?
  
  # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem 
  -key cl_key.pem -state 
  Enter PEM pass phrase:
  CONNECTED(0003)
  SSL_connect:before/connect initialization
  SSL_connect:SSLv2/v3 write client hello A
  SSL3 alert read:fatal:handshake failure
  SSL_connect:error in SSLv2/v3 read server hello A
  
  
   ok now it's done, but same error
   HandShake Failure
   
   I made the new server request, the new server certification, 
   the new server x509 conversion, and the new server 
into tomcat 
   keystore importation
   
   (I send you the new server certificate)
   
   must we also replace to CN of the client ? (I didn't do it)
   maybe the CN of the CA ?
   
   CN of you client could be what you want
   
   
The problem is in the CN of the server cert :

replace CN=server by CN=thehostname !!!

Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG, 
   OU=UNIT, CN=ca
Validity
Not Before: Jun 14 08:47:55 2001 GMT
Not After : Jun 14 08:47:55 2002 GMT
Subject: C=FR, ST=France, O=THE_ORG, 
OU=UNIT, CN=server
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):

 00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:

 f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:

 12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:

 a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:

 a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:

 85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:

 6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:

 e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
3b:c3:9f:ac:e3:5e:77:cb:7b
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints: 
CA:FALSE
Netscape Comment: 
OpenSSL Generated Certificate
X509v3 Subject Key Identifier: 

   44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
X509v3 Authority Key Identifier: 
 

 keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31
 

DirName:/C=FR/ST=France/L=Genvilliers/O=THE_ORG/OU=UNIT/CN=ca
serial:00

Signature Algorithm: md5WithRSAEncryption


nt-service

2001-06-18 Thread Andrew V. Zhdanov

Hello tomcat-user,

  Please, could you help me:
  i've made everything as described in NT-Service-howto.html but i've
  got such results:
  
E:\downloads\jakarta\tomcat3.2.2net start tomcat
System error 1311 has occurred.

There are currently no logon servers available to service the logon request.
^^^ maybe i 
shuld contact some one else?

-- 
Best regards,
 Andrew





Re: Problem with Postgresql JDBC driver

2001-06-18 Thread David Wall

Rather a postgresq question.  I don't know what the error was, but you want
to make sure the postgresql.jar file is in your webapp/my_app/WEB-INF/lib
directory.  And if you are using a security manager, you need to add the
shutdown-hooks permission.

David





Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

 you need to add the shutdown-hooks permission
Yes, this too.  You can either update policy file directly or via
GUI jdk1.3\bin\policytool
 you need to add the
shutdown-hooks permission.




- Original Message -
From: "David Wall" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 12:08 PM
Subject: Re: Problem with Postgresql JDBC driver


 Rather a postgresq question.  I don't know what the error was, but you
want
 to make sure the postgresql.jar file is in your webapp/my_app/WEB-INF/lib
 directory.  And if you are using a security manager, you need to add the
 shutdown-hooks permission.

 David






Re: What are EJB

2001-06-18 Thread Sam Newman

Problem is all the containers we've used up till now have had real problems
with bean managed persistance...as a result we had to avoid it. They seem
better now, but its a bit late for us. The single biggest headache I've had
developing/designing EJB's is trying to make the OO centric java (e.g.
encapsulation of data and process) work with the non-OO databases without
sacrificing too many of the advantages of the two (databases speed, Javas
flexibility).
I'm looking forward to the new message beans which are in the new EJB 2.0
spec. Would of made my current project a whole lot easier... Sending
messages/setting state of beans via JMS could be very cool - if it works :-)

sam

- Original Message -
From: Luba Powell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 4:38 PM
Subject: Re: What are EJB


  but a real mess of a database

 You are right here.  Because of it I stopped using Entity beans all
 together...


 - Original Message -
 From: Sam Newman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 9:26 AM
 Subject: Re: What are EJB


  The only real similarity between EJB's and normal JavaBeans is that they
 are
  both based on component models. EJB's provide a java representation of
 some
  data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB
class
  is tied to one table. XML is used to tie an EJB and its data to a
 database.
  There is a bit of a problem with this approach, in that a typical OO
 design
  for such a system can result in a good OO system on the surface, but a
 real
  mess of a database
 
  EJB's need a compliant EJB server, and a database. There are a few free
  versions around - try JBoss. They work fine with Servlets/Tomcat given
 that
  they are also part of the j2ee. I personally use Cape Connect (previosly
  Orcas) with tomcat without too many problems (there are a couple of
class
  loader issues in some circumstances however). Orcas actually bundles
 Tomcat
  with it, and they pre-configure it to work with their ejb container.
 
  sam
  - Original Message -
  From: Alexandre Bouchard [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, June 17, 2001 6:07 PM
  Subject: What are EJB
 
 
   I've got a simple question: What are Enterprise Java Beans. I mean,
 what's
   the difference between EJB and the beans I develop with JDK and run
with
   Tomcat?
  
   Thx
  
 





RE: Finding the XML parser in Tomcat

2001-06-18 Thread Eoin Woods

I think this has come up before.

Tomcat has an XML parser built in (it reads XML files for configuration).

To use Xerces in our servlets, we had to add xerces.jar to the front of
the CLASSPATH in the tomcat.sh script.

Eoin.
-Original Message-
From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 7:20 AM
To: Tomcat (E-mail)
Subject: Finding the XML parser in Tomcat 


In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for
example,

Parser parser =
ParserFactory.makeParser(org.apache.xerces.parsers.SAXParser);

but when I deploy to a standalone Tomcat environment, I get a class not
found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib
directory.

If I put the jar into jre\lib\ext, it is found, but having to put it there
is more imposition on the user and requires extra work beyond normal web app
deployment (just putting the WAR file in the webapps dir).
Further, If I put the jar there, then programs that use the no parameter
form
   Parser parser = ParserFactory.makeParser();
then start to throw an error:
  Null Pointer Exception: sax.parser is null
This can break other applications!

Why will it not find the parser in the Tomcat WEB-INF\lib directory?
Is this an XML, jdk, Tomcat issue or what?
If I add the XML lib to jre\lib\ext, what/how system properties must be set?

Thanks,
-- Frank


Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.

ok, thanks Henri and Tim

I use Linux RedHat 7, but it seems that SSL options was not taken in account with 
default launching of httpd (with httpd start) so I made first some modifications of 
httpd conf (specially putting on comment the ifDefine SSL tags to make it taken in 
account, and made some mistakes maybe cause httpd will not launch now :-)

I (true)hope so that the packages I download from your site are the good ones 
(tomcat-3.2.2-1.noarch.rpm and apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm) even if I was 
surprised that apache-mod_ssl-1.3.19.2.8.3-1.i386.rpm was bigger (1.6M) than the next 
version apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm (879k)

I will give you wedensday the next episod of my SSL/Linux/tomcat/apache adventure.

 PS: Did you have a Linux boxes, I've packaged easy to use
 RPM which will let you install apache-mod_ssl, tomcat and
 mod_jk in less than 30 mins

 http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
 http://www.falsehope.com/ftp-site/home/gomez/tomcat/

 Redhat 7.0/7.1 users allready have a Apache using mod_ssl

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



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 I would try to do that following a document you wrote about
 SSL via apache, but I was a little lost in your indication
 (for example some Jk... directives are not recognized,
 [JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
 
  Could you try the server cert on apache/SSL or Apache-mod_ssl
  and see if it works ?
 
 
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 10:05 AM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  
  Of sure, there it is.
  
  
   Could you retry with openssl s_client in full debug mode ?
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
   -Original Message-
   From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
   Sent: Friday, June 15, 2001 12:21 PM
   To: [EMAIL PROTECTED]
   Subject: RE: SSL handshake failure URGENT
   
   
   So, every seems to be well configured, but I always get this
   handshake error, what could be the problem in that case ?
   
   # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
   -key cl_key.pem -state
   Enter PEM pass phrase:
   CONNECTED(0003)
   SSL_connect:before/connect initialization
   SSL_connect:SSLv2/v3 write client hello A
   SSL3 alert read:fatal:handshake failure
   SSL_connect:error in SSLv2/v3 read server hello A
   
   
ok now it's done, but same error
HandShake Failure

I made the new server request, the new server certification,
the new server x509 conversion, and the new server
 into tomcat
keystore importation

(I send you the new server certificate)

must we also replace to CN of the client ? (I didn't do it)
maybe the CN of the CA ?

CN of you client could be what you want
   

 The problem is in the CN of the server cert :

 replace CN=server by CN=thehostname !!!

 Certificate:
 Data:
 Version: 3 (0x2)
 Serial Number: 2 (0x2)
 Signature Algorithm: md5WithRSAEncryption
 Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
OU=UNIT, CN=ca
 Validity
 Not Before: Jun 14 08:47:55 2001 GMT
 Not After : Jun 14 08:47:55 2002 GMT
 Subject: C=FR, ST=France, O=THE_ORG,
 OU=UNIT, CN=server
 Subject Public Key Info:
 Public Key Algorithm: rsaEncryption
 RSA Public Key: (1024 bit)
 Modulus (1024 bit):

  00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:

  f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:

  12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:

  a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:

  a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:

  85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:

  6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:

  e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
 3b:c3:9f:ac:e3:5e:77:cb:7b
 Exponent: 65537 (0x10001)
 X509v3 extensions:
 X509v3 Basic Constraints:
 CA:FALSE
 Netscape Comment:
 OpenSSL 

Re: nt-service

2001-06-18 Thread Tim O'Neil

At 08:49 AM 6/18/2001, you wrote:
Hello tomcat-user,

   Please, could you help me:
   i've made everything as described in NT-Service-howto.html but i've
   got such results:

E:\downloads\jakarta\tomcat3.2.2net start tomcat
System error 1311 has occurred.

What's the status of the Net Logon Service? If its
stopped, try starting it.




-Tim




NT-service

2001-06-18 Thread Andrew Zhdanov

Hello Tomcat,

  Could anyone help me, whith NT-Service, please. The results i've got
  while making nt-service:
E:\downloads\jakarta\tomcat3.2.2jk_nt_service.exe -I tomcat 
D:\tomcat\conf\wrapper.properties
Asked (and given) winsock 1.1
The service named tomcat was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the tomcat service
by executing net start tomcat from the command prompt

E:\downloads\jakarta\tomcat3.2.2net start tomcat
System error 1311 has occurred.

There are currently no logon servers available to service the logon request.

what does it mean and what should i do??? And did smb use nt_service
successfully??

Thanks a lot))

-- 
Best regards,
 Andrew





RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.


The rpm installation of apache (1.3.20) failed cause it claims openssl = 0.9.6 (that 
I installed) and cause there are a lot of conflicts with previous version of apache 
(1.3.12)
I am not a big afficionados of Linux fine configuration and tuning but I am compelled 
to work on this plateform. Do you have a magic (rpm or not) package that I just may 
click on to auto configurate and update the components I already have ?


 PS: Did you have a Linux boxes, I've packaged easy to use
 RPM which will let you install apache-mod_ssl, tomcat and
 mod_jk in less than 30 mins

 http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
 http://www.falsehope.com/ftp-site/home/gomez/tomcat/

 Redhat 7.0/7.1 users allready have a Apache using mod_ssl

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



 -Original Message-
 From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: SSL handshake failure URGENT
 
 
 I would try to do that following a document you wrote about
 SSL via apache, but I was a little lost in your indication
 (for example some Jk... directives are not recognized,
 [JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
 
  Could you try the server cert on apache/SSL or Apache-mod_ssl
  and see if it works ?
 
 
 
  -
  Henri Gomez ___[_]
  EMAIL : [EMAIL PROTECTED](. .)
  PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
  PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
 
 
 
  -Original Message-
  From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 18, 2001 10:05 AM
  To: [EMAIL PROTECTED]
  Subject: RE: SSL handshake failure URGENT
  
  
  
  Of sure, there it is.
  
  
   Could you retry with openssl s_client in full debug mode ?
  
   -
   Henri Gomez ___[_]
   EMAIL : [EMAIL PROTECTED](. .)
   PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
   PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
  
  
  
   -Original Message-
   From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
   Sent: Friday, June 15, 2001 12:21 PM
   To: [EMAIL PROTECTED]
   Subject: RE: SSL handshake failure URGENT
   
   
   So, every seems to be well configured, but I always get this
   handshake error, what could be the problem in that case ?
   
   # openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
   -key cl_key.pem -state
   Enter PEM pass phrase:
   CONNECTED(0003)
   SSL_connect:before/connect initialization
   SSL_connect:SSLv2/v3 write client hello A
   SSL3 alert read:fatal:handshake failure
   SSL_connect:error in SSLv2/v3 read server hello A
   
   
ok now it's done, but same error
HandShake Failure

I made the new server request, the new server certification,
the new server x509 conversion, and the new server
 into tomcat
keystore importation

(I send you the new server certificate)

must we also replace to CN of the client ? (I didn't do it)
maybe the CN of the CA ?

CN of you client could be what you want
   

 The problem is in the CN of the server cert :

 replace CN=server by CN=thehostname !!!

 Certificate:
 Data:
 Version: 3 (0x2)
 Serial Number: 2 (0x2)
 Signature Algorithm: md5WithRSAEncryption
 Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
OU=UNIT, CN=ca
 Validity
 Not Before: Jun 14 08:47:55 2001 GMT
 Not After : Jun 14 08:47:55 2002 GMT
 Subject: C=FR, ST=France, O=THE_ORG,
 OU=UNIT, CN=server
 Subject Public Key Info:
 Public Key Algorithm: rsaEncryption
 RSA Public Key: (1024 bit)
 Modulus (1024 bit):

  00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:

  f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:

  12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:

  a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:

  a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:

  85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:

  6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:

  e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
 3b:c3:9f:ac:e3:5e:77:cb:7b
 Exponent: 65537 (0x10001)
 X509v3 extensions:
 X509v3 Basic Constraints:
 CA:FALSE
 Netscape Comment:
 OpenSSL Generated Certificate
 X509v3 Subject Key Identifier:

44:3C:48:E2:82:B6:77:02:B1:90:84:D3:B0:CD:0C:18:6E:81:9F:7E
 X509v3 Authority Key Identifier:


  keyid:85:64:41:58:57:5F:91:5E:E1:A7:85:6B:CB:B7:F4:03:C4:F9:A8:31


 

Re[2]: nt-service

2001-06-18 Thread Andrew Zhdanov

Hello Tim,

Monday, June 18, 2001, 7:23:34 PM, you wrote:

TON At 08:49 AM 6/18/2001, you wrote:
Hello tomcat-user,

   Please, could you help me:
   i've made everything as described in NT-Service-howto.html but i've
   got such results:

E:\downloads\jakarta\tomcat3.2.2net start tomcat
System error 1311 has occurred.

TON What's the status of the Net Logon Service? If its
TON stopped, try starting it.

It is started!!! ofcourse, what's else? please, may be smth in
wrapper.properties, but i've didn't find anythnif for Logon. Then
i've tried to change in tomcat-service LogOn option to Specific
account with correspondent values - faild, also


TON -Tim



-- 
Best regards,
 Andrewmailto:[EMAIL PROTECTED]





RE: SSL handshake failure URGENT

2001-06-18 Thread Phillip Kuzma \(Support\)
 smime.p7m


Restarting Tomcat.

2001-06-18 Thread Phillip Kuzma \(Support\)
 smime.p7m


Re: newbie: Installing Servlets

2001-06-18 Thread Francis Callo

Hi,
if you have a servlet named HelloWorldi believe you
have to put your classes on
webapps/examples/WEB-INF/classes/ and access it with
URL
http://localhost:8080/examples/servlet/HelloWorld;
Let me know if it works. ;)

GUD LUK
Francis

--- LeRoi [EMAIL PROTECTED] wrote:
 Hello!
 
 Now that I have Tomcat up and running, it's time
 that I starting doing some
 real work.  Following a simple example in the book
 I'm using it says that
 servlets are installed in the subdirectory
 webapps\WEB-INF\servlets.  I
 put my class there (under examples directory of
 Tomcat) and shut down
 Tomcat and re-started it.  Below is the code for
 textbook example:
 
 // Fig. 19.5:  HTTPGetServlet.java
 // Creating and sending a page to the client
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 
 public class HTTPGetServlet extends HttpServlet {
   public void doGet(HttpServletRequest request,
  HttpServletResponse
 response)
   throws ServletException, IOException
   {
   PrintWriter output;
 
   response.setContentType(text/html);  // content
 type
   output = response.getWriter();  // get writer
 
   // create and send HTML page to client
   StringBuffer buf = new StringBuffer();
   buf.append(HTMLHEADTITLE\n);
   buf.append(A simple Servlet Example\n);
   buf.append(/TITLE/HEADBODY\n);
   buf.append(H1Welcome to Servlets!/H1\n);
   buf.append(/BODY/HTML);
   output.println(buf.toString());
   output.close();  // close PrintWriter stream
   }
 }
 
 !-- Fig. 19.6: HTTPGetServlet.html --
 HTML
   HEAD
   TITLE
   Servlet HTTP GET Example
   /TITLE
   /HEAD
   BODY
   FORM
   

ACTION=http://localhost:8080/servlets/HTTPGetServlet;
   METHOD=GET
   PClick the button to have the servlet send
 an HTML document/P
   INPUT TYPE=submit VALUE=Get HTML Document
   /FORM
   /BODY
 /HTML
 
 Well, it didn't work.  My question is, in order to
 install this simple
 servlet does that mean I have to go through all the
 steps as given in the
 documentation for Developing Applications with
 Tomcat?
 
 Cheers and many thanx in advance,
 LeRoi
 
 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



Re[3]: nt-service

2001-06-18 Thread Andrew Zhdanov

Hello Andrew,

Monday, June 18, 2001, 7:46:58 PM, you wrote:

AZ Hello Tim,

AZ Monday, June 18, 2001, 7:23:34 PM, you wrote:

TON At 08:49 AM 6/18/2001, you wrote:
Hello tomcat-user,

   Please, could you help me:
   i've made everything as described in NT-Service-howto.html but i've
   got such results:

E:\downloads\jakarta\tomcat3.2.2net start tomcat
System error 1311 has occurred.

TON What's the status of the Net Logon Service? If its
TON stopped, try starting it.

AZ It is started!!! ofcourse, what's else? please, may be smth in
AZ wrapper.properties, but i've didn't find anythnif for Logon. Then
AZ i've tried to change in tomcat-service LogOn option to Specific
AZ account with correspondent values - faild, also


TON -Tim

And it's me again - may be will be usefull - it was becase
jk_nt_service.exe was at network drive when at local - everything
is ok)) but another interesting is, why nt could not logon to network
drive if it is already logedon - but it is not a question)))
Sometimes it is usefull to ask smb, and and at the same time to think
over it, and understand by myself)))

-- 
Best regards,
 Andrewmailto:[EMAIL PROTECTED]





Re: SPAMMER - Fw: CV{JAVA}

2001-06-18 Thread Alex Fernández

Why? It's nice to get some worm regards once in a while...

Un saludo,

Alex.

 Can something be done about this kind of behavior...




RE: Re[3]: nt-service

2001-06-18 Thread Randy Layman


It probably had to do with the fact that the System account doesn't
have access to the network drive, which would prevent it from finding the
binary to run.  (It is probably a combination of not having the partion
mounted and security permissions).

Randy

 -Original Message-
 From: Andrew Zhdanov [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 1:16 PM
 To: Andrew Zhdanov
 Subject: Re[3]: nt-service
 
 
 Hello Andrew,
 
 Monday, June 18, 2001, 7:46:58 PM, you wrote:
 
 AZ Hello Tim,
 
 AZ Monday, June 18, 2001, 7:23:34 PM, you wrote:
 
 TON At 08:49 AM 6/18/2001, you wrote:
 Hello tomcat-user,
 
Please, could you help me:
i've made everything as described in 
 NT-Service-howto.html but i've
got such results:
 
 E:\downloads\jakarta\tomcat3.2.2net start tomcat
 System error 1311 has occurred.
 
 TON What's the status of the Net Logon Service? If its
 TON stopped, try starting it.
 
 AZ It is started!!! ofcourse, what's else? please, may be smth in
 AZ wrapper.properties, but i've didn't find anythnif for 
 Logon. Then
 AZ i've tried to change in tomcat-service LogOn option to Specific
 AZ account with correspondent values - faild, also
 
 
 TON -Tim
 
 And it's me again - may be will be usefull - it was becase
 jk_nt_service.exe was at network drive when at local - everything
 is ok)) but another interesting is, why nt could not logon to network
 drive if it is already logedon - but it is not a question)))
 Sometimes it is usefull to ask smb, and and at the same time to think
 over it, and understand by myself)))
 
 -- 
 Best regards,
  Andrewmailto:[EMAIL PROTECTED]
 
 



servlet authentication mechanism

2001-06-18 Thread rajaxn r

Hi
  I am configuring a web application to run with
servlet 
authentication mechanism. The webapplication is to be
configured on 
both tomcat 3.2
I created entries in web.xml like the below
/*
web-app
display-nameTest1/display-name
servlet
icon/icon
servlet-nameTestServlet/servlet-name
display-nametestservetr/display-name
servlet-classtest.TestServlet/servlet-class
/servlet
servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/test/TestServlet/url-pattern
/servlet-mapping
security-constraint
web-resource-collection
web-resource-nameTestServlet/web-resource-name
description/description
url-pattern/test/TestServlet/url-pattern
http-method
GET/http-method
http-method
POST/http-method
/web-resource-collection
auth-constraint
description/description
role-namemanager/role-name
/auth-constraint
/security-constraint
login-config
auth-method
  FORM 
/auth-method
form-login-config
form-login-page/loginpage.html/form-login-page 
   
form-error-page/errorpage.html/form-error-page 
/form-login-config
/login-config
security-role
description/description
role-namemanager/role-name
/security-role
/web-app


I also included entries in the tomcat-users.xml  like

/
tomcat-users
  user name=tomcat password=tomcat
roles=tomcat,manager/
  user name=role1 password=tomcat roles=role1/
  user name=both password=tomcat
roles=tomcat,role1/
  user name=user1 password=password1
roles=manager /
/tomcat-users

The form test.html calls the servlet TestServlet which
is protected 
by a form based servlet authentication which calls
loginpage.html. loginpage.html has a form with action
j_security_check and fields j_username  j_password
But loginpage.html doesnt accept any of the
user/password pairs above 
in the tomcat users.xml file

Can someone also tell me how to do the above so that a
custom login 
page can be called instead of the page with
j_security_check 



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Running Tomcat under Win 2K - help!

2001-06-18 Thread pfriedl



Hey all. I searched the archives and wasn't able to find any 
real good info on running Tomcat under Win 2K. I understand that it should be 
run in conjunction with Apache, but I can't even get it to run on it's own. I 
did have it running when my box was running Win 98, but Win 2K seems to be a 
little cranky/pickier about things.

Here's my setup:
Tomcat 3.2.2
Win 2K (service pack 1 and all updates)
JBuilder 4 Enterprise
JDK 1.3 (using the JDK that came with JBuilder for 
now)
Java add-ons: Neon Systems JDBC drivers

Environment variables:
*** 
SET 
PATH=".";C:\APPS\MISC\ULTRAE~1;C:\JBUILDER4\JDK1.3\bin

rem - Set Classpath
SET CLASSPATH="."SET 
CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3\bin"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\classes"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\lib"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Neon\JDBC\scjd12.jar"

rem - Tomcat Java server informationSET 
TOMCAT_HOME="C:\Java\Tomcat"SET 
JAVA_HOME="C:\Java\JBuilder4\jdk1.3"
***

Now when I open up a command prompt and start 
"c:\Java\Tomcat\bin\tomcat run" I'll get an exception:
Exception in thread "main" java.lang.NoClassDefFoundError: 
C:\Java\JBuilder4\jdk1/3\bin\java

If you look at the path, somehow the period in the jdk1.3 part 
of the path is getting set to a backslash. This is the only obvious problem that 
I can find. Has anybody got a work around for this on how to get Tomcat to run? 


thanks for the help!


RE: newbie: Installing Servlets

2001-06-18 Thread LeRoi

Yup!  That worked.  Part of the problem for me is that the book I'm using to
learn Java was written just before the Java web server was released to
Jakarta.

Innyway, you've saved me from lots of work until I need to.  I'm I've been
reading the documentation on deploying an application.  For a newbie, it's a
bit overwhelming right now just to test a simple example.

Cheer mate!
LeRoi

-Original Message-
From: Francis Callo [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2001 18:06
To: [EMAIL PROTECTED]
Subject: Re: newbie: Installing Servlets

Hi,
if you have a servlet named HelloWorldi believe you
have to put your classes on
webapps/examples/WEB-INF/classes/ and access it with
URL
http://localhost:8080/examples/servlet/HelloWorld;
Let me know if it works. ;)

GUD LUK
Francis

--- LeRoi [EMAIL PROTECTED] wrote:
 Hello!

 Now that I have Tomcat up and running, it's time
 that I starting doing some
 real work.  Following a simple example in the book
 I'm using it says that
 servlets are installed in the subdirectory
 webapps\WEB-INF\servlets.  I
 put my class there (under examples directory of
 Tomcat) and shut down
 Tomcat and re-started it.  Below is the code for
 textbook example:

 // Fig. 19.5:  HTTPGetServlet.java
 // Creating and sending a page to the client
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;

 public class HTTPGetServlet extends HttpServlet {
   public void doGet(HttpServletRequest request,
  HttpServletResponse
 response)
   throws ServletException, IOException
   {
   PrintWriter output;

   response.setContentType(text/html);  // content
 type
   output = response.getWriter();  // get writer

   // create and send HTML page to client
   StringBuffer buf = new StringBuffer();
   buf.append(HTMLHEADTITLE\n);
   buf.append(A simple Servlet Example\n);
   buf.append(/TITLE/HEADBODY\n);
   buf.append(H1Welcome to Servlets!/H1\n);
   buf.append(/BODY/HTML);
   output.println(buf.toString());
   output.close();  // close PrintWriter stream
   }
 }

 !-- Fig. 19.6: HTTPGetServlet.html --
 HTML
   HEAD
   TITLE
   Servlet HTTP GET Example
   /TITLE
   /HEAD
   BODY
   FORM


ACTION=http://localhost:8080/servlets/HTTPGetServlet;
   METHOD=GET
   PClick the button to have the servlet send
 an HTML document/P
   INPUT TYPE=submit VALUE=Get HTML Document
   /FORM
   /BODY
 /HTML

 Well, it didn't work.  My question is, in order to
 install this simple
 servlet does that mean I have to go through all the
 steps as given in the
 documentation for Developing Applications with
 Tomcat?

 Cheers and many thanx in advance,
 LeRoi




__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/




RE: Session with IE

2001-06-18 Thread Ignacio J. Ortega

Hola Jose Luis:

I think you are having problems with cookies, is the only way i see it
failing..

Please access the http://localhost:8080/examples/jsp/security/ URL in
your installed tomcat, and try to use the Cookies auth to see if works,
if not, i'm almost sure the problem is on your browser ( check to see if
it can store cookies )  , if not everything goes fine ( as it should ) ,
the problem is on your app..so be carefull

Saludos ,
Ignacio J. Ortega

PS: Para un poquito de ayuda en Español, mira 
http://es.egroups.com/group/JUGAnd  o 
http://es.egroups.com/group/JUGAnd  quizas hay te podamos hechar una
mano..


 -Mensaje original-
 De: Jose Luis Rodriguez [mailto:[EMAIL PROTECTED]]
 Enviado el: lunes 18 de junio de 2001 14:24
 Para: [EMAIL PROTECTED]
 Asunto: Session with IE
 
 
 My developed employment is IIS 4.0, Tomcat 3.2.2 under Windows Nt 4.0.
 
 I have a problem when I run mi application with IE 5.5, this lose the
 session inmediatly that I run another time. With Netscape Communicator
 that's Ok.
 
 My application is in:
 webapps/jsp_jsp/inicio.html, procesar_inicio.jsp, inicio.jsp,
 responde.jsp
 webapps/jsp_jsp/Web-inf/classes/jsp_jsp/beans/ManejoDatos.class
 Only it show de session from a jsp to other jsp.
 
 In SYSTEM32/LogFiles/W3SVC1 I see an error number 200 that say so:
 12:04:51 197.100.1.12 GET /jsp_jsp/inicio.html 200
 12:04:53 197.100.1.12 POST /jsp_jsp/procesar_inicio.jsp 200
 12:04:53 197.100.1.12 GET /jsp_jsp/Inicio.jsp 200
 12:04:55 197.100.1.12 GET /jsp_jsp/Responde.jsp 200
 
 isapi.log is empty.
 
 jasper.log:
 2001-06-18 02:20:03 - JspEngine -- /procesar_inicio.jsp
 2001-06-18 02:20:03 -   ServletPath: /procesar_inicio.jsp
 2001-06-18 02:20:03 -  PathInfo: null
 2001-06-18 02:20:03 -  RealPath:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\procesar_inicio.jsp
 2001-06-18 02:20:03 -RequestURI: /jsp_jsp/procesar_inicio.jsp
 2001-06-18 02:20:03 -   QueryString: null
 2001-06-18 02:20:03 -Request Params:
 2001-06-18 02:20:03 -password = fghj
 2001-06-18 02:20:03 -login = hjfgh
 2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
 2001-06-18 02:20:03 - JspEngine -- /Responde.jsp
 2001-06-18 02:20:03 -   ServletPath: /Responde.jsp
 2001-06-18 02:20:03 -  PathInfo: null
 2001-06-18 02:20:03 -  RealPath:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Responde.jsp
 2001-06-18 02:20:03 -RequestURI: /jsp_jsp/Responde.jsp
 2001-06-18 02:20:03 -   QueryString: null
 2001-06-18 02:20:03 -Request Params:
 2001-06-18 02:20:03 -password = fghj
 2001-06-18 02:20:03 -login = hjfgh
 2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
 2001-06-18 02:20:05 - JspEngine -- /Inicio.jsp
 2001-06-18 02:20:05 -   ServletPath: /Inicio.jsp
 2001-06-18 02:20:05 -  PathInfo: null
 2001-06-18 02:20:05 -  RealPath:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Inicio.jsp
 2001-06-18 02:20:05 -RequestURI: /jsp_jsp/Inicio.jsp
 2001-06-18 02:20:05 -   QueryString: null
 2001-06-18 02:20:05 -Request Params:
 2001-06-18 02:20:05 - classpath according to the Servlet Engine es:
 D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
 
 
 My configuration is:
 
 uriworkermap.properties:
 
 # Mount my application context to the ajp12 worker
 /jsp_jsp/*=ajp12
 
 server.xml:
 
 Context path=/jsp_jsp
  docBase=webapps/jsp_jsp
  crossContext=true
  debug=0
  reloadable=true 
 /Context
 
 
 workers.properties:
 
 workers.tomcat_home=D:\jakarta-tomcat-3.2.2
 workers.java_home=D:\jdk1.2.2
 ps=\
 
 worker.list=ajp12, ajp13
 
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 worker.ajp12.lbfactor=1
 
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 #worker.ajp13.cachesize
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp12, ajp13
 
 worker.inprocess.type=jni
 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
 )jaxp.jar
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
 )parser.jar
 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
 )jasper.jar
 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
 )servlet.jar
 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
 )webserver.jar
 
 worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
 worker.inprocess.cmd_line=-config
 worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
 worker.inprocess.cmd_line=-home
 worker.inprocess.cmd_line=$(workers.tomcat_home)
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$
 (ps)classic$(ps)jvm.dll
 
 

RE: Running Tomcat under Win 2K - help!

2001-06-18 Thread Randy Layman


First, in your own best interest, don't post with HTML/RTF email
messages, it limits the number of people who can read your message, which
you don't want.

Second, I think a more telling problem is that you are getting
NoClassDef for the java executable.  Its like the script is trying to
execute Java and pass the path to Java as the class name (which would
explain the conversion of the . to a \).  I would suggest that you carefully
look over your environment variables.  I imagine that you will find that you
have somehow set CLASSPATH to be %CLASSPATH% %JAVA_HOME%, which would
cause your problem.

Randy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Running Tomcat under Win 2K - help!


Hey all. I searched the archives and wasn't able to find any real good info
on running Tomcat under Win 2K. I understand that it should be run in
conjunction with Apache, but I can't even get it to run on it's own. I did
have it running when my box was running Win 98, but Win 2K seems to be a
little cranky/pickier about things.
 
Here's my setup:
Tomcat 3.2.2
Win 2K (service pack 1 and all updates)
JBuilder 4 Enterprise
JDK 1.3 (using the JDK that came with JBuilder for now)
Java add-ons: Neon Systems JDBC drivers
 
Environment variables:
*** 
SET PATH=.;C:\APPS\MISC\ULTRAE~1;C:\JBUILDER4\JDK1.3\bin
 
rem - Set Classpath
SET CLASSPATH=.
SET CLASSPATH=%CLASSPATH%;C:\Java\JBuilder4\jdk1.3
SET CLASSPATH=%CLASSPATH%;C:\Java\JBuilder4\jdk1.3\bin
SET CLASSPATH=%CLASSPATH%;C:\Java\Tomcat\classes
SET CLASSPATH=%CLASSPATH%;C:\Java\Tomcat\lib
SET CLASSPATH=%CLASSPATH%;C:\Java\Neon\JDBC\scjd12.jar
 
rem - Tomcat Java server information
SET TOMCAT_HOME=C:\Java\Tomcat
SET JAVA_HOME=C:\Java\JBuilder4\jdk1.3
***
 
Now when I open up a command prompt and start c:\Java\Tomcat\bin\tomcat
run I'll get an exception:
Exception in thread main java.lang.NoClassDefFoundError:
C:\Java\JBuilder4\jdk1/3\bin\java
 
If you look at the path, somehow the period in the jdk1.3 part of the path
is getting set to a backslash. This is the only obvious problem that I can
find. Has anybody got a work around for this on how to get Tomcat to run? 
 
thanks for the help!



Re: root context

2001-06-18 Thread Mike Erickson

thanks, I put the war in a new folder, changed the docbase of the
context and restarted.. it didn't work but I noticed that the war did
not automatically expand.. so I expanded the war manually, restarted and
it worked fine.. 

after reading through some more threads, I found that commenting out the
AutoSetup entry in server.xml will prevent the contexts of the wars in
the webapps folder from automatically being added.. so this would
prevent my second instance of the servlet from being created as well...
this solution seems to have the same problem though that it requires the
wars to be unpacked manually..

is there any other way to configure the auto-unpacking of the wars
(besides the AutoSetup entry)?
it'd be nice to have the ability to specify auto-context adding and
auto-unpacking of wars seperately..

Mike Erickson



 




RE: Session with IE

2001-06-18 Thread Keng Wong

I'm also having a problem with SingleSignOn (SSO) using 2 different webapps
on Tomcat 4. The cookie works with the jsp example within 1 webapp but the
SSO did not work. Log shows SSO cookie is not present. The only cookie tht
gets set is the JSESSION cookie by the jsp app. Does anyone have any clues ?
Thanks.

-keng wong

 -Original Message-
 From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 18, 2001 11:02 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Session with IE


 Hola Jose Luis:

 I think you are having problems with cookies, is the only way i see it
 failing..

 Please access the http://localhost:8080/examples/jsp/security/ URL in
 your installed tomcat, and try to use the Cookies auth to see if works,
 if not, i'm almost sure the problem is on your browser ( check to see if
 it can store cookies )  , if not everything goes fine ( as it should ) ,
 the problem is on your app..so be carefull




RE: root context

2001-06-18 Thread Filip Hanik

is there any other way to configure the auto-unpacking of the wars
(besides the AutoSetup entry)?
it'd be nice to have the ability to specify auto-context adding and
auto-unpacking of wars seperately..

well, you can write your own AutoSetup interceptor that does this.
 take a look at the doc
http://www.filip.net/tomcatbook/TomcatInterceptors.html
to get a better understanding how Tomcat works.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net





RE: mail return

2001-06-18 Thread Swart, James (Jim) ** CTR **

if you are on your own mailserver, and listed as root/admin.. you are
probably getting a message from your own system... I used to get things like
that, and I traced them back to a cron job that was running that had no
output but mailed me anyway.  See what TIME it is getting the message and
see if a cron job matches it.  That would be my guess.

-Original Message-
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: mail return


Sometimes I get weird message:


The original message was received at Fri, 15 Jun 2001 13:35:56 -0700 (PDT)
from localhost [127.0.0.1]


Does anyone else receiving these? 



  1   2   >