This content has been marked as final.
Show 3 replies
-
1. Re: java.lang.IllegalAccessError when invoking protected method from another class in the same package path but different jar.
j_ri Aug 7, 2012 2:40 AM (in response to veitg)Hi,
did you find a solution? Today I faced the same issue and just found your post...
Actually I don't understand why the related JIRA is rejected.
Regards,
Jochen
-
2. Re: java.lang.IllegalAccessError when invoking protected method from another class in the same package path but different jar.
veitg Aug 7, 2012 9:50 AM (in response to j_ri)I ended up putting everything I need into jar's putting them in the lib folder .
Short story:JBoss uses different CLs for lib and ejb jars. I guess they have their reasons. The rest is a restriction per spec.
Long story: http://www.nightprogrammer.org/development/hints/illegalaccesserror-packages-classloaders/
-
3. Re: java.lang.IllegalAccessError when invoking protected method from another class in the same package path but different jar.
j_ri Aug 8, 2012 2:12 AM (in response to veitg)thanks for the link.
So I'll start changing a lot of methods to 'public'.