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 2006/02/14 09:36:15 UTC

DO NOT REPLY [Bug 38630] - Environment (java:comp/env/) sometimes not available

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38630>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38630





------- Additional Comments From frankdannhauer@freenet.de  2006-02-14 09:36 -------
(In reply to comment #0)
> Very often, let's say in 30%-50% of each invocations java:comp is not 
available
> inside a static initializer when my webapp is started or restarted.

What part of the J2EE documentation makes you think it should be available in 
static initializers? IMHO Servlet.init() is the earliest place in the servlet 
lifecycle to securely access java:comp/env.

B.t.w bug 38629 may be related to this one, since exceptions in static 
initializers lead to java.lang.NoClassDefFoundError



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org