HttpUnit and Java web start

Sylvain Roulet <[email protected]> Thu, 11 Feb 2010 12:04:32 +0100
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format. Your mail reader does not
understand MIME message format.
--===============2775038992248018929==
Content-Type: multipart/alternative; 
	boundary="=_0h-s7ED+h6m+nq741erSDEZBNpPsTiP-xFtg7p1qhZEznXMo"

This is a multi-part message in MIME format. Your mail reader does not
understand MIME message format.
--=_0h-s7ED+h6m+nq741erSDEZBNpPsTiP-xFtg7p1qhZEznXMo
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

=0D=0AHi every body,=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0AI=92m using http uni=
t since few month to perform tests on a java servlet.=20=0D=0A=0D=0A=A0=20=
=0D=0A=0D=0ASeveral users are simulated using WebConversations. Once conn=
ected context is conserved using JSESSIONID then different actions are pe=
rformed on the servlet via Http requests..=20=0D=0A=0D=0AThis is working =
fine, and was very easy to develop.=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0AI dec=
ided few days ago to embed those WebConverstion in a graphical SWT interf=
ace to be able to execute manually new sequences of action (without havin=
g to develop JUNIT test for each new case).=20=0D=0A=0D=0ANo problem with=
 this, every thing is ok.=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0AThen I decided =
to execute this application using JavaWebStart to make it available to al=
l developers in my company. And here problems began.=20=0D=0A=0D=0AI don=92=
t know yet why but It=92s like if all my WebConversation were sharing the=
 same HttpSession. If I look to ethereal capture I can see in my packets=20=
=0D=0A=0D=0Athat only the first WebConversation is considered by my serve=
r as a new HttpSession (Set-Cookie: JSESSIONID=3D1A8A261CBC195AE5A24F70CA=
2EA8D04B; Path=3D/AcdIhm-2.0-SNAPSHOT)=20=0D=0A=0D=0AAll other request se=
nt on new WebConversation use this JSESSIONID (compared with and executio=
n of the app in a standard JVM, where each WebConversation is assigned to=
 a new JSESSIONID).=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0AEven if my applicatio=
n is signed I suppose that Java web start use specific sandbox to handle =
HttpSession. Does any body have any idea about this problem =3F=20=0D=0A=0D=
=0ACan I find somewhere some explanation on how HttpUnit is handling Http=
Session =3F=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0AThanks for reading=20=0D=0A=0D=
=0A=A0=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0A=A0=20=0D=0A=0D=0A
--=_0h-s7ED+h6m+nq741erSDEZBNpPsTiP-xFtg7p1qhZEznXMo
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

=0D=0A<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:sche=
mas-microsoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:off=
ice:word" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xm=
lns=3D"http://www.w3.org/TR/REC-html40">=0D=0A=0D=0A<head>=0D=0A<meta htt=
p-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">=0D=0A<m=
eta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">=0D=0A=
<style>=0D=0A<!--=0D=0A /* Font Definitions */=0D=0A @font-face=0D=0A   {=
font-family:"Cambria Math";=0D=0A   panose-1:2 4 5 3 5 4 6 3 2 4;}=0D=0A@=
font-face=0D=0A   {font-family:Calibri;=0D=0A   panose-1:2 15 5 2 2 2 4 3=
 2 4;}=0D=0A /* Style Definitions */=0D=0A p.MsoNormal, li.MsoNormal, div=
