Ah-ha! It's the classloader that's killing me. Thanks for the info! -----Original Message----- From: Adrian Brock [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 5:56 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] RE: JBoss 3/Tomcat 4.0.3 IllegalAccessError
Hi, StandardSession is a package private class. This means it can only be referenced by classes within the same package AND THE SAME CLASSLOADER. Each jar within jboss gets its own ClassLoader. A simple solution would be to add your class to catalina.jar Regards, Adrian >From: Jerry Smith <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "'[EMAIL PROTECTED]'" ><[EMAIL PROTECTED]> >Subject: [JBoss-user] RE: JBoss 3/Tomcat 4.0.3 IllegalAccessError >Date: Thu, 13 Jun 2002 10:22:23 -0500 > >No it doesn't unfortunately :-( This setup works fine with Tomcat 4.0.3 >standalone. I'm not putting the extended class in a WAR. I've tried having >JBoss deploy it, placing it in catalina/server/lib, and server/all/lib. >Anyone else have an insight on this? > >-----Original Message----- >From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] >Sent: Thursday, June 13, 2002 1:13 AM >To: Jerry Smith >Cc: '[EMAIL PROTECTED]' >Subject: Re: [JBoss-user] JBoss 3/Tomcat 4.0.3 IllegalAccessError > > >Hello Jerry, > >The servlet 2.3 spec says (9.6.2 Web Application Classloader): >"The classloader that a container uses to load a servlet in a WAR must not >allow the WAR to >override JDK or Java Servlet API classes, and is recommended not to allow >Servlets in the >WAR visibility of the web containers implementation classes. >If a web container has a mechanism for exposing container-wide library JARs >to application >classloaders, it is recommended that the application classloader be >implemented in such a >way that classes packaged within the WAR are able to override classes >residing in containerwide >library JARs." > >So, I'm not sure, but probably they shouldn't be in a war. >Does it help? > >alex > >Thursday, June 13, 2002, 1:33:04 AM, you wrote: > >JS> I'm getting a java.lang.IllegalAccessError from a class that inherits >from a >JS> Catalina class: > >JS> java.lang.IllegalAccessError: class >JS> org.apache.catalina.session.ReplicatedSession cannot access its >superclass >JS> org.apache.catalina.session.StandardSession >JS> at java.lang.ClassLoader.defineClass0(Native Method) >JS> at java.lang.ClassLoader.defineClass(ClassLoader.java:509) >JS> at >JS> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) >JS> at java.net.URLClassLoader.defineClass(URLClassLoader.java:246) >JS> at java.net.URLClassLoader.access$100(URLClassLoader.java:54) >JS> at java.net.URLClassLoader$1.run(URLClassLoader.java:193) >JS> at java.security.AccessController.doPrivileged(Native Method) >JS> at java.net.URLClassLoader.findClass(URLClassLoader.java:186) >JS> at >JS> >org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:2 2 >JS> 7) >JS> ... etc > >JS> Where should class files that inherit from Catalina classes go? > >JS> _______________________________________________________________ > >JS> Sponsored by: >JS> ThinkGeek at http://www.ThinkGeek.com/ >JS> _______________________________________________ >JS> JBoss-user mailing list >JS> [EMAIL PROTECTED] >JS> https://lists.sourceforge.net/lists/listinfo/jboss-user > >-- >Best regards, > Alex Loubyansky > > >_______________________________________________________________ > >Don't miss the 2002 Sprint PCS Application Developer's Conference >August 25-28 in Las Vegas - >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > >_______________________________________________ >JBoss-user mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/jboss-user _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user