@@ -824,11 +824,6 @@ Spring remains compatible with older versions of Java and the JDK: concretely, J
824
824
and above are still fully supported. However, for newly started development projects
825
825
based on Spring 4, we recommend the use of Java 7 or 8.
826
826
827
- Note that the Java 8 bytecode level (`-target 1.8`, as required by `-source 1.8`) is only
828
- fully supported as of Spring Framework 4.0. In particular, Spring 3.2 based applications
829
- need to be compiled with a maximum of Java 7 as the target, even if they happen to be
830
- deployed onto a Java 8 runtime. Please upgrade to Spring 4 for Java 8 based applications.
831
-
832
827
833
828
834
829
@@ -15786,7 +15781,7 @@ above and can be registered individually for __each__ web application as follows
15786
15781
</Context>
15787
15782
----
15788
15783
15789
- Apache Tomcat 6.0.x (similar to 5.0.x/5.5.x) series supports several context locations:
15784
+ Apache Tomcat ( 6.0+) supports several context locations:
15790
15785
15791
15786
* server configuration file - __$CATALINA_HOME/conf/server.xml__
15792
15787
* default context configuration - __$CATALINA_HOME/conf/context.xml__ - that affects all
@@ -15801,64 +15796,14 @@ changes to the server configuration. See the Tomcat 6.0.x
15801
15796
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html[documentation] for more
15802
15797
details about available context locations.
15803
15798
15804
- * Tomcat 5.0.x/5.5.x
15805
- * Copy `org.springframework.instrument.tomcat.jar` into __$CATALINA_HOME__/server/lib,
15806
- where __$CATALINA_HOME__ represents the root of the Tomcat installation.
15807
- * Instruct Tomcat to use the custom class loader instead of the default one by editing
15808
- the web application context file:
15809
-
15810
- [source,xml,indent=0]
15811
- [subs="verbatim,quotes"]
15812
- ----
15813
- <Context path="/myWebApp" docBase="/my/webApp/location">
15814
- <Loader
15815
- loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>
15816
- </Context>
15817
- ----
15818
-
15819
- Tomcat 5.0.x and 5.5.x series supports several context locations:
15820
-
15821
- * server configuration file - __$CATALINA_HOME/conf/server.xml__
15822
- * default context configuration - __$CATALINA_HOME/conf/context.xml__ - that affects all
15823
- deployed web applications
15824
- * per-web application configuration which can be deployed either on the server-side at
15825
- __$CATALINA_HOME/conf/[enginename]/[hostname]/[webapp]-context.xml__ or embedded
15826
- inside the web-app archive at __META-INF/context.xml__
15827
-
15828
- For efficiency, the embedded web-app configuration style is recommended recommended
15829
- because it will impact only applications that use the class loader. See the Tomcat 5.x
15830
- http://tomcat.apache.org/tomcat-5.5-doc/config/context.html[documentation] for more
15831
- details about available context locations.
15832
-
15833
- Tomcat versions prior to 5.5.20 contained a bug in the XML configuration parsing that
15834
- prevented usage of the `Loader` tag inside __server.xml__ configuration, regardless of
15835
- whether a class loader is specified or whether it is the official or a custom one. See
15836
- Tomcat's bugzilla for http://issues.apache.org/bugzilla/show_bug.cgi?id=39704[more
15837
- details].
15838
-
15839
- In Tomcat 5.5.x, versions 5.5.20 or later, you should set
15840
- __useSystemClassLoaderAsParent__ to `false` to fix this problem:
15841
-
15842
- [source,xml,indent=0]
15843
- [subs="verbatim,quotes"]
15844
- ----
15845
- <Context path="/myWebApp" docBase="/my/webApp/location">
15846
- <Loader
15847
- loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"
15848
- **useSystemClassLoaderAsParent="false"**/>
15849
- </Context>
15850
- ----
15851
-
15852
- This setting is not needed on Tomcat 6 or higher.
15853
-
15854
15799
Alternatively, consider the use of the Spring-provided generic VM agent, to be specified
15855
15800
in Tomcat's launch script (see above). This will make instrumentation available to all
15856
15801
deployed web applications, no matter what ClassLoader they happen to run on.
15857
15802
15858
15803
[[aop-aj-ltw-environments-weblogic-oc4j-resin-glassfish-jboss]]
15859
15804
====== WebLogic, WebSphere, Resin, GlassFish, JBoss
15860
15805
Recent versions of WebLogic Server (version 10 and above), IBM WebSphere Application
15861
- Server (version 7 and above), Resin (3.1 and above) and JBoss (5 .x or above) provide a
15806
+ Server (version 7 and above), Resin (3.1 and above) and JBoss (6 .x or above) provide a
15862
15807
ClassLoader that is capable of local instrumentation. Spring's native LTW leverages such
15863
15808
ClassLoaders to enable AspectJ weaving. You can enable LTW by simply activating
15864
15809
load-time weaving as described earlier. Specifically, you do __not__ need to modify the
@@ -46194,12 +46139,6 @@ The supported languages were chosen because __a)__ the languages have a lot of t
46194
46139
the Java enterprise community, __b)__ no requests were made for other languages at the time
46195
46140
that this support was added, and __c)__ the Spring developers were most familiar with
46196
46141
them.
46197
-
46198
- There is nothing stopping the inclusion of further languages though. If you want to see
46199
- support for <__insert your favorite dynamic language here__>, you can always raise an
46200
- issue on Spring's
46201
- http://opensource.atlassian.com/projects/spring/secure/Dashboard.jspa[JIRA] page (or
46202
- implement such support yourself).
46203
46142
****
46204
46143
46205
46144
Fully working examples of where this dynamic language support can be immediately useful
0 commit comments