Author: mwringe
Date: 2009-08-30 20:08:50 -0400 (Sun, 30 Aug 2009)
New Revision: 139
Added:
components/pc/trunk/test/src/test/resources/jboss-5.0/config/
components/pc/trunk/test/src/test/resources/jboss-5.0/config/context.xml
Modified:
components/pc/trunk/test/src/test/build.xml
Log:
Fix for JBoss AS5 test failures by setting the SessionCookie path in the context.xml
file.
Fix issue with the Tomcat manager sometimes not being deployed.
Modified: components/pc/trunk/test/src/test/build.xml
===================================================================
--- components/pc/trunk/test/src/test/build.xml 2009-08-30 23:26:59 UTC (rev 138)
+++ components/pc/trunk/test/src/test/build.xml 2009-08-31 00:08:50 UTC (rev 139)
@@ -585,6 +585,8 @@
<!-- Strip cargo manager war filename-->
<copy file="${dependency.cargo-manager.war}"
tofile="${test.temp.lib}/manager.war"/>
+ <!-- unjar the war -->
+ <unzip src="${test.temp.lib}/manager.war"
dest="${test.temp.lib}/manager"/>
</target>
@@ -747,6 +749,7 @@
<property name="cargo.rmi.port" value="1099"/>
<property name="cargo.jvmargs"
value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
<deployable type="war"
file="${test.temp.lib}/jboss-5.0/portlet-test.war"/>
+ <file file="${target}/test-classes/jboss-5.0/config/context.xml"
tofile="deploy/jbossweb.sar/context.xml" overwrite="true"/>
</configuration>
</cargo>
</target>
@@ -838,6 +841,7 @@
<property name="cargo.logging" value="high"/>
<!-- <property name="cargo.jvmargs" value="-Xdebug
-Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9000"/> -->
<deployable type="war"
file="${test.temp.lib}/manager.war"/>
+ <file file="${test.temp.lib}/manager"
todir="webapps/manager"/>
<deployable type="war"
file="${test.temp.lib}/tomcat-6.0/portlet-test.war"/>
</configuration>
</cargo>
Added: components/pc/trunk/test/src/test/resources/jboss-5.0/config/context.xml
===================================================================
--- components/pc/trunk/test/src/test/resources/jboss-5.0/config/context.xml
(rev 0)
+++ components/pc/trunk/test/src/test/resources/jboss-5.0/config/context.xml 2009-08-31
00:08:50 UTC (rev 139)
@@ -0,0 +1,20 @@
+<!-- The contents of this file will be loaded for each web application -->
+<Context cookies="true" crossContext="true">
+ <!-- Session persistence is disable by default. To enable for all web
+ apps set the pathname to a non-empty value:
+ <Manager pathname="SESSIONS.ser" />
+
+ To enable session persistence for a single web app, add a
+ WEB-INF/context.xml
+ -->
+ <Manager pathname="" />
+
+ <!-- Install an InstanceListener to handle the establishment of the run-as
+ role for servlet init/destroy events.
+ -->
+
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
+
+ <!-- Needed for portal session paths -->
+ <SessionCookie path="/"/>
+
+</Context>