Re: how does tomcat store session objects?

2002-05-25 Thread Phillip Morelock

I just quickly checked the site and there are also a couple of "tomcat
internals" articles and the full javadoc for Tomcat 4 is already posted
there as well.

/f/

--

Have you built the Tomcat source javadoc tree?  Maybe you don't want to wade
knee-deep in source...understandable, I guess.  But at least build yourself
the javadoc from the sources and read that stuff.  Also see the high-level
architecture image (or maybe pdf?) on the jakarta site.

fillup


>>> Can someone tell me how tomcat stores session objects or at least where
>>> I could find out this info without looking at the src?
>>> 
>> 
>> without looking at the source?  why not?  it's Free, and it's the most
>> authoritative answer you can get.
> Hi,
> 
> Maybe I just feel like getting someone else's opinion. Because, where
> reading the src is excellent excercise, you may not find what the
> general policies are regarding any particular feature.   What you will
> get is a precise picture of what the product does at that specific point
> in time(or for that specific version). I am trying to establish the
> broad policies of a  servlet engine implementation - the reference
> implementation. If one was going to produce a document which introduced
> the product's features I would expect to find this kind of information
> in it. So if the servlet spec is a bit vague perhaps the document might
> mention a few implementation details. Not an all-out volume of commentry
> - just the general approach taken.
> 
> Seeing as tomcat has undergone a fair bit of development and has been
> subjected to some structural changes between recent releases(i.e. 3.x vs
> 4.0), I thought my first port of call might be to find a long suffering
> fellow tomcat-user who may have passed on a few helpful hints or his/her
> take on the big picture (or part thereof, even) - just because he can.
> 
> Can someone point me to a reference / tech article or discussion? Does
> anyone know whether or not the way the session management is handled by
> tomcat has changed in any major way? Are there any caveats to accessing
> session objects from multiple simultaneous requests? The way this is
> implementated in the reference implementation (between specs) I would
> have thought would be documented somewhere other than in the src code.
> 
> Regards
> Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: how does tomcat store session objects?

2002-05-25 Thread Phillip Morelock

Have you built the Tomcat source javadoc tree?  Maybe you don't want to wade
knee-deep in source...understandable, I guess.  But at least build yourself
the javadoc from the sources and read that stuff.  Also see the high-level
architecture image (or maybe pdf?) on the jakarta site.

fillup


>>> Can someone tell me how tomcat stores session objects or at least where
>>> I could find out this info without looking at the src?
>>> 
>> 
>> without looking at the source?  why not?  it's Free, and it's the most
>> authoritative answer you can get.
> Hi,
> 
> Maybe I just feel like getting someone else's opinion. Because, where
> reading the src is excellent excercise, you may not find what the
> general policies are regarding any particular feature.   What you will
> get is a precise picture of what the product does at that specific point
> in time(or for that specific version). I am trying to establish the
> broad policies of a  servlet engine implementation - the reference
> implementation. If one was going to produce a document which introduced
> the product's features I would expect to find this kind of information
> in it. So if the servlet spec is a bit vague perhaps the document might
> mention a few implementation details. Not an all-out volume of commentry
> - just the general approach taken.
> 
> Seeing as tomcat has undergone a fair bit of development and has been
> subjected to some structural changes between recent releases(i.e. 3.x vs
> 4.0), I thought my first port of call might be to find a long suffering
> fellow tomcat-user who may have passed on a few helpful hints or his/her
> take on the big picture (or part thereof, even) - just because he can.
> 
> Can someone point me to a reference / tech article or discussion? Does
> anyone know whether or not the way the session management is handled by
> tomcat has changed in any major way? Are there any caveats to accessing
> session objects from multiple simultaneous requests? The way this is
> implementated in the reference implementation (between specs) I would
> have thought would be documented somewhere other than in the src code.
> 
> Regards
> Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat refusing jsessionid's

2002-05-25 Thread Phillip Morelock

Cool, after I wrote it I thought that might be what you meant.  Maybe you
should just turn off cookies and _only_ use url rewriting?  That's what I'd
try, but maybe you have a reason not to do that?

fillup


On 5/25/02 8:24 PM, "Jiger Java" <[EMAIL PROTECTED]> wrote:

