[
https://issues.apache.org/jira/browse/GERONIMO-6264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188270#comment-13188270
]
Shawn Jiang commented on GERONIMO-6264:
---------------------------------------
This is caused by this change:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardHostValve.java?r1=1164469&r2=1164468&pathrev=1164469
It moves the ServletRequestListener.requestInitialized fire action from
contextValve to HostValve. As a result, the GeronimoBeforeAfter valve which
will attach the RootContext to Thread does not get executed before
requestInitialized is called.
A workaround is to move the requestInitialized fire action from HostValve to a
Geronimo BeforeAfter interceptor so that the JNDI would be available before
it's accessed.
For a better solution, we need to figure out a way to execute the
GeronimoBeforeAfterValve before StandardHostValve.invoke(). It might cause
bigger impact to current structure.
> Can't access geronimo Java:com jndi tree from
> javax.servlet.ServletRequestListener.requestInitialized(ServletRequestEvent)
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6264
> URL: https://issues.apache.org/jira/browse/GERONIMO-6264
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Affects Versions: 3.0, 3.0-beta-2
> Environment: 3.0-beta-2 2012/01/18 build.
> Reporter: Shawn Jiang
>
> Can't access geronimo Java:com jndi tree from
> javax.servlet.ServletRequestListener.requestInitialized(ServletRequestEvent)
> after we upgrade tomcat from 7.0.19 to 7.0.23.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira