https://issues.apache.org/bugzilla/show_bug.cgi?id=45459
Summary: Startup Listener error message unhelpful
Product: Tomcat 6
Version: 6.0.16
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
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"
This occurs when the listener class does not have a public zero argument
constructor. Could we improve the error message to make it a little easier
to understand?
It's too bad that the sun docs don't even mention the requirement:
http://java.sun.com/javaee/5/docs/api/index.html?javax/servlet/http/HttpSessionListener.html
>>>
web.xml:
<listener>
<listener-class>com.mycom.Myclass</listener-class>
</listener>
where Myclass is located inside my war in WEB-INF/class/com/mycom
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]