> Philip,
> I did try using url re-writing using jsessionid'd & that is why I
> wrote this mail. TOmcat seems to use jsessionid in cookies first & if not
> there only then take jsessionid from url. This is my guess coz that is what
> is happening.
> 
> Does anyone have any idea how to force using jsessionid in such situations
> to make user jump between two domains(though they are in reality same
> machine & same tomcat) without his knowlege.
> 
> -Jiger
> 
> 
>> From: Phillip Morelock <[EMAIL PROTECTED]>
>> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> To: Tomcat Users List <[EMAIL PROTECTED]>
>> Subject: Re: Tomcat refusing jsessionid's
>> Date: Sat, 25 May 2002 09:14:27 -0700
>> MIME-Version: 1.0
>> Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id
>> MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700
>> Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 -
>> Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 -
>> From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700
>> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>> Precedence: bulk
>> List-Unsubscribe: 
>> List-Subscribe: 
>> List-Help: 
>> List-Post: 
>> List-Id: "Tomcat Users List" 
>> Delivered-To: mailing list [EMAIL PROTECTED]
>> X-Antivirus: nagoya (v4198 created Apr 24 2002)
>> User-Agent: Microsoft-Entourage/10.0.0.1309
>> Message-ID: <[EMAIL PROTECTED]>
>> In-Reply-To: <[EMAIL PROTECTED]>
>> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>> 
>> HTTP sessionsbrowsers are configured to associate cookies with domain
>> names.  They will not transmit a cookie to a domain other than the
>> originating domain (at least they shouldn't).  It has nothing to do with IP
>> address, only domain name.  I am not sure I understand your question, but
>> if
>> I am reading it correctly, the only thing you can do is some manual
>> persistence scheme, such as using a database and url rewriting or some
>> similar scheme.
>> 
>> does this help?
>> 
>> fillup
>> 
>> 
>> On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:
>> 
>>> Hi,
>>>   I have checked the archives already but did not come across similar
>>> problems so I would like to ask it.
>>> 
>>> My Platform:
>>> Tomcat 4.0.
>>> JDK 1.4
>>> RHT Linux
>>> 
>>>   We have this application hosted on an generic server say
>>> http://www.server.com now our reseller's can map their DNS such that
>>> www.reseller.com points to www.server.com this will be dynamic( since
>>> reseller's will be doing it themselves) so I can't use "virtual host"
>>> feature of tomcat. The idea is that customer of that reseller should not
>>> come to know that they are actually buying stuff from us & so the
>> customer
>>> *always* sees the reseller's website url in his browser. All pages post
>> to
>>> http://www.reseller.com/customer/xyz , which would post to us due to DNS
>>> mapping. So far so good. But in many critical places like Login,
>> customer
>>> signup, we have hardcoded url's to our https:// server (same machine
>> same
>>> tomcat) becoz reseller need not buy Secure Certificates.
>>>  This is the problem. Inspite of my adding jsessionid to all such
>>> pages right from posting to https:// to  refreshes, I still can't
>> seem
>>> to get back the session. Logically, if I pass in the right sessionid,
>> tomcat
>>> should pick up the correct session but it is still picking up pre-login
>>> session & refusing the new sessionid got in the Authenticationservlet.
>>> 
>>> I attach the jsessionid something like this
>>> 
>> 
http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessioni>>
d
>>> =A4A0314540585318A4F5E327F1457375
>>> 
>>>  Does anyone have any idea how to solve it. Please ask me if you
>> need
>>> more clarifications. I need to get this thing out.
>>> 
>>>  Thanks & Awaiting your replies,
>>>  Jiger
>>> 
>>> 
>>> 
>>> _
>>> MSN Photos is the easiest way to share and print your photos:
>>> http://photos.msn.com/support/worldwide.aspx
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:
>> 
>>> For additional commands, e-mail:
>> 
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>> 
>> 
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> Fo

RE: [OT] Re: Applet and SSL

2002-05-25 Thread KUMAR,PANKAJ (HP-Cupertino,ex1)

Hi,

If the applet communicates with the backend using RMI ( most often used
mechanism ), the data exchanged won't be encrypted.

If the applet establishes http connection wit the backend, then again the
data won't be encrypted. ( As Jeff observes ).

If the applet uses https:// then you have an interesting situation -- when
the browser uses https:// it makes use of its own certificate database and
certificate validation logic. For applet, the certificate database would be
different ( the one that comes with the JDK or JRE ) and the validation
logic is also different. For example, if the server presents a certificate
that is expired or signed by a non-trusted CA then the browser would prompt
the user but the Java code running within applet will just refuse
connection.

As far as I know, security providers bundled with SUN's JDK do not integrate
very well with PKI security infrastructure of browsers.

/Pankaj.

-Original Message-
From: Jeff Turner
To: Tomcat Users List
Sent: 5/24/02 11:47 PM
Subject: [OT] Re: Applet and SSL

On Fri, May 24, 2002 at 04:05:28PM -0700, Bing Zhang wrote:
> Hi,
> 
> We are evaluating a web application with applet as front end. It runs
well
> on our machine with regular http.
> 
> Now we want to run it through SSL. If the front end are pure html
pages, we
> are not concerned since the web browser will take care the SSL issue
and
> encrypt the traffic automatically. But because the front end is
applet, we
> are not sure. Will browser take care of the enryption automatically?
or in
> short, do we only need to configure our web server to run SSL, there
is no
> modification on both server and applet code?

Does the applet do any HTTP requests to the server it came from? If so,
you may have problems if the applet has hardcoded "http://..."; URLs,
instead of using getDocumentBase() to determine 'http' or 'https'.

--Jeff

> Thanks
> 
> Bing

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat refusing jsessionid's

2002-05-25 Thread tek1

is it possible for a client to append JSESSIONID= to the url 
(i.e. 
http://theurl.com/theservlet?JSESSIONID=A4A0314540585318A4F5E327F1457375) 
and still use the POST method, or is the usage of GET mandatory?

thanks.



At 08:54 02/05/26 +0530, you wrote:
>Philip,
>  I did try using url re-writing using jsessionid'd & that is why I 
> wrote this mail. TOmcat seems to use jsessionid in cookies first & if not 
> there only then take jsessionid from url. This is my guess coz that is 
> what is happening.
>
>Does anyone have any idea how to force using jsessionid in such 
>situations to make user jump between two domains(though they are in 
>reality same machine & same tomcat) without his knowlege.
>
>-Jiger
>
>
>>From: Phillip Morelock <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: Re: Tomcat refusing jsessionid's
>>Date: Sat, 25 May 2002 09:14:27 -0700
>>MIME-Version: 1.0
>>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>>MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700
>>Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 -
>>Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 -
> From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700
>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>Precedence: bulk
>>List-Unsubscribe: 
>>List-Subscribe: 
>>List-Help: 
>>List-Post: 
>>List-Id: "Tomcat Users List" 
>>Delivered-To: mailing list [EMAIL PROTECTED]
>>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>>User-Agent: Microsoft-Entourage/10.0.0.1309
>>Message-ID: <[EMAIL PROTECTED]>
>>In-Reply-To: <[EMAIL PROTECTED]>
>>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>>
>>HTTP sessionsbrowsers are configured to associate cookies with domain
>>names.  They will not transmit a cookie to a domain other than the
>>originating domain (at least they shouldn't).  It has nothing to do with IP
>>address, only domain name.  I am not sure I understand your question, but if
>>I am reading it correctly, the only thing you can do is some manual
>>persistence scheme, such as using a database and url rewriting or some
>>similar scheme.
>>
>>does this help?
>>
>>fillup
>>
>>
>>On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:
>>
>> > Hi,
>> >   I have checked the archives already but did not come across similar
>> > problems so I would like to ask it.
>> >
>> > My Platform:
>> > Tomcat 4.0.
>> > JDK 1.4
>> > RHT Linux
>> >
>> >   We have this application hosted on an generic server say
>> > http://www.server.com now our reseller's can map their DNS such that
>> > www.reseller.com points to www.server.com this will be dynamic( since
>> > reseller's will be doing it themselves) so I can't use "virtual host"
>> > feature of tomcat. The idea is that customer of that reseller should not
>> > come to know that they are actually buying stuff from us & so the customer
>> > *always* sees the reseller's website url in his browser. All pages post to
>> > http://www.reseller.com/customer/xyz , which would post to us due to DNS
>> > mapping. So far so good. But in many critical places like Login, customer
>> > signup, we have hardcoded url's to our https:// server (same machine same
>> > tomcat) becoz reseller need not buy Secure Certificates.
>> >  This is the problem. Inspite of my adding jsessionid to all such
>> > pages right from posting to https:// to  refreshes, I still can't seem
>> > to get back the session. Logically, if I pass in the right sessionid, tomcat
>> > should pick up the correct session but it is still picking up pre-login
>> > session & refusing the new sessionid got in the Authenticationservlet.
>> >
>> > I attach the jsessionid something like this
>> > 
>> http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid
>> > =A4A0314540585318A4F5E327F1457375
>> >
>> >  Does anyone have any idea how to solve it. Please ask me if you need
>> > more clarifications. I need to get this thing out.
>> >
>> >  Thanks & Awaiting your replies,
>> >  Jiger
>> >
>> >
>> >
>> > _
>> > MSN Photos is the easiest way to share and print your photos:
>> > http://photos.msn.com/support/worldwide.aspx
>> >
>> >
>> > --
>> > To unsubscribe, e-mail:
>>
>> > For additional commands, e-mail: 
>> 
>> >
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail: 
>
>
>
>
>_
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


--
To unsub

Re: Tomcat refusing jsessionid's

2002-05-25 Thread Jiger Java

Philip,
  I did try using url re-writing using jsessionid'd & that is why I 
wrote this mail. TOmcat seems to use jsessionid in cookies first & if not 
there only then take jsessionid from url. This is my guess coz that is what 
is happening.

Does anyone have any idea how to force using jsessionid in such situations 
to make user jump between two domains(though they are in reality same 
machine & same tomcat) without his knowlege.

-Jiger


>From: Phillip Morelock <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Tomcat refusing jsessionid's
>Date: Sat, 25 May 2002 09:14:27 -0700
>MIME-Version: 1.0
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBEB9037700594004310EC0123183C6C00; Sat, 25 May 2002 09:14:47 -0700
>Received: (qmail 2532 invoked by uid 97); 25 May 2002 16:14:29 -
>Received: (qmail 2516 invoked by uid 98); 25 May 2002 16:14:29 -
>From tomcat-user-return-20632-jigerjava Sat, 25 May 2002 09:16:15 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
>List-Subscribe: 
>List-Help: 
>List-Post: 
>List-Id: "Tomcat Users List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Antivirus: nagoya (v4198 created Apr 24 2002)
>User-Agent: Microsoft-Entourage/10.0.0.1309
>Message-ID: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>HTTP sessionsbrowsers are configured to associate cookies with domain
>names.  They will not transmit a cookie to a domain other than the
>originating domain (at least they shouldn't).  It has nothing to do with IP
>address, only domain name.  I am not sure I understand your question, but 
>if
>I am reading it correctly, the only thing you can do is some manual
>persistence scheme, such as using a database and url rewriting or some
>similar scheme.
>
>does this help?
>
>fillup
>
>
>On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >   I have checked the archives already but did not come across similar
> > problems so I would like to ask it.
> >
> > My Platform:
> > Tomcat 4.0.
> > JDK 1.4
> > RHT Linux
> >
> >   We have this application hosted on an generic server say
> > http://www.server.com now our reseller's can map their DNS such that
> > www.reseller.com points to www.server.com this will be dynamic( since
> > reseller's will be doing it themselves) so I can't use "virtual host"
> > feature of tomcat. The idea is that customer of that reseller should not
> > come to know that they are actually buying stuff from us & so the 
>customer
> > *always* sees the reseller's website url in his browser. All pages post 
>to
> > http://www.reseller.com/customer/xyz , which would post to us due to DNS
> > mapping. So far so good. But in many critical places like Login, 
>customer
> > signup, we have hardcoded url's to our https:// server (same machine 
>same
> > tomcat) becoz reseller need not buy Secure Certificates.
> >  This is the problem. Inspite of my adding jsessionid to all such
> > pages right from posting to https:// to  refreshes, I still can't 
>seem
> > to get back the session. Logically, if I pass in the right sessionid, 
>tomcat
> > should pick up the correct session but it is still picking up pre-login
> > session & refusing the new sessionid got in the Authenticationservlet.
> >
> > I attach the jsessionid something like this
> > 
>http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid
> > =A4A0314540585318A4F5E327F1457375
> >
> >  Does anyone have any idea how to solve it. Please ask me if you 
>need
> > more clarifications. I need to get this thing out.
> >
> >  Thanks & Awaiting your replies,
> >  Jiger
> >
> >
> >
> > _
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:   
>
> > For additional commands, e-mail: 
>
> >
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: how does tomcat store session objects?

2002-05-25 Thread jfc100

Phillip Morelock wrote:

>On 5/25/02 6:20 AM, "jfc100" <[EMAIL PROTECTED]> wrote:
>
>>Can someone tell me how tomcat stores session objects or at least where
>>I could find out this info without looking at the src?
>>
>
>without looking at the source?  why not?  it's Free, and it's the most
>authoritative answer you can get.
>
>>Thanks
>>Joe
>>
>
>fillup
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
Hi,

Maybe I just feel like getting someone else's opinion. Because, where 
reading the src is excellent excercise, you may not find what the 
general policies are regarding any particular feature.   What you will 
get is a precise picture of what the product does at that specific point 
in time(or for that specific version). I am trying to establish the 
broad policies of a  servlet engine implementation - the reference 
implementation. If one was going to produce a document which introduced 
the product's features I would expect to find this kind of information 
in it. So if the servlet spec is a bit vague perhaps the document might 
mention a few implementation details. Not an all-out volume of commentry 
- just the general approach taken.

Seeing as tomcat has undergone a fair bit of development and has been 
subjected to some structural changes between recent releases(i.e. 3.x vs 
4.0), I thought my first port of call might be to find a long suffering 
fellow tomcat-user who may have passed on a few helpful hints or his/her 
take on the big picture (or part thereof, even) - just because he can.

Can someone point me to a reference / tech article or discussion? Does 
anyone know whether or not the way the session management is handled by 
tomcat has changed in any major way? Are there any caveats to accessing 
session objects from multiple simultaneous requests? The way this is 
implementated in the reference implementation (between specs) I would 
have thought would be documented somewhere other than in the src code.

Regards
Joe



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Proposal] Tomcat and Cactus (Repost)

2002-05-25 Thread Vincent Massol

That defeats the purpose of that Tomcat integration. The idea is that
the Cactus jars would be part of the common libraries of a Tomcat
installation so that each web application does not have to include the
cactus jars and setup in its own war ... The idea is to bring testing as
a "service" provided by the container, not the other way around.

-Vincent

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 25 May 2002 23:39
> To: Tomcat Users List
> Cc: 'Tomcat Developers List'
> Subject: RE: [Proposal] Tomcat and Cactus (Repost)
> 
> I would prefer to see a self-contained WAR file ( or a set of
> self-contained wars ).
> 
> 
> 
> Costin
> 
> On Sat, 25 May 2002, Vincent Massol wrote:
> 
> > Thanks to speak your mind Costin. At least you answered. I would
have
> > liked more feedback from other committers.
> >
> > For the time being I'll prepare a "cactification" script for Tomcat
that
> > will be delivered with Cactus. BTW, is there any problem if we
create in
> > cactusland a specially packaged Tomcat version that is cactus-aware
?
> > I'm not sure yet we want to follow that route but if we wanted to do
> > this and put it in the cactus release directory, would you see any
> > problem ?
> >
> > I'll repost in 6 months ... :-)
> >
> > Thanks
> > -Vincent
> >
> > Sidenote: I believe Cactus could very effectively be used as a
> > regression testing tool for the Tomcat project. It has already
> > discovered problems in the past. I haven't looked at the Watchdog
> > project but it could be either a replacement or a complement to it.
You
> > should try it at some point. I would love to hear comments of what
you
> > don't like/do like. Quick start up guide for Tomcat is available
here :
> > http://jakarta.apache.org/cactus/1.4/howto_tomcat.html (needs only
10
> > minutes).
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 May 2002 19:41
> > > To: Tomcat Users List
> > > Cc: List Tomcat-Dev
> > > Subject: Re: [Proposal] Tomcat and Cactus (Repost)
> > >
> > > On Fri, 24 May 2002, Vincent Massol wrote:
> > >
> > > > I'm reposting in the secret hope that I got no response to this
> > email I
> > > > sent last week because no one saw it in the flood of Tomcat
emails !
> > If
> > > > I get no answer this time, I will understand that no one finds
this
> > of
> > > > interest and will try again in 6 months - 1 year :-)
> > >
> > > I think it would be a good idea :-), there is already far too much
> > going
> > > on, with all the new features and changes ( jmx, 4.1, jk2,
jasper2,
> > > coyote, etc ).
> > >
> > > Costin
> > >
> > >
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > 
> > > >
> > > > Hi Tomcat developers,
> > > >
> > > > This is a proposal to bring Jakarta Tomcat and Jakarta Cactus
> > > > (http://jakarta.apache.org/cactus) closer. I hope you'll like
it.
> > > >
> > > > (0) Rationale
> > > >
> > > > Jakarta Cactus is a unit testing framework for testing Servlet,
> > Taglibs
> > > > and Filters. Jakarta Tomcat is a Servlet engine (Servlet,
Taglibs,
> > > > Filters). They are both part of the Jakarta community. At the
> > moment,
> > > > there are no existing Servlet container that have an easy way to
> > unit
> > > > test Servlets. The idea is to bring this ease of use to Tomcat
by
> > making
> > > > it easy to use Cactus within Tomcat (in other words, add a unit
> > testing
> > > > service to Tomcat).
> > > >
> > > > (1) Scope of the proposal
> > > >
> > > > a) To bundle Cactus within Tomcat so that it provides a unique
ease
> > of
> > > > use for Tomcat users who wishes to test their servlet code
> > > > b) To make Cactus the official Tomcat test framework for end
users
> > > >
> > > > (1) From the point of view of Tomcat users
> > > >
> > > > By providing the bundling defined in point (2) below, Tomcat end
> > users
> > > > would only have to do the following to test their code (see
> > > > http://jakarta.apache.org/cactus/1.4/howto_tomcat.html, steps 4
to
> > 6) :
> > > >
> > > > a) Create Cactus test classes in their WEB-INF/classes directory
> > > > b) Open a browser and type the URL of the Cactus test runner,
> > passing
> > > > the name of the test class (see the link above for details)
> > > >
> > > > (2) Cactus bundling in Tomcat
> > > >
> > > > "Bundling" Cactus in Tomcat means (see steps 1 to 3 on the above
> > link) :
> > > >
> > > > a) Adding the following jars to common/lib : cactus.jar,
junit.jar,
> > > > httpclient.jar, aspectjrt.jar (total of 423 KB)
> > > > b) Adding the Cactus servlet test runner and redirector servlet
and
> > > > mappings in conf/web.xml
> > > >
> > > > (3) Versions
> > > >
> > > > The target Tomcat version for this proposal is 4.0 and greater.
The
> > > > Cactus one is 1.4 and greater (note that Cactus 1.4 is not
released
> > yet
> > > > and is still in CVS - It can be downloaded from the nightly
build).
> > > >
> > > > Comments, ideas ?
> > > >
> > > > Thank yo

