IllegalAccessException for listener

2008-07-22 Thread Fu-Tung Cheng
Hi, I am using tc 6.0.16 with jdk 1.6.0. I get the following error on startup: java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardContext can not access a member of class com.mycom.Myclass with modifiers private web.xml: listener

Re: IllegalAccessException for listener

2008-07-22 Thread Deepak Mishra
i think, this error is self-expalnatory. you have a problem in the code itself,try changing the private modifier to public...or either post your program. can you run this program independently (that is, out of server root) ? On Tue, 22 Jul 2008 11:55:01 +0530, Fu-Tung Cheng [EMAIL

Re: IllegalAccessException for listener

2008-07-22 Thread Fu-Tung Cheng
I found the issue. Listeners must implement a public zero argument constructor. Fu-Tung --- On Tue, 7/22/08, Deepak Mishra [EMAIL PROTECTED] wrote: From: Deepak Mishra [EMAIL PROTECTED] Subject: Re: IllegalAccessException for listener To: Tomcat Users List users@tomcat.apache.org Date