/
ts.jte.tomcat.jdk16
executable file
·481 lines (437 loc) · 24.3 KB
/
ts.jte.tomcat.jdk16
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
#
# Copyright (c) 2009, 2022 Oracle 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
#
#########################################################################
# #
# JavaTest Environment file for JAXWS Compatibility Test Suite #
# #
# Environment specific properties in this file will likely #
# have to be modified prior to running the JAXWS TCK. Instructions #
# for modifying these properties are contained in this file. #
# #
#########################################################################
####################################################################
#The following properties must be set prior to running the JAXWS
#TCK tests.
#
## These properties must specify the host and port of the web server,
## in which the JAXWS TCK test servlets are deployed.
#
# @webServerHost hostname for the Vendor's Web Server
# @webServerPort port number of the Vendor's Web Server
# @webServerHost.2 hostname for the RI Web Server
# @webServerPort.2 port number of the RI Web Server
####################################################################
webServerHost=localhost
webServerPort=8080
webServerHost.2=
webServerPort.2=
#################################################################################
# @jaxws.home should be set to the location of where the implementation under
# test is installed (VI implementation). This is usually installed
# within a web container (glassfish or tomcat) so we default this
# value to @webcontainer.home. See this property below.
# @jaxws.home.ri should be set to the location of where the RI is installed.
# This is usually installed within a web container (glassfish
# or tomcat) so we default this value to @webcontainer.home.ri.
# See this property below.
#################################################################################
jaxws.home=${webcontainer.home}
jaxws.home.ri=${webcontainer.home.ri}
jaxws.lib=${jaxws.home}/shared/lib
jaxws.lib.ri=${jaxws.home.ri}/shared/lib
###########################################################################
# @jaxws.classes should contain all Vendor specific jars/classes
###########################################################################
jaxws.classes=${jaxws.lib}/FastInfoset.jar${pathsep}${jaxws.lib}/gmbal-api-only.jar${pathsep}${jaxws.lib}/ha-api.jar${pathsep}${jaxws.lib}/jakarta.annotation.jar${pathsep}${jaxws.lib}/jakarta.xml.soap-api.jar${pathsep}${jaxws.lib}/jakarta.xml.bind-api.jar${pathsep}${jaxws.lib}/jaxb-impl.jar${pathsep}${jaxws.lib}/jaxb-xjc.jar${pathsep}${jaxws.lib}/jaxb-jxc.jar${pathsep}${jaxws.lib}/jaxb-core.jar${pathsep}${jaxws.lib}/jakarta.xml.ws-api.jar${pathsep}${jaxws.lib}/jaxws-rt.jar${pathsep}${jaxws.lib}/jaxws-tools.jar${pathsep}${jaxws.lib}/jsr181-api.jar${pathsep}${jaxws.lib}/mail.jar${pathsep}${jaxws.lib}/management-api.jar${pathsep}${jaxws.lib}/mimepull.jar${pathsep}${jaxws.lib}/policy.jar${pathsep}${jaxws.lib}/saaj-impl.jar${pathsep}${jaxws.lib}/stax-ex.jar${pathsep}${jaxws.lib}/stax2-api.jar${pathsep}${jaxws.lib}/streambuffer.jar${pathsep}${jaxws.lib}/woodstox-core-asl.jar
###########################################################################
# @jaxws.classes.ri should contain all RI specific jars/classes
###########################################################################
jaxws.classes.ri=${jaxws.lib.ri}/FastInfoset.jar${pathsep}${jaxws.lib.ri}/gmbal-api-only.jar${pathsep}${jaxws.lib.ri}/ha-api.jar${pathsep}${jaxws.lib.ri}/jakarta.annotation.jar${pathsep}${jaxws.lib.ri}/jakarta.xml.soap-api.jar${pathsep}${jaxws.lib.ri}/jakarta.xml.bind-api.jar${pathsep}${jaxws.lib.ri}/jaxb-impl.jar${pathsep}${jaxws.lib.ri}/jaxb-xjc.jar${pathsep}${jaxws.lib.ri}/jaxb-jxc.jar${pathsep}${jaxws.lib.ri}/jaxb-core.jar${pathsep}${jaxws.lib.ri}/jakarta.xml.ws-api.jar${pathsep}${jaxws.lib.ri}/jaxws-rt.jar${pathsep}${jaxws.lib.ri}/jaxws-tools.jar${pathsep}${jaxws.lib.ri}/jsr181-api.jar${pathsep}${jaxws.lib.ri}/mail.jar${pathsep}${jaxws.lib.ri}/management-api.jar${pathsep}${jaxws.lib.ri}/mimepull.jar${pathsep}${jaxws.lib.ri}/policy.jar${jaxws.lib}${pathsep}${jaxws.lib.ri}/saaj-impl.jar${pathsep}${jaxws.lib.ri}/stax-ex.jar${pathsep}${jaxws.lib.ri}/stax2-api.jar${pathsep}${jaxws.lib.ri}/streambuffer.jar${pathsep}${jaxws.lib.ri}/woodstox-core-asl.jar
###########################################################################
# @catalog.path Path to catalog file for use with catalog tests
###########################################################################
catalog.path=${src.dir}/com/sun/ts/tests/jaxws/common/xml/catalog
####################################################################
# The jars/classes for the TS harness/javatest and the test classes
# @ts.harness.classpath -- Classes required by javatest
# @ts.classpath -- Classes used to build the CTS tests
# @ts.run.classpath -- Classpath required by the vendor
# appclient container.
# @ts.run.classpath.ri -- Classpath required by Java EE RI
# appclient container.
####################################################################
ts.harness.classpath=${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/jaxwstck.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/jakarta.xml.bind-api.jar${pathsep}${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/jaxb-libs.jar${pathsep}${ts.home}/lib/jaxb-impl.jar
ts.classpath=${jaxws.classes}${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/jaxwstck.jar
ts.run.classpath=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.home}/lib/jaxwstck.jar${pathsep}${ts.home}/classes${pathsep}${jaxws.classes}${pathsep}${catalog.path}
ts.run.classpath.ri=${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.home}/lib/jaxwstck.jar${pathsep}${ts.home}/classes${pathsep}${jaxws.classes.ri}${pathsep}${catalog.path}
###########################################################################
# @tools.jar should be set to the location of the tools.jar from the installed
# jdk
###########################################################################
tools.jar=${jdk.home}/lib/tools.jar
###########################################################################
# various flags used by the Vendors generation tools
# @wsgen.ant.classname Complete package name of the Vendors wsgen tool
# @wsgen.classpath Classpath to the Vendors jars that contain the wsgen tool
# @wsgen.verbose Verbose flag
# @wsgen.debug Debug flag
# @wsimport.ant.classname Complete package name of the Vendors wsimport tool
# @wsimport.classpath Classpath to the Vendors jars that contain the wsimport tool
# @wsimport.verbose Verbose flag
# @wsimport.debug Debug flag
# @wsimport.jvmargs JVM args to pass to Vendors wsimport tool
###########################################################################
wsgen.ant.classname=
wsgen.classpath=${jaxws.classes}${pathsep}${tools.jar}
wsgen.verbose=true
wsgen.debug=false
wsimport.ant.classname=
wsimport.classpath=${jaxws.classes}${pathsep}${tools.jar}
wsimport.verbose=true
wsimport.debug=false
wsimport.jvmargs=
###########################################################################
# various flags used by Suns generation tools
# DO NOT EDIT
# @ri.wsgen.ant.classname Complete package name of the RI wsgen tool
# @ri.wsgen.classpath Classpath to the RI jars that contain the wsgen tool
# @ri.wsgen.verbose Verbose flag
# @ri.wsgen.debug Debug flag
# @ri.wsimport.ant.classname Complete package name of the RI wsimport tool
# @ri.wsimport.classpath Classpath to the RI jars that contain the wsimport tool
# @ri.wsimport.verbose Verbose flag
# @ri.wsimport.debug Debug flag
# @ri.wsimport.jvmargs JVM args to pass to RI wsimport tool
###########################################################################
ri.wsgen.ant.classname=com.sun.tools.ws.ant.WsGen
ri.wsgen.classpath=${jaxws.classes.ri}${pathsep}${tools.jar}
ri.wsgen.verbose=true
ri.wsgen.debug=false
ri.wsimport.ant.classname=com.sun.tools.ws.ant.WsImport
ri.wsimport.classpath=${jaxws.classes.ri}${pathsep}${tools.jar}
ri.wsimport.verbose=true
ri.wsimport.debug=false
ri.wsimport.jvmargs=
####################################################################
# Implementation Property Settings for Vendor and RI
#
# The TCK uses the following implementations:
# - glassfish (JavaEE Web Container)
# - tomcat (Tomcat Web Container)
#
# Here are the common properties that need to be defined for the common
# implementation functionality:
#
# @impl.vi This property must be set to the Vendor implementation
# under test.
# @impl.vi.deploy.dir This property must be set to the deploy directory for
# the Vendor implementation.
# @impl.vi.host This property must be set to the webserver host where
# the Vendor implementation is running.
# @impl.vi.port This property must be set to the webserver port where
# the Vendor implementation is running.
# @impl.ri This property must be set to the RI implementation
# under test.
# @impl.ri.deploy.dir This property must be set to the deploy directory for
# the RI implementation.
# @impl.ri.host This property must be set to the webserver host where
# the RI implementation is running.
# @impl.ri.port This property must be set to the webserver port where
# the RI implementation is running.
#
# These additional properties are required to be defined for use with configuration
# functionality used for Vendor and RI specific configuration:
#
# @webcontainer.home This property must refer to the location of where the
# Vendor implementation is installed within the webcontainer
# under test (glassfish or tomcat).
# @webcontainer.home.ri This property must refer to the location of where the
# RI implementation is installed within the webcontainer
# under test (glassfish or tomcat).
# @impl.deploy.timeout.multiplier The time it will wait for deployment to succeed
# or fail
####################################################################
webcontainer.home=
webcontainer.home.ri=
impl.vi=tomcat
impl.vi.deploy.dir=${webcontainer.home}/webapps
impl.vi.host=${webServerHost}
impl.vi.port=${webServerPort}
impl.ri=tomcat
impl.ri.deploy.dir=${webcontainer.home.ri}/webapps
impl.ri.host=${webServerHost.2}
impl.ri.port=${webServerPort.2}
impl.deploy.timeout.multiplier=60
####################################################################
# For the webcontainer home properties defined above, if glassfish
# is selected these are the various additional properties that should
# be set for use with configuration setup.
####################################################################
# For glassfish as Vendor set the following:
glassfish.instance.home=${webcontainer.home}/domains/domain1
glassfish.admin.host=localhost
glassfish.admin.port=4848
glassfish.admin.user=admin
glassfish.admin.pass=adminadmin
glassfish.master.pass=changeit
glassfish.server.instance=server
glassfish.domain.name=domain1
# For glassfish as RI set the following:
glassfish.instance.home.ri=${webcontainer.home.ri}/domains/domain1
glassfish.admin.host.ri=localhost
glassfish.admin.port.ri=4848
glassfish.admin.user.ri=admin
glassfish.admin.pass.ri=adminadmin
glassfish.master.pass.ri=changeit
glassfish.server.instance.ri=server
glassfish.domain.name.ri=domain1
########################################################################
## Javatest batch mode work directory and report directory, and policy for
## handling existing work and report directories. These properties affects
## runclient and report targets, but not gui target.
## To disable generating test report, unset report.dir, or set it to "none"
## either here or from command line, as in the following command:
## ant runclient -Dreport.dir="none"
##
# @if.existing.work.report.dirs specifies how existing work.dir and
# @report.dir will be handled, and it must be one of the following values:
# overwrite overwrites all content in work.dir and report.dir
# backup moves all content in work.dir and report.dir to
# work.dir_time_day_bak and report.dir_time_day_bak,
# respectively
# append reuses and preserves the existing work.dir and report.dir
# auto lets the build files decide which mode to use
# (overwrite, backup or append). the value is determined
# like this:
# if.existing.work.report.dirs == auto
# if in CTS workspace
# if.existing.work.report.dirs = overwrite
# else we are in a distribution bundle
# if.existing.work.report.dirs = append
# end if
# else
# if.existing.work.report.dirs = value in this file
# end if
########################################################################
work.dir=/tmp/JTwork
report.dir=/tmp/JTreport
if.existing.work.report.dirs=auto
###############################################################
## These properties must be set to tell the Test harness the
## class names of your porting class implementations. By default
## both property sets below point to Sun RI specific classes. To
## run against both implementations automatically, the ".2"
## property should always point to Sun RI classes. The ".1"
## property should point to implementations that work in your specific
## Java EE environment.
# @porting.ts.url.class.1 VI of com.sun.ts.lib.porting.TSURLInterface
# @porting.ts.url.class.2 RI of com.sun.ts.lib.porting.TSURLInterface
###############################################################
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
porting.ts.url.class.2=com.sun.ts.lib.implementation.sun.common.SunRIURL
#################################################################
#The following properties must be set prior to running the JAXWS
#TCK tests. These properties are used for the JAXWS security tests
#which test HTTP Basic Authentication.
#
# @user User defined to exercise rolemapping feature
# @password Associated password for the user
# @authuser User defined to exercise rolemapping feature
# @authpassword Associated password for the authuser
#################################################################
user=j2ee
password=j2ee
authuser=javajoe
authpassword=javajoe
########################################################################
## These properties are used by the harness. "harness.log.port"
## specifies the port that server components use to send logging
## output back to JavaTest. If the default port # is not available
## on the machine running JavaTest, then you can set it here.
##
# @harness.temp.directory directory location used by the
# harness to store temporary files
#
# @harness.log.port the port the harness listens on for log mesages
# from remote clients
#
# @harness.log.traceflag used to turn on/off verbose debugging output
# for the tests.
#
# @harness.log.delayseconds Number of seconds to delay to allow
# reporting from remote clients to finish.
#
# @harness.executeMode used to run the harness in the following modes
# of execution: 2 - run only
#
# @harness.socket.retry.count - denotes the number of time we should
# attempt to create a server socket when intilizing a test
# client. The socket is used for logging purposes.
########################################################################
harness.temp.directory=${ts.home}/tmp
harness.log.port=2000
harness.log.traceflag=false
harness.log.delayseconds=1
harness.executeMode=2
harness.socket.retry.count=10
###############################################################
# @tz - your local timezone. For valid values, consult your
# Operating System documentation.
###############################################################
tz=US/Eastern
########################################################################
# @javatest.timeout.factor This property specifies the scale factor used by
# Javatest to adjust the time JavaTest will wait for a given test to
# complete before returning failure. For instance if the default test timeout
# is 5 minutes, this value will be multiplied by 5 minutes to determine
# the total timeout delay. Note: this value only works with Javatest's
# batch mode (runclient). When using the Javatest GUI users must change
# this timeout factor in the GUI. Configure -> Edit Configuration -> View
# -> choose Standard Values -> select tab Execution -> set Time Factor.
########################################################################
javatest.timeout.factor=1.0
#######################################################################
#build level
#######################################################################
#1: compile only
#2: compile and build component archives (e.g., jar's, war's)
build.level=2
###############################################################
# @ts.display -- location to display CTS output on Unix
###############################################################
ts.display=:0.0
#######################################################################
# default deliverable class
#######################################################################
deliverable.class=com.sun.ts.lib.deliverable.jaxws.JAXWSDeliverable
########################################################################
## Common environment for both ts_unix and ts_win32
########################################################################
# This execute line runs against the VI implementation
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.run.classpath} \
DISPLAY="${ts.display}" \
HOME="${user.home}" \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
${JAVA_HOME}/bin/java \
-Djava.security.policy="${bin.dir}/harness.policy" \
-Djava.security.manager \
-Ddeliverable.class=${deliverable.class} \
$testExecuteClass $testExecuteArgs
# This execute line runs against the RI implementation
command.testExecute2=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${ts.run.classpath.ri} \
DISPLAY="${ts.display}" \
HOME="${user.home}" \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
${JAVA_HOME}/bin/java \
-Djava.security.policy="${bin.dir}/harness.policy" \
-Djava.security.manager \
-Ddeliverable.class=${deliverable.class} \
$testExecuteClass $testExecuteArgs
#########################################################################
## Environment for ts_unix
## The test execution commands inherit from common environment
## defined above: testExecute.
## If you need to override it, uncomment it in the following section.
#########################################################################
env.ts_unix.menu=true
##env.ts_unix.command.testExecute=
########################################################################
## Environment for ts_win32
## The test execution commands inherit from common environment
## defined above: testExecute.
## If you need to override it, uncomment it in the following section.
########################################################################
env.ts_win32.menu=true
##env.ts_win32.command.testExecute=
#########################################################################
# @sigTestClasspath: This property must be set when running signature
# tests. This property should be set to a list of
# jar files and/or directories which contain your
# Java EE and Java SE classes. Paths must be
# separated by the appropriate path separator
# (';' windows, ':' Unixes).
#########################################################################
sigTestClasspath=${jaxws.classes}${pathsep}${JAVA_HOME}/lib/rt.jar
###############################################################
## This command allows the test clients to be run in
## the same JVM as JavaTest in this case. This mode can be
## enabled by passing "-Dsame.jvm=true" to the runclient or gui
## targets. NOTE: This option is only to be used for sanity
## checking and not when running the TCK for compatibility.
###############################################################
command.testExecuteSameJVM=com.sun.ts.lib.harness.ExecuteTSTestSameJVMCmd \
$testExecuteClass $testExecuteArgs
#######################################################################
# platform.mode is used by JAXWS tests to know whether to use the
# J2EE Programming Model for service and port access or the
# JAXWS Programming model based on the runtime execution platform.
#
# platform.mode=standalone JAXWS Programming Model
# platform.mode=jakartaEE Java EE Programming Model
#######################################################################
platform.mode=standalone
################################################################
# @http.server.supports.endpoint.publish Does HTTP server-side support endpoint publish API's.
# @http.server.supports.endpoint.publish.2 Does the RI HTTP server-side support endpoint publish API's.
# http.server.supports.endpoint.publish=(true|false)
################################################################
http.server.supports.endpoint.publish=true
http.server.supports.endpoint.publish.2=true
#######################################################################
# Endpoint API test
#
# Port info is obtained dynamically for Endpoint API test.
# Uncomment port range min/max if you want to specify port range
# for Endpoint publish test.
# Server endpoints will be published on ports within this range.
# If you do not want to dynamically obtain the port but wish to publish
# to a fixed static port than make the values below both equal to the
# specific port.
#######################################################################
port.range.min=1025
port.range.max=10000
###########################################################################
# various flags used by the Vendors Endpoint Publish tool
# @endpoint.publish.classname Complete package name of the Vendors Endpoint Publish tool
###########################################################################
endpoint.publish.classname=com.sun.ts.tests.jaxws.util.PublishEndpoint
###########################################################################
# various flags used by Suns generation tools
# DO NOT EDIT
# @ri.endpoint.publish.classname Complete package name of the RI Endpoint Publish tool
###########################################################################
ri.endpoint.publish.classname=com.sun.ts.tests.jaxws.util.PublishEndpoint
###################################################################
## Deliverables wanting ts.* packaging tasks to add extension list
## attributes to the manifest files must set this property to true.
###################################################################
#create.manifest.extension.entries=false
######################################################################
## Deliverables must set this property to the name of the deliverable
## specific library jar file (iff create.manifest.extension.entries
## is set to true)
######################################################################
tslib.name=jaxwstck
###########################################################################
# This property is used by some test clients that need a delay between
# method invocations to server endpoints. The value specified is the amount
# of time the client will delay in seconds.
###########################################################################
client.delay=1