-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathts.override.properties
171 lines (159 loc) · 14.4 KB
/
ts.override.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#
# Copyright (c) 2019, 2020 Payara Foundation and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
# version 2 with the GNU Classpath Exception, which is available at
# https://www.gnu.org/software/classpath/license.html.
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
# Use own CTS Impl
impl.vi=payara
# Authconfig factory was renamed in Payara 5
vendor.authconfig.factory=com.sun.enterprise.security.jaspic.config.GFAuthConfigFactory
# Separate RI and VI databases
derby.port.ri=1529
# API classes present in Payara. There's no endorsed directory compared to glassfish
javaee.classes=${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.json.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.xml.registry-api.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${s1as.modules}/jakarta.mail.jar${pathsep}${s1as.modules}/jakarta.persistence.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.security.auth.message-api.jar${pathsep}${s1as.modules}/jakarta.security.jacc-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/el-impl.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/jaxb-osgi.jar${pathsep}${s1as.modules}/jmxremote_optional-repackaged.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/javax.servlet.jsp.jstl.jar${pathsep}${ri.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${s1as.modules}/jakarta.xml.rpc-api.jar${pathsep}${s1as.modules}/webservices-osgi.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${s1as.modules}/jakarta.management.j2ee-api.jar${pathsep}${s1as.modules}/ejb.security.jar${pathsep}${s1as.modules}/glassfish-corba-csiv2-idl.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${implementation.classes}${pathsep}${s1as.modules}/javamail-connector.jar${pathsep}${s1as.modules}/javamail-runtime.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.batch-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar
# API implementations and their dependencies
implementation.classes=${s1as.modules}/deployment-client.jar${pathsep}${s1as.modules}/security.jar${pathsep}${s1as.modules}/common-util.jar${pathsep}${s1as.modules}/glassfish-corba-omgapi.jar${pathsep}${s1as.modules}/deployment-common.jar${pathsep}${s1as.modules}/gmbal.jar${pathsep}${s1as.modules}/hibernate-validator.jar${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/jersey-client.jar${pathsep}${s1as.modules}/jersey-common.jar${pathsep}${s1as.modules}/jersey-hk2.jar${pathsep}${s1as.modules}/jersey-media-jaxb.jar${pathsep}${s1as.modules}/jersey-media-sse.jar${pathsep}${s1as.modules}/jersey-media-json-processing.jar${pathsep}${s1as.modules}/jsonp-jaxrs.jar${pathsep}${s1as.modules}/jersey-media-json-binding.jar${pathsep}${s1as.modules}/jersey-server.jar${pathsep}${s1as.modules}/jersey-container-servlet.jar${pathsep}${s1as.modules}/jersey-container-servlet-core.jar${pathsep}${s1as.modules}/guava.jar${pathsep}${s1as.modules}/jakarta.el.jar${pathsep}${s1as.modules}/tyrus-websocket-core.jar${pathsep}${s1as.modules}/tyrus-client.jar${pathsep}${s1as.modules}/tyrus-core.jar${pathsep}${s1as.modules}/tyrus-container-grizzly.jar${pathsep}${s1as.modules}/tyrus-container-grizzly-client.jar${pathsep}${s1as.modules}/glassfish-grizzly-extra-all.jar${pathsep}${s1as.modules}/nucleus-grizzly-all.jar${pathsep}${s1as.modules}/tyrus-server.jar${pathsep}${s1as.modules}/tyrus-container-servlet.jar${pathsep}${s1as.modules}/tyrus-spi.jar${pathsep}${s1as.modules}/payara-jbatch.jar${pathsep}${pathsep}${s1as.modules}/glassfish-batch-connector.jar${pathsep}${s1as.modules}/glassfish-batch-commands.jar${pathsep}${s1as.modules}/yasson.jar
# API classes for signature test. Now should be matching GLasfish's
sigTestClasspath=${s1as.modules}/jakarta.enterprise.cdi-api.jar${pathsep}${s1as.modules}/jakarta.json.jar${pathsep}${s1as.modules}/jakarta.json.bind-api.jar${pathsep}${s1as.modules}/jakarta.batch-api.jar${pathsep}${s1as.modules}/jakarta.interceptor-api.jar${pathsep}${s1as.modules}/stax2-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.concurrent-api.jar${pathsep}${s1as.modules}/jakarta.websocket-api.jar${pathsep}${s1as.modules}/jakarta.jms-api.jar${pathsep}${s1as.modules}/jakarta.xml.registry-api.jar${pathsep}${s1as.modules}/jakarta.enterprise.deploy-api.jar${pathsep}${s1as.modules}/jakarta.faces.jar${pathsep}${s1as.modules}/jakarta.validation-api.jar${pathsep}${s1as.modules}/jakarta.annotation-api.jar${pathsep}${s1as.modules}/jakarta.xml.bind-api.jar${pathsep}${s1as.modules}/webservices-api-osgi.jar${pathsep}${s1as.modules}/jakarta.xml.rpc-api.jar${pathsep}${s1as.modules}/jakarta.ws.rs-api.jar${pathsep}${s1as.modules}/weld-osgi-bundle.jar${pathsep}${s1as.modules}/jakarta.ejb-api.jar${pathsep}${s1as.modules}/jakarta.mail.jar${pathsep}${s1as.modules}/jakarta.persistence.jar${pathsep}${s1as.modules}/jakarta.management.j2ee-api.jar${pathsep}${s1as.modules}/jakarta.resource-api.jar${pathsep}${s1as.modules}/jakarta.security.jacc-api.jar${pathsep}${s1as.modules}/jakarta.security.auth.message-api.jar${pathsep}${s1as.modules}/jakarta.servlet-api.jar${pathsep}${s1as.modules}/jakarta.inject.jar${pathsep}${s1as.modules}/jakarta.el.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp-api.jar${pathsep}${s1as.modules}/javax.servlet.jsp.jar${pathsep}${s1as.modules}/jakarta.servlet.jsp.jstl-api.jar${pathsep}${jtaJarClasspath}${pathsep}${s1as.modules}/jakarta.security.enterprise-api.jar${pathsep}${JAVA_HOME}/lib/rt.jar${pathsep}${JAVA_HOME}/lib/jce.jar
# Match VM timezone (also set your OS to UTC!)
tz=UTC
# static shell needs AS_DERBY_INSTALL to locate derby classes properly
command.testExecuteEjbEmbed=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.home}/lib/tsharness.jar\
${pathsep}${ts.home}/lib/cts.jar\
${pathsep}${ts.home}/lib/commons-lang3-3.3.2.jar\
${pathsep}${jdbc.db.classes}\
${pathsep}${javaee.home}/lib/embedded/glassfish-embedded-static-shell.jar \
DISPLAY=${ts.display} \
HOME="${user.home}" \
TMP=${TMP} \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
${JAVA_HOME}/bin/java \
-Dcts.tmp=$harness.temp.directory \
-Djava.util.logging.config.file=client-logging.properties \
-DAS_DERBY_INSTALL=${javaee.home}/../javadb \
-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds} \
-Djava.endorsed.dirs=${s1as.java.endorsed.dirs} \
-Djava.ext.dirs=${s1as.lib}/jdbcdrivers${pathsep}${JAVA_HOME}/lib/ext${pathsep}${JAVA_HOME}/jre/lib/ext${pathsep}${javaee.home}/javadb/lib \
-Ddeliverable.class=${deliverable.class} $testExecuteClass $testExecuteArgs
# disable variable substitution in TCK tests, set UTC timezone
vi.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4095m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http:-Dfish.payara.substitution.disable=true:-Duser.timezone=UTC
vi.jvm.options.remove=-Xmx512m:${vi.jvm.options}
# set UTC also for RI
ri.jvm.options=-Doracle.jdbc.J2EE13Compliant=true:-Xmx4096m:-Dj2eelogin.name=${user}:-Dj2eelogin.password=${password}:-Deislogin.name=${user1}:-Deislogin.password=${password1}:-Dtest.ejb.stateful.timeout.wait.seconds=${test.ejb.stateful.timeout.wait.seconds}:-DwebServerPort.2=${webServerPort.2}:-DwebServerHost.2=${webServerHost.2}:-Dcsiv2.save.log.file=${harness.log.traceflag}:-Djavax.xml.accessExternalStylesheet=all:-Djavax.xml.accessExternalDTD=file,http:-Duser.timezone=UTC
# Common Annotations need to be put on bootclasspath
command.testExecuteAppClient= \
com.sun.ts.lib.harness.ExecTSTestCmd DISPLAY=${ts.display} HOME="${user.home}" \
LD_LIBRARY_PATH=${javaee.home}/lib \
TMP=${TMP} \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
PATH="${javaee.home}/nativelib" \
APPCPATH=${ts.home}/lib/tsharness.jar\
${pathsep}${ts.home}/lib/cts.jar\
${pathsep}${javaee.home}/lib/jpa_alternate_provider.jar\
${pathsep}${ts.home}/lib/tssv.jar\
${pathsep}${javaee.home}/modules/weld-osgi-bundle.jar\
${pathsep}${javaee.home}/modules/cdi-api.jar\
TZ=${tz} \
${JAVA_HOME}/bin/java \
-Xbootclasspath/p:${javaee.home}/modules/jakarta.annotation-api.jar \
-Djava.system.class.loader=org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader \
-Djava.security.policy=${javaee.home}/lib/appclient/client.policy \
-Dcts.tmp=$harness.temp.directory \
-Djava.security.auth.login.config=${javaee.home}/lib/appclient/appclientlogin.conf \
-Djava.protocol.handler.pkgs=javax.net.ssl \
-Dcom.sun.enterprise.home=${javaee.home} \
-Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \
-Djavax.net.ssl.keyStorePassword=changeit \
-Dcom.sun.aas.installRoot=${javaee.home} \
-Dcom.sun.aas.imqLib=${javaee.home}/../mq/lib \
-Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \
-Djava.endorsed.dirs=${s1as.java.endorsed.dirs} \
-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl \
-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \
-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl \
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser \
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter \
-Doracle.jdbc.J2EE13Compliant=true \
-Doracle.jdbc.mapDateToTimestamp -Djava.security.manager \
-Dstartup.login=false \
-Dauth.gui=false \
-Dlog.file.location=${log.file.location} \
-Dri.log.file.location=${ri.log.file.location} \
-DwebServerHost.2=${webServerHost.2} \
-DwebServerPort.2=${webServerPort.2} \
-Dprovider.configuration.file=${provider.configuration.file} \
-Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \
-Djava.ext.dirs=${s1as.lib}/jdbcdrivers${pathsep}${JAVA_HOME}/lib/ext${pathsep}${JAVA_HOME}/jre/lib/ext${pathsep}${javaee.home}/lib/jdbcdrivers${pathsep}${javaee.home}/javadb/lib \
-Dcom.sun.aas.configRoot=${javaee.home}/config \
-Ddeliverable.class=${deliverable.class} \
-Djava.util.logging.config.file=client-logging.properties \
-javaagent:${javaee.home}/lib/gf-client.jar=arg=-configxml,arg=${ts.home}/tmp/appclient/s1as.sun-acc.xml,client=jar=$testExecuteArgs
# This property is used to run tests
# Useful options when you are stuck:
# - change bootstrap classpath if the test side does something bad and you want to try some alternative, ie. -Xbootclasspath/p:/repo/git/grizzly/modules/http2/target/grizzly-http2-2.4.4.payara-p4-SNAPSHOT.jar${pathsep}/repo/git/grizzly/modules/grizzly/target/grizzly-framework-2.4.4.payara-p4-SNAPSHOT.jar
# - log classloading -verbose:class
# - log network communication with the server -Djavax.net.debug=all
command.testExecute=\
com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.harness.classpath}\
${pathsep}${ts.home}/classes\
${pathsep}${JAVA_HOME}/../lib/tools.jar\
${pathsep}${ri.modules}/security-ee.jar\
${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar\
${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar\
${pathsep}${ts.home}/lib/commons-codec-1.9.jar\
${pathsep}${ts.home}/lib/cssparser-0.9.25.jar\
${pathsep}${ts.home}/lib/htmlunit-2.15.jar\
${pathsep}${ts.home}/lib/htmlunit-core-js-2.15.jar\
${pathsep}${ts.home}/lib/httpcore-4.4.9.jar\
${pathsep}${ts.home}/lib/httpclient-4.5.5.jar\
${pathsep}${ts.home}/lib/httpmime-4.5.5.jar\
${pathsep}${ts.home}/lib/commons-collections-3.2.1.jar\
${pathsep}${ts.home}/lib/commons-io-2.4.jar\
${pathsep}${ts.home}/lib/commons-lang3-3.3.2.jar\
${pathsep}${ts.home}/lib/jaxen-1.1.6.jar\
${pathsep}${ts.home}/lib/nekohtml-1.9.21.jar\
${pathsep}${ts.home}/lib/sac-1.3.jar\
${pathsep}${ts.home}/lib/saxpath.jar\
${pathsep}${ts.home}/lib/xercesImpl-2.11.0.jar\
${pathsep}${ts.home}/lib/xalan-2.7.2.jar\
${pathsep}${ts.home}/lib/serializer-2.7.2.jar\
${pathsep}${ts.home}/lib/xml-apis-1.4.01.jar\
${pathsep}${ts.home}/lib/unboundid-ldapsdk.jar\
${pathsep}${jdbc.db.classes} \
DISPLAY=${ts.display} \
HOME="${user.home}" \
TMP=${TMP} \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
PATH="${javaee.home}/nativelib" \
${JAVA_HOME}/bin/java \
-Xbootclasspath/p: \
-Dcts.tmp=$harness.temp.directory \
-Djava.protocol.handler.pkgs=javax.net.ssl \
-Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \
-Djavax.net.ssl.keyStorePassword=changeit \
-Djavax.net.ssl.trustStore=${s1as.domain}/${sjsas.instance.config.dir}/cacerts.jks \
-Djava.endorsed.dirs=${s1as.java.endorsed.dirs} \
-Dcom.sun.aas.installRoot=${javaee.home} \
-Dlog.file.location=${log.file.location} \
-Dservlet.is.jsr115.compatible=${servlet.is.jsr115.compatible} \
-Dprovider.configuration.file=${provider.configuration.file} \
-Djava.security.properties=${s1as.domain}/${sjsas.instance.config.dir}/ts.java.security \
-Dlogical.hostname.servlet=${logical.hostname.servlet} \
-Dcom.sun.aas.configRoot=${javaee.home}/config \
-Djava.util.logging.config.file=client-logging.properties \
-Ddeliverable.class=${deliverable.class} \
$testExecuteClass $testExecuteArgs