vmassol 2003/01/26 00:26:39
Modified: petals/ant/src/scripts/j2ee13 build.xml
Added: petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles
EmbeddedLDAP.twpos EmbeddedLDAP.index
EmbeddedLDAP.tran EmbeddedLDAP.data
EmbeddedLDAP.delete EmbeddedLDAP.trpos
petals/ant/src/confs/share/weblogic7x
SerializedSystemIni.dat
DefaultAuthenticatorInit.ldift weblogic.xml
fileRealm.properties config.xml
petals/ant/src/scripts/share build-tests-weblogic7x.xml
Removed: petals/ant/src/confs/share/weblogic70
SerializedSystemIni.dat config.xml
DefaultAuthenticatorInit.ldift weblogic.xml
fileRealm.properties
petals/ant/src/confs/share/weblogic70/testserver/ldap/ldapfiles
EmbeddedLDAP.index EmbeddedLDAP.tran
EmbeddedLDAP.trpos EmbeddedLDAP.delete
EmbeddedLDAP.data EmbeddedLDAP.twpos
Log:
Added script for WebLogic 7.x. Note: I haven't tested it as I my WebLogic 7.0
license has expired (and I can't get a new one as I'm on a 56kbps modem and
downloading 40MB of WLS just to get a license is too nightmarish!)
Revision Changes Path
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.twpos
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.index
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.tran
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.data
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.delete
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/testserver/ldap/ldapfiles/EmbeddedLDAP.trpos
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/SerializedSystemIni.dat
<<Binary file>>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/DefaultAuthenticatorInit.ldift
Index: DefaultAuthenticatorInit.ldift
===================================================================
dn: dc=@domain@
dc: @domain@
objectclass: top
objectclass: domain
dn: ou=@realm@, dc=@domain@
ou: @realm@
objectclass: top
objectclass: organizationalUnit
dn: ou=groups,ou=@realm@, dc=@domain@
ou: groups
objectclass: organizationalUnit
objectclass: top
dn: cn=Administrators,ou=groups,ou=@realm@, dc=@domain@
memberURL:
ldap:///ou=groups,ou=@realm@,dc=@domain@??sub?(&(objectclass=person)(wlsMemberOf=cn=Administrators,ou=groups,ou=@realm@,dc=@domain@))
description: Administrators group
objectclass: top
objectclass: groupOfUniqueNames
objectclass: groupOfURLs
cn: Administrators
dn: cn=Deployers,ou=groups,ou=@realm@, dc=@domain@
memberURL:
ldap:///ou=groups,ou=@realm@,dc=@domain@??sub?(&(objectclass=person)(wlsMemberOf=cn=Deployers,ou=groups,ou=@realm@,dc=@domain@))
description: Deployers group
objectclass: top
objectclass: groupOfUniqueNames
objectclass: groupOfURLs
cn: Deployers
dn: cn=Operators,ou=groups,ou=@realm@, dc=@domain@
memberURL:
ldap:///ou=groups,ou=@realm@,dc=@domain@??sub?(&(objectclass=person)(wlsMemberOf=cn=Operators,ou=groups,ou=@realm@,dc=@domain@))
description: Operators group
objectclass: top
objectclass: groupOfUniqueNames
objectclass: groupOfURLs
cn: Operators
dn: cn=Monitors,ou=groups,ou=@realm@, dc=@domain@
memberURL:
ldap:///ou=groups,ou=@realm@,dc=@domain@??sub?(&(objectclass=person)(wlsMemberOf=cn=Monitors,ou=groups,ou=@realm@,dc=@domain@))
description: Monitors group
objectclass: top
objectclass: groupOfUniqueNames
objectclass: groupOfURLs
cn: Monitors
dn: ou=people,ou=@realm@, dc=@domain@
ou: people
objectclass: organizationalUnit
objectclass: top
dn: uid=system,ou=people,ou=@realm@, dc=@domain@
description: system
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
objectclass: top
cn: system
sn: system
userpassword: {ssha}XYqqB9c/6OXoNVCOil7ZRdbb/GSIXVcE
uid: system
objectclass: wlsUser
wlsMemberOf: cn=Administrators,ou=groups,ou=@realm@,dc=@domain@
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/weblogic.xml
Index: weblogic.xml
===================================================================
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application
6.0//EN" "http://www.bea.com/servers/wls610/dtd/ weblogic-web-jar.dtd">
<weblogic-web-app>
<security-role-assignment>
<role-name>test</role-name>
<principal-name>testuser</principal-name>
</security-role-assignment>
</weblogic-web-app>
1.1
jakarta-cactus/petals/ant/src/confs/share/weblogic7x/fileRealm.properties
Index: fileRealm.properties
===================================================================
#Wed Jun 19 22:19:44 BST 2002
acl.modify.weblogic.admin.acl=Administrators
acl.unlockServer.weblogic.admin=Administrators
user.system=0xa7dc9690ce40f88dac3bdd23cb32588ff5546bb6
acl.lockServer.weblogic.admin=Administrators
acl.unlockuser.weblogic.passwordpolicy=Administrators
acl.shutdown.weblogic.admin=Administrators
acl.boot.weblogic.server=Administrators,everyone
group.Administrators=system
1.1 jakarta-cactus/petals/ant/src/confs/share/weblogic7x/config.xml
Index: config.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<Domain Name="testdomain">
<EmbeddedLDAP
Credential="{3DES}55B/7RZVVwwrYUjjEf9Cdd5f72Gj7pm7apl5R36oQfU="
Name="testdomain"/>
<FileRealm Name="wl_default_file_realm"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<Security Name="testdomain"
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<SecurityConfiguration
Credential="{3DES}VXIBKpJ4bKQa1IbvnNqcaZa6BPWIg0zhWlcSd2lrfZmn7KZ9gF7QnMZqhjswb/KzSbiBo/cuJGV7qLrkNbpL64iLduDXGin1"
Name="testdomain"/>
<Server Name="testserver" NativeIOEnabled="true" ListenPort="@cactus.port@"/>
</Domain>
1.1
jakarta-cactus/petals/ant/src/scripts/share/build-tests-weblogic7x.xml
Index: build-tests-weblogic7x.xml
===================================================================
<!-- Global properties -->
<property name="cactus.conf.weblogic7x" value="${cactus.conf.dir}/weblogic7x"/>
<property name="cactus.target.weblogic7x"
value="${cactus.target.dir}/weblogic7x"/>
<!-- Location of WebLogic server directory. Can be overriden by calling
scripts -->
<property name="cactus.weblogic7x.server"
value="${cactus.home.weblogic7x}/weblogic700/server"/>
<!--
========================================================================
Run WebLogic 7.x tests
========================================================================
-->
<target name="cactus.run.weblogic7x"
depends="cactus.init,cactus.setup.weblogic7x,cactus.war,cactus.deploy.weblogic7x"
if="cactus.home.weblogic7x" description="Run tests on WebLogic 7.x">
<!-- Start the servlet engine, wait for it to be started, run the
unit tests, stop the servlet engine, wait for it to be stopped.
The servlet engine is stopped if the tests fail for any reason -->
<runservertests
testURL="http://localhost:${cactus.port}/${cactus.context}/ServletRedirector?Cactus_Service=RUN_TEST"
startTarget="cactus.start.weblogic7x"
stopTarget="cactus.stop.weblogic7x"
testTarget="cactus.test"/>
</target>
<!--
========================================================================
Start WebLogic 7.x
========================================================================
-->
<target name="cactus.start.weblogic7x" description="Start WebLogic 7.x"
depends="cactus.check.weblogic7x" if="cactus.home.weblogic7x">
<java jvm="${cactus.jvm}" classname="weblogic.Server" fork="yes"
dir="${cactus.target.weblogic7x}/testdomain">
<classpath>
<pathelement
location="${cactus.weblogic7x.server}/lib/weblogic_sp.jar"/>
<pathelement
location="${cactus.weblogic7x.server}/lib/weblogic.jar"/>
</classpath>
<jvmarg value="-hotspot"/>
<jvmarg value="-ms64m"/>
<jvmarg value="-mx64m"/>
<jvmarg
value="-Djava.library.path=${java.library.path};${cactus.weblogic7x.server}/server/bin"/>
<jvmarg value="-Dweblogic.Name=testserver"/>
<jvmarg value="-Dbea.home=${cactus.home.weblogic7x}"/>
<jvmarg value="-Dweblogic.management.username=system"/>
<jvmarg value="-Dweblogic.management.password=password"/>
<jvmarg value="-Djava.security.policy==./server/lib/weblogic.policy"/>
</java>
</target>
<!--
========================================================================
Stop WebLogic 7.0
========================================================================
-->
<target name="cactus.stop.weblogic7x" description="Stop WebLogic 7.x"
depends="cactus.check.weblogic7x" if="cactus.home.weblogic7x">
<java jvm="${cactus.jvm}" classname="weblogic.Admin" fork="yes">
<classpath>
<pathelement
location="${cactus.weblogic7x.server}/lib/weblogic_sp.jar"/>
<pathelement
location="${cactus.weblogic7x.server}/lib/weblogic.jar"/>
</classpath>
<arg line="-url t3://localhost:${cactus.port}"/>
<arg line="-username system"/>
<arg line="-password password"/>
<arg value="SHUTDOWN"/>
</java>
</target>
<!--
========================================================================
Display a warning message if the needed servlet engine home property
is not set
========================================================================
-->
<target name="cactus.check.weblogic7x" unless="cactus.home.weblogic7x">
<echo message=""/>
<echo message="******************************************************"/>
<echo message="WARNING : The 'cactus.home.weblogic7x' property has not"/>
<echo message="been set. No test will be run on that servlet engine."/>
<echo message="******************************************************"/>
<echo message=""/>
</target>
<!--
========================================================================
Deploy the cactified webapp
========================================================================
-->
<target name="cactus.deploy.weblogic7x"
description="Deploy the webapp on WebLogic 7.x">
<!-- Copy the webapp -->
<mkdir dir="${cactus.target.weblogic7x}/tmp/${cactus.context}"/>
<copy todir="${cactus.target.weblogic7x}/tmp/${cactus.context}">
<fileset dir="${cactus.target.dir}/${cactus.context}"/>
</copy>
<!-- Add the WebLogic specific descriptors -->
<copy
todir="${cactus.target.weblogic7x}/tmp/${cactus.context}/WEB-INF">
<fileset dir="${cactus.conf.weblogic7x}">
<include name="weblogic.xml"/>
</fileset>
</copy>
<jar
destfile="${cactus.target.weblogic7x}/testdomain/applications/${cactus.context}.war">
<fileset
dir="${cactus.target.weblogic7x}/tmp/${cactus.context}"/>
</jar>
</target>
<!--
========================================================================
Set up a valid WebLogic 7.x directory structure in the
cactus.target.weblogic7x directory.
========================================================================
-->
<target name="cactus.setup.weblogic7x"
depends="cactus.check.weblogic7x" if="cactus.home.weblogic7x"
description="Set up a WebLogic 7.x directory structure">
<mkdir dir="${cactus.target.weblogic7x}/testdomain/applications"/>
<mkdir dir="${cactus.target.weblogic7x}/testdomain/testserver"/>
<!-- Copy WL 7.0 configuration files -->
<copy file="${cactus.conf.weblogic7x}/config.xml"
todir="${cactus.target.weblogic7x}/testdomain" filtering="on"/>
<copy file="${cactus.conf.weblogic7x}/fileRealm.properties"
todir="${cactus.target.weblogic7x}/testdomain"/>
<copy file="${cactus.conf.weblogic7x}/SerializedSystemIni.dat"
todir="${cactus.target.weblogic7x}/testdomain"/>
<copy file="${cactus.conf.weblogic7x}/DefaultAuthenticatorInit.ldift"
todir="${cactus.target.weblogic7x}/testdomain"/>
<!-- Copy security configuration files -->
<copy todir="${cactus.target.weblogic7x}/testdomain/testserver">
<fileset dir="${cactus.conf.weblogic7x}/testserver"/>
</copy>
</target>
1.6 +2 -2 jakarta-cactus/petals/ant/src/scripts/j2ee13/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/petals/ant/src/scripts/j2ee13/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- build.xml 25 Jan 2003 21:49:48 -0000 1.5
+++ build.xml 26 Jan 2003 08:26:39 -0000 1.6
@@ -6,9 +6,9 @@
<!ENTITY build-tests-jboss3x SYSTEM "file:./scripts/build-tests-jboss3x.xml">
<!ENTITY build-tests-resin2x SYSTEM "file:./scripts/build-tests-resin2x.xml">
<!ENTITY build-tests-orion1x SYSTEM "file:./scripts/build-tests-orion1x.xml">
+ <!ENTITY build-tests-weblogic7x SYSTEM
"file:./scripts/build-tests-weblogic7x.xml">
<!--
<!ENTITY build-tests-weblogic-61 SYSTEM
"file:./scripts/build-tests-weblogic-61.xml">
- <!ENTITY build-tests-weblogic-70 SYSTEM
"file:./scripts/build-tests-weblogic-70.xml">
-->
]>
@@ -67,8 +67,8 @@
&build-tests-jboss3x;
&build-tests-resin2x;
&build-tests-orion1x;
+ &build-tests-weblogic7x;
<!--
&build-tests-weblogic-61;
- &build-tests-weblogic-70;
-->
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>