glassfish 0.3.1-universal-java → 0.9.0-universal-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/bin/asadmin +3 -11
  2. data/bin/glassfish +42 -0
  3. data/bin/glassfish_rails +39 -43
  4. data/domains/domain1/config/default-web.xml +16 -15
  5. data/domains/domain1/config/domain.xml +213 -198
  6. data/domains/domain1/config/domain.xml_ORIG +170 -210
  7. data/domains/domain1/config/keystore.jks +0 -0
  8. data/domains/domain1/config/logging.properties +48 -0
  9. data/domains/domain1/config/server.policy +10 -0
  10. data/domains/domain1/docroot/index.html +50 -17
  11. data/felix/bin/felix.jar +0 -0
  12. data/felix/bundle/org.apache.felix.shell.jar +0 -0
  13. data/felix/bundle/org.apache.felix.shell.remote.jar +0 -0
  14. data/felix/bundle/org.apache.felix.shell.tui.jar +0 -0
  15. data/felix/conf/config.properties +277 -0
  16. data/felix/conf/system.properties +14 -0
  17. data/lib/jndi-properties.jar +0 -0
  18. data/lib/templates/default-web.xml +1104 -1129
  19. data/lib/templates/domain.xml +166 -209
  20. data/lib/templates/keystore.jks +0 -0
  21. data/lib/templates/logging.properties +48 -0
  22. data/lib/templates/server.policy +170 -155
  23. data/modules/admin-cli.jar +0 -0
  24. data/modules/api-exporter.jar +0 -0
  25. data/modules/asadmin.rb +9 -0
  26. data/modules/asm-all-repackaged.jar +0 -0
  27. data/modules/{auto-depends-0.3.2.jar → auto-depends-0.3.33.jar} +0 -0
  28. data/modules/auto-depends.jar +0 -0
  29. data/modules/branding.jar +0 -0
  30. data/modules/{cli-framework-10.0-SNAPSHOT.jar → cli-framework.jar} +0 -0
  31. data/modules/command_line_parser.rb +54 -0
  32. data/modules/{common-util-10.0-SNAPSHOT.jar → common-util.jar} +0 -0
  33. data/modules/config-0.3.33.jar +0 -0
  34. data/modules/config-api.jar +0 -0
  35. data/modules/config.jar +0 -0
  36. data/modules/deployment-admin.jar +0 -0
  37. data/modules/deployment-autodeploy.jar +0 -0
  38. data/modules/deployment-common.jar +0 -0
  39. data/modules/flashlight-agent.jar +0 -0
  40. data/modules/flashlight-framework.jar +0 -0
  41. data/modules/gf-jruby-connector-0.7.1-SNAPSHOT.jar +0 -0
  42. data/modules/glassfish-api-3.0-Prelude-b28b.jar +0 -0
  43. data/modules/glassfish-api.jar +0 -0
  44. data/modules/glassfish.jar +0 -0
  45. data/modules/glassfish.rb +13 -9
  46. data/modules/grizzly-jruby-1.8.1.jar +0 -0
  47. data/modules/grizzly-jruby-module-0.7.1-SNAPSHOT.jar +0 -0
  48. data/modules/grizzly-module.jar +0 -0
  49. data/modules/hk2-0.3.33.jar +0 -0
  50. data/modules/hk2-core-0.3.33.jar +0 -0
  51. data/modules/hk2-core.jar +0 -0
  52. data/modules/hk2.jar +0 -0
  53. data/modules/internal-api.jar +0 -0
  54. data/modules/javax.xml.stream.jar +0 -0
  55. data/modules/kernel.jar +0 -0
  56. data/modules/{launcher-10.0-SNAPSHOT.jar → launcher.jar} +0 -0
  57. data/modules/monitoring-core.jar +0 -0
  58. data/modules/osgi-adapter.jar +0 -0
  59. data/modules/pkg-client.jar +0 -0
  60. data/modules/rdoc_usage.rb +27 -0
  61. data/modules/stats77.jar +0 -0
  62. data/modules/{stax-api-1.0-2.jar → stax-api.jar} +0 -0
  63. data/modules/{tiger-types-osgi-0.3.2.jar → tiger-types-osgi-0.3.33.jar} +0 -0
  64. data/modules/tiger-types-osgi.jar +0 -0
  65. data/modules/version.rb +5 -0
  66. data/modules/{wstx-asl-3.2.3.jar → wstx-asl.jar} +0 -0
  67. metadata +109 -77
  68. data/README +0 -12
  69. data/bin/asadmin.bat +0 -9
  70. data/bin/startserv +0 -11
  71. data/bin/startserv.bat +0 -9
  72. data/bin/stopserv +0 -13
  73. data/bin/stopserv.bat +0 -9
  74. data/modules/admin-cli-10.0-SNAPSHOT.jar +0 -0
  75. data/modules/config-0.3.2.jar +0 -0
  76. data/modules/config-api-10.0-SNAPSHOT.jar +0 -0
  77. data/modules/deployment-common-10.0-SNAPSHOT.jar +0 -0
  78. data/modules/gf-jruby-connector-0.7-SNAPSHOT.jar +0 -0
  79. data/modules/glassfish-10.0-SNAPSHOT.jar +0 -0
  80. data/modules/glassfish-api-10.0.0-rev5.jar +0 -0
  81. data/modules/grizzly-jruby-1.7.5-SNAPSHOT.jar +0 -0
  82. data/modules/grizzly-jruby-module-0.7-SNAPSHOT.jar +0 -0
  83. data/modules/grizzly-module-1.7.3.3-rev1.jar +0 -0
  84. data/modules/hk2-0.3.2.jar +0 -0
  85. data/modules/hk2-core-0.3.2.jar +0 -0
  86. data/modules/internal-api-10.0-SNAPSHOT.jar +0 -0
  87. data/modules/kernel-10.0-SNAPSHOT.jar +0 -0
  88. data/modules/osgi-adapter-0.3.2.jar +0 -0
data/bin/asadmin CHANGED
@@ -1,13 +1,5 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
5
- # Use is subject to license terms.
6
- #
7
-
8
- AS_INSTALL=`dirname $0`/..
9
- AS_INSTALL_LIB=$AS_INSTALL/modules
10
-
11
- exec java -jar "$AS_INSTALL_LIB/admin-cli-10.0-SNAPSHOT.jar" "$@"
1
+ #!/usr/bin/env jruby
12
2
 
3
+ require 'asadmin'
13
4
 
5
+ GlassFish::ASAdmin.new
data/bin/glassfish ADDED
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env jruby
2
+
3
+ # == Synopsis
4
+ #
5
+ # glassfish: GlassFish v3 server for rails, merb, sintra applications
6
+ #
7
+ # == Usage:
8
+ #
9
+ # glassfish [OPTION] APPLICATION_PATH
10
+ #
11
+ # -h, --help::
12
+ # show help
13
+ #
14
+ # -c, --contextroot PATH::
15
+ # change the context root (default: '/')
16
+ #
17
+ # -p, --port PORT::
18
+ # change server port (default: 3000)
19
+ #
20
+ # -e, --environment ENV::
21
+ # change rails environment (default: development)
22
+ #
23
+ # -n --runtimes NUMBER::
24
+ # Number of JRuby runtimes to crete initially
25
+ #
26
+ # --runtimes-min NUMBER::
27
+ # Minimum JRuby runtimes to crete
28
+ #
29
+ # --runtimes-max NUMBER::
30
+ # Maximum number of JRuby runtimes to crete
31
+ #
32
+ # APPLICATION_PATH (optional): Path to the application to be run (default: current).
33
+
34
+ require "java"
35
+ $LOAD_PATH << "#{File.dirname(__FILE__)}/../modules"
36
+
37
+ require 'command_line_parser'
38
+ require 'glassfish'
39
+
40
+ options = CommandLineParser.new.parse
41
+ gf = GlassFish::Server.new
42
+ gf.startup(options)
data/bin/glassfish_rails CHANGED
@@ -1,46 +1,42 @@
1
1
  #!/usr/bin/env jruby
2
- require 'java'
3
- require 'rubygems'
4
- require 'glassfish'
5
-
6
- require 'optparse'
7
-
8
- OPTIONS = {
9
- :runtimes => 1,
10
- :contextroot => '/',
11
- # :environment => (ENV['RAILS_ENV'] || "development").dup
12
- }
13
-
14
- #ARGV.clone.options do |opts|
15
- opts = OptionParser.new do |opts|
16
- opts.on("-n", "--runtimes=runtimes", String,
17
- "Number of runtimes to be launched.", "Default: 1") { |v| OPTIONS[:runtimes] = v }
18
- opts.on("-c", "--contextroot=contextroot", String,
19
- "ContextRoot for the application", "Default: /") { |v| OPTIONS[:contextroot] = v }
20
- # opts.on("-e", "--environment=name", String,
21
- # "Specifies the environment to run this server under (test/development/production).",
22
- # "Default: development") { |v| OPTIONS[:environment] = v }
23
-
24
- opts.separator ""
25
2
 
26
- opts.on("-h", "--help", "Show this help message.") { puts opts; exit }
27
-
28
- end
29
-
30
- begin
31
- opts.parse!(ARGV)
32
- rescue Exception => e
33
- puts e, "", opts
34
- exit
35
- end
36
-
37
- #ENV["RAILS_ENV"] = OPTIONS[:environment]
38
- #RAILS_ENV.replace(OPTIONS[:environment]) if defined?(RAILS_ENV)
39
-
40
- ARGV[ARGV.length] = '--runtimes'
41
- ARGV[ARGV.length] = OPTIONS[:runtimes]
42
- #Ensure that the application is deployed at the ROOT context always for a gem
43
- ARGV[ARGV.length] = '--contextroot'
44
- ARGV[ARGV.length] = OPTIONS[:contextroot]
3
+ # == Synopsis
4
+ #
5
+ # glassfish: GlassFish v3 server for rails, merb, sintra applications
6
+ #
7
+ # == Usage:
8
+ #
9
+ # glassfish [OPTION] APPLICATION_PATH
10
+ #
11
+ # -h, --help::
12
+ # show help
13
+ #
14
+ # -c, --contextroot PATH::
15
+ # change the context root (default: '/')
16
+ #
17
+ # -p, --port PORT::
18
+ # change server port (default: 3000)
19
+ #
20
+ # -e, --environment ENV::
21
+ # change rails environment (default: development)
22
+ #
23
+ # -n --runtimes NUMBER::
24
+ # Number of JRuby runtimes to crete initially
25
+ #
26
+ # --runtimes-min NUMBER::
27
+ # Minimum JRuby runtimes to crete
28
+ #
29
+ # --runtimes-max NUMBER::
30
+ # Maximum number of JRuby runtimes to crete
31
+ #
32
+ # APPLICATION_PATH (optional): Path to the application to be run (default: current).
33
+
34
+ require "java"
35
+ $LOAD_PATH << "#{File.dirname(__FILE__)}/../modules"
36
+
37
+ require 'command_line_parser'
38
+ require 'glassfish'
45
39
 
46
- GlassFish.startup(ARGV)
40
+ options = CommandLineParser.new.parse
41
+ gf = GlassFish::Server.new
42
+ gf.startup(options)
@@ -287,11 +287,6 @@
287
287
  <!-- -->
288
288
  <!-- outputEncoding The encoding to use for the page that results -->
289
289
  <!-- from the SSI processing. [UTF-8] -->
290
- <!-- -->
291
- <!-- -->
292
- <!-- IMPORTANT: To use the SSI servlet, you also need to rename the -->
293
- <!-- $CATALINA_HOME/server/lib/servlets-ssi.renametojar file -->
294
- <!-- to $CATALINA_HOME/server/lib/servlets-ssi.jar -->
295
290
 
296
291
  <!--
297
292
  <servlet>
@@ -342,10 +337,6 @@
342
337
  <!-- -->
343
338
  <!-- passShellEnvironment Should the shell environment variables (if -->
344
339
  <!-- any) be passed to the CGI script? [false] -->
345
- <!-- -->
346
- <!-- IMPORTANT: To use the CGI servlet, you also need to rename the -->
347
- <!-- $CATALINA_HOME/server/lib/servlets-cgi.renametojar file -->
348
- <!-- to $CATALINA_HOME/server/lib/servlets-cgi.jar -->
349
340
 
350
341
  <!--
351
342
  <servlet>
@@ -431,11 +422,6 @@
431
422
  <!-- Should "virtual" paths be interpreted as -->
432
423
  <!-- relative to the context root, instead of -->
433
424
  <!-- the server root? (0=false, 1=true) [0] -->
434
- <!-- -->
435
- <!-- -->
436
- <!-- IMPORTANT: To use the SSI filter, you also need to rename the -->
437
- <!-- $CATALINA_HOME/server/lib/servlets-ssi.renametojar file -->
438
- <!-- to $CATALINA_HOME/server/lib/servlets-ssi.jar -->
439
425
 
440
426
  <!--
441
427
  <filter>
@@ -1075,7 +1061,22 @@
1075
1061
  <extension>zip</extension>
1076
1062
  <mime-type>application/zip</mime-type>
1077
1063
  </mime-mapping>
1078
-
1064
+ <mime-mapping>
1065
+ <extension>odp</extension>
1066
+ <mime-type>application/x-vnd.oasis.opendocument.presentation</mime-type>
1067
+ </mime-mapping>
1068
+ <mime-mapping>
1069
+ <extension>odt</extension>
1070
+ <mime-type>application/x-vnd.oasis.opendocument.text</mime-type>
1071
+ </mime-mapping>
1072
+ <mime-mapping>
1073
+ <extension>ods</extension>
1074
+ <mime-type>application/x-vnd.oasis.opendocument.spreadsheet</mime-type>
1075
+ </mime-mapping>
1076
+ <mime-mapping>
1077
+ <extension>odg</extension>
1078
+ <mime-type>application/x-vnd.oasis.opendocument.graphics</mime-type>
1079
+ </mime-mapping>
1079
1080
 
1080
1081
 
1081
1082
  <!-- ==================== Default Welcome File List ===================== -->
@@ -6,205 +6,220 @@
6
6
  <!-- Generated from default-domain.xml.template -->
7
7
  <!-- Avoid manual edits of this file. Run "asadmin verify-domain-xml" otherwise.-->
8
8
 
