glassfish 0.9.5-universal-java → 1.0.0-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +247 -0
- data/LICENSE.txt +774 -0
- data/README.txt +140 -0
- data/bin/gfrake +5 -1
- data/bin/glassfish +5 -7
- data/generators/gfrake/templates/glassfish.yml +39 -0
- data/lib/command_line_parser.rb +29 -40
- data/lib/config.rb +57 -63
- data/lib/glassfish.rb +3 -79
- data/{modules → lib/java}/akuma.jar +0 -0
- data/lib/java/gf-jruby-connector.jar +0 -0
- data/lib/java/glassfish-embedded-nucleus.jar +0 -0
- data/lib/java/glassfish-gem.jar +0 -0
- data/lib/java/grizzly-jruby-module.jar +0 -0
- data/lib/java/grizzly-jruby.jar +0 -0
- data/lib/jruby/rack/grizzly_helper.rb +230 -0
- data/lib/jruby/rack/merb.rb +34 -0
- data/lib/jruby/rack/rackup.rb +46 -0
- data/lib/jruby/rack/rails.rb +29 -0
- data/lib/jruby/rack/sinatra.rb +18 -0
- data/lib/jruby/rails_path.rb +11 -0
- data/lib/{templates/profile.properties → rack/adapter/merb.rb} +18 -7
- data/lib/rack/adapter/rails.rb +268 -0
- data/lib/rack/handler/grizzly.rb +59 -0
- data/lib/server.rb +164 -0
- data/lib/version.rb +1 -1
- metadata +83 -153
- data/bin/glassfish_rails +0 -61
- data/config/asadminenv.conf +0 -6
- data/config/asenv.bat +0 -29
- data/config/asenv.conf +0 -31
- data/config/glassfish.container +0 -4
- data/domains/domain1/config/admin-keyfile +0 -3
- data/domains/domain1/config/cacerts.jks +0 -0
- data/domains/domain1/config/default-web.xml +0 -1133
- data/domains/domain1/config/domain-passwords +0 -0
- data/domains/domain1/config/domain.xml +0 -190
- data/domains/domain1/config/glassfish_gem_version.yml +0 -7
- data/domains/domain1/config/keyfile +0 -6
- data/domains/domain1/config/keystore.jks +0 -0
- data/domains/domain1/config/logging.properties +0 -46
- data/domains/domain1/config/login.conf +0 -21
- data/domains/domain1/config/server.policy +0 -170
- data/domains/domain1/config/sun-acc.xml +0 -40
- data/domains/domain1/docroot/index.html +0 -83
- data/domains/domain1/master-password +0 -0
- data/lib/appclient/appclientlogin.conf +0 -10
- data/lib/appclient/client.policy +0 -79
- data/lib/appclient/wss-client-config-1.0.xml +0 -84
- data/lib/appclient/wss-client-config-2.0.xml +0 -96
- data/lib/registration/servicetag-registry.xml +0 -18
- data/lib/templates/cacerts.jks +0 -0
- data/lib/templates/default-web.xml +0 -1133
- data/lib/templates/docroot/index.html +0 -83
- data/lib/templates/domain.xml +0 -180
- data/lib/templates/domain.xml.xsl +0 -100
- data/lib/templates/keyfile +0 -6
- data/lib/templates/keystore.jks +0 -0
- data/lib/templates/logging.properties +0 -48
- data/lib/templates/login.conf +0 -21
- data/lib/templates/server.policy +0 -170
- data/lib/templates/sun-acc.xml +0 -40
- data/modules/admin-cli.jar +0 -0
- data/modules/api-exporter.jar +0 -0
- data/modules/asm-all-repackaged.jar +0 -0
- data/modules/auto-depends.jar +0 -0
- data/modules/bean-validator.jar +0 -0
- data/modules/branding.jar +0 -0
- data/modules/cli-framework.jar +0 -0
- data/modules/common-util.jar +0 -0
- data/modules/config-api.jar +0 -0
- data/modules/config.jar +0 -0
- data/modules/deployment-admin.jar +0 -0
- data/modules/deployment-autodeploy.jar +0 -0
- data/modules/deployment-common.jar +0 -0
- data/modules/flashlight-agent.jar +0 -0
- data/modules/flashlight-framework.jar +0 -0
- data/modules/gf-jruby-connector.jar +0 -0
- data/modules/gfprobe-provider-client.jar +0 -0
- data/modules/glassfish-api.jar +0 -0
- data/modules/glassfish-ee-api.jar +0 -0
- data/modules/glassfish-extra-jre-packages.jar +0 -0
- data/modules/glassfish-gem.jar +0 -0
- data/modules/glassfish.jar +0 -0
- data/modules/grizzly-comet.jar +0 -0
- data/modules/grizzly-cometd.jar +0 -0
- data/modules/grizzly-compat.jar +0 -0
- data/modules/grizzly-config.jar +0 -0
- data/modules/grizzly-framework.jar +0 -0
- data/modules/grizzly-http.jar +0 -0
- data/modules/grizzly-jruby-module.jar +0 -0
- data/modules/grizzly-jruby.jar +0 -0
- data/modules/grizzly-messagesbus.jar +0 -0
- data/modules/grizzly-portunif.jar +0 -0
- data/modules/grizzly-rcm.jar +0 -0
- data/modules/grizzly-utils.jar +0 -0
- data/modules/hk2-core.jar +0 -0
- data/modules/hk2.jar +0 -0
- data/modules/internal-api.jar +0 -0
- data/modules/kernel.jar +0 -0
- data/modules/launcher.jar +0 -0
- data/modules/org.apache.felix.configadmin.jar +0 -0
- data/modules/org.apache.felix.fileinstall.jar +0 -0
- data/modules/org.apache.felix.shell.jar +0 -0
- data/modules/org.apache.felix.shell.remote.jar +0 -0
- data/modules/org.apache.felix.shell.tui.jar +0 -0
- data/modules/osgi-main.jar +0 -0
- data/modules/pkg-client.jar +0 -0
- data/modules/tiger-types-osgi.jar +0 -0
Binary file
|
@@ -1,190 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!--
|
3
|
-
Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
|
4
|
-
Use is subject to license terms.
|
5
|
-
-->
|
6
|
-
<!-- Generated from default-domain.xml.template -->
|
7
|
-
<!-- Avoid manual edits of this file. Run "gfadmin verify-domain-xml" otherwise.-->
|
8
|
-
|
9
|
-
<domain application-root="${com.sun.aas.instanceRoot}/applications" log-root="${jruby.log.location}">
|
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
|
-
<virtual-server id="server" http-listeners="http-listener-1">
|
47
|
-
<property value="${com.sun.aas.instanceRoot}/docroot" name="docroot"/>
|
48
|
-
<property value="${com.sun.aas.instanceRoot}/logs/access" name="accesslog"/>
|
49
|
-
<property value="false" name="sso-enabled"/>
|
50
|
-
</virtual-server>
|
51
|
-
<request-processing initial-thread-count="2" header-buffer-length-in-bytes="8192" thread-count="20"
|
52
|
-
thread-increment="1"/>
|
53
|
-
<keep-alive max-connections="250"/>
|
54
|
-
<connection-pool/>
|
55
|
-
<http-protocol default-response-type="text/plain; charset=iso-8859-1"
|
56
|
-
forced-response-type="text/plain; charset=iso-8859-1"/>
|
57
|
-
<http-file-cache file-caching-enabled="false" globally-enabled="false"/>
|
58
|
-
<property value="false" name="accessLoggingEnabled"/>
|
59
|
-
</http-service>
|
60
|
-
|
61
|
-
<!-- admingui is not needed for gem case. This needs to be fixed. -->
|
62
|
-
<admin-service type="das-and-server" system-jmx-connector-name="system">
|
63
|
-
<jmx-connector auth-realm-name="admin-realm" security-enabled="false" address="0.0.0.0" port="8686"
|
64
|
-
name="system"/>
|
65
|
-
<das-config autodeploy-enabled="true" dynamic-reload-enabled="true" deploy-xml-validation="full"
|
66
|
-
autodeploy-dir="${com.sun.aas.instanceRoot}/autodeploy"/>
|
67
|
-
<property value="/_____admingui" name="adminConsoleContextRoot"/>
|
68
|
-
<property value="glassfish/lib/install/applications/admingui.war" name="adminConsoleDownloadLocation"/>
|
69
|
-
<property value="${com.sun.aas.installRoot}/.." name="ipsRoot"/>
|
70
|
-
</admin-service>
|
71
|
-
|
72
|
-
<mdb-container steady-pool-size="0" pool-resize-quantity="8" max-pool-size="32"
|
73
|
-
idle-timeout-in-seconds="600"/>
|
74
|
-
<mdb-container steady-pool-size="0" max-pool-size="32" pool-resize-quantity="8"/>
|
75
|
-
<jms-service type="EMBEDDED" default-jms-host="default_JMS_host">
|
76
|
-
<jms-host host="laturbie.sfbay.sun.com" name="default_JMS_host"/>
|
77
|
-
</jms-service>
|
78
|
-
|
79
|
-
<log-service file="${jruby.log.file}" log-rotation-limit-in-bytes="2000000">
|
80
|
-
<module-log-levels/>
|
81
|
-
</log-service>
|
82
|
-
|
83
|
-
<security-service>
|
84
|
-
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
|
85
|
-
<property value="${com.sun.aas.instanceRoot}/config/admin-keyfile" name="file"/>
|
86
|
-
<property value="fileRealm" name="jaas-context"/>
|
87
|
-
</auth-realm>
|
88
|
-
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
|
89
|
-
<property value="${com.sun.aas.instanceRoot}/config/keyfile" name="file"/>
|
90
|
-
<property value="fileRealm" name="jaas-context"/>
|
91
|
-
</auth-realm>
|
92
|
-
<auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm"
|
93
|
-
name="certificate"/>
|
94
|
-
<jacc-provider
|
95
|
-
policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl"
|
96
|
-
policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default">
|
97
|
-
<property value="${com.sun.aas.instanceRoot}/generated/policy" name="repository"/>
|
98
|
-
</jacc-provider>
|
99
|
-
<jacc-provider
|
100
|
-
policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"
|
101
|
-
policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple"/>
|
102
|
-
<audit-module classname="com.sun.enterprise.security.Audit" name="default">
|
103
|
-
<property value="false" name="auditOn"/>
|
104
|
-
</audit-module>
|
105
|
-
<message-security-config auth-layer="SOAP">
|
106
|
-
<provider-config provider-id="XWS_ClientProvider"
|
107
|
-
class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"
|
108
|
-
provider-type="client">
|
109
|
-
<request-policy auth-source="content"/>
|
110
|
-
<response-policy auth-source="content"/>
|
111
|
-
<property value="s1as" name="encryption.key.alias"/>
|
112
|
-
<property value="s1as" name="signature.key.alias"/>
|
113
|
-
<property value="false" name="dynamic.username.password"/>
|
114
|
-
<property value="false" name="debug"/>
|
115
|
-
</provider-config>
|
116
|
-
<provider-config provider-id="ClientProvider"
|
117
|
-
class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule"
|
118
|
-
provider-type="client">
|
119
|
-
<request-policy auth-source="content"/>
|
120
|
-
<response-policy auth-source="content"/>
|
121
|
-
<property value="s1as" name="encryption.key.alias"/>
|
122
|
-
<property value="s1as" name="signature.key.alias"/>
|
123
|
-
<property value="false" name="dynamic.username.password"/>
|
124
|
-
<property value="false" name="debug"/>
|
125
|
-
<property value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"
|
126
|
-
name="security.config"/>
|
127
|
-
</provider-config>
|
128
|
-
<provider-config provider-id="XWS_ServerProvider"
|
129
|
-
class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"
|
130
|
-
provider-type="server">
|
131
|
-
<request-policy auth-source="content"/>
|
132
|
-
<response-policy auth-source="content"/>
|
133
|
-
<property value="s1as" name="encryption.key.alias"/>
|
134
|
-
<property value="s1as" name="signature.key.alias"/>
|
135
|
-
<property value="false" name="debug"/>
|
136
|
-
</provider-config>
|
137
|
-
<provider-config provider-id="ServerProvider"
|
138
|
-
class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule"
|
139
|
-
provider-type="server">
|
140
|
-
<request-policy auth-source="content"/>
|
141
|
-
<response-policy auth-source="content"/>
|
142
|
-
<property value="s1as" name="encryption.key.alias"/>
|
143
|
-
<property value="s1as" name="signature.key.alias"/>
|
144
|
-
<property value="false" name="debug"/>
|
145
|
-
<property value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"
|
146
|
-
name="security.config"/>
|
147
|
-
</provider-config>
|
148
|
-
</message-security-config>
|
149
|
-
</security-service>
|
150
|
-
|
151
|
-
<transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
|
152
|
-
<monitoring-service>
|
153
|
-
<module-monitoring-levels/>
|
154
|
-
</monitoring-service>
|
155
|
-
|
156
|
-
<java-config classpath-suffix="" system-classpath=""
|
157
|
-
debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009">
|
158
|
-
<jvm-options>-client</jvm-options>
|
159
|
-
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
|
160
|
-
<jvm-options>-XX:+LogVMOutput</jvm-options>
|
161
|
-
<jvm-options>-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log</jvm-options>
|
162
|
-
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
|
163
|
-
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
|
164
|
-
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
|
165
|
-
</jvm-options>
|
166
|
-
<jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
|
167
|
-
<jvm-options>-Dsun.rmi.dgc.client.gcInterval=3600000</jvm-options>
|
168
|
-
<jvm-options>-Xmx512m</jvm-options>
|
169
|
-
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
|
170
|
-
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
|
171
|
-
<jvm-options>
|
172
|
-
-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
|
173
|
-
</jvm-options>
|
174
|
-
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
|
175
|
-
<jvm-options>
|
176
|
-
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
|
177
|
-
</jvm-options>
|
178
|
-
<jvm-options>-XX:NewRatio=2</jvm-options>
|
179
|
-
</java-config>
|
180
|
-
|
181
|
-
|
182
|
-
<thread-pools>
|
183
|
-
<thread-pool name="http-thread-pool" max-queue-size="4096" />
|
184
|
-
<thread-pool name="thread-pool-1" max-thread-pool-size="200" />
|
185
|
-
</thread-pools>
|
186
|
-
<management-rules enabled="true"/>
|
187
|
-
</config>
|
188
|
-
</configs>
|
189
|
-
<property value="domain1" name="administrative.domain.name"/>
|
190
|
-
</domain>
|
Binary file
|
@@ -1,46 +0,0 @@
|
|
1
|
-
#GlassFish logging.properties list
|
2
|
-
#Mon Mar 16 22:32:12 PDT 2009
|
3
|
-
javax.enterprise.system.tools.admin.level=INFO
|
4
|
-
handlers=
|
5
|
-
java.util.logging.ConsoleHandler.formatter=com.sun.enterprise.server.logging.UniformLogFormatter
|
6
|
-
org.apache.jasper.level=INFO
|
7
|
-
javax.enterprise.resource.corba.level=INFO
|
8
|
-
javax.enterprise.system.core.classloading.level=INFO
|
9
|
-
javax.enterprise.resource.jta.level=INFO
|
10
|
-
java.util.logging.ConsoleHandler.level=INFO
|
11
|
-
com.sun.enterprise.server.logging.GFFileHandler.file=logs/server.log
|
12
|
-
javax.enterprise.system.webservices.saaj.level=INFO
|
13
|
-
java.util.logging.FileHandler.formatter=java.util.logging.XMLFormatter
|
14
|
-
javax.enterprise.system.tools.deployment.level=INFO
|
15
|
-
javax.enterprise.system.container.ejb.level=INFO
|
16
|
-
com.sun.enterprise.server.logging.GFFileHandler.formatter=com.sun.enterprise.server.logging.UniformLogFormatter
|
17
|
-
javax.enterprise.system.core.transaction.level=INFO
|
18
|
-
org.apache.catalina.level=INFO
|
19
|
-
com.sun.enterprise.server.logging.GFFileHandler.rotationTimelimitInMinutes=0
|
20
|
-
javax.enterprise.system.container.ejb.mdb.level=INFO
|
21
|
-
org.apache.coyote.level=INFO
|
22
|
-
javax.level=INFO
|
23
|
-
java.util.logging.FileHandler.limit=50000
|
24
|
-
javax.enterprise.resource.javamail.level=INFO
|
25
|
-
com.sun.enterprise.server.logging.GFFileHandler.logtoConsole=false
|
26
|
-
javax.enterprise.system.webservices.rpc.level=INFO
|
27
|
-
javax.enterprise.system.container.web.level=INFO
|
28
|
-
javax.enterprise.system.util.level=INFO
|
29
|
-
javax.enterprise.resource.resourceadapter.level=INFO
|
30
|
-
javax.enterprise.resource.jms.level=INFO
|
31
|
-
javax.enterprise.system.core.config.level=INFO
|
32
|
-
com.sun.enterprise.server.logging.GFFileHandler.rotationLimitInBytes=0
|
33
|
-
javax.enterprise.system.level=INFO
|
34
|
-
javax.enterprise.system.core.security.level=INFO
|
35
|
-
javax.enterprise.system.container.cmp.level=INFO
|
36
|
-
java.util.logging.FileHandler.pattern=%h/java%u.log
|
37
|
-
com.sun.enterprise.server.logging.SyslogHandler.useSystemLogging=false
|
38
|
-
group-management-services=INFO
|
39
|
-
com.sun.enterprise.server.logging.GFFileHandler.alarms=false
|
40
|
-
javax.enterprise.system.webservices.registry.level=INFO
|
41
|
-
javax.enterprise.system.core.selfmanagement.level=INFO
|
42
|
-
.level=INFO
|
43
|
-
java.util.logging.FileHandler.count=1
|
44
|
-
javax.enterprise.resource.jdo.level=INFO
|
45
|
-
javax.enterprise.system.core.naming.level=INFO
|
46
|
-
com.sun.enterprise.server.logging.GFFileHandler.retainErrorsStasticsForHours=0
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* Copyright 2004 Sun Microsystems, Inc. All rights reserved. */
|
2
|
-
/* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
|
3
|
-
|
4
|
-
fileRealm {
|
5
|
-
com.sun.enterprise.security.auth.login.FileLoginModule required;
|
6
|
-
};
|
7
|
-
|
8
|
-
ldapRealm {
|
9
|
-
com.sun.enterprise.security.auth.login.LDAPLoginModule required;
|
10
|
-
};
|
11
|
-
|
12
|
-
solarisRealm {
|
13
|
-
com.sun.enterprise.security.auth.login.SolarisLoginModule required;
|
14
|
-
};
|
15
|
-
|
16
|
-
jdbcRealm {
|
17
|
-
com.sun.enterprise.security.auth.login.JDBCLoginModule required;
|
18
|
-
};
|
19
|
-
jdbcDigestRealm {
|
20
|
-
com.sun.enterprise.security.auth.login.JDBCDigestLoginModule required;
|
21
|
-
};
|
@@ -1,170 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// The contents of this file are subject to the terms
|
3
|
-
// of the Common Development and Distribution License
|
4
|
-
// (the "License"). You may not use this file except
|
5
|
-
// in compliance with the License.
|
6
|
-
//
|
7
|
-
// You can obtain a copy of the license at
|
8
|
-
// glassfish/bootstrap/legal/CDDLv1.0.txt or
|
9
|
-
// https://glassfish.dev.java.net/public/CDDLv1.0.html.
|
10
|
-
// See the License for the specific language governing
|
11
|
-
// permissions and limitations under the License.
|
12
|
-
//
|
13
|
-
// When distributing Covered Code, include this CDDL
|
14
|
-
// HEADER in each file and include the License file at
|
15
|
-
// glassfish/bootstrap/legal/CDDLv1.0.txt. If applicable,
|
16
|
-
// add the following below this CDDL HEADER, with the
|
17
|
-
// fields enclosed by brackets "[]" replaced with your
|
18
|
-
// own identifying information: Portions Copyright [yyyy]
|
19
|
-
// [name of copyright owner]
|
20
|
-
//
|
21
|
-
|
22
|
-
/* Copyright 2004 Sun Microsystems, Inc. All rights reserved. */
|
23
|
-
/* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
|
24
|
-
|
25
|
-
// Core server classes get all permissions by default
|
26
|
-
grant codeBase "file:${com.sun.aas.installRoot}/lib/-" {
|
27
|
-
permission java.security.AllPermission;
|
28
|
-
};
|
29
|
-
|
30
|
-
// Core server classes get all permissions by default
|
31
|
-
grant codeBase "file:${com.sun.aas.installRoot}/modules/-" {
|
32
|
-
permission java.security.AllPermission;
|
33
|
-
};
|
34
|
-
|
35
|
-
// Felix classes get all permissions by default
|
36
|
-
grant codeBase "file:${com.sun.aas.installRoot}/osgi/felix/bin/-" {
|
37
|
-
permission java.security.AllPermission;
|
38
|
-
};
|
39
|
-
|
40
|
-
// jdmk classes get all permissions by default
|
41
|
-
grant codeBase "file:${com.sun.aas.jdmkHome}/lib/-" {
|
42
|
-
permission java.security.AllPermission;
|
43
|
-
};
|
44
|
-
|
45
|
-
// mfwk_instrum_tk.jar get all permissions by default
|
46
|
-
grant codeBase "file:${com.sun.aas.mfwkHome}/lib/mfwk_instrum_tk.jar" {
|
47
|
-
permission java.security.AllPermission;
|
48
|
-
};
|
49
|
-
|
50
|
-
// lockhart classes get all permissions by default
|
51
|
-
grant codeBase "file:${com.sun.aas.webconsoleLib}/cc.jar" {
|
52
|
-
permission java.security.AllPermission;
|
53
|
-
};
|
54
|
-
|
55
|
-
// jato classes get all permissions by default
|
56
|
-
grant codeBase "file:${com.sun.aas.jatoRoot}/jato.jar" {
|
57
|
-
permission java.security.AllPermission;
|
58
|
-
};
|
59
|
-
|
60
|
-
// JBI get all permissions by default
|
61
|
-
grant codeBase "file:${com.sun.aas.installRoot}/jbi/-" {
|
62
|
-
permission java.security.AllPermission;
|
63
|
-
};
|
64
|
-
|
65
|
-
// JBI instances get all permissions by default
|
66
|
-
grant codeBase "file:${com.sun.aas.instanceRoot}/jbi/-" {
|
67
|
-
permission java.security.AllPermission;
|
68
|
-
};
|
69
|
-
|
70
|
-
// Composite applications get all permissions by default
|
71
|
-
grant codeBase "file:${com.sun.aas.instanceRoot}/applications/composite-applications/-" {
|
72
|
-
permission java.security.AllPermission;
|
73
|
-
};
|
74
|
-
|
75
|
-
// iMQ classes get all permissions by default
|
76
|
-
grant codeBase "file:${com.sun.aas.imqLib}/-" {
|
77
|
-
permission java.security.AllPermission;
|
78
|
-
};
|
79
|
-
|
80
|
-
// ANT classes get all permissions by default
|
81
|
-
grant codeBase "file:${com.sun.aas.antLib}/-" {
|
82
|
-
permission java.security.AllPermission;
|
83
|
-
};
|
84
|
-
|
85
|
-
// Derby driver classes get all permissions by default
|
86
|
-
grant codeBase "file:${com.sun.aas.derbyRoot}/lib/-" {
|
87
|
-
permission java.security.AllPermission;
|
88
|
-
};
|
89
|
-
|
90
|
-
// Pointbase embedded server classes get all permissions by default
|
91
|
-
grant codeBase "file:${com.sun.aas.pointbaseRoot}/lib/-" {
|
92
|
-
permission java.security.AllPermission;
|
93
|
-
};
|
94
|
-
|
95
|
-
// Web Services classes get all permissions by default
|
96
|
-
grant codeBase "file:${com.sun.aas.webServicesLib}/-" {
|
97
|
-
permission java.security.AllPermission;
|
98
|
-
};
|
99
|
-
|
100
|
-
// permissions for avkit classes
|
101
|
-
grant codeBase "file:${j2ee.appverification.home}/lib/-" {
|
102
|
-
permission java.security.AllPermission;
|
103
|
-
};
|
104
|
-
|
105
|
-
// permissions for HADB jar file(s)
|
106
|
-
grant codeBase "file:${com.sun.aas.hadbRoot}/lib/-" {
|
107
|
-
permission java.security.AllPermission;
|
108
|
-
};
|
109
|
-
|
110
|
-
// permission for JDK's tools.jar to enable webservice annotation processing
|
111
|
-
// at runtime by wsgen tool:
|
112
|
-
// permission java.lang.RuntimePermission "createClassLoader";
|
113
|
-
//
|
114
|
-
// permission for JDK's tools.jar to sign JARs at runtime for
|
115
|
-
// Java Web Start support:
|
116
|
-
// permissions java.security.AllPermission;
|
117
|
-
// on the advice of the JDK tools folks. Should be refined later.
|
118
|
-
grant codeBase "file:${com.sun.aas.javaRoot}/lib/tools.jar" {
|
119
|
-
permission java.security.AllPermission;
|
120
|
-
};
|
121
|
-
|
122
|
-
//Loading MBeans from anywhere, to take care of side effects of 6235678.
|
123
|
-
grant {
|
124
|
-
permission javax.management.MBeanTrustPermission "register" ;
|
125
|
-
};
|
126
|
-
//Loading MBeans from anywhere, to take care of side effects of 6235678.
|
127
|
-
|
128
|
-
|
129
|
-
// Basic set of required permissions granted to all remaining code
|
130
|
-
grant {
|
131
|
-
//Workaround for bugs #6484935, 6513799
|
132
|
-
permission java.lang.RuntimePermission "getProtectionDomain";
|
133
|
-
permission com.sun.corba.ee.impl.presentation.rmi.DynamicAccessPermission "access";
|
134
|
-
permission java.util.PropertyPermission "*", "read,write";
|
135
|
-
|
136
|
-
permission java.lang.RuntimePermission "loadLibrary.*";
|
137
|
-
permission java.lang.RuntimePermission "queuePrintJob";
|
138
|
-
permission java.net.SocketPermission "*", "connect";
|
139
|
-
permission java.io.FilePermission "<<ALL FILES>>", "read,write";
|
140
|
-
|
141
|
-
// work-around for pointbase bug 4864405
|
142
|
-
permission java.io.FilePermission "${com.sun.aas.instanceRoot}${/}lib${/}databases${/}-", "delete";
|
143
|
-
permission java.io.FilePermission "${java.io.tmpdir}${/}-", "delete";
|
144
|
-
|
145
|
-
permission java.util.PropertyPermission "*", "read";
|
146
|
-
|
147
|
-
permission java.lang.RuntimePermission "modifyThreadGroup";
|
148
|
-
permission java.lang.RuntimePermission "getClassLoader";
|
149
|
-
permission java.lang.RuntimePermission "setContextClassLoader";
|
150
|
-
permission javax.management.MBeanPermission "[com.sun.messaging.jms.*:*]", "*";
|
151
|
-
};
|
152
|
-
|
153
|
-
|
154
|
-
// Following grant block is only required by Connectors. If Connectors
|
155
|
-
// are not in use the recommendation is to remove this grant.
|
156
|
-
grant {
|
157
|
-
permission javax.security.auth.PrivateCredentialPermission "javax.resource.spi.security.PasswordCredential * \"*\"","read";
|
158
|
-
};
|
159
|
-
|
160
|
-
// Following grant block is only required for Reflection. If Reflection
|
161
|
-
// is not in use the recommendation is to remove this section.
|
162
|
-
grant {
|
163
|
-
permission java.lang.RuntimePermission "accessDeclaredMembers";
|
164
|
-
};
|
165
|
-
|
166
|
-
// Permissions to invoke CORBA objects in server
|
167
|
-
grant {
|
168
|
-
permission com.sun.enterprise.security.CORBAObjectPermission "*", "*";
|
169
|
-
};
|
170
|
-
|