conflict with tomcat's commons-logging and webapp's commons-logging

2003-02-28 Thread Kirby Vandivort
Hello,

I am running Tomcat 4.1.18, and after a while (a few hours) of accessing 
a webapp that is using struts 1.1 rc 1 everything hangs and I have to 
restart tomcat.  I'm accessing the webapp via https.

catalina.out has an exception that looks like the following:




org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
 at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
 at org.apache.tomcat.util.log.Log.log(Log.java:198)
 at org.apache.tomcat.util.log.Log.log(Log.java:192)
 at org.apache.tomcat.util.log.Log.log(Log.java:174)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:484)



I surmise that there is a conflict between the commons-logging that
tomcat has in server/lib and the commons-logging that struts comes
with.  How can I resolve this?  I would like to leave commons-logging
in the webapp so that it is complete if possible, although I suspect
that it might not be, and I'll be forced to package different versions
of my webapp depending on whether the end-installer is using tomcat or
not.

I've searched the groups and can't seem to find anything that really
addresses this issue, though I've probably just missed it.

Thanks!


-- 

Kirby Vandivort  Theoretical and Computational Biophysics 
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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



Re: TC trouble in untar tomcat binary file.

2002-02-27 Thread Kirby Vandivort

Use gnu-tar..  (often   'gtar'on many systems)

sun's tar can't handle the filenames..

On Wed, Feb 27, 2002 at 04:23:22PM -0500, Cheng Yan wrote:
 Hi, there,
 
 I am having trouble in untar tomcat binary file.
 
 I downloaded both jakarta-tomcat-4.0.2-LE-jdk14.tar.gz and 
 jakarta-tomcat-4.0.2.tar.gz. However, when I tried to untar them,
 I got following error message:
 
 tar: directory checksum error
 
 What is the problem?
 
 BTW, I am using an ultra-sparc I box running solaris 2.7.
 
 Thanks for help.
 
 Cheng Yan
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC Re: Java servlet and mailing

2002-02-21 Thread Kirby Vandivort

Or, just use it.  Tomcat (4.x, at least) ships with mail.jar and
jaf.jar..  Just do the imports and you are set.  (you will probably
need to set up your build.xml so that it knows where they are..  They
are in common/lib)

On Thu, Feb 21, 2002 at 05:53:56PM -0600, [EMAIL PROTECTED] wrote:
 
 You could live w/o J2EE is you wish to just use JavaMail.
 Download javamail from the following url:
 http://java.sun.com/products/javamail/index.html
 You will need the java avtication framework as well:
 http://java.sun.com/products/javabeans/glasgow/jaf.html
 
 Thanks.
 RS
 
 
 
 
 Simon [EMAIL PROTECTED] on 02/21/2002 04:31:07 PM
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:
 
 Subject:  Java servlet and mailing
 
 Dear,
 
 I come from PHP world, so that i don't really know about this.
 
 If i need to sent out an email in my serlvet program, do i need to download
 and install javamail?
 (I did a mail() in PHP, which calls /bin/mail indeed, most likely...)
 
 According to this FAQ saying:
 http://java.sun.com/products/javamail/FAQ.html#1
 
 Q: What is the JavaMailTM API?
 A: The JavaMailTM API is a set of abstract APIs that model a mail system.
 The API provides a platform independent and protocol independent framework
 to build Java technology based email client applications. The JavaMail API
 provides facilities for reading and sending email. Service providers
 implement particular protocols. Several service providers are included with
 the JavaMail API package; others are available separately. The JavaMail API
 is implemented as a Java optional package that can be used on JDK 1.1.6 and
 later. The JavaMail API is also a required part of the JavaTM 2 Platform,
 Enterprise Edition (J2EETM).
 
 Do I have J2SE, i don't have JavaMail right?
 So, the easy way out, is to install J2EE in the first place, rather than
 J2SE?
 
 I don't this sounds stupid, but please help.
 
 Many thanks!
 
 Simon.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC URGENT!!!! encodeURL()

2002-02-20 Thread Kirby Vandivort

are you wanting something other than URLEncoder.encode() ?

On Wed, Feb 20, 2002 at 03:43:43PM -0300, Emerson wrote:
 Please, these is really urgent...
 
 How do I encode a URL without HttpServletResponse at hand???
 I need to read a URL from a service, but i have to encode it, changing
 spaces to %20, how do i do it??? have anyone done that
 
 Please, I really have to end this by today
 
 
 Emerson Cargnin
 TRE-SC
 Setor de Desenvolvimento 
 Tel: (48) 251-3700 - Ramal 3134
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC Deploying external dependencies

2002-02-15 Thread Kirby Vandivort

You also need to add directives to the deploy target to actually copy
the files over.. Something like:

copy todir=${deploy.home}/WEB-INF/lib file=${soap.jar}/ 
copy todir=${deploy.home}/WEB-INF/lib file=${xercesImpl.jar}/ 
copy todir=${deploy.home}/WEB-INF/lib file=${xmlParserAPIs.jar}/ 

I'm assuming there aren't any licensing issues with redistribution of
these..  (I've no idea.. Just thought I would toss this out)

On Fri, Feb 15, 2002 at 11:06:27AM -0800, Abhijit Dixit wrote:
 Hi,
 
 I'm trying to deploy a servlet using the sample build.xml file bundled with 
 the Apache Tomcat distribution. My servlet needs some external JAR files 
 and these have to be copied to the WEB-INF/lib directory. I added the 
 following entries to my build.xml file ...
 
 property name=soap.jar
value=/u0/adixit/Downloads/soap-2_2/build/lib/soap.jar/
 property name=xercesImpl.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xercesImpl.jar/
 property name=xmlParserAPIs.jar
value=/u0/adixit/Downloads/xerces-2_0_0/build/lib/xmlParserAPIs.jar/
 
 but when I do a deploy with Ant, although all the other files are deployed 
 properly, these JAR files are not copied to the lib directory. Anything 
 wrong with the above syntax ?
 
 -Abhijit
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC Prefixing tomcat to the Subject Line

2002-02-13 Thread Kirby Vandivort

I use procmail to prepend a  TC   to all of mine.  Life has been
grand since I started doing it..

On Wed, Feb 13, 2002 at 08:37:20AM -0600, [EMAIL PROTECTED] wrote:
 
 
I was wondering if the tomcat-user list-server can
prefix to all subject line something like Tomcat: ,
Tomcat-User: , or TC: . It would help a lot to 
sort out mails if one receives several mails.
 
Thank You,
-abass

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

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Location of Content-type: text/html

2002-02-06 Thread Kirby Vandivort

I am trying to track down a big in the way that some HTML is getting
displayed, and I've noticed a small difference between apache and tomcat
and I was wondering if it is important..

Tomcat returns:

HTTP/1.1 200 OK
Content-Type: text/html
Date: Wed, 06 Feb 2002 20:31:22 GMT
Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
Connection: close
 

where apache returns:

HTTP/1.1 200 OK
Date: Wed, 06 Feb 2002 20:34:36 GMT
Server: Apache/1.3.12 (Unix) DAV/1.0.2 PHP/4.0.0 mod_ssl/2.6.3 OpenSSL/0.9.5a
Connection: close
Content-Type: text/html   

Note that the content-type is showing up in different locations.

I'm trying to send this html to a JEditorPane, and I'm wondering if
it is being extremely picky about where the content-type is showing up.

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC Re: 64k limit on POST variables?

2002-01-30 Thread Kirby Vandivort

I figured out my problem (and I'm ashamed to admit it on the list).

In my case, I wasn't checking the variable on the server at the right
point.  Tomcat was sending 64k just fine (I discovered after adding a
decent amount of debugging).  I happened to be putting the result in a
database column that was limited to 64k.  Hence the reason that I ran
into the problem that I did.

FYI, after some searching on the web, it appears that POSTs do NOT have
a built-in limit.  GETs are limited by what the browser and server
support..  But POSTs have no official limit.  (Only warning is that
they are 'inefficient' for large data, and that multipart forms are
suggested for that)

On Wed, Jan 30, 2002 at 01:47:27PM +0100, Lars Andersen wrote:
 
 
 I have some forms set up that can accept a rather large amount of
 data, and I'm finding that my data is getting truncated after 64k.
 
 What is causing this limitation?  I can't find anything on the web
 about POST variables being limited by the SPEC.  Is this a tomcat
 thing?  and is there any way that it can be changed?
 
  
 
 
 There is most likely such a limit in Tomcats webserver.
 I encountered the same in apache at 8192 bytes.
 
 Solved it by appending over multiple requests.
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




64k limit on POST variables?

2002-01-29 Thread Kirby Vandivort

I have some forms set up that can accept a rather large amount of
data, and I'm finding that my data is getting truncated after 64k.

What is causing this limitation?  I can't find anything on the web
about POST variables being limited by the SPEC.  Is this a tomcat
thing?  and is there any way that it can be changed?

Thanks!

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: TC Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Kirby Vandivort
:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: INSTALLING Tomcat-4.0 with JDK1.4 beta.

2002-01-18 Thread Kirby Vandivort

I'm not sure what you mean by 'tomcat won't install using 1.4 beta'..

(is this on windows?)

I've used 4.0.1 with the 1.4beta on both solaris and linux and it worked
ok..

On Fri, Jan 18, 2002 at 10:39:12AM -0500, [EMAIL PROTECTED] wrote:
 
 Yes you guessed it...Tomcat4.0 won't install using jdk1.4 beta.  The first thing it 
does is says it cant find a Java Development kit.  Works fine with JDK1.3 so I'm 
guessing jdk1.4 will install once it is out of beta.  Correct?  There are some new 
utilities in jdk1.4 I'd like to use, but I've noticed other things that don't work in 
jdk1.4 that traditionally works in the rest, namely the way a class is imported.  
 
 PM
 -- 
 
 
 
 
 __
 Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
 
 Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Auto starting Tomcat during boot?

2002-01-11 Thread Kirby Vandivort

We are possibly getting into religious issues, but you are really better
off not setting the environ vars somewhere that you don't need them..
Why not just make a file like the following (what I use) and drop it
into the appropriate rc directory (modifying as necessary, of course),
and link to it from init.d ?

#!/bin/sh
#

CATALINA_HOME=/where/ever/you/have/tomcat
export CATALINA_HOME
JAVA_HOME=/where/ever/you/have/java
export JAVA_HOME

case $1 in
start)
cmdtext=starting
echo tomcat $cmdtext.
status=`su nobody ${CATALINA_HOME}/bin/catalina.sh start $21`
;;
restart)
cmdtext=restarting
echo tomcat $cmdtext.
status=`su nobody ${CATALINA_HOME}/bin/catalina.sh stop ; sleep 10 ; su
nobody ${CATALINA_HOME}/bin/catalina.sh start $21`
;;
stop)
cmdtext=stopping
echo tomcat $cmdtext.
status=`su nobody ${CATALINA_HOME}/bin/catalina.sh stop $21`
;;
*)
echo Usage: $0 {start|stop|restart}
exit 1
;;
esac

if [ $? != 0 ]; then
echo $status
exit 1
fi
exit 0   



On Fri, Jan 11, 2002 at 07:06:34PM +0100, Martin van den Bemt wrote:
 rc.local definitely not, since it is executed after the other scripts. I
 think the rc.sysinit can be succesfull (never tried that actually, but it is
 setting some variables like HOSTNAME, so..)
 
 Mvgr,
 Martin
 
  -Original Message-
  From: Nelson Yip [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 11, 2002 19:00
  To: 'Tomcat Users List'
  Subject: RE: Auto starting Tomcat during boot?
 
 
  How about setting the environment in the rc.local or rc.sysinit
  files??
  Would that work too?
 
  Thanks
  Nelson
 
  -Original Message-
  From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 11, 2002 12:58 PM
  To: Tomcat Users List
  Subject: RE: Auto starting Tomcat during boot?
 
  Set the java_home in the startupscript (or catalina.sh or whatever place
  you
  prefer).
 
  Mvgr,
  Martin
 
   -Original Message-
   From: Nelson Yip [mailto:[EMAIL PROTECTED]]
   Sent: Friday, January 11, 2002 18:49
   To: 'Tomcat Users List'
   Subject: RE: Auto starting Tomcat during boot?
  
  
   Hello,
  
   I did a cat boot.log:
   Jan 11 14:00:58 corona tomcat: Guessing CATALINA_HOME from
   catalina.shto/usr/local/bin/jakarta-tomcat-4.0.1/bin/..
   Jan 11 14:00:59 corona tomcat: Setting CATALINA_HOME to
   /usr/local/bin/jakarta-tomcat-4.0.1/bin/..
   Jan 11 14:00:59 corona tomcat: You must set JAVA_HOME to point at your
   Java Development Kit installation
   Jan 11 14:00:59 corona rc: Starting tomcat:  failed
  
   I need to set the environment during boot but I'm wondering how can I
  do
   that?  I setup the environment in my /home/users/.bash_profile but
  which
   file do I edit in order to for the script to run?
  
   Thanks
   Nelson
  
  
   -Original Message-
   From: Nelson Yip [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 10, 2002 1:51 PM
   To: [EMAIL PROTECTED]
   Subject: Auto starting Tomcat during boot?
  
   Hi,
  
   I've just installed Tomcat 4.0.1 on my Red Hat 7.2 Linux box.
   Everything works fine but Tomcat won't auto start after a reboot.
  
   I added a symbolic link to the Catalina.sh file in my rc3.d level.
  
   ln -s /usr/local/bin/tomcat/bin/Catalina.sh S99tomcat
  
   Am I doing something wrong?
  
   Thanks
   Nelson
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: tomcat sending 200 response code instead of 404 when error-page used

2002-01-07 Thread Kirby Vandivort

Thanks for the response, but let me be a bit more specific in my
question.  I am using tomcat 4.0.1 standalone, so apache is not
involved.

Tomcat utilizes the error-page directive when it DOES realize that
there has been a problem in the code, and the error-page directive has
an error-type parameter that tells it the exact type of error that it
needs to utilize that particular error-page for.  (something like:
error-page  
  error-type404/error-type
  location/404.html/location 
/error-page)

So, I have set up an error-page directive in my web.xml file to tell
tomcat that it needs to do something special for 404s.  Tomcat is then
sending a response code of 200 and the 404.html file, rather than a
response code of 404 and the html file.

For my particular case it happens to be important what the response
code is, because it isn't a browser that is requesting the file.  It is
a program that does something special if it gets a 404 as opposed to a
200.  So, it needs to be a 404.  (for those that are curious, the
'program' is a JVM; when running an applet it will try to request class
files from the server; if it gets a 404 it knows that it can't find the
class.  If it gets a 200, it thinks that the html file is the binary of
the class file and gets really confused.)

Hope this helps make it more clear.


On Sun, Jan 06, 2002 at 07:31:34PM +0100, Nikola Milutinovic wrote:
 Kirby Vandivort wrote:
 
 Hello,
 
 I am using the error-page directive in my web.xml file to redirect
 users to an html file, /404.html.
 
 When I do this, though, it appears that tomcat is sending a response
 code of 200 instead of 404.  Is this the way that it should be?  It
 seems to me it should send a response code of 404 and then go ahead and
 send the contents of the 404.html file.
 
 Someone out there with a more recent knowledge of how http response
 headers are parsed can possibly set me straight on this one.
 
 I think Apache is doing just what it's told - it is displaying a web page. 
 There are several responses:
 
 2xx - OK
 3xx - Redirect (moved to a different location)
 4xx - Client request error
 5xx - Server error
 
 So, at the error page, Tomcat has no way of knowing which type of error you 
 wish to report and it is using the most common - 200 OK. After all, is it 
 really important to the web browser what the code was, when it gets a nice 
 custom error page?
 
 I know, there might be caching issues involved. Mostly with IE, I might add. 
 And I might also add, if IE sees a 404 it might decide to jump in with IT'S 
 OWN friendly error page, which totally opscures the real error page.
 
 Anyway, you can always directly manipulate response object *in a JSP page 
 and Servlet* Maybe there is some setting in web.xml, but I'm not sure.
 
 Nix.
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Help needed with package access

2002-01-07 Thread Kirby Vandivort


On Mon, Jan 07, 2002 at 10:43:08AM -0500, Michael Wentzel wrote:
  I am using tomcat and i am unable to compile my servlet 
  classes when i try
  to make an instance of a class that i have created which lies 
  in the same
  folder as my servlet, ie WEB-INF/classes.  A error occurs 
  telling me that it
  cannot resolve the class.
  
  The only way around this is to put these classes i need in 
  the jre/classes
  folder of my java home directory.
  
  Does anybody know a way around this problem so that my 
  servlets can 'see' my
  java classes in the classes folder, or below.
 
 Try doing an explicit import of the class.  i.e. if your class you want to
 instantiate is MyClass.class do the following in your servlet:
 
 import MyClass;

Be aware that this code won't work in java 1.4.  1.4 requires explicit
package imports.  (they decided to get strict on that..)

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: tomcat sending 200 response code instead of 404 when error-page used

2002-01-07 Thread Kirby Vandivort

  So, I have set up an error-page directive in my web.xml file to tell
  tomcat that it needs to do something special for 404s.  Tomcat is then
  sending a response code of 200 and the 404.html file, rather than a
  response code of 404 and the html file.
 
 
 That is the correct behavior, from my understanding.  Declaring an
 error-page is telling the container to use this page *instead* of what
 you would normally do.  And, because your /404.html page actually
 exists, a 200 is the correct status for that.
 
  For my particular case it happens to be important what the response
  code is, because it isn't a browser that is requesting the file.  It is
  a program that does something special if it gets a 404 as opposed to a
  200.  So, it needs to be a 404.  (for those that are curious, the
  'program' is a JVM; when running an applet it will try to request class
  files from the server; if it gets a 404 it knows that it can't find the
  class.  If it gets a 200, it thinks that the html file is the binary of
  the class file and gets really confused.)
 
  Hope this helps make it more clear.
 
 
 Why not just remove your error-page declaration?  Then, Tomcat will
 return a real 404 status?

That's what I've actually done for now.  However, it would be more
asthetically pleasing to have a special 404 page..  That's the only
real reason.  Not a huge deal.. Just trying to figure out how things
are acting.

FYI (I just thought to check this),

Apache (1.3.19, anyway), when using the

ErrorDocument 404 /nothere.html

configuration directive, logs an access_log of:

127.0.0.1 - - [07/Jan/2002:11:47:10 -0600] GET /asdf HTTP/1.0 404 33   

(and displays /nothere.html, which is 33 bytes long)


-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Apache Style Logging

2002-01-07 Thread Kirby Vandivort

To the best of my knowledge, tomcat does what you want by default.
Standalone creates an access_log file that contains lines like:

127.0.0.1 - - [07/Jan/2002:13:10:54 -0600] POST /mycode/servlet/Serv HTTP/1.0 200 
243 

One thing that MIGHT throw you for a bit is that tomcat makes a new
file for each day (more or less) but I suspect that is configurable,
although I haven't taken the time to research that.

Kirby


On Mon, Jan 07, 2002 at 11:08:57AM -0800, John Moore wrote:
 
 Fellow Tomcat'ers,
 
 Is there a way to configure Tomcat 3.X or 4.X to produce a log file like
 that of Apache?  I want to use a standalone Tomcat container but need to get
 usage stats out for WebTrends (date, time, url, rc, size, etc) .   I
 currently use Apache 1.3.22 - mod_jk - tomat 3.2.3 but can easily move to
 TC 4 if that helps.  I couldn't find anything in the logger docs.
 
 Thanks,
 John Moore

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




tomcat sending 200 response code instead of 404 when error-page used

2002-01-03 Thread Kirby Vandivort

Hello,

I am using the error-page directive in my web.xml file to redirect
users to an html file, /404.html.

When I do this, though, it appears that tomcat is sending a response
code of 200 instead of 404.  Is this the way that it should be?  It
seems to me it should send a response code of 404 and then go ahead and
send the contents of the 404.html file.

Someone out there with a more recent knowledge of how http response
headers are parsed can possibly set me straight on this one.

Thanks,

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




DNS lookup not working

2002-01-03 Thread Kirby Vandivort

Using tomcat 4.0.1 standalone..

My DNS lookups don't seem to be working..  Relevant bits of files:

server.xml:

   !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true



java code:

You (or someone at  +
httpReq.getRemoteHost() + ( + httpReq.getRemoteAddr() + )\n +

output:

You (or someone at 127.0.0.1(127.0.0.1)  


I don't think it is a DNS thing.  The machine is resolving names just
as it always has..  This has been happening since I switched to tomcat
a couple of weeks ago; I just now started extensive testing and noticed
it, though.

Any ideas ?

 
-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Config problems with Warp and WebAppDeploy

2001-12-05 Thread Kirby Vandivort
 on
  SSLCipherSuite
  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  SSLCertificateFile /usr/local/apache_1.3.22/conf/ssl.crt/server.crt
  SSLCertificateKeyFile /usr/local/apache_1.3.22/conf/ssl.key/server.key
  Files ~ \.(cgi|shtml|phtml|php3?)$
  SSLOptions +StdEnvVars
  /Files
  Directory /usr/local/apache_1.3.22/cgi-bin
  SSLOptions +StdEnvVars
  /Directory
  SetEnvIf User-Agent .*MSIE.* \
   nokeepalive ssl-unclean-shutdown \
   downgrade-1.0 force-response-1.0
  
  CustomLog /usr/local/apache_1.3.22/logs/ssl_request_log \
%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \%r\ %b
  
  /VirtualHost
  
  /IfDefine
  
  Beth Anne Lambrechts
  Cross Fire Labs, Inc.
  e-mail: [EMAIL PROTECTED]
  Phone/Fax: 703-724-9210
  
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Apache + Tomcat mod_webapp.so Does anyone have a solution?

2001-12-05 Thread Kirby Vandivort

Ditto.  

I did have to use the EAPI version.  But bin/apachectl configtest told
me about that so it was pretty straightforward.

Anyone have a solaris binary of webapp 1.0.1?  (1.0.1 is in the 'src'
directory under the tomcat release, but no binaries of it have shown up
yet)  I tried to compile one myself, but I don't have a new enough version
of libtool.

On Wed, Dec 05, 2001 at 11:15:59AM -0500, Cross Fire Labs B.A. Lambrechts wrote:
 Ok - well I am using Solaris 8 as well and I did not have to compile the 
 mod_webapp.so at all - downloaded a tar file:
 
 webapp_module-1.0-tc40.tar
 
 and when I extracted it from the tar file - the mod_webapp.so was there so I 
 
 just copied that one into the libexec directory.
 
 
 
 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210
 
 
 
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Apache + Tomcat mod_webapp.so Does anyone have a solution?
 Date: Wed, 5 Dec 2001 11:09:27 -0500
 
 
 Yes.
 
 
 Thank You,
 
 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813
 
 
 
 Cross Fire Labs
 B.A. Lambrechts  To: 
 [EMAIL PROTECTED]
 cross_fire_labs@ho   cc:
 tmail.comSubject: Re: Apache + 
 Tomcat mod_webapp.so Does anyone have a
solution?
 12/05/2001 10:56 AM
 Please respond to
 Tomcat Users List
 
 
 
 
 
 
 Have you copied mod_webapp.so into the apache/libexec directory?
 
 
 
 Beth Anne Lambrechts
 Cross Fire Labs, Inc.
 e-mail: [EMAIL PROTECTED]
 Phone/Fax: 703-724-9210
 
 
 
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Apache + Tomcat mod_webapp.so Does anyone have a solution?
 Date: Wed, 5 Dec 2001 10:51:10 -0500
 
 Does anyone have a solution for using the mod_webapp.so to connect Apache
 and Tomcat on a Solaris 8 machine? I have a Solaris 8 Sparc and I've
 installed Tomcat 4.0 and Apache 1.3.22. I'm trying to use the
 mod_webapp.so
 to connect the two together. When I run the /apachectl configtest it 
 comes
 up with this error:
 
 # /usr/local/apache/bin/apachectl configtest
 Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1:
 /usr/local/apache/bin/httpd: fatal: relocation error: file
 /usr/local/apache/libexec/mod_webapp.so: symbol __lshrdi3: referenced
 symbol not found
 
 I have gcc 3.0 on my machine, but I don't have the Solaris c compiler.
 
 
 Thank You,
 
 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Re: Apache + Tomcat mod_webapp.so Does anyone have a solution?

2001-12-05 Thread Kirby Vandivort

Did you say that you had compiled apache yourself?  What parameters did
you use when compiling it?  I'm wondering if maybe something was set to
make everything in apache static without allowing dynamic stuff..

Just a thought..

On Wed, Dec 05, 2001 at 12:08:05PM -0500, [EMAIL PROTECTED] wrote:
 
 I just tried it again and this is what I get:
 
 # ./apachectl configtest
 Syntax error on line 238 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/mod_webapp.so into server: ld.so.1:
 /usr/local/apache/bin/httpd: fatal: relocation error: file
 /usr/local/apache/libexec/mod_webapp.so: symbol __lshrdi3: referenced
 symbol not found
 
 
 
 Thank You,
 
 Justin A. Stanczak
 Web Manager
 Shake Learning Resource Center
 Vincennes University
 (812)888-5813
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Mailing list question

2001-12-05 Thread Kirby Vandivort

Got an obtusely-offtopic question...

I can't seem to successfully post a message from
my   [EMAIL PROTECTED]   email account to
tomcat-user.  However, I can successfully post 
messages from my yahoo account.  My ks.uiuc.edu 
account seems to be working in all other respects.  
I can send and receive mail well with it.. I just 
can't seem to post a message to
[EMAIL PROTECTED]

Any ideas what could be causing this and what I can 
do about it?

Thanks,

Kirby
[EMAIL PROTECTED]
[EMAIL PROTECTED]


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




Re: Mailing list question

2001-12-05 Thread Kirby Vandivort

Wow.. they magically started working!  I have ks.uiuc.edu registered
with the mailing list.. (i only use my yahoo account if I'm expecting
somewhere to send lots of spam, or in this case, because it was the
only one that worked)

What sort of turn-around time do you guys (and gals) usually see on
messages?  It took me a good 3 hours to see these messages that I had
posted, and then they all showed up at once.  (I'm just asking for
an average here.. I realize that it can vary greatly depending on net
congestion, etc)

Thanks for all the help.  

Kirby

On Wed, Dec 05, 2001 at 01:49:30PM -0700, Jim Rueschhoff wrote:
 Is [EMAIL PROTECTED] registered as a mailing list user?  I suspect you
 get all your messages with your yahoo account and that your uiuc.edu account
 is not registered so the newsgroup program is rejecting your messages as
 spam attempts.
 
 -Original Message-
 From: Kirby Vandivort [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 05, 2001 10:28 AM
 To: [EMAIL PROTECTED]
 Subject: Mailing list question
 
 
 Got an obtusely-offtopic question...
 
 I can't seem to successfully post a message from
 my   [EMAIL PROTECTED]   email account to
 tomcat-user.  However, I can successfully post
 messages from my yahoo account.  My ks.uiuc.edu
 account seems to be working in all other respects.
 I can send and receive mail well with it.. I just
 can't seem to post a message to
 [EMAIL PROTECTED]
 
 Any ideas what could be causing this and what I can
 do about it?
 
 Thanks,
 
 Kirby
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 
 __
 Do You Yahoo!?
 Buy the perfect holiday gifts at Yahoo! Shopping.
 http://shopping.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




problems accessing https URLs from a servlet

2001-12-05 Thread Kirby Vandivort

Ignacio asked me to send a test message to see if my account had
access, so I figured I'd throw a real question in at the same time..
:)


I am trying to access https URLs from within a tomcat servlet and am
not having any luck.

I am using tomcat 4.0.1, jsse 1.0.2, java 1.3..  That's the important
version numbers I can think of..

I am NOT trying to access tomcat via https.  I am trying to make a URL
connection from a servlet to a https URL.

I have recently started using Tomcat and was previously using JServ.
The exact same code worked beautifully under JServ.  When I switched to
tomcat it quit working.

Some debugging help...

My code that adds the handlers reads:

// set ourselves up to handle ssl
java.security.Security.addProvider(
 new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty(java.protocol.handler.pkgs,
  com.sun.net.ssl.internal.www.protocol);

I am putting the 3 jsse jar files in the lib directory under 
webapps/./WEB-INF.

It fails by telling me that I have a malformed URL when I try to create
a URL object with a https prefix.

(something like:   new URL(https://blah.com;)

IF I remove the 3 jar files I start getting class not found exceptions,
so it is finding the jar files.

IF I run with the java 1.4 beta it works.  So it is something about having
to manually insert jsse.

IF I set the JSSE_HOME variable (which causes the jar files to be put in
the classpath for tomcat itself) I get past the malformed URL lines.  I
then start getting 

java.net.SocketException: SSL implementation not available
at javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.init([DashoP
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init([Dasho
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOut
at TB.collab.db.EventServerConnection.makeConnection(EventServerConnecti  
this exception.  Which tells me again that I think I'm getting some
sort of collision between the code that tomcat has set up to allow
accesses via https and what I'm doing.

If I set JSSE_HOME and have the jsse debugging turned on, I sometimes
get:

default context init failed: 
   java.security.PrivilegedActionException 
   java.security.NoSuchAlgorithmException: 
 Class com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl 
 configured for KeyManagerFactory not a KeyManagerFactory


Let's see.. what else have I tried..  This happens to be on redhat 7.2,
though I don't think that makes a difference.

It doesn't seem to make a difference if I put the jsse jar files in
$JAVA_HOME/lib/ext.


I'm at a loss.  The code worked well under jserv (and still works if I
run it using JServ); it doesn't work under tomcat.  

Question about the tomcat code..  Is it adding security providers via
java.security.Security.addProvider()?  I'm wondering if maybe my code
for creating a new URL object is calling upon the wrong security
provider..

Any help would be appreciated.

Thanks,

-- 

Kirby Vandivort  Theoretical Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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




Problem with accessing https URLs from within Tomcat

2001-12-04 Thread Kirby Vandivort

I apologize for sending this from my yahoo account.
This is the third time I've tried to send this message
in the past 26 or so hours and this time I thought I
would try a different email account.


Hello,

I am using tomcat 4.0.1, jsse 1.0.2, java 1.3.. 
That's the important
version numbers I can think of..

I am trying to access https URLs from within a
tomcat servlet and am
not having any luck.

I am NOT trying to access tomcat via https.  I am
trying to make a URL
connection from a servlet to a https URL.

Now that I have that clear...

I have recently started using Tomcat and was
previously using JServ.
The exact same code worked beautifully under JServ. 
When I switched to
tomcat it quit working.

Some debugging help...
 
My code reads:

// set ourselves up to handle ssl
java.security.Security.addProvider(
 new
com.sun.net.ssl.internal.ssl.Provider());
System.setProperty(java.protocol.handler.pkgs,
com.sun.net.ssl.internal.www.protocol);
 
I am putting the 3 jsse jar files in the lib
directory under 
webapps/../web-inf.


It fails by telling me that I have a malformed URL
when I try to create
a URL object with a https prefix.

IF I remove the 3 jar files I start getting class
not found exceptions,
so it is finding the jar files.

IF I run with the java 1.4 beta it works.  So it is
something about having
to manually insert jsse.

IF I set the JSSE_HOME variable (which causes the
jar files to be put in
the classpath for tomcat itself) I get past the
malformed URL lines.  I
then start getting 
 
java.net.SocketException: SSL implementation not
available
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.init([DashoP
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init([Dasho
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOut
at
TB.collab.db.EventServerConnection.makeConnection(EventServerConnecti
 
this exception.  Which tells me again that I think
I'm getting some
sort of collision between the code that tomcat has
set up to allow
accesses via https and what I'm doing.

If I set JSSE_HOME and have the jsse debugging
turned on, I sometimes
get:

default context init failed: 
   java.security.PrivilegedActionException 
   java.security.NoSuchAlgorithmException: 
 Class
com.sun.net.ssl.internal.ssl.KeyManagerFactoryImpl 
 configured for KeyManagerFactory not a
KeyManagerFactory
 
Let's see.. what else have I tried..  This happens to
be on redhat 7.2,
though I don't think that makes a difference.

It doesn't seem to make a difference if I put the
jsse jar files in
$JAVA_HOME/lib/ext.


I'm at a loss.  The code worked well under jserv
(and still works if I
run it using JServ); it doesn't work under tomcat. 
Any help would be
appreciated.

Thanks,

-- 

Kirby Vandivort  Theoretical
Biophysics Group
Email: [EMAIL PROTECTED]  3051 Beckman
Institute
http://www.ks.uiuc.edu/~kvandivo/University of
Illinois
Phone: (217) 244-5711405 N. Mathews
Ave
Fax  : (217) 244-6078Urbana, IL 
61801, USA


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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