RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Phillip Qin
Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com


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


RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Wendell Holmes
How would I do that?  Add to the query string?  And how can I change to a
new thread for this to not hijack Andrew's question, as this seems to be
getting away from his problem?

Wendell 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)


Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com


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


RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Yansheng Lin

The one that doesn't work is behind a proxy server doing proxypassdir's to map
a 
URL to an internal IP.  Could this be the problem, or is it an IIS thing?

I am pretty sure the proxy is the problem.  The proxy server is serving the
cached pages for page1, but then when you need to do a GET for page2, a new
session was created on tomcat server because the first session created was not
on tomcat server. I am not sure why proxy acts this way though. 



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)


Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com


-
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]



RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Longley, Andrew
I do not get the same value back, and our app does not use jsessionid
currently.  If I install the pages on a server that works properly, I
get the same value back between page views.  On this server, I get
different values, which is consistent with losing session.  There is no
proxy in the way (all intranet) (that I know of; I'm not a network
engineer but I play one at work, and so I believe that the parallel
discussion about proxy servers does not pertain to my issue) (possible
that WinXP installs some sort of proxy server software like internet
connection sharing or something like that??)

To add weirdness to the issue, yesterday, the little two page app worked
properly if installed in the Tomcat examples directory on the
misbehaving server; today it does not.  I had modified the server.xml
file, and tried to change it back (from memory; I didn't make a big
change) but failed to resolve the problem.  I will do yet another clean
install and trace my steps carefully. 

Thanks for everyone's help.

Andrew

 -Original Message-
 From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 05, 2003 5:25 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4 losing session (may be related to Win XP)
 
 
 Are the sessions the same between the two calls?  That is, 
 when you call
 HttpSession#getId() for each of them do you get the same id back?
 
 justin
 
 At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm 
 wondering if it 
 has to do with the fact that this is the first time we've installed 
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP 
 process where page 1 stuffs (setAttribute) something into 
 the session, 
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory 
 included in the 
 Tomcat distribution, the pages perform properly.  If I create my own 
 context and execute the pages from there, the getAttribute 
 returns null.
 
 I created the context by duplicating the context in the 
 server.xml file 
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows 
 up on port 
 8080 (side note: anyone have info on how to get the flying pig to go 
 away when you've uninstalled the Oracle HTTP server???); JDK 
 1.4.*, and 
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 
 2000 Prof.
 And this machine works fine as a client to the server running on any 
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would 
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Justin Ruthenbeck
 Software Engineer, NextEngine Inc.
 justinr - AT - nextengine DOT com
 Confidential. See:
 http://www.nextengine.com/confidentiality.php
 
 
 
 -
 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]



RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-06 Thread Wendell Holmes
I don't think it's a question of cached pages, but proxyserver does seem to
be doing something.  The first page is a login, and when it's submitted, the
request passes a query string that calls the servlet.  Servlet creates a new
session and I can see a new cookie containing JSESSIONID.  The servlet then
displays results from a db query.  Any further requests, whether to scroll
the results, add new record, or view individual record causes the servlet to
create a new session because request.getSession(true) is called and doesn't
find the cookie in the request.  Accessing the web app from inside the proxy
works okay.  

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 11:48 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)



The one that doesn't work is behind a proxy server doing proxypassdir's to
map
a 
URL to an internal IP.  Could this be the problem, or is it an IIS thing?

I am pretty sure the proxy is the problem.  The proxy server is serving the
cached pages for page1, but then when you need to do a GET for page2, a new
session was created on tomcat server because the first session created was
not
on tomcat server. I am not sure why proxy acts this way though. 



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 8:55 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4 losing session (may be related to Win XP)


Have you tried to append jsessionid?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] 
Sent: November 5, 2003 9:32 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 losing session (may be related to Win XP)

At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes

justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
 Hi all,
 
 I've come across a situation I can't figure out and I'm wondering if it
 has to do with the fact that this is the first time we've installed
 Tomcat on Windows XP Prof.
 
 Symptom: Tomcat loses session.  If you set up a very simple two JSP
 process where page 1 stuffs (setAttribute) something into the session,
 and page 2 displays it, the value comes back as null
 
 Tests: if I copy the two JSPs to the examples directory included in the
 Tomcat distribution, the pages perform properly.  If I create my own
 context and execute the pages from there, the getAttribute returns null.
 
 I created the context by duplicating the context in the server.xml file
 and pretty much just changing the codebase.
 
 Other environment info: running behind Apache2 (latest), on port 8082
 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
 8080 (side note: anyone have info on how to get the flying pig to go
 away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
 this is Tomcat 4 (latest).
 
 The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
 And this machine works fine as a client to the server running on any
 other machine, so it's not a cookie issue I don't think.
 
 Am I missing something obvious?  Could it be permission-related?
 Something in the way the session data is stored on disk?  Sure would
 appreciate any advice.
 
 Andrew Longley
 Senior Software Developer
 MindFlow Technologies, Inc.
 http://www.mindflow.com

[OT] Re: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Filip Hanik
for those of you who want to run their oracle, beware that oracle will grab
the port 8080 from your system (the tomcat port)
you can either change tomcat (conf/server.xml) or oracle (see scripts below)
as sysdba execute
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))

