I am using Jboss + tomcat setup. I have extended the SingleSignOn and overriden two methods. SingleSignOn uses a package protected class called SingleSignOnEntry. This is accessed in the two methods that are overriden.
Now if I package my class in a different jar and start the server, I get an IllegalAccessError saying that the SingleEignOnEntry cannot be accessed from my class, but the same thing works fine if my class is put in catalina.jar itself.
The same thing(Having my class in a separate jar) works fine in a standalone Tomcat.
I cannot figure out the reason for this varied behaviour. Can someone help me in this regard.