RE: Deployment through Ant causes loss of session-control

2004-02-09 Thread Morten S. Mortensen

By the way - the effect is identical with both TC 4.1.29 and 5.0.18.

Regards,
Morten Sabroe Mortensen


-Original Message-
From: Morten S. Mortensen 
Sent: 9. februar 2004 13:06
To: [EMAIL PROTECTED]
Subject: Deployment through Ant causes loss of session-control



When I deploy a WAR-file through Ant, I lose cookie-session-control in IE and Mozilla, 
but not Opera!!!

I have looked at a lot of stuff and finally come to the conclusion, that if I deploy 
the exact same file with the tomcat-manager interface at e.g. 
http://localhost:8080//manager/html/, session-control is perfect, because suddenly the 
sessions-id is fixed and "request.isRequestedSessionIdFromCookie()" returns true.

The ""-elements for the two ways to deploy the WAR are *nearly* identical in 
the two cases, because in the failing case "docBase" and "path" contains a space:





Since my stripped down test-WAR is "Something.war", it does not happen with a manual 
deploy through the manager.

If I remove " XXX" from the two instances of "Something XXX", then session-control is 
operational!!!

I have no idea why Opera differs from IE and Mozilla. I have not seen, what Tomcat 
returns in its HTTP-replies, but opera sends in its second request a cookie -

  JSESSIONID
Name:JSESSIONID
Value:   6BED2E22402090337A37B624CB6BDF3A
Domain:  null
Path:null
Comment: null
Version: 0
Maximum age: -1

- with no domain, path or anything.


This thing with spaces in "docBase"/"path" and loss of session-control - is this a 
known problem?

It is quite natural to put spaces in there.

Regards,
Morten Sabroe Mortensen 

 -

  

  

  

...
  

  

Deployed "${external.tomcat.app.path}".
  

 -

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



Deployment through Ant causes loss of session-control

2004-02-09 Thread Morten S. Mortensen

When I deploy a WAR-file through Ant, I lose cookie-session-control in IE and Mozilla, 
but not Opera!!!

I have looked at a lot of stuff and finally come to the conclusion, that if I deploy 
the exact same file with the tomcat-manager interface at e.g. 
http://localhost:8080//manager/html/, session-control is perfect, because suddenly the 
sessions-id is fixed and "request.isRequestedSessionIdFromCookie()" returns true.

The ""-elements for the two ways to deploy the WAR are *nearly* identical in 
the two cases, because in the failing case "docBase" and "path" contains a space:





Since my stripped down test-WAR is "Something.war", it does not happen with a manual 
deploy through the manager.

If I remove " XXX" from the two instances of "Something XXX", then session-control is 
operational!!!

I have no idea why Opera differs from IE and Mozilla. I have not seen, what Tomcat 
returns in its HTTP-replies, but opera sends in its second request a cookie -

  JSESSIONID
Name:JSESSIONID
Value:   6BED2E22402090337A37B624CB6BDF3A
Domain:  null
Path:null
Comment: null
Version: 0
Maximum age: -1

- with no domain, path or anything.


This thing with spaces in "docBase"/"path" and loss of session-control - is this a 
known problem?

It is quite natural to put spaces in there.

Regards,
Morten Sabroe Mortensen 

 -

  

  

  

...
  

  

Deployed "${external.tomcat.app.path}".
  

 -

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