[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jetty-users] Fun with classloaders and start.jar
- From: ccleve <ccleve.tech@xxxxxxxxx>
- Date: Wed, 20 Jun 2012 17:18:34 -0500
- Delivered-to: firstname.lastname@example.org
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
I recently switched our app from our own startup code to using
start.jar. Now we're getting an error in our webapp:
java.lang.IllegalAccessException: com.mycompany.MySuperClass can not
access a member of class com.mycompany.MySubClass with modifiers
MySuperClass is an odd beast. It exists in a jar in the main /lib
directory. It contains a method that uses reflection to examine
protected members of subclasses. MySubClass exists in the webapp.
MySuperClass and MySubClass are both in the same package, but in
I do not get this error when I use our own Jetty startup code, only with
start.jar. My guess is that start.jar sets up classloaders in a way that
prevents access, but that's just a guess.
Anyone know how to fix this?