tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45459] New: Startup Listener error message unhelpful
Date Tue, 22 Jul 2008 15:44:56 GMT
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


Mime
View raw message