9
- <domain application-root="${com.sun.aas.instanceRoot}/applications" log-root="${com.sun.aas.instanceRoot}/logs">
10
- <applications>
11
- <web-module name="adminapp" context-root="/web1" location="${com.sun.aas.installRoot}/lib/install/applications/adminapp/adminapp_war" object-type="system-admin" enabled="true" directory-deployed="true" availability-enabled="false">
12
- <!-- System Web Module - DO NOT DELETE! -->
13
- </web-module>
14
- <web-module name="admingui" context-root="" location="${com.sun.aas.installRoot}/lib/install/applications/admingui/adminGUI_war" object-type="system-admin" enabled="true" directory-deployed="true" availability-enabled="false">
15
- <!-- System Web Module - DO NOT DELETE! -->
16
- </web-module>
17
- <web-module name="WSTXServices" context-root="/__wstx-services" location="${com.sun.aas.installRoot}/lib/install/applications/wstx-services" object-type="system-all" enabled="true" directory-deployed="true" availability-enabled="false"/>
18
- <lifecycle-module class-name="com.sun.jbi.framework.sun.SunASJBIBootstrap" classpath="${com.sun.aas.installRoot}/jbi/lib/jbi_framework.jar" enabled="true" is-failure-fatal="false" name="JBIFramework" object-type="system-all">
19
- <description>"JBI Framework LifecycleModule"</description>
20
- <property name="com.sun.jbi.home" value="${com.sun.aas.installRoot}/jbi"/>
21
- <property name="com.sun.jbi.defaultLogLevel" value="INFO"/>
22
- </lifecycle-module>
23
- <lifecycle-module class-name="com.sun.xml.ws.transport.tcp.server.glassfish.WSTCPLifeCycleModule" classpath="${com.sun.aas.installRoot}/lib/webservices-rt.jar" enabled="true" is-failure-fatal="false" object-type="system-all" name="WSTCPConnectorLCModule"/>
24
- </applications>
25
- <resources>
26
- <jdbc-resource jndi-name="jdbc/__TimerPool" pool-name="__TimerPool" object-type="system-admin" enabled="false"/>
27
- <jdbc-resource jndi-name="jdbc/__CallFlowPool" pool-name="__CallFlowPool" object-type="system-all" enabled="false"/>
28
- <jdbc-resource jndi-name="jdbc/__default" pool-name="DerbyPool" object-type="user" enabled="false"/>
29
-
30
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" res-type="javax.sql.XADataSource" name="__CallFlowPool" pool-resize-quantity="2" steady-pool-size="8" non-transactional-connections="false" allow-non-component-callers="false" validate-atmost-once-period-in-seconds="0" connection-leak-timeout-in-seconds="0" connection-leak-reclaim="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" statement-timeout-in-seconds="-1" lazy-connection-enlistment="false" lazy-connection-association="false" associate-with-thread="false" match-connections="false" max-connection-usage-count="0" wrap-jdbc-objects="false">
31
- <property name="databaseName" value="${com.sun.aas.instanceRoot}/lib/databases/sun-callflow"/>
32
- <property name="connectionAttributes" value=";create=true"/>
33
- </jdbc-connection-pool>
34
-
35
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" max-pool-size="32" max-wait-time-in-millis="60000" res-type="javax.sql.XADataSource" name="__TimerPool" pool-resize-quantity="2" steady-pool-size="8" non-transactional-connections="false" allow-non-component-callers="false" validate-atmost-once-period-in-seconds="0" connection-leak-timeout-in-seconds="0" connection-leak-reclaim="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" statement-timeout-in-seconds="-1" lazy-connection-enlistment="false" lazy-connection-association="false" associate-with-thread="false" match-connections="false" max-connection-usage-count="0" wrap-jdbc-objects="false">
36
- <property name="databaseName" value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer"/>
37
- </jdbc-connection-pool>
38
- <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="org.apache.derby.jdbc.ClientDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="DerbyPool" pool-resize-quantity="2" res-type="javax.sql.DataSource" steady-pool-size="8" non-transactional-connections="false" allow-non-component-callers="false" validate-atmost-once-period-in-seconds="0" connection-leak-timeout-in-seconds="0" connection-leak-reclaim="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" statement-timeout-in-seconds="-1" lazy-connection-enlistment="false" lazy-connection-association="false" associate-with-thread="false" match-connections="false" max-connection-usage-count="0" wrap-jdbc-objects="false">
39
- <property name="PortNumber" value="1527"/>
40
- <property name="Password" value="APP"/>
41
- <property name="User" value="APP"/>
42
- <property name="serverName" value="localhost"/>
43
- <property name="DatabaseName" value="sun-appserv-samples"/>
44
- <property name="connectionAttributes" value=";create=true"/>
45
- </jdbc-connection-pool>
46
- </resources>
47
- <servers>
48
- <server name="server" config-ref="server-config" lb-weight="100">
49
- <application-ref enabled="true" ref="adminapp" virtual-servers="__asadmin" lb-enabled="false" disable-timeout-in-minutes="30"/>
50
- <application-ref enabled="true" ref="admingui" virtual-servers="__asadmin" lb-enabled="false" disable-timeout-in-minutes="30"/>
51
- <application-ref enabled="true" ref="JBIFramework" lb-enabled="false" disable-timeout-in-minutes="30"/>
52
- <application-ref enabled="true" ref="WSTXServices" lb-enabled="false" disable-timeout-in-minutes="30"/>
53
- <application-ref enabled="true" ref="WSTCPConnectorLCModule" lb-enabled="false" disable-timeout-in-minutes="30"/>
54
- <resource-ref enabled="false" ref="jdbc/__TimerPool"/>
55
- <resource-ref enabled="false" ref="jdbc/__CallFlowPool"/>
56
- <resource-ref enabled="false" ref="jdbc/__default"/>
57
- </server>
58
- </servers>
59
- <configs>
60
- <config name="server-config" dynamic-reconfiguration-enabled="true">
61
- <http-service>
62
- <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%" rotation-enabled="true" rotation-interval-in-minutes="15" rotation-policy="time" rotation-suffix="yyyy-MM-dd"/>
63
- <http-listener id="http-listener-1" address="0.0.0.0" port="3000" acceptor-threads="1" security-enabled="false" default-virtual-server="server" server-name="" xpowered-by="true" enabled="true" family="inet" blocking-enabled="false">
64
- <property name="proxiedProtocols" value="ws/tcp"/>
65
- </http-listener>
66
- <http-listener id="http-listener-2" address="0.0.0.0" port="3131" acceptor-threads="1" security-enabled="true" default-virtual-server="server" server-name="" xpowered-by="true" enabled="false" family="inet" blocking-enabled="false"/>
67
- <http-listener id="admin-listener" address="0.0.0.0" port="3838" acceptor-threads="1" security-enabled="false" default-virtual-server="__asadmin" server-name="" xpowered-by="true" enabled="false" family="inet" blocking-enabled="false"/>
68
- <virtual-server id="server" http-listeners="http-listener-1,http-listener-2" hosts="${com.sun.aas.hostName}" state="on" log-file="${com.sun.aas.instanceRoot}/logs/server.log">
69
- <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
70
- <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
71
- <property name="sso-enabled" value="false"/>
72
- </virtual-server>
73
- <virtual-server id="__asadmin" http-listeners="admin-listener" hosts="${com.sun.aas.hostName}" state="on" log-file="${com.sun.aas.instanceRoot}/logs/server.log">
74
- <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
75
- <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
76
- <property name="sso-enabled" value="false"/>
77
- </virtual-server>
78
- <request-processing header-buffer-length-in-bytes="8192" initial-thread-count="2" request-timeout-in-seconds="30" thread-count="20" thread-increment="1"/>
79
- <keep-alive max-connections="250" thread-count="1" timeout-in-seconds="30"/>
80
- <connection-pool max-pending-count="4096" queue-size-in-bytes="4096" receive-buffer-size-in-bytes="4096" send-buffer-size-in-bytes="8192"/>
81
- <http-protocol default-response-type="text/plain; charset=iso-8859-1" dns-lookup-enabled="false" forced-response-type="text/plain; charset=iso-8859-1" ssl-enabled="true" version="HTTP/1.1"/>
82
- <http-file-cache globally-enabled="false" file-caching-enabled="false" max-age-in-seconds="30" medium-file-size-limit-in-bytes="537600" medium-file-space-in-bytes="10485760" small-file-size-limit-in-bytes="2048" small-file-space-in-bytes="1048576" max-files-count="1024" file-transmission-enabled="false" hash-init-size="0"/>
83
- <property name="accessLoggingEnabled" value="false"/>
84
- </http-service>
85
- <iiop-service client-authentication-required="false">
86
- <orb use-thread-pool-ids="thread-pool-1" message-fragment-size="1024" max-connections="1024"/>
9
+ <domain application-root="${com.sun.aas.instanceRoot}/applications" log-root="${com.sun.aas.instanceRoot}/logs">
10
+ <applications/>
11
+ <resources>
12
+ <jdbc-resource pool-name="__TimerPool" jndi-name="jdbc/__TimerPool" object-type="system-admin"/>
13
+ <jdbc-resource pool-name="DerbyPool" jndi-name="jdbc/__default"/>
14
+ <jdbc-connection-pool name="__TimerPool" datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource"
15
+ res-type="javax.sql.XADataSource">
16
+ <property value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer" name="databaseName"/>
17
+ <property value=";create=true" name="connectionAttributes"/>
18
+ </jdbc-connection-pool>
19
+ <jdbc-connection-pool is-isolation-level-guaranteed="false" name="DerbyPool"
20
+ datasource-classname="org.apache.derby.jdbc.ClientDataSource"
21
+ res-type="javax.sql.DataSource">
22
+ <property value="1527" name="PortNumber"/>
23
+ <property value="APP" name="Password"/>
24
+ <property value="APP" name="User"/>
25
+ <property value="localhost" name="serverName"/>
26
+ <property value="sun-appserv-samples" name="DatabaseName"/>
27
+ <property value=";create=true" name="connectionAttributes"/>
28
+ </jdbc-connection-pool>
29
+ </resources>
30
+ <servers>
31
+ <server config-ref="server-config" name="server">
32
+ <resource-ref ref="jdbc/__TimerPool"/>
33
+ <resource-ref ref="jdbc/__default"/>
34
+ </server>
35
+ </servers>
36
+ <configs>
37
+ <config name="server-config" dynamic-reconfiguration-enabled="true">
38
+ <http-service>
39
+ <access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%"
40
+ rotation-enabled="true" rotation-interval-in-minutes="15" rotation-policy="time"
41
+ rotation-suffix="yyyy-MM-dd"/>
42
+ <http-listener default-virtual-server="server" server-name="" address="0.0.0.0" port="${jruby.gem.port}"
43
+ id="http-listener-1">
44
+ <property value="ws/tcp" name="proxiedProtocols"/>
45
+ </http-listener>
46
+ <http-listener default-virtual-server="server" enabled="false" security-enabled="true" server-name=""
47
+ address="0.0.0.0" port="8181" id="http-listener-2">
48
+ <ssl ssl3-enabled="false" cert-nickname="s1as"/>
49
+ </http-listener>
50
+ <http-listener default-virtual-server="__asadmin" server-name="" address="0.0.0.0" port="4848"
51
+ id="admin-listener"/>
52
+ <virtual-server id="server" http-listeners="http-listener-1,http-listener-2">
53
+ <property value="${com.sun.aas.instanceRoot}/docroot" name="docroot"/>
54
+ <property value="${com.sun.aas.instanceRoot}/logs/access" name="accesslog"/>
55
+ <property value="false" name="sso-enabled"/>
56
+ </virtual-server>
57
+ <virtual-server id="__asadmin" http-listeners="admin-listener">
58
+ <property value="${com.sun.aas.instanceRoot}/docroot" name="docroot"/>
59
+ <property value="${com.sun.aas.instanceRoot}/logs/access" name="accesslog"/>
60
+ <property value="false" name="sso-enabled"/>
61
+ </virtual-server>
62
+ <request-processing initial-thread-count="2" header-buffer-length-in-bytes="8192" thread-count="20"
63
+ thread-increment="1"/>
64
+ <keep-alive max-connections="250"/>
65
+ <connection-pool/>
66
+ <http-protocol default-response-type="text/plain; charset=iso-8859-1"
67
+ forced-response-type="text/plain; charset=iso-8859-1"/>
68
+ <http-file-cache file-caching-enabled="false" globally-enabled="false"/>
69
+ <property value="false" name="accessLoggingEnabled"/>
70
+ </http-service>
87
71
 
88
- <iiop-listener id="orb-listener-1" address="0.0.0.0" port="3700" enabled="true" security-enabled="false"/>
89
- <iiop-listener id="SSL" address="0.0.0.0" port="3820" security-enabled="true" enabled="true">
90
- <ssl cert-nickname="s1as" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
91
- </iiop-listener>
92
- <iiop-listener id="SSL_MUTUALAUTH" address="0.0.0.0" port="3920" security-enabled="true" enabled="true">
93
- <ssl cert-nickname="s1as" client-auth-enabled="true" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
94
- </iiop-listener>
95
- </iiop-service>
96
- <admin-service system-jmx-connector-name="system" type="das-and-server">
97
- <!-- The JSR 160 "system-jmx-connector" -->
98
- <jmx-connector accept-all="false" address="0.0.0.0" auth-realm-name="admin-realm" enabled="true" name="system" port="8686" protocol="rmi_jrmp" security-enabled="false"/>
99
- <!-- The JSR 160 "system-jmx-connector" -->
100
- <das-config dynamic-reload-enabled="true" dynamic-reload-poll-interval-in-seconds="2" autodeploy-enabled="true" autodeploy-polling-interval-in-seconds="2" autodeploy-dir="${com.sun.aas.instanceRoot}/autodeploy" autodeploy-verifier-enabled="false" autodeploy-jsp-precompilation-enabled="false" deploy-xml-validation="full" admin-session-timeout-in-minutes="60"/>
72
+ <iiop-service>
73
+ <orb use-thread-pool-ids="thread-pool-1"/>
74
+ <iiop-listener address="0.0.0.0" port="3700" id="orb-listener-1"/>
75
+ <iiop-listener security-enabled="true" address="0.0.0.0" port="3820" id="SSL">
76
+ <ssl cert-nickname="s1as"/>
77
+ </iiop-listener>
78
+ <iiop-listener security-enabled="true" address="0.0.0.0" port="3920" id="SSL_MUTUALAUTH">
79
+ <ssl cert-nickname="s1as" client-auth-enabled="true"/>
80
+ </iiop-listener>
81
+ </iiop-service>
101
82
 
102
- <property name="adminConsoleContextRoot" value="/admin"/>
103
- <property name="adminConsoleDownloadLocation" value="http://localhost:18080/admingui.war"/>
83
+ <admin-service type="das-and-server" system-jmx-connector-name="system">
84
+ <jmx-connector auth-realm-name="admin-realm" security-enabled="false" address="0.0.0.0" port="8686"
85
+ name="system"/>
86
+ <das-config autodeploy-enabled="true" dynamic-reload-enabled="true" deploy-xml-validation="full"
87
+ autodeploy-dir="${com.sun.aas.instanceRoot}/autodeploy"/>
88
+ <property value="/admingui" name="adminConsoleContextRoot"/>
89
+ <property value="glassfish/lib/install/applications/admingui.war" name="adminConsoleDownloadLocation"/>
90
+ <property value="${com.sun.aas.installRoot}/.." name="ipsRoot"/>
91
+ </admin-service>
104
92
 
105
- </admin-service>
106
- <web-container>
107
- <session-config>
108
- <session-manager>
109
- <manager-properties/>
110
- <store-properties/>
111
- </session-manager>
112
- <session-properties/>
113
- </session-config>
114
- </web-container>
115
- <ejb-container steady-pool-size="0" pool-resize-quantity="8" max-pool-size="32" cache-resize-quantity="32" max-cache-size="512" pool-idle-timeout-in-seconds="600" cache-idle-timeout-in-seconds="600" removal-timeout-in-seconds="5400" victim-selection-policy="nru" commit-option="B" session-store="${com.sun.aas.instanceRoot}/session-store">
116
- <ejb-timer-service minimum-delivery-interval-in-millis="7000" max-redeliveries="1" redelivery-interval-internal-in-millis="5000"/>
117
- </ejb-container>
118
- <mdb-container steady-pool-size="0" pool-resize-quantity="8" max-pool-size="32" idle-timeout-in-seconds="600"/>
119
- <jms-service init-timeout-in-seconds="60" type="EMBEDDED" default-jms-host="default_JMS_host" reconnect-interval-in-seconds="5" reconnect-attempts="3" reconnect-enabled="true" addresslist-behavior="random" addresslist-iterations="3">
120
- <jms-host name="default_JMS_host" host="laturbie.sfbay.sun.com" port="7676" admin-user-name="admin" admin-password="admin"/>
121
- </jms-service>
122
- <log-service file="${com.sun.aas.instanceRoot}/logs/server.log" use-system-logging="false" log-to-console="false" alarms="false" log-rotation-limit-in-bytes="2000000" log-rotation-timelimit-in-minutes="0" retain-error-statistics-for-hours="5">
123
- <module-log-levels root="INFO" server="INFO" ejb-container="INFO" cmp-container="INFO" mdb-container="INFO" web-container="INFO" classloader="INFO" configuration="INFO" naming="INFO" security="INFO" admin="INFO" jts="INFO" jta="INFO" deployment="INFO" verifier="INFO" jaxr="INFO" jaxrpc="INFO" saaj="INFO" corba="INFO" javamail="INFO" jms="INFO" connector="INFO" jdo="INFO" cmp="INFO" util="INFO" resource-adapter="INFO" synchronization="INFO" node-agent="INFO" self-management="INFO" group-management-service="INFO" management-event="INFO"/>
124
- </log-service>
125
- <security-service default-realm="file" audit-enabled="false" jacc="default" audit-modules="default" anonymous-role="AttributeDeprecated" activate-default-principal-to-role-mapping="false">
126
- <!-- All administrative users use this realm by default. -->
127
- <auth-realm name="admin-realm" classname="com.sun.enterprise.security.auth.realm.file.FileRealm">
128
- <property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"/>
129
- <property name="jaas-context" value="fileRealm"/>
130
- </auth-realm>
131
- <!-- All administrative users use this realm by default. -->
132
- <auth-realm name="file" classname="com.sun.enterprise.security.auth.realm.file.FileRealm">
133
- <property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/>
134
- <property name="jaas-context" value="fileRealm"/>
135
- </auth-realm>
136
- <auth-realm name="certificate" classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm">
137
- </auth-realm>
138
- <jacc-provider name="default" policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
139
- <property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"/>
140
- </jacc-provider>
141
- <audit-module name="default" classname="com.sun.enterprise.security.Audit">
142
- <property name="auditOn" value="false"/>
143
- </audit-module>
144
- <message-security-config auth-layer="SOAP">
145
- <!-- turned off by default -->
146
- <provider-config class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule" provider-id="XWS_ClientProvider" provider-type="client">
147
- <request-policy auth-source="content"/>
148
- <response-policy auth-source="content"/>
149
- <property name="encryption.key.alias" value="s1as"/>
150
- <property name="signature.key.alias" value="s1as"/>
151
- <property name="dynamic.username.password" value="false"/>
152
- <property name="debug" value="false"/>
153
- </provider-config>
154
- <provider-config class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule" provider-id="ClientProvider" provider-type="client">
155
- <request-policy auth-source="content"/>
156
- <response-policy auth-source="content"/>
157
- <property name="encryption.key.alias" value="s1as"/>
158
- <property name="signature.key.alias" value="s1as"/>
159
- <property name="dynamic.username.password" value="false"/>
160
- <property name="debug" value="false"/>
161
- <property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
162
- </provider-config>
163
- <provider-config class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule" provider-id="XWS_ServerProvider" provider-type="server">
164
- <request-policy auth-source="content"/>
165
- <response-policy auth-source="content"/>
166
- <property name="encryption.key.alias" value="s1as"/>
167
- <property name="signature.key.alias" value="s1as"/>
168
- <property name="debug" value="false"/>
169
- </provider-config>
170
- <provider-config class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule" provider-id="ServerProvider" provider-type="server">
171
- <request-policy auth-source="content"/>
172
- <response-policy auth-source="content"/>
173
- <property name="encryption.key.alias" value="s1as"/>
174
- <property name="signature.key.alias" value="s1as"/>
175
- <property name="debug" value="false"/>
176
- <property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
177
- </provider-config>
178
- </message-security-config>
179
- </security-service>
180
- <transaction-service automatic-recovery="false" timeout-in-seconds="0" tx-log-dir="${com.sun.aas.instanceRoot}/logs" heuristic-decision="rollback" keypoint-interval="2048" retry-timeout-in-seconds="600"/>
181
- <monitoring-service>
182
- <module-monitoring-levels thread-pool="OFF" orb="OFF" ejb-container="OFF" web-container="OFF" transaction-service="OFF" http-service="OFF" jdbc-connection-pool="OFF" connector-connection-pool="OFF" connector-service="OFF" jms-service="OFF" jvm="OFF"/>
183
- </monitoring-service>
184
- <diagnostic-service compute-checksum="true" verify-config="true" capture-install-log="true" capture-system-info="true" capture-hadb-info="true" capture-app-dd="true" min-log-level="INFO" max-log-entries="500"/>
185
- <java-config java-home="${com.sun.aas.javaRoot}" debug-enabled="false" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g" javac-options="-g" system-classpath="${com.sun.aas.installRoot}/lib/appserv-launch.jar" classpath-suffix="" env-classpath-ignored="true">
186
- <!-- various required jvm-options -->
187
- <jvm-options>-client</jvm-options>
188
- <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
189
- <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
190
- <jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
191
- <jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
192
- <jvm-options>-Dsun.rmi.dgc.client.gcInterval=3600000</jvm-options>
193
- <jvm-options>-Xmx512m</jvm-options>
194
- <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
195
- <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
196
- <jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib</jvm-options>
197
- <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
198
- <jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
199
- <jvm-options>-XX:NewRatio=2</jvm-options>
200
- </java-config>
201
- <thread-pools>
202
- <thread-pool thread-pool-id="thread-pool-1" min-thread-pool-size="0" max-thread-pool-size="200" idle-thread-timeout-in-seconds="120" num-work-queues="1"/>
93
+ <web-container>
94
+ <session-config>
95
+ <session-manager>
96
+ <manager-properties/>
97
+ <store-properties/>
98
+ </session-manager>
99
+ <session-properties/>
100
+ </session-config>
101
+ </web-container>
102
+ <ejb-container steady-pool-size="0" max-pool-size="32"
103
+ session-store="${com.sun.aas.instanceRoot}/session-store" pool-resize-quantity="8">
104
+ <ejb-timer-service/>
105
+ </ejb-container>
203
106
 
204
- </thread-pools>
205
- <management-rules enabled="true">
206
- </management-rules>
207
- </config> <!-- config model with name "server-config" ends -->
208
- </configs>
209
- <property name="administrative.domain.name" value="domain1"/>
210
- </domain>
107
+
108
+ <mdb-container steady-pool-size="0" pool-resize-quantity="8" max-pool-size="32"
109
+ idle-timeout-in-seconds="600"/>
110
+ <mdb-container steady-pool-size="0" max-pool-size="32" pool-resize-quantity="8"/>
111
+ <jms-service type="EMBEDDED" default-jms-host="default_JMS_host">
112
+ <jms-host host="laturbie.sfbay.sun.com" name="default_JMS_host"/>
113
+ </jms-service>
114
+
115
+ <log-service file="${com.sun.aas.instanceRoot}/logs/server.log" log-rotation-limit-in-bytes="2000000">
116
+ <module-log-levels/>
117
+ </log-service>
118
+
119
+ <security-service>
120
+ <auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
121
+ <property value="${com.sun.aas.instanceRoot}/config/admin-keyfile" name="file"/>
122
+ <property value="fileRealm" name="jaas-context"/>
123
+ </auth-realm>
124
+ <auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
125
+ <property value="${com.sun.aas.instanceRoot}/config/keyfile" name="file"/>
126
+ <property value="fileRealm" name="jaas-context"/>
127
+ </auth-realm>
128
+ <auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"
129
+ name="certificate"/>
130
+ <jacc-provider
131
+ policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl"
132
+ policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default">
133
+ <property value="${com.sun.aas.instanceRoot}/generated/policy" name="repository"/>
134
+ </jacc-provider>
135
+ <jacc-provider
136
+ policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"
137
+ policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple"/>
138
+ <audit-module classname="com.sun.enterprise.security.Audit" name="default">
139
+ <property value="false" name="auditOn"/>
140
+ </audit-module>
141
+ <message-security-config auth-layer="SOAP">
142
+ <provider-config provider-id="XWS_ClientProvider"
143
+ class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"
144
+ provider-type="client">
145
+ <request-policy auth-source="content"/>
146
+ <response-policy auth-source="content"/>
147
+ <property value="s1as" name="encryption.key.alias"/>
148
+ <property value="s1as" name="signature.key.alias"/>
149
+ <property value="false" name="dynamic.username.password"/>
150
+ <property value="false" name="debug"/>
151
+ </provider-config>
152
+ <provider-config provider-id="ClientProvider"
153
+ class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"
154
+ provider-type="client">
155
+ <request-policy auth-source="content"/>
156
+ <response-policy auth-source="content"/>
157
+ <property value="s1as" name="encryption.key.alias"/>
158
+ <property value="s1as" name="signature.key.alias"/>
159
+ <property value="false" name="dynamic.username.password"/>
160
+ <property value="false" name="debug"/>
161
+ <property value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"
162
+ name="security.config"/>
163
+ </provider-config>
164
+ <provider-config provider-id="XWS_ServerProvider"
165
+ class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"
166
+ provider-type="server">
167
+ <request-policy auth-source="content"/>
168
+ <response-policy auth-source="content"/>
169
+ <property value="s1as" name="encryption.key.alias"/>
170
+ <property value="s1as" name="signature.key.alias"/>
171
+ <property value="false" name="debug"/>
172
+ </provider-config>
173
+ <provider-config provider-id="ServerProvider"
174
+ class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"
175
+ provider-type="server">
176
+ <request-policy auth-source="content"/>
177
+ <response-policy auth-source="content"/>
178
+ <property value="s1as" name="encryption.key.alias"/>
179
+ <property value="s1as" name="signature.key.alias"/>
180
+ <property value="false" name="debug"/>
181
+ <property value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"
182
+ name="security.config"/>
183
+ </provider-config>
184
+ </message-security-config>
185
+ </security-service>
186
+
187
+ <transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
188
+ <monitoring-service>
189
+ <module-monitoring-levels/>
190
+ </monitoring-service>
191
+
192
+ <java-config classpath-suffix="" system-classpath=""
193
+ debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009">
194
+ <jvm-options>-client</jvm-options>
195
+ <jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
196
+ <jvm-options>-XX:+LogVMOutput</jvm-options>
197
+ <jvm-options>-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log</jvm-options>
198
+ <jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
199
+ <jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
200
+ <jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
201
+ </jvm-options>
202
+ <jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
203
+ <jvm-options>-Dsun.rmi.dgc.client.gcInterval=3600000</jvm-options>
204
+ <jvm-options>-Xmx512m</jvm-options>
205
+ <jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
206
+ <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
207
+ <jvm-options>
208
+ -Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib
209
+ </jvm-options>
210
+ <jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
211
+ <jvm-options>
212
+ -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
213
+ </jvm-options>
214
+ <jvm-options>-XX:NewRatio=2</jvm-options>
215
+ </java-config>
216
+
217
+
218
+ <thread-pools>
219
+ <thread-pool thread-pool-id="thread-pool-1"/>
220
+ </thread-pools>
221
+ <management-rules enabled="true"/>
222
+ </config>
223
+ </configs>
224
+ <property value="domain1" name="administrative.domain.name"/>
225
+ </domain>