Skip to content

Instantly share code, notes, and snippets.

@nekman
Created October 18, 2012 19:31
Show Gist options
  • Select an option

  • Save nekman/3914280 to your computer and use it in GitHub Desktop.

Select an option

Save nekman/3914280 to your computer and use it in GitHub Desktop.
Example: UserHttpRequest - JBoss ClassCastException
public UserPrincipal getUser() {
final Object user = getUserPrincipal();
logger.info("user.getClass().getClassLoader() = {}", user.getClass().getClassLoader());
logger.info("UserPrincipal.class.getClassLoader() = {}", UserPrincipal.class.getClassLoader());
return (UserPrincipal) user;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment