Skip to content

Commit be95b46

Browse files
jwboyjwboy
authored andcommitted
20170503
0 parents  commit be95b46

562 files changed

Lines changed: 39942 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.class
2+
*.jar
3+
*.index
4+
*.dat
5+
.metadata
6+
.mymetadata
7+
.settings
8+
bin
9+
*.bin
10+
classes

‎Servers/.project‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Servers</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
</buildSpec>
9+
<natures>
10+
</natures>
11+
</projectDescription>
Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,261 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one or more
2+
// contributor license agreements. See the NOTICE file distributed with
3+
// this work for additional information regarding copyright ownership.
4+
// The ASF licenses this file to You under the Apache License, Version 2.0
5+
// (the "License"); you may not use this file except in compliance with
6+
// the License. You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
// ============================================================================
17+
// catalina.policy - Security Policy Permissions for Tomcat
18+
//
19+
// This file contains a default set of security policies to be enforced (by the
20+
// JVM) when Catalina is executed with the "-security" option. In addition
21+
// to the permissions granted here, the following additional permissions are
22+
// granted to each web application:
23+
//
24+
// * Read access to the web application's document root directory
25+
// * Read, write and delete access to the web application's working directory
26+
// ============================================================================
27+
28+
29+
// ========== SYSTEM CODE PERMISSIONS =========================================
30+
31+
32+
// These permissions apply to javac
33+
grant codeBase "file:${java.home}/lib/-" {
34+
permission java.security.AllPermission;
35+
};
36+
37+
// These permissions apply to all shared system extensions
38+
grant codeBase "file:${java.home}/jre/lib/ext/-" {
39+
permission java.security.AllPermission;
40+
};
41+
42+
// These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
43+
grant codeBase "file:${java.home}/../lib/-" {
44+
permission java.security.AllPermission;
45+
};
46+
47+
// These permissions apply to all shared system extensions when
48+
// ${java.home} points at $JAVA_HOME/jre
49+
grant codeBase "file:${java.home}/lib/ext/-" {
50+
permission java.security.AllPermission;
51+
};
52+
53+
54+
// ========== CATALINA CODE PERMISSIONS =======================================
55+
56+
57+
// These permissions apply to the daemon code
58+
grant codeBase "file:${catalina.home}/bin/commons-daemon.jar" {
59+
permission java.security.AllPermission;
60+
};
61+
62+
// These permissions apply to the logging API
63+
// Note: If tomcat-juli.jar is in ${catalina.base} and not in ${catalina.home},
64+
// update this section accordingly.
65+
// grant codeBase "file:${catalina.base}/bin/tomcat-juli.jar" {..}
66+
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
67+
permission java.io.FilePermission
68+
"${java.home}${file.separator}lib${file.separator}logging.properties", "read";
69+
70+
permission java.io.FilePermission
71+
"${catalina.base}${file.separator}conf${file.separator}logging.properties", "read";
72+
permission java.io.FilePermission
73+
"${catalina.base}${file.separator}logs", "read, write";
74+
permission java.io.FilePermission
75+
"${catalina.base}${file.separator}logs${file.separator}*", "read, write";
76+
77+
permission java.lang.RuntimePermission "shutdownHooks";
78+
permission java.lang.RuntimePermission "getClassLoader";
79+
permission java.lang.RuntimePermission "setContextClassLoader";
80+
81+
permission java.lang.management.ManagementPermission "monitor";
82+
83+
permission java.util.logging.LoggingPermission "control";
84+
85+
permission java.util.PropertyPermission "java.util.logging.config.class", "read";
86+
permission java.util.PropertyPermission "java.util.logging.config.file", "read";
87+
permission java.util.PropertyPermission "org.apache.juli.AsyncLoggerPollInterval", "read";
88+
permission java.util.PropertyPermission "org.apache.juli.AsyncMaxRecordCount", "read";
89+
permission java.util.PropertyPermission "org.apache.juli.AsyncOverflowDropType", "read";
90+
permission java.util.PropertyPermission "org.apache.juli.ClassLoaderLogManager.debug", "read";
91+
permission java.util.PropertyPermission "catalina.base", "read";
92+
93+
// Note: To enable per context logging configuration, permit read access to
94+
// the appropriate file. Be sure that the logging configuration is
95+
// secure before enabling such access.
96+
// E.g. for the examples web application (uncomment and unwrap
97+
// the following to be on a single line):
98+
// permission java.io.FilePermission "${catalina.base}${file.separator}
99+
// webapps${file.separator}examples${file.separator}WEB-INF
100+
// ${file.separator}classes${file.separator}logging.properties", "read";
101+
};
102+
103+
// These permissions apply to the server startup code
104+
grant codeBase "file:${catalina.home}/bin/bootstrap.jar" {
105+
permission java.security.AllPermission;
106+
};
107+
108+
// These permissions apply to the servlet API classes
109+
// and those that are shared across all class loaders
110+
// located in the "lib" directory
111+
grant codeBase "file:${catalina.home}/lib/-" {
112+
permission java.security.AllPermission;
113+
};
114+
115+
116+
// If using a per instance lib directory, i.e. ${catalina.base}/lib,
117+
// then the following permission will need to be uncommented
118+
// grant codeBase "file:${catalina.base}/lib/-" {
119+
// permission java.security.AllPermission;
120+
// };
121+
122+
123+
// ========== WEB APPLICATION PERMISSIONS =====================================
124+
125+
126+
// These permissions are granted by default to all web applications
127+
// In addition, a web application will be given a read FilePermission
128+
// for all files and directories in its document root.
129+
grant {
130+
// Required for JNDI lookup of named JDBC DataSource's and
131+
// javamail named MimePart DataSource used to send mail
132+
permission java.util.PropertyPermission "java.home", "read";
133+
permission java.util.PropertyPermission "java.naming.*", "read";
134+
permission java.util.PropertyPermission "javax.sql.*", "read";
135+
136+
// OS Specific properties to allow read access
137+
permission java.util.PropertyPermission "os.name", "read";
138+
permission java.util.PropertyPermission "os.version", "read";
139+
permission java.util.PropertyPermission "os.arch", "read";
140+
permission java.util.PropertyPermission "file.separator", "read";
141+
permission java.util.PropertyPermission "path.separator", "read";
142+
permission java.util.PropertyPermission "line.separator", "read";
143+
144+
// JVM properties to allow read access
145+
permission java.util.PropertyPermission "java.version", "read";
146+
permission java.util.PropertyPermission "java.vendor", "read";
147+
permission java.util.PropertyPermission "java.vendor.url", "read";
148+
permission java.util.PropertyPermission "java.class.version", "read";
149+
permission java.util.PropertyPermission "java.specification.version", "read";
150+
permission java.util.PropertyPermission "java.specification.vendor", "read";
151+
permission java.util.PropertyPermission "java.specification.name", "read";
152+
153+
permission java.util.PropertyPermission "java.vm.specification.version", "read";
154+
permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
155+
permission java.util.PropertyPermission "java.vm.specification.name", "read";
156+
permission java.util.PropertyPermission "java.vm.version", "read";
157+
permission java.util.PropertyPermission "java.vm.vendor", "read";
158+
permission java.util.PropertyPermission "java.vm.name", "read";
159+
160+
// Required for OpenJMX
161+
permission java.lang.RuntimePermission "getAttribute";
162+
163+
// Allow read of JAXP compliant XML parser debug
164+
permission java.util.PropertyPermission "jaxp.debug", "read";
165+
166+
// All JSPs need to be able to read this package
167+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat";
168+
169+
// Precompiled JSPs need access to these packages.
170+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.el";
171+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.runtime";
172+
permission java.lang.RuntimePermission
173+
"accessClassInPackage.org.apache.jasper.runtime.*";
174+
175+
// Precompiled JSPs need access to these system properties.
176+
permission java.util.PropertyPermission
177+
"org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER", "read";
178+
permission java.util.PropertyPermission
179+
"org.apache.el.parser.COERCE_TO_ZERO", "read";
180+
181+
// The cookie code needs these.
182+
permission java.util.PropertyPermission
183+
"org.apache.catalina.STRICT_SERVLET_COMPLIANCE", "read";
184+
permission java.util.PropertyPermission
185+
"org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING", "read";
186+
permission java.util.PropertyPermission
187+
"org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR", "read";
188+
189+
// Applications using WebSocket need to be able to access these packages
190+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket";
191+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.websocket.server";
192+
193+
// Applications need to access these packages to use the Servlet 4.0 Preview
194+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.servlet4preview";
195+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.servlet4preview.http";
196+
};
197+
198+
199+
// The Manager application needs access to the following packages to support the
200+
// session display functionality. These settings support the following
201+
// configurations:
202+
// - default CATALINA_HOME == CATALINA_BASE
203+
// - CATALINA_HOME != CATALINA_BASE, per instance Manager in CATALINA_BASE
204+
// - CATALINA_HOME != CATALINA_BASE, shared Manager in CATALINA_HOME
205+
grant codeBase "file:${catalina.base}/webapps/manager/-" {
206+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina";
207+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.ha.session";
208+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager";
209+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager.util";
210+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.util";
211+
};
212+
grant codeBase "file:${catalina.home}/webapps/manager/-" {
213+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina";
214+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.ha.session";
215+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager";
216+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.manager.util";
217+
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.catalina.util";
218+
};
219+
220+
// You can assign additional permissions to particular web applications by
221+
// adding additional "grant" entries here, based on the code base for that
222+
// application, /WEB-INF/classes/, or /WEB-INF/lib/ jar files.
223+
//
224+
// Different permissions can be granted to JSP pages, classes loaded from
225+
// the /WEB-INF/classes/ directory, all jar files in the /WEB-INF/lib/
226+
// directory, or even to individual jar files in the /WEB-INF/lib/ directory.
227+
//
228+
// For instance, assume that the standard "examples" application
229+
// included a JDBC driver that needed to establish a network connection to the
230+
// corresponding database and used the scrape taglib to get the weather from
231+
// the NOAA web server. You might create a "grant" entries like this:
232+
//
233+
// The permissions granted to the context root directory apply to JSP pages.
234+
// grant codeBase "file:${catalina.base}/webapps/examples/-" {
235+
// permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
236+
// permission java.net.SocketPermission "*.noaa.gov:80", "connect";
237+
// };
238+
//
239+
// The permissions granted to the context WEB-INF/classes directory
240+
// grant codeBase "file:${catalina.base}/webapps/examples/WEB-INF/classes/-" {
241+
// };
242+
//
243+
// The permission granted to your JDBC driver
244+
// grant codeBase "jar:file:${catalina.base}/webapps/examples/WEB-INF/lib/driver.jar!/-" {
245+
// permission java.net.SocketPermission "dbhost.mycompany.com:5432", "connect";
246+
// };
247+
// The permission granted to the scrape taglib
248+
// grant codeBase "jar:file:${catalina.base}/webapps/examples/WEB-INF/lib/scrape.jar!/-" {
249+
// permission java.net.SocketPermission "*.noaa.gov:80", "connect";
250+
// };
251+
252+
// To grant permissions for web applications using packed WAR files, use the
253+
// Tomcat specific WAR url scheme.
254+
//
255+
// The permissions granted to the entire web application
256+
// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/-" {
257+
// };
258+
//
259+
// The permissions granted to a specific JAR
260+
// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/WEB-INF/lib/foo.jar" {
261+
// };
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#Thu Apr 27 21:55:06 CST 2017
2+
server.loader=
3+
common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar"
4+
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.naming.,org.apache.tomcat.
5+
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,jaspic-api.jar,catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-storeconfig.jar,catalina-tribes.jar,jasper.jar,jasper-el.jar,ecj-*.jar,tomcat-api.jar,tomcat-util.jar,tomcat-util-scan.jar,tomcat-coyote.jar,tomcat-dbcp.jar,tomcat-jni.jar,tomcat-websocket.jar,tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,tomcat-jdbc.jar,tools.jar,commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,commons-math*.jar,commons-pool*.jar,jstl.jar,taglibs-standard-spec-*.jar,geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,jmx-tools.jar,jta*.jar,log4j*.jar,mail*.jar,slf4j*.jar,xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,junit.jar,junit-*.jar,hamcrest-*.jar,easymock-*.jar,cglib-*.jar,objenesis-*.jar,ant-launcher.jar,cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,xom-*.jar
6+
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,org.apache.tomcat.
7+
tomcat.util.buf.StringCache.byte.enabled=true
8+
tomcat.util.scan.StandardJarScanFilter.jarsToScan=log4j-web*.jar,log4j-taglib*.jar,log4javascript*.jar,slf4j-taglib*.jar
9+
shared.loader=${catalina.home}/../../com.genuitec.eclipse.ws.xfire_13.0.0.me201612231634/lib/*.jar
10+
tomcat.util.scan.DefaultJarScanner.jarsToSkip=webservices-*.jar
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
--><!-- The contents of this file will be loaded for each web application --><Context>
18+
19+
<!-- Default set of monitored resources. If one of these changes, the -->
20+
<!-- web application will be reloaded. -->
21+
<WatchedResource>WEB-INF/web.xml</WatchedResource>
22+
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
23+
24+
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
25+
<!--
26+
<Manager pathname="" />
27+
-->
28+
</Context>

0 commit comments

Comments
 (0)