You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/07/22 17:44:56 UTC
DO NOT REPLY [Bug 45459] New: Startup Listener error message
unhelpful
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: tomcat-dev@jakarta.apache.org
ReportedBy: futung.cheng@yahoo.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45459] Startup Listener error message unhelpful
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45459
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #2 from Mark Thomas <ma...@apache.org> 2008-10-24 13:29:19 PST ---
The patch did not get enough votes from the committers to apply it to 6.0.x. A
summary of the comments is:
- we shouldn't we working around JDK error messages
- there is enough information in the stacktrace that your favourite search
engine will tell you what the issue is.
Therefore, I am closing this as won't fix. I will also revert the patch from
trunk.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 45459] Startup Listener error message unhelpful
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45459
--- Comment #1 from Mark Thomas <ma...@apache.org> 2008-07-29 07:31:32 PST ---
This has been fixed in trunk and proposed for 6.0.x
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org