There are a number of TC variables that are acquired from the FileSystem during 
webapp initialiasation..
unfortunately when File systems assign folder name they vary widely in their 
treatment of 'special characters' in filenames
as a test ..install Tomcat to Tomcat off of root folder then place webapps off 
of Tomcat then install one webapp heads-or-tails

so in your mind your filesystem *should* look like
/Tomcat/webapps/heads-or-tails But NTFS File System creates an 8 character 
filename that it assigns as directory folder so instead of heads-or-tails 
folder you'll get
/Tomcat/webapps/HEADS-~1 Not inserting spaces, dashes (or anything besides 
a-z,0-9,A-Z) into folder-name is always a safe deployment strategy
Bon Chance,
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialitéCe message est confidentiel et peut être 
privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec 
bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à l'information 
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant 
donné que les email peuvent facilement être sujets à la manipulation, nous ne 
pouvons accepter aucune responsabilité pour le contenu fourni.

 > Date: Sun, 20 Jan 2013 10:51:10 +0100
> From: benintechnolog...@yahoo.fr
> To: users@tomcat.apache.org
> Subject: Re: session not working when dash or underscore in application name
> 
> Thanks, maybe the problem has been solved in 7.0.34, I'll try that 
> version later
> in the meantime I simply removed all dashes and underscores, and 
> everything works fine
> 
> Le 19/01/2013 20:52, Christopher Schultz a écrit :
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> >
> > To whom it may concern,
> >
> > On 1/19/13 7:15 AM, Benin Technologies wrote:
> >> I just installed Tomcat 7.0.32 on Debian Linux 6 (Squeeze). Client
> >> is Mozilla Firefox 12.0, also on Debian Linux 6.
> >>
> >> To test session behavior, I did a simple JSP page that simulates a
> >> coin launch (heads or tales), and displays the total of heads and
> >> total of tails.
> >>
> >> If my war file is called headsOrTails.war, it works just fine :
> >> http://tomcat:8080/headsOrTails/
> >>
> >> but if there are dashes or underscores in the name, Tomcat creates
> >> a new session for each page request (so I can't get the totals)
> >> http://tomcat:8080/heads-or-tails/
> >> http://tomcat:8080/heads_or_tails/
> >>
> >> is this a normal behavior ?
> > I do not experience the behavior you describe on 7.0.34.
> >
> > Neither dashes nor underscores anywhere in the path of the JSP seem to
> > have that effect: a single session is created when I try it.
> >
> > Perhaps something else is affecting your environment?
> >
> > - -chris
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> > Comment: GPGTools - http://gpgtools.org
> > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
> >
> > iEYEAREIAAYFAlD6+X0ACgkQ9CaO5/Lv0PDYxACeIdD6MLMC1P8Fwpzk6BFCHjnR
> > ZiIAoJRe1RfgHH9ZWbe9T6lDMn3A+PbO
> > =n4ZY
> > -----END PGP SIGNATURE-----
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
                                          

Reply via email to