then restart Oracle, reference below
http://www.interealm.com/technotes/roby/xdb_ports.html

- Original Message -
From: Longley, Andrew [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:27 PM
Subject: Tomcat 4 losing session (may be related to Win XP)


Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com

-
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]



RE: [OT] Re: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Goehring, Chuck Mr., RCI - San Diego

Do you also have a get_this_crap_off_my_system script I can borrow.  

Thanks
Chuck


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:32 PM
To: Tomcat Users List
Subject: [OT] Re: Tomcat 4 losing session (may be related to Win XP)


for those of you who want to run their oracle, beware that oracle will grab
the port 8080 from your system (the tomcat port)
you can either change tomcat (conf/server.xml) or oracle (see scripts below)
as sysdba execute
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))

then restart Oracle, reference below
http://www.interealm.com/technotes/roby/xdb_ports.html

- Original Message -
From: Longley, Andrew [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:27 PM
Subject: Tomcat 4 losing session (may be related to Win XP)


Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Filip Hanik
Do you also have a get_this_crap_off_my_system script I can borrow.

that is what you pay $1MM license fees to oracle for, ask them :)

Filip

- Original Message -
From: Goehring, Chuck Mr., RCI - San Diego
[EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:42 PM
Subject: RE: [OT] Re: Tomcat 4 losing session (may be related to Win XP)



Do you also have a get_this_crap_off_my_system script I can borrow.

Thanks
Chuck


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:32 PM
To: Tomcat Users List
Subject: [OT] Re: Tomcat 4 losing session (may be related to Win XP)


for those of you who want to run their oracle, beware that oracle will grab
the port 8080 from your system (the tomcat port)
you can either change tomcat (conf/server.xml) or oracle (see scripts below)
as sysdba execute
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))

then restart Oracle, reference below
http://www.interealm.com/technotes/roby/xdb_ports.html

- Original Message -
From: Longley, Andrew [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 2:27 PM
Subject: Tomcat 4 losing session (may be related to Win XP)


Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Justin Ruthenbeck
Are the sessions the same between the two calls?  That is, when you call 
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.
Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null
Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.
I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.
Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).
The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.
Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.
Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php

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


RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Wendell Holmes
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL. 
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a URL
to an internal IP.  Could this be the problem, or is it an IIS thing?

Wendell Holmes
Education Logistics, Inc.


-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)



Are the sessions the same between the two calls?  That is, when you call 
HttpSession#getId() for each of them do you get the same id back?

justin

At 02:27 PM 11/5/2003, you wrote:
Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com

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



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php



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


RE: Tomcat 4 losing session (may be related to Win XP)

2003-11-05 Thread Justin Ruthenbeck
At 04:14 PM 11/5/2003, you wrote:
I've been pulling hair out for several days with what turns out to be the
same problem, except it's occurring on a Windows 2000 Server running IIS 
5.0
and Tomcat 4.1.24.  The logs show that the first request to a servlet done
via POST gets a different session id than the follow-on request via GET to
the same servlet, same URL.
The same app works fine on another Win2K server running Apache.  The one
that doesn't work is behind a proxy server doing proxypassdir's to map a 
URL
to an internal IP.  Could this be the problem, or is it an IIS thing?
If you really want to see what's happening, put your own proxy between 
the client and the first server on your backend (I use zproxy -- google 
for it) to look at the http messages going back and forth.  Check the 
response that you're getting from Tomcat and note the JSESSIONID provided 
after the first call.  See what JSESSIONID the client machine sends 
back.  You can put the same proxy (or any http-level sniffer) between any 
of the servers and see who's passing what.

If you've established that Tomcat is receiving two different sessionId 
values, then you can be sure there's a mixup somewhere else (and the more 
hands you've got in the cookie jar, the more chances someone else is 
screwing things up).

Wendell Holmes
justin



-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 4:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 losing session (may be related to Win XP)


Are the sessions the same between the two calls?  That is, when you call
HttpSession#getId() for each of them do you get the same id back?
justin

At 02:27 PM 11/5/2003, you wrote:
Hi all,

I've come across a situation I can't figure out and I'm wondering if it
has to do with the fact that this is the first time we've installed
Tomcat on Windows XP Prof.

Symptom: Tomcat loses session.  If you set up a very simple two JSP
process where page 1 stuffs (setAttribute) something into the session,
and page 2 displays it, the value comes back as null

Tests: if I copy the two JSPs to the examples directory included in the
Tomcat distribution, the pages perform properly.  If I create my own
context and execute the pages from there, the getAttribute returns null.

I created the context by duplicating the context in the server.xml file
and pretty much just changing the codebase.

Other environment info: running behind Apache2 (latest), on port 8082
(http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port
8080 (side note: anyone have info on how to get the flying pig to go
away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and
this is Tomcat 4 (latest).

The exact same set up works fine on Windows 2003 and Windows 2000 Prof.
And this machine works fine as a client to the server running on any
other machine, so it's not a cookie issue I don't think.

Am I missing something obvious?  Could it be permission-related?
Something in the way the session data is stored on disk?  Sure would
appreciate any advice.

Andrew Longley
Senior Software Developer
MindFlow Technologies, Inc.
http://www.mindflow.com


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