Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit f53664b

Browse files
ankathurjigneshbhodia
authored andcommitted
Upgrading derby and fixing assembly logic. (#22606)
* Upgrading derby and fixing assembly logic. * correcting transaction tests * adding jvm options and policy update for derby 10.14.2.0
1 parent 91e504f commit f53664b

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

appserver/distributions/glassfish/src/main/assembly/glassfish.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
<!-- javadb -->
104104
<fileSet>
105-
<directory>${temp.dir}/derby/db-derby-${derby.version}-bin</directory>
105+
<directory>${temp.dir}/derby/</directory>
106106
<excludes>
107107
<exclude>demo/**</exclude>
108108
<exclude>docs/**</exclude>

appserver/distributions/web/src/main/assembly/web.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
<!-- javadb -->
7373
<fileSet>
74-
<directory>${temp.dir}/derby/db-derby-${derby.version}-bin</directory>
74+
<directory>${temp.dir}/derby/</directory>
7575
<excludes>
7676
<exclude>demo/**</exclude>
7777
<exclude>docs/**</exclude>

appserver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<dbschema.version>6.6</dbschema.version>
112112
<schema2beans.version>6.6</schema2beans.version>
113113
<mq.version>5.1.2-b01</mq.version>
114-
<derby.version>10.13.1.1</derby.version>
114+
<derby.version>10.13.1.2</derby.version>
115115
<weld.version>3.0.0.Final</weld.version>
116116
<wsdl4j.version>1.6.2</wsdl4j.version>
117117
<websocket-api.version>1.1</websocket-api.version>

appserver/tests/appserv-tests/devtests/transaction/ee/ee.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
<arg line="${env.S1AS_HOME}/databases"/>
6060
<arg line="--dbport"/>
6161
<arg line="${db.port}"/>
62+
<arg line="--jvmoptions"/>
63+
<arg line="'-Djava.security.manager -Djava.security.policy=${env.S1AS_HOME}/domains/domain1/config/server.policy'"/>
6264
</exec>
6365
</target>
6466

@@ -193,4 +195,3 @@
193195
<param name="db.url" value="jdbc:derby://localhost:${db.port}/${db.name};create=true;"/>
194196
</antcall>
195197
</target>
196-

nucleus/admin/template/src/main/resources/config/server.policy

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ grant codeBase "file:${com.sun.aas.imqLib}/-" {
6262
grant codeBase "file:${com.sun.aas.derbyRoot}/lib/-" {
6363
permission java.lang.RuntimePermission "createClassLoader";
6464
permission java.io.FilePermission "<<ALL FILES>>", "read,write";
65-
};
65+
};
6666

6767

6868
// permission for JDK's tools.jar to enable webservice annotation processing
69-
// at runtime by wsgen tool:
69+
// at runtime by wsgen tool:
7070
// permission java.lang.RuntimePermission "createClassLoader";
7171
//
72-
// permission for JDK's tools.jar to sign JARs at runtime for
72+
// permission for JDK's tools.jar to sign JARs at runtime for
7373
// Java Web Start support:
7474
// permissions java.security.AllPermission;
7575
// on the advice of the JDK tools folks. Should be refined later.
@@ -102,7 +102,7 @@ grant {
102102
permission java.lang.RuntimePermission "queuePrintJob";
103103
permission java.net.SocketPermission "*", "connect";
104104

105-
// work-around for pointbase bug 4864405
105+
// work-around for pointbase bug 4864405
106106
permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
107107
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
108108

@@ -111,12 +111,12 @@ grant {
111111
permission java.lang.RuntimePermission "modifyThreadGroup";
112112
permission java.lang.RuntimePermission "getClassLoader";
113113
permission java.lang.RuntimePermission "setContextClassLoader";
114-
permission javax.management.MBeanPermission "[com.sun.messaging.jms.*:*]", "*";
115-
116-
// Following needed for CTS to pass with SM on, bug 16344201
117-
permission java.lang.RuntimePermission "closeClassLoader";
118-
permission java.io.SerializablePermission "enableSubstitution";
119-
permission java.security.SecurityPermission "getProperty.package.definition";
114+
permission javax.management.MBeanPermission "[com.sun.messaging.jms.*:*]", "*";
115+
116+
// Following needed for CTS to pass with SM on, bug 16344201
117+
permission java.lang.RuntimePermission "closeClassLoader";
118+
permission java.io.SerializablePermission "enableSubstitution";
119+
permission java.security.SecurityPermission "getProperty.package.definition";
120120
};
121121

122122
// Following grant block is only required by Connectors. If Connectors
@@ -144,7 +144,9 @@ grant codeBase "file:${com.sun.aas.instanceRoot}/applications/-"{
144144
permission java.io.FilePermission "<<ALL FILES>>", "read,write";
145145
permission org.hibernate.validator.HibernateValidatorPermission "accessPrivateMembers";
146146
};
147-
//Added for changes proposed by Derby 10.12.1.1 (DERBY-6648)
147+
//Added for changes proposed by Derby 10.12.1.1 (DERBY-6648) and Derby 10.14.2.0
148148
grant {
149149
permission org.apache.derby.security.SystemPermission "engine", "usederbyinternals";
150+
permission java.io.FilePermission "<<ALL FILES>>", "write,read";
151+
permission java.security.AllPermission;
150152
};

0 commit comments

Comments
 (0)