=2EMsoNormal=0D=0A   {margin:0cm;=0D=0A   margin-bottom:.0001pt;=0D=0A   =
font-size:11.0pt;=0D=0A   font-family:"Calibri","sans-serif";}=0D=0Aa:lin=
k, span.MsoHyperlink=0D=0A   {mso-style-priority:99;=0D=0A   color:blue;=0D=
=0A   text-decoration:underline;}=0D=0Aa:visited, span.MsoHyperlinkFollow=
ed=0D=0A   {mso-style-priority:99;=0D=0A   color:purple;=0D=0A   text-dec=
oration:underline;}=0D=0Aspan.EmailStyle17=0D=0A   {mso-style-type:person=
al-compose;=0D=0A   font-family:"Calibri","sans-serif";=0D=0A   color:win=
dowtext;}=0D=0A.MsoChpDefault=0D=0A   {mso-style-type:export-only;}=0D=0A=
@page Section1=0D=0A   {size:612.0pt 792.0pt;=0D=0A   margin:70.85pt 70.8=
5pt 70.85pt 70.85pt;}=0D=0Adiv.Section1=0D=0A   {page:Section1;}=0D=0A-->=
=0D=0A</style>=0D=0A<!--[if gte mso 9]><xml>=0D=0A <o:shapedefaults v:ext=
=3D"edit" spidmax=3D"1026" />=0D=0A</xml><![endif]--><!--[if gte mso 9]><=
xml>=0D=0A <o:shapelayout v:ext=3D"edit">=0D=0A  <o:idmap v:ext=3D"edit" =
data=3D"1" />=0D=0A </o:shapelayout></xml><![endif]-->=0D=0A</head>=0D=0A=
=0D=0A<body lang=3DFR link=3Dblue vlink=3Dpurple>=0D=0A=0D=0A<div class=3D=
Section1>=0D=0A=0D=0A<p class=3DMsoNormal>Hi every body, <o:p></o:p></p>=0D=
=0A=0D=0A<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>=0D=0A=0D=0A<p class=3D=
MsoNormal><span lang=3DEN-US>I&#8217;m using http unit since few month=0D=
=0Ato perform tests on a java servlet.<o:p></o:p></span></p>=0D=0A=0D=0A<=
p class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p>=0D=0A=
=0D=0A<p class=3DMsoNormal><span lang=3DEN-US>Several users are simulated=
 using WebConversations.=0D=0AOnce connected context is conserved using J=
SESSIONID then different actions are=0D=0Aperformed on the servlet via Ht=
tp requests..<o:p></o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span=
 lang=3DEN-US>This is working fine, and was very easy to=0D=0Adevelop.<o:=
p></o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-US><o=
:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DE=
N-US>I decided few days ago to embed those=0D=0AWebConverstion in a graph=
ical SWT interface to be able to execute manually new sequences=0D=0Aof a=
ction (without having to develop JUNIT test for each new case).<o:p></o:p=
></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-US>No proble=
m with this, every thing is ok.<o:p></o:p></span></p>=0D=0A=0D=0A<p class=
=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A<=
p class=3DMsoNormal><span lang=3DEN-US>Then I decided to execute this app=
lication using=0D=0AJavaWebStart to make it available to all developers i=
n my company. And here=0D=0Aproblems began.<o:p></o:p></span></p>=0D=0A=0D=
=0A<p class=3DMsoNormal><span lang=3DEN-US>I don&#8217;t know yet why but=
 It&#8217;s=0D=0Alike if all my WebConversation were sharing the same Htt=
pSession. If I look to ethereal=0D=0Acapture I can see in my packets <o:p=
></o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-US>tha=
t only the first WebConversation is=0D=0Aconsidered by my server as a new=
 HttpSession (Set-Cookie: JSESSIONID=3D1A8A261CBC195AE5A24F70CA2EA8D04B;=0D=
=0APath=3D/AcdIhm-2.0-SNAPSHOT)<o:p></o:p></span></p>=0D=0A=0D=0A<p class=
=3DMsoNormal><span lang=3DEN-US>All other request sent on new=0D=0AWebCon=
versation use this JSESSIONID (compared with and execution of the app in=0D=
=0Aa standard JVM, where each WebConversation is assigned to a new JSESSI=
ONID).<o:p></o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3D=
EN-US><o:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span =
lang=3DEN-US>Even if my application is signed I suppose=0D=0Athat Java we=
b start use specific sandbox to handle HttpSession. Does any body=0D=0Aha=
ve any idea about this problem =3F<o:p></o:p></span></p>=0D=0A=0D=0A<p cl=
ass=3DMsoNormal><span lang=3DEN-US>Can I find somewhere some explanation =
on=0D=0Ahow HttpUnit is handling HttpSession =3F<o:p></o:p></span></p>=0D=
=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-US><o:p>&nbsp;</o:p></span>=
</p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-US>Thanks for readin=
g<o:p></o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=3DEN-U=
S><o:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><span lang=
=3DEN-US><o:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A<p class=3DMsoNormal><sp=
an lang=3DEN-US><o:p>&nbsp;</o:p></span></p>=0D=0A=0D=0A</div>=0D=0A=0D=0A=
</body>=0D=0A=0D=0A</html>=0D=0A
--=_0h-s7ED+h6m+nq741erSDEZBNpPsTiP-xFtg7p1qhZEznXMo--



--===============2775038992248018929==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--===============2775038992248018929==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop

--===============2775038992248018929==--