Git Product home page Git Product logo

tomcat-classloader-ordered's Introduction

Discontinued

This repository is no longer actively maintained. You may fork it if need be.

tomcat-classloader-ordered

A classloader for Apache Tomcat 8 which loads the jars of WEB-INF lib in alphabetical order.

Prior to version 8, Apache Tomcat loaded the jars of the WEB-INF lib directory in alphabetical order. Starting with version 8, the order is not predictable anymore and can lead to erratic behaviors, especially when deploying applications in a clustered environment.

This classloader delegates all its operation to the original Tomcat classloader with the only difference that it loads the jars in alphabetical order, guaranteeing a reproducible deployment.

The code is very simple and should be (hopefully!) bug free.

Compatibility

This classloader should be compatible with Apache Tomcat 8.0.x and 8.5.x.

How to use

You need to put the jar in Tomcat's lib directory.

Then, you need to add a src/main/webapp/META-INF/context.xml (supposing you use Maven but you get the idea) to your project:

<?xml version="1.0" encoding="UTF-8" ?>
<Context>
	<Loader loaderClass="fr.openwide.tomcat.catalina.loader.WebappOrderedClassLoader" />
	<Resources className="fr.openwide.tomcat.catalina.loader.OrderedStandardRoot"/>
</Context>

That's all!

License

This project is licensed under the Apache License version 2.0.

tomcat-classloader-ordered's People

Contributors

gsmet avatar olivierdepriester avatar cgachot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.