RE: [Proposal] Tomcat and Cactus (Repost)

2002-05-25 Thread costinm

I would prefer to see a self-contained WAR file ( or a set of 
self-contained wars ). 



Costin

On Sat, 25 May 2002, Vincent Massol wrote:

> Thanks to speak your mind Costin. At least you answered. I would have
> liked more feedback from other committers.
> 
> For the time being I'll prepare a "cactification" script for Tomcat that
> will be delivered with Cactus. BTW, is there any problem if we create in
> cactusland a specially packaged Tomcat version that is cactus-aware ?
> I'm not sure yet we want to follow that route but if we wanted to do
> this and put it in the cactus release directory, would you see any
> problem ?
> 
> I'll repost in 6 months ... :-)
> 
> Thanks
> -Vincent
> 
> Sidenote: I believe Cactus could very effectively be used as a
> regression testing tool for the Tomcat project. It has already
> discovered problems in the past. I haven't looked at the Watchdog
> project but it could be either a replacement or a complement to it. You
> should try it at some point. I would love to hear comments of what you
> don't like/do like. Quick start up guide for Tomcat is available here :
> http://jakarta.apache.org/cactus/1.4/howto_tomcat.html (needs only 10
> minutes).
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 24 May 2002 19:41
> > To: Tomcat Users List
> > Cc: List Tomcat-Dev
> > Subject: Re: [Proposal] Tomcat and Cactus (Repost)
> > 
> > On Fri, 24 May 2002, Vincent Massol wrote:
> > 
> > > I'm reposting in the secret hope that I got no response to this
> email I
> > > sent last week because no one saw it in the flood of Tomcat emails !
> If
> > > I get no answer this time, I will understand that no one finds this
> of
> > > interest and will try again in 6 months - 1 year :-)
> > 
> > I think it would be a good idea :-), there is already far too much
> going
> > on, with all the new features and changes ( jmx, 4.1, jk2, jasper2,
> > coyote, etc ).
> > 
> > Costin
> > 
> > 
> > >
> > > Thanks
> > > -Vincent
> > >
> > > 
> > >
> > > Hi Tomcat developers,
> > >
> > > This is a proposal to bring Jakarta Tomcat and Jakarta Cactus
> > > (http://jakarta.apache.org/cactus) closer. I hope you'll like it.
> > >
> > > (0) Rationale
> > >
> > > Jakarta Cactus is a unit testing framework for testing Servlet,
> Taglibs
> > > and Filters. Jakarta Tomcat is a Servlet engine (Servlet, Taglibs,
> > > Filters). They are both part of the Jakarta community. At the
> moment,
> > > there are no existing Servlet container that have an easy way to
> unit
> > > test Servlets. The idea is to bring this ease of use to Tomcat by
> making
> > > it easy to use Cactus within Tomcat (in other words, add a unit
> testing
> > > service to Tomcat).
> > >
> > > (1) Scope of the proposal
> > >
> > > a) To bundle Cactus within Tomcat so that it provides a unique ease
> of
> > > use for Tomcat users who wishes to test their servlet code
> > > b) To make Cactus the official Tomcat test framework for end users
> > >
> > > (1) From the point of view of Tomcat users
> > >
> > > By providing the bundling defined in point (2) below, Tomcat end
> users
> > > would only have to do the following to test their code (see
> > > http://jakarta.apache.org/cactus/1.4/howto_tomcat.html, steps 4 to
> 6) :
> > >
> > > a) Create Cactus test classes in their WEB-INF/classes directory
> > > b) Open a browser and type the URL of the Cactus test runner,
> passing
> > > the name of the test class (see the link above for details)
> > >
> > > (2) Cactus bundling in Tomcat
> > >
> > > "Bundling" Cactus in Tomcat means (see steps 1 to 3 on the above
> link) :
> > >
> > > a) Adding the following jars to common/lib : cactus.jar, junit.jar,
> > > httpclient.jar, aspectjrt.jar (total of 423 KB)
> > > b) Adding the Cactus servlet test runner and redirector servlet and
> > > mappings in conf/web.xml
> > >
> > > (3) Versions
> > >
> > > The target Tomcat version for this proposal is 4.0 and greater. The
> > > Cactus one is 1.4 and greater (note that Cactus 1.4 is not released
> yet
> > > and is still in CVS - It can be downloaded from the nightly build).
> > >
> > > Comments, ideas ?
> > >
> > > Thank you
> > > -Vincent (from the Cactus team)
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> > >
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [Proposal] Tomcat and Cactus (Repost)

2002-05-25 Thread Vincent Massol

Thanks to speak your mind Costin. At least you answered. I would have
liked more feedback from other committers.

For the time being I'll prepare a "cactification" script for Tomcat that
will be delivered with Cactus. BTW, is there any problem if we create in
cactusland a specially packaged Tomcat version that is cactus-aware ?
I'm not sure yet we want to follow that route but if we wanted to do
this and put it in the cactus release directory, would you see any
problem ?

I'll repost in 6 months ... :-)

Thanks
-Vincent

Sidenote: I believe Cactus could very effectively be used as a
regression testing tool for the Tomcat project. It has already
discovered problems in the past. I haven't looked at the Watchdog
project but it could be either a replacement or a complement to it. You
should try it at some point. I would love to hear comments of what you
don't like/do like. Quick start up guide for Tomcat is available here :
http://jakarta.apache.org/cactus/1.4/howto_tomcat.html (needs only 10
minutes).


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 24 May 2002 19:41
> To: Tomcat Users List
> Cc: List Tomcat-Dev
> Subject: Re: [Proposal] Tomcat and Cactus (Repost)
> 
> On Fri, 24 May 2002, Vincent Massol wrote:
> 
> > I'm reposting in the secret hope that I got no response to this
email I
> > sent last week because no one saw it in the flood of Tomcat emails !
If
> > I get no answer this time, I will understand that no one finds this
of
> > interest and will try again in 6 months - 1 year :-)
> 
> I think it would be a good idea :-), there is already far too much
going
> on, with all the new features and changes ( jmx, 4.1, jk2, jasper2,
> coyote, etc ).
> 
> Costin
> 
> 
> >
> > Thanks
> > -Vincent
> >
> > 
> >
> > Hi Tomcat developers,
> >
> > This is a proposal to bring Jakarta Tomcat and Jakarta Cactus
> > (http://jakarta.apache.org/cactus) closer. I hope you'll like it.
> >
> > (0) Rationale
> >
> > Jakarta Cactus is a unit testing framework for testing Servlet,
Taglibs
> > and Filters. Jakarta Tomcat is a Servlet engine (Servlet, Taglibs,
> > Filters). They are both part of the Jakarta community. At the
moment,
> > there are no existing Servlet container that have an easy way to
unit
> > test Servlets. The idea is to bring this ease of use to Tomcat by
making
> > it easy to use Cactus within Tomcat (in other words, add a unit
testing
> > service to Tomcat).
> >
> > (1) Scope of the proposal
> >
> > a) To bundle Cactus within Tomcat so that it provides a unique ease
of
> > use for Tomcat users who wishes to test their servlet code
> > b) To make Cactus the official Tomcat test framework for end users
> >
> > (1) From the point of view of Tomcat users
> >
> > By providing the bundling defined in point (2) below, Tomcat end
users
> > would only have to do the following to test their code (see
> > http://jakarta.apache.org/cactus/1.4/howto_tomcat.html, steps 4 to
6) :
> >
> > a) Create Cactus test classes in their WEB-INF/classes directory
> > b) Open a browser and type the URL of the Cactus test runner,
passing
> > the name of the test class (see the link above for details)
> >
> > (2) Cactus bundling in Tomcat
> >
> > "Bundling" Cactus in Tomcat means (see steps 1 to 3 on the above
link) :
> >
> > a) Adding the following jars to common/lib : cactus.jar, junit.jar,
> > httpclient.jar, aspectjrt.jar (total of 423 KB)
> > b) Adding the Cactus servlet test runner and redirector servlet and
> > mappings in conf/web.xml
> >
> > (3) Versions
> >
> > The target Tomcat version for this proposal is 4.0 and greater. The
> > Cactus one is 1.4 and greater (note that Cactus 1.4 is not released
yet
> > and is still in CVS - It can be downloaded from the nightly build).
> >
> > Comments, ideas ?
> >
> > Thank you
> > -Vincent (from the Cactus team)
> >
> >
> >
> > --
> > To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> > For additional commands, e-mail:  [EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat/ISS Integration question

2002-05-25 Thread Charles Brown

All

  I have configured IIS/Tomcat, and have successfully gotten tomcat
to serve the entire /examples directory.  Now I want to generalize, 
so that tomcat handles all .jsp files, and IIS handles everything else.

In my uriworkermap.properties file I replaced

/examples=ajp13
/examples/*=ajp13

with 

/*.jsp=ajp13

In my conf/server.xml file I added



Then I copied the numguess.jsp from examples into c:\InetPub\wwwroot directory.
When I try to load that page I get a status page from Tomcat saying,

   HTTP Status 404 /numguess.jsp
   The requested resource is not available.

I also get this if I try to load the numguess.jsp that is under examples; i.e.,
/examples/num/numguess.jsp

How do I get tomcat to handle all .jsp files, and IIS to handle everything else?
I saw a similar question in the archive, and the answer was to look at the 
Tomcat 3.2.4 Tomcat-IIS HOWTO, but I'm not real familiar with the Jakarta web
site and I can't find it.

   Thanks.

--CB


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002


Disregard: Tomcat 4.0.3 + mod_jk + mod_ssl + IE = no good

2002-05-25 Thread Jeremy Pierson

Apparently, a few non-secure images were the culprit. -jeremy-

On 5/25/02 1:21 PM, "Jeremy Pierson" <[EMAIL PROTECTED]> wrote:

> First, all pages when connecting to the website with an SSL request work.
> 
> Problem:  Internet Explorer, while receiving pages and otherwise effectively
> communicating with the web server, does not show that the connection is a
> secure connection.  This occurs ONLY with Tomcat serviced responses.  Files
> handled by Apache directly DO show the "secure" connection icon in Internet
> Explorer.  Netscape shows the connection as secure always.
> 
> Anybody know what's causing this, and (more importantly) how to correct it?
> 
> Is there something in the server.xml that I can set to correct this?  Since
> I am allowing Apache to handle the SSL duties, I didn't figure Tomcat should
> have to do anything. Is it mod_jk that's screwing things up, or is it
> Tomcat?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat 4.0.3 + mod_jk + mod_ssl + IE = no good

2002-05-25 Thread Jeremy Pierson

First, all pages when connecting to the website with an SSL request work.

Problem:  Internet Explorer, while receiving pages and otherwise effectively
communicating with the web server, does not show that the connection is a
secure connection.  This occurs ONLY with Tomcat serviced responses.  Files
handled by Apache directly DO show the "secure" connection icon in Internet
Explorer.  Netscape shows the connection as secure always.

Anybody know what's causing this, and (more importantly) how to correct it?

Is there something in the server.xml that I can set to correct this?  Since
I am allowing Apache to handle the SSL duties, I didn't figure Tomcat should
have to do anything. Is it mod_jk that's screwing things up, or is it
Tomcat?

Thank you,

-jeremy-



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mime Mapping Problem

2002-05-25 Thread Michael Timpe

Hi,

I am working with Tomcat 4.x on a windows machine. In the wepapp-defaults a mime type 
mapping für jnlp file ist set correctly. But tomcat alwasy sends text/html as content 
type not application/x-java-jnlp-file. I tried always defining the mime type in the 
web xml file. But it didn't work.

What went wrong?


Michael Timpe
Melchiorstr. 24
50670 Köln
eMail: [EMAIL PROTECTED]



Re: how does tomcat store session objects?

2002-05-25 Thread Phillip Morelock

On 5/25/02 6:20 AM, "jfc100" <[EMAIL PROTECTED]> wrote:

> Can someone tell me how tomcat stores session objects or at least where
> I could find out this info without looking at the src?

without looking at the source?  why not?  it's Free, and it's the most
authoritative answer you can get.

> 
> Thanks
> Joe

fillup


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat refusing jsessionid's

2002-05-25 Thread Phillip Morelock

HTTP sessionsbrowsers are configured to associate cookies with domain
names.  They will not transmit a cookie to a domain other than the
originating domain (at least they shouldn't).  It has nothing to do with IP
address, only domain name.  I am not sure I understand your question, but if
I am reading it correctly, the only thing you can do is some manual
persistence scheme, such as using a database and url rewriting or some
similar scheme.

does this help?

fillup


On 5/25/02 3:43 AM, "Jiger Java" <[EMAIL PROTECTED]> wrote:

> Hi,
>   I have checked the archives already but did not come across similar
> problems so I would like to ask it.
> 
> My Platform:
> Tomcat 4.0.
> JDK 1.4
> RHT Linux
> 
>   We have this application hosted on an generic server say
> http://www.server.com now our reseller's can map their DNS such that
> www.reseller.com points to www.server.com this will be dynamic( since
> reseller's will be doing it themselves) so I can't use "virtual host"
> feature of tomcat. The idea is that customer of that reseller should not
> come to know that they are actually buying stuff from us & so the customer
> *always* sees the reseller's website url in his browser. All pages post to
> http://www.reseller.com/customer/xyz , which would post to us due to DNS
> mapping. So far so good. But in many critical places like Login, customer
> signup, we have hardcoded url's to our https:// server (same machine same
> tomcat) becoz reseller need not buy Secure Certificates.
>  This is the problem. Inspite of my adding jsessionid to all such
> pages right from posting to https:// to  refreshes, I still can't seem
> to get back the session. Logically, if I pass in the right sessionid, tomcat
> should pick up the correct session but it is still picking up pre-login
> session & refusing the new sessionid got in the Authenticationservlet.
> 
> I attach the jsessionid something like this
> http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid
> =A4A0314540585318A4F5E327F1457375
> 
>  Does anyone have any idea how to solve it. Please ask me if you need
> more clarifications. I need to get this thing out.
> 
>  Thanks & Awaiting your replies,
>  Jiger
> 
> 
> 
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help on mmmySQL/JDBC/Tomcat

2002-05-25 Thread Paul DuBois

>Hi,
>
>I am trying to connect mysql database in jsp file. Mysql itself 
>works well. but when I use jsp file, I got ClassNotFoundException 
>caused by could not load JDBC/mysql Driver. I have installed 
>mm.mysql.Driver.

Where did you install it?

>  If connect by java code only, it works well. I do not know why the 
>same kind of code does not work for jsp file, does my tomcat has any 
>problem?
>
>I am in Linux, tomcat is working with Apache.
>
>This is the jsp code I am using:
>
>...
>
><%@page language="java"
>import="java.sql.*"%>
><%
> Connection con = null;
> try{
>
>   System.out.println("start");
>   Class.forName("org.gjt.mm.mysql.Driver").newInstance();
>   System.out.println("JDBC driver loaded");
>
>   con = DriverManager.getConnection(
>   "jdbc:mysql://localhost/zhaoding ?user=zhaoding&password=zhaoding");
>   System.out.println("Database connection established");
>
> } catch(ClassNotFoundException cnfe){
>   System.out.println("ClassNotFoundException: Could not locate driver");
> } catch(SQLException cnfe){
>   System.out.println("SQLException:"+cnfe);
> } catch(Exception e){
>   System.out.println("An unknow error occurred while connecting 
>to the database");
>} finally {
>   try{
> if(con!=null)
> con.close();
>   }catch(SQLException sqle){
>System.out.println("Unable to close database connection.");
>
>   }
> }
>%>
>...
>
>Thanks a lot for your time.
>
>Ying
>
>
>
>
>
>-
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help on mmmySQL/JDBC/Tomcat

2002-05-25 Thread Ying Zhang


Hi,

I am trying to connect mysql database in jsp file. Mysql itself works well. but when I 
use jsp file, I got ClassNotFoundException caused by could not load JDBC/mysql Driver. 
I have installed mm.mysql.Driver. If connect by java code only, it works well. I do 
not know why the same kind of code does not work for jsp file, does my tomcat has any 
problem?

I am in Linux, tomcat is working with Apache. 

This is the jsp code I am using:

...

<%@page language="java"
   import="java.sql.*"%>
<%
Connection con = null;
try{

  System.out.println("start");
  Class.forName("org.gjt.mm.mysql.Driver").newInstance();
  System.out.println("JDBC driver loaded");

  con = DriverManager.getConnection(
  "jdbc:mysql://localhost/zhaoding ?user=zhaoding&password=zhaoding");
  System.out.println("Database connection established");

} catch(ClassNotFoundException cnfe){
  System.out.println("ClassNotFoundException: Could not locate driver");
} catch(SQLException cnfe){
  System.out.println("SQLException:"+cnfe);
} catch(Exception e){
  System.out.println("An unknow error occurred while connecting to the database");
   } finally {
  try{
if(con!=null)
con.close();
  }catch(SQLException sqle){
   System.out.println("Unable to close database connection.");

  }
}
%>
...

Thanks a lot for your time.

Ying

 



-
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup


[OT] Re: Applet and SSL

2002-05-25 Thread Jeff Turner

On Fri, May 24, 2002 at 04:05:28PM -0700, Bing Zhang wrote:
> Hi,
> 
> We are evaluating a web application with applet as front end. It runs well
> on our machine with regular http.
> 
> Now we want to run it through SSL. If the front end are pure html pages, we
> are not concerned since the web browser will take care the SSL issue and
> encrypt the traffic automatically. But because the front end is applet, we
> are not sure. Will browser take care of the enryption automatically? or in
> short, do we only need to configure our web server to run SSL, there is no
> modification on both server and applet code?

Does the applet do any HTTP requests to the server it came from? If so,
you may have problems if the applet has hardcoded "http://..."; URLs,
instead of using getDocumentBase() to determine 'http' or 'https'.

--Jeff

> Thanks
> 
> Bing

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: http status 500 internal error when loading localhost:8080

2002-05-25 Thread Lynne Gurney

Roger

Downloaded and installed j2re1.4.0 and got an error when starting Tomcat
server so then downloaded jakarta-tomcat-4.0.3-LE-jdk14.exe and installed.
Everything is now aok, well as far as being able to load the Tomcat Welcome
page. Thanks for your help and advice.

Lynne

-Original Message-
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2002 18:27
To: Tomcat Users List
Subject: RE: http status 500 internal error when loading localhost:8080


Can you load ANY Tomcat examples or Doc?  Is this the default index.jsp in
the Tomcat installation?  Did you set JAVA_HOME in your system environment?
Is Tomcat running as a service or from the command line?  I have not had
problems like this on Win2k with Tomcat 4.0.3, but I was running the 1.4 JDK
from Sun.  If you have all the configuration right you might want to
uninstall the JDK and install the 1.4 version and see what happens.

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] 


-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:34 PM
To: Tomcat Users List
Subject: RE: http status 500 internal error when loading localhost:8080


Tomcat 4.0 & jdk1.3

-Original Message-
From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 20:19
To: Tomcat Users List
Subject: RE: http status 500 internal error when loading localhost:8080


What version of Tomcat are you running?  And what version of the Java SDK?

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] 


-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:38 AM
To: [EMAIL PROTECTED]
Subject: http status 500 internal error when loading localhost:8080


Hello all . . . Found this in the log file. Don't know what it means . . .
does anyone else out there understand?

2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at
context path /webdav
2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at
context path /tomcat-docs
2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at
context path /admin
2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at
context path /manager
2002-05-23 08:55:51 NamingContextListener[/Standalone/localhost/manager]:
Failed to unbind object: javax.naming.NameNotFoundException: Name users is
not bound in this Context
2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at
context path

-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 09:32
To: [EMAIL PROTECTED]
Subject: http status 500 internal error when loading localhost:8080


Hello all

I have just installed Tomcat for the first time. Sorry if this question is
lame. I can't seem to find the answer when I searched the archive.

I have successfully started the Tomcat server. I am running it on windows
2000. I cannot load the index.jsp file at http://localhost:8080. So I
changed the port to 8088 . . . still no joy.  I have been at this all day
searching for a solution in the archives. Here is the error message that I
am getting:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source)
at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
at
org.apache.catalina.core.StandardPipeline$Stan

Re: Please Help: HTTP Status 500 - Internal Server Error

2002-05-25 Thread Joel Baker

For what it's worth, I've come across this problem far too many times when
installing things under Windows.
I have now adopted the practice of installing native Windows applications
(Photoshop, Office etc) in c:\program files and server applications like
Apache, Tomcat as well as command line programs like Perl, Java, Ant etc in
c:\servers or c:\apps, and then c:\servers\apache, c:\servers\tomcat etc
rather than "c:\servers\apache group\apache" or whatever the default is.

These steps have meant I have been able to weed out most of the problems of
developing under Windows, apart from some CVS issues for which I need to use
Cygwin - though these are easily compensated for given how gorgeous Ant
makes things - like updating modules automatically before building. Ant is
the way forward!

HTH, apologies for rambling - trying to avoid revising for finals. ;)

Joel Baker.



""Whitcomb, Roger"" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
| It's because of the spaces in the path under Win98.  Use the 8.3 version
of the "Apache Group" and "Apache Tomcat 4.0" folders and try again.
|
| Roger Whitcomb
| Computer Associates
| Senior Software Engineer
| Development
| Phone: +1 408 965 8653
| FAX: +1 408 965 8805
| [EMAIL PROTECTED] 
|
|
| -Original Message-
| From: VIDYASAGAR R NALLU [mailto:[EMAIL PROTECTED]]
| Sent: Friday, May 24, 2002 4:05 PM
| To: [EMAIL PROTECTED]
| Subject: Please Help: HTTP Status 500 - Internal Server Error
|
|
| Hi all,
|
| Basically i have developed a small application using JSP, Tomcat 4.0.3,
| j2sdk1.4.0 under win2k. It was working absolutely fine. The same
| application when i'm trying to run on windows 98, it is giving the
| following error:
|
| Note: I'm not copying whole output. These are the few lines of code to
| give basic idea.
| exception
| javax.servlet.ServletException: sun/tools/javac/Main
| at
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
|
| root cause
| java.lang.NoClassDefFoundError: sun/tools/javac/Main
| at
| org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:1
| 36)
|
| I set the PATH and CLASSPATH variables as follows in autoexec.bat:
|
| PATH=%PATH%;c:\j2sdk1.4.0\bin;
| JAVA_HOME=c:\j2sdk1.4.0
| CATALINA_HOME=c:\Program Files\Apache Group\Apache Tomcat 4.0
| TOMCAT_HOME=%CATALINA_HOME
|
| %CLASSPATH=%CLASSPATH%;c:\j2sdk1.4.0\jre\lib\tools.jar;c:\Program
| Files\Apache Group\Apache
| Tomcat 4.0\common\lib\servlet.jar
|
| I'm just wondering that whether i should include servlet.jar in the
| CLASSPATH or any other place.
|
| What i feel is for some reason tomcat is not loading servlet.jar.
| Please someone assist me in this regard.
|
| Thanks in advance
| Rajasree
|
| --
| To unsubscribe, e-mail:

| For additional commands, e-mail:

|
| --
| To unsubscribe, e-mail:

| For additional commands, e-mail:

|


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




IIS5.0 integration

2002-05-25 Thread Simon Weaver

Hi all,

I have managed to get IIS using the isapi pass through (isapi_redirect.dll)
to work well when both IIS and TOMCAT are on the same physical machine. 

I can't get it to go when the servers are separated on two physical
machines. To further complicate things the tomcat server is clustered and
the tomcat directory is published as a DFS root. 

So my questions are...

1) has anyone managed to get this filter working when IIS and tomcat are on
physically different machines?

2) has anyone managed to get this working when the tomcat server is
clustered?

3) has anyone got any information about tomcat working under active
directory?

Any information on the above would be massively appreciated.

Simon Weaver
Release Manager
Translucis Ltd

[EMAIL PROTECTED]
http://www.translucis.com


**
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system
administrator at the address [EMAIL PROTECTED] or call +44 (0) 20
7016 


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




how does tomcat store session objects?

2002-05-25 Thread jfc100

Hi,

Can someone tell me how tomcat stores session objects or at least where 
I could find out this info without looking at the src?

Thanks
Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat refusing jsessionid's

2002-05-25 Thread Jiger Java

Hi,
I have checked the archives already but did not come across similar 
problems so I would like to ask it.

My Platform:
Tomcat 4.0.
JDK 1.4
RHT Linux

We have this application hosted on an generic server say 
http://www.server.com now our reseller's can map their DNS such that 
www.reseller.com points to www.server.com this will be dynamic( since 
reseller's will be doing it themselves) so I can't use "virtual host" 
feature of tomcat. The idea is that customer of that reseller should not 
come to know that they are actually buying stuff from us & so the customer 
*always* sees the reseller's website url in his browser. All pages post to 
http://www.reseller.com/customer/xyz , which would post to us due to DNS 
mapping. So far so good. But in many critical places like Login, customer 
signup, we have hardcoded url's to our https:// server (same machine same 
tomcat) becoz reseller need not buy Secure Certificates.
   This is the problem. Inspite of my adding jsessionid to all such 
pages right from posting to https:// to  refreshes, I still can't seem 
to get back the session. Logically, if I pass in the right sessionid, tomcat 
should pick up the correct session but it is still picking up pre-login 
session & refusing the new sessionid got in the Authenticationservlet.

I attach the jsessionid something like this 
http://www.reseller.com:10001/anacreon/servlet/CustomerIndexServlet?jsessionid=A4A0314540585318A4F5E327F1457375

   Does anyone have any idea how to solve it. Please ask me if you need 
more clarifications. I need to get this thing out.

   Thanks & Awaiting your replies,
   Jiger



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: