ClassCastExceptions with TwelveMonkeys even on isolated application classloaders on Weblogic 12c
We have two web applications; AppA (as EAR) uses TwelveMonkeys and AppB (as WAR) uses JAI.
These web applications are deployed on Weblogic 12c, wherein each application is isolated from each other. They both have application-level classloaders (to ensure that libraries on one app do not conflict with another), and container-level and system-level classloaders.
We've configured the system to ensure that TwelveMonkeys is only loaded through the AppA app-level classloader. However, AppB somehow still sees TwelveMonkeys classes and encounters ClassCastExceptions
.
Is there a way to properly enforce TwelveMonkeys to be within the scope of one application only, and not all applications (which this situation seems to point at)?
Is this behavior typically attributed to TwelveMonkeys, or would this be a Weblogic issue? Does TwelveMonkeys play well with multiple applications in other containers?
weblogic classloader classcastexception jai twelvemonkeys
add a comment |
We have two web applications; AppA (as EAR) uses TwelveMonkeys and AppB (as WAR) uses JAI.
These web applications are deployed on Weblogic 12c, wherein each application is isolated from each other. They both have application-level classloaders (to ensure that libraries on one app do not conflict with another), and container-level and system-level classloaders.
We've configured the system to ensure that TwelveMonkeys is only loaded through the AppA app-level classloader. However, AppB somehow still sees TwelveMonkeys classes and encounters ClassCastExceptions
.
Is there a way to properly enforce TwelveMonkeys to be within the scope of one application only, and not all applications (which this situation seems to point at)?
Is this behavior typically attributed to TwelveMonkeys, or would this be a Weblogic issue? Does TwelveMonkeys play well with multiple applications in other containers?
weblogic classloader classcastexception jai twelvemonkeys
As I wrote in the related issue I believe this is more a design problem withImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)
– haraldK
Jan 3 at 12:47
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23
add a comment |
We have two web applications; AppA (as EAR) uses TwelveMonkeys and AppB (as WAR) uses JAI.
These web applications are deployed on Weblogic 12c, wherein each application is isolated from each other. They both have application-level classloaders (to ensure that libraries on one app do not conflict with another), and container-level and system-level classloaders.
We've configured the system to ensure that TwelveMonkeys is only loaded through the AppA app-level classloader. However, AppB somehow still sees TwelveMonkeys classes and encounters ClassCastExceptions
.
Is there a way to properly enforce TwelveMonkeys to be within the scope of one application only, and not all applications (which this situation seems to point at)?
Is this behavior typically attributed to TwelveMonkeys, or would this be a Weblogic issue? Does TwelveMonkeys play well with multiple applications in other containers?
weblogic classloader classcastexception jai twelvemonkeys
We have two web applications; AppA (as EAR) uses TwelveMonkeys and AppB (as WAR) uses JAI.
These web applications are deployed on Weblogic 12c, wherein each application is isolated from each other. They both have application-level classloaders (to ensure that libraries on one app do not conflict with another), and container-level and system-level classloaders.
We've configured the system to ensure that TwelveMonkeys is only loaded through the AppA app-level classloader. However, AppB somehow still sees TwelveMonkeys classes and encounters ClassCastExceptions
.
Is there a way to properly enforce TwelveMonkeys to be within the scope of one application only, and not all applications (which this situation seems to point at)?
Is this behavior typically attributed to TwelveMonkeys, or would this be a Weblogic issue? Does TwelveMonkeys play well with multiple applications in other containers?
weblogic classloader classcastexception jai twelvemonkeys
weblogic classloader classcastexception jai twelvemonkeys
edited Jan 2 at 7:06
Ali
1,1791321
1,1791321
asked Jan 2 at 4:11
ET_AndesET_Andes
63
63
As I wrote in the related issue I believe this is more a design problem withImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)
– haraldK
Jan 3 at 12:47
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23
add a comment |
As I wrote in the related issue I believe this is more a design problem withImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)
– haraldK
Jan 3 at 12:47
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23
As I wrote in the related issue I believe this is more a design problem with
ImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)– haraldK
Jan 3 at 12:47
As I wrote in the related issue I believe this is more a design problem with
ImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)– haraldK
Jan 3 at 12:47
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001105%2fclasscastexceptions-with-twelvemonkeys-even-on-isolated-application-classloaders%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001105%2fclasscastexceptions-with-twelvemonkeys-even-on-isolated-application-classloaders%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As I wrote in the related issue I believe this is more a design problem with
ImageIO
(its global, shared registry), than an issue with Weblogic, TwelveMonkeys or JAI. Would love to hear if someone has a good solution, or even an idea for a general and robust solution, though. :-)– haraldK
Jan 3 at 12:47
Thank you (and for your comments in the TwelveMonkeys Github as well). Actually we've resorted to making sure we have the proper packages loaded and recognized and deregistering the providers we don't want to work with at runtime.
– ET_Andes
Jan 4 at 1:23