Re: tomcat stopped

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: tomcat stopped

Wendy Smoak-4
From: "Fred Cook" <[hidden email]>
> 2) We had the CLASSPATH set to point to servlet.jar (needed to compile the
> test program).  This was the main problem, which might bring up a
> versioning question.  We are running RH 8.0 on this machine with Tomcat
> 5.5.7 and apache 2.0.53.  What is the correct version of servlet.jar that
> should be run with this version of Tomcat and Apache?

Well... I don't think it's called servlet.jar anymore.  A quick look shows
no servlet.jar file in the Tomcat 5.5.9 download.  I believe the file you
want is servlet-api.jar .  (I'm still on 4.1, so I'm guessing...)

You could also download the "official" API from Sun, and compile against
that.  It's not that you need to compile against a specific version of
_Tomcat_, it's that you need to compile against the right version of the
Servlet Specification.  In your case, Tomcat 5.5 is Servlet 2.4, so make
sure that's what you're using.

Where did you get the 'servlet.jar' file that you were using?  Maybe it does
contain the right stuff, but those strange NoClassDefFound errors you were
getting made me suspicious.

--
Wendy Smoak



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

Reply | Threaded
Open this post in threaded view
|

Re: tomcat stopped

Fred Cook


servlet-api.jar does seem to work.

How we found servlet.jar... we googled javax.lang.xxx.xxx, which came
from a compile error.  The only references were to servlet.jar.  The two
versions of servlet.jar were quite old.. 1999 and 2001 if I remember
correctly, which caused me concern, but it is all we found.

Thanks for the help.

-Fred



Wendy Smoak wrote:

> From: "Fred Cook" <[hidden email]>
>
>> 2) We had the CLASSPATH set to point to servlet.jar (needed to
>> compile the test program).  This was the main problem, which might
>> bring up a versioning question.  We are running RH 8.0 on this
>> machine with Tomcat 5.5.7 and apache 2.0.53.  What is the correct
>> version of servlet.jar that should be run with this version of Tomcat
>> and Apache?
>
>
> Well... I don't think it's called servlet.jar anymore.  A quick look
> shows no servlet.jar file in the Tomcat 5.5.9 download.  I believe the
> file you want is servlet-api.jar .  (I'm still on 4.1, so I'm
> guessing...)
>
> You could also download the "official" API from Sun, and compile
> against that.  It's not that you need to compile against a specific
> version of _Tomcat_, it's that you need to compile against the right
> version of the Servlet Specification.  In your case, Tomcat 5.5 is
> Servlet 2.4, so make sure that's what you're using.
>
> Where did you get the 'servlet.jar' file that you were using?  Maybe
> it does contain the right stuff, but those strange NoClassDefFound
> errors you were getting made me suspicious.
>


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

Reply | Threaded
Open this post in threaded view
|

Cannot download files with IE through tomcat. SSL with no-cache problems?

Donny R Rota
In reply to this post by Wendy Smoak-4
On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   xxxxx.doc
File type:    Microsoft Word Document
From:        yyyyyyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Tim Funk
http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

-Tim

Donny R Rota wrote:

> On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to
> download a doc file I get:
>
> Some files can harm your computer.  If the file information below
> looks suspicious, or you do not fully trust the source, do not open or
> save this file
> File name:   xxxxx.doc
> File type:    Microsoft Word Document
> From:        yyyyyyy.ibm.com
> Open   Save Cancel More Info
>
> I click Open and then the folloing file download dialog comes up:
>
> Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
> Internet Explorer was not able to open this Internet Site.  The requested
> site is either unavailable or cannot be
> found. Please try again later.
> OK
>
> Downloading works fine in FireFox.
> Downloading works fine if I turn off SSL.
> We have an apache server (full httpd server) inhouse where this type of
> SSL download works fine too.
>
> Is there a SSL no-cache setting I have to put in server.xml or something?
>
> Thanks
>
> ...Don...
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> [hidden email]
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Larry Meadors
In reply to this post by Donny R Rota
Hey! I had that problem too, and the fix is as sexy as any windows fix: Edit
the registry!

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings]
"BypassSSLNoCacheCheck"=dword:00000001

This tells IE that it is OK to use cached data that was delivered over SSL.

I know of no other way to set this value.

Larry


On 5/6/05, Donny R Rota <[hidden email]> wrote:

>
> On Apache Tomcat/5.0.28, I've got SLL installed, and whenever I try to
> download a doc file I get:
>
> Some files can harm your computer. If the file information below
> looks suspicious, or you do not fully trust the source, do not open or
> save this file
> File name: xxxxx.doc
> File type: Microsoft Word Document
> From: yyyyyyy.ibm.com <http://yyyyyyy.ibm.com>
> Open Save Cancel More Info
>
> I click Open and then the folloing file download dialog comes up:
>
> Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com<http://yyyyy.ibm.com>
> Internet Explorer was not able to open this Internet Site. The requested
> site is either unavailable or cannot be
> found. Please try again later.
> OK
>
> Downloading works fine in FireFox.
> Downloading works fine if I turn off SSL.
> We have an apache server (full httpd server) inhouse where this type of
> SSL download works fine too.
>
> Is there a SSL no-cache setting I have to put in server.xml or something?
>
> Thanks
>
> ...Don...
> ------------------------------------------------------------------
> Don Rota, CTG Operations
> Rational Software, IBM Software Group
> 20 Maguire Road, Lexington, MA 02421-3104
> Tel: 781 676 2655, Fax: 781 676 7645
> [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Donny R Rota
In reply to this post by Donny R Rota
I found the solution!  Posting here to save other people the problems I
had in finding this:

Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file:

   <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
          disableProxyCaching="false" />

------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[hidden email]



Donny R Rota/Lexington/IBM@IBMUS
05/06/2005 03:13 PM
Please respond to
"Tomcat Users List"


To
"Tomcat Users List" <[hidden email]>
cc

Subject
Cannot download files with IE through tomcat.  SSL with no-cache problems?






On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to
download a doc file I get:

Some files can harm your computer.  If the file information below
looks suspicious, or you do not fully trust the source, do not open or
save this file
File name:   xxxxx.doc
File type:    Microsoft Word Document
From:        yyyyyyy.ibm.com
Open   Save Cancel More Info

I click Open and then the folloing file download dialog comes up:

Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
Internet Explorer was not able to open this Internet Site.  The requested
site is either unavailable or cannot be
found. Please try again later.
OK

Downloading works fine in FireFox.
Downloading works fine if I turn off SSL.
We have an apache server (full httpd server) inhouse where this type of
SSL download works fine too.

Is there a SSL no-cache setting I have to put in server.xml or something?

Thanks

...Don...
------------------------------------------------------------------
Don Rota, CTG Operations
Rational Software, IBM Software Group
20 Maguire Road, Lexington, MA 02421-3104
Tel: 781 676 2655, Fax: 781 676 7645
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

Mark Leone
As posted by Tim Funk in reply to your original message, the details
regarding this problem are found here:

http://issues.apache.org/bugzilla/show_bug.cgi?id=27122

Note that it is a problem with IE only, wherein IE can't handle no-cache
cache directives, and Tomcat only sets these headers when serving
content from a protected context. Also, if you're using other than form
authentication, you need to substitute the class name for your
authenticator in the <valve> configuration described below.

Donny R Rota wrote:

>I found the solution!  Posting here to save other people the problems I
>had in finding this:
>
>Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file:
>
>   <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
>          disableProxyCaching="false" />
>
>------------------------------------------------------------------
>Don Rota, CTG Operations
>Rational Software, IBM Software Group
>20 Maguire Road, Lexington, MA 02421-3104
>Tel: 781 676 2655, Fax: 781 676 7645
>[hidden email]
>
>
>
>Donny R Rota/Lexington/IBM@IBMUS
>05/06/2005 03:13 PM
>Please respond to
>"Tomcat Users List"
>
>
>To
>"Tomcat Users List" <[hidden email]>
>cc
>
>Subject
>Cannot download files with IE through tomcat.  SSL with no-cache problems?
>
>
>
>
>
>
>On Apache Tomcat/5.0.28, I've got SLL installed, and  whenever I try to
>download a doc file I get:
>
>Some files can harm your computer.  If the file information below
>looks suspicious, or you do not fully trust the source, do not open or
>save this file
>File name:   xxxxx.doc
>File type:    Microsoft Word Document
>From:        yyyyyyy.ibm.com
>Open   Save Cancel More Info
>
>I click Open and then the folloing file download dialog comes up:
>
>Internet Explorer cannot download xxxx.doc from yyyyy.ibm.com
>Internet Explorer was not able to open this Internet Site.  The requested
>site is either unavailable or cannot be
>found. Please try again later.
>OK
>
>Downloading works fine in FireFox.
>Downloading works fine if I turn off SSL.
>We have an apache server (full httpd server) inhouse where this type of
>SSL download works fine too.
>
>Is there a SSL no-cache setting I have to put in server.xml or something?
>
>Thanks
>
>...Don...
>------------------------------------------------------------------
>Don Rota, CTG Operations
>Rational Software, IBM Software Group
>20 Maguire Road, Lexington, MA 02421-3104
>Tel: 781 676 2655, Fax: 781 676 7645
>[hidden email]
>
>
>  
>

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