You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Ivan (Created) (JIRA)" <ji...@apache.org> on 2012/01/31 04:10:10 UTC

[jira] [Created] (GERONIMO-6266) The jndi prefix URL could not work before the web application is totally started

The jndi prefix URL could not work before the web application is totally started
--------------------------------------------------------------------------------

                 Key: GERONIMO-6266
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6266
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Tomcat
    Affects Versions: 3.0-beta-1, 3.0
            Reporter: Ivan


If the those load-on-startup servlets use the servletContext.getResource method to get a jndi prefix URL, they could not get the contents by URL.openStream method, as the resources are only binded to the web application classloader while the TomcatWebApp GBean is started.
Although we have binded the resources with the current thread, it seems to be ignored in Tomcat codes. I opened a bug entry in Tomcat community, https://issues.apache.org/bugzilla/show_bug.cgi?id=52563
If they did not accept it or we have no chance to include the change in the 3.0-beta-2 release, there should be workaround codes to make it work in Geronimo.

--
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

        

[jira] [Commented] (GERONIMO-6266) The jndi prefix URL could not work before the web application is totally started

Posted by "Ivan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-6266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201196#comment-13201196 ] 

Ivan commented on GERONIMO-6266:
--------------------------------

I created a GeronimoWebAppLoader, and bind/unbind the context in the startInternal/stopInternal methods as Tomcat codes.
Commit changes to 3.0-beta at rev.1240956
                
> The jndi prefix URL could not work before the web application is totally started
> --------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6266
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6266
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 3.0, 3.0-beta-1
>            Reporter: Ivan
>
> If the those load-on-startup servlets use the servletContext.getResource method to get a jndi prefix URL, they could not get the contents by URL.openStream method, as the resources are only binded to the web application classloader while the TomcatWebApp GBean is started.
> Although we have binded the resources with the current thread, it seems to be ignored in Tomcat codes. I opened a bug entry in Tomcat community, https://issues.apache.org/bugzilla/show_bug.cgi?id=52563
> If they did not accept it or we have no chance to include the change in the 3.0-beta-2 release, there should be workaround codes to make it work in Geronimo.

--
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

        

[jira] [Resolved] (GERONIMO-6266) The jndi prefix URL could not work before the web application is totally started

Posted by "Ivan (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-6266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan resolved GERONIMO-6266.
----------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
                   3.0
         Assignee: Ivan
    
> The jndi prefix URL could not work before the web application is totally started
> --------------------------------------------------------------------------------
>
>                 Key: GERONIMO-6266
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6266
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 3.0, 3.0-beta-1
>            Reporter: Ivan
>            Assignee: Ivan
>             Fix For: 3.0, 3.0-beta-2
>
>
> If the those load-on-startup servlets use the servletContext.getResource method to get a jndi prefix URL, they could not get the contents by URL.openStream method, as the resources are only binded to the web application classloader while the TomcatWebApp GBean is started.
> Although we have binded the resources with the current thread, it seems to be ignored in Tomcat codes. I opened a bug entry in Tomcat community, https://issues.apache.org/bugzilla/show_bug.cgi?id=52563
> If they did not accept it or we have no chance to include the change in the 3.0-beta-2 release, there should be workaround codes to make it work in Geronimo.

--
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