Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODE-1665 Corrected AS7.2 kit to deal with missing methods #558

Merged
merged 2 commits into from Oct 4, 2012

Conversation

rhauch
Copy link
Contributor

@rhauch rhauch commented Oct 4, 2012

Correcting the AS7.2 kit to correct the compiler problems led to several other problems, primarily with the logging system. In particular, we were no longer able to see the correct logging implementations and load the SLF4J logger, probably (big assumption here) because AS7.2 was changed to no longer leak the logging interfaces and implementations and thereby exposing some incorrect dependencies in ModeShape modules.

Plus, our LoggerFactory class was attempting to discover the logger classes (for the various frameworks) using the thread context classloader (TCCL) and then the system classloader – but not the current classloader. This seems obviously incorrect, so this was changed to simply try to load the class
with the current classloader. The same thing was done for JaasProvider, which was the only other class using the ClassUtil.loadClassStrict(...) method.

After all these changes, full builds running the following commands pass:

  • mvn clean install -Pintegration
  • mvn clean install -Pintegration,as72

Correcting this class led to several other problems, primarily with the logging system. In particular,
we were no longer able to see the correct logging implementations and load the SLF4J logger, probably
(big assumption here) because AS7.2 was changed to no longer leak the logging interfaces and
implementations and thereby exposing some incorrect dependencies in ModeShape modules.

Plus, our LoggerFactory class was attempting to discover the logger classes (for the various frameworks)
using the thread context classloader (TCCL) and then the system classloader – but not the current
classloader. This seems obviously incorrect, so this was changed to simply try to load the class
with the current classloader. The same thing was done for JaasProvider, which was the only other
class using the ClassUtil.loadClassStrict(...) method.

After all these changes, full builds running the following commands pass:

* mvn clean install -Pintegration
* mvn clean install -Pintegration,as72
@rhauch rhauch merged commit d0b3e9f into ModeShape:master Oct 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant