You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Joe Bohn (JIRA)" <ji...@apache.org> on 2006/12/12 23:25:21 UTC

[jira] Created: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
-----------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-2654
                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Jetty
    Affects Versions: 2.0-M1
         Environment: Windows XP ... most likely all.
            Reporter: Joe Bohn


There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.

This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458652 ] 
            
Greg Wilkins commented on GERONIMO-2654:
----------------------------------------

David,

I think the problem was that the hierarchy of handlerCollection to contextHandlerCollection was not setup properly.   So start was not propogating down. You should not have to call setServer on anything.

With my changes, I was able to run up the server with the 4 normal contexts.
So I will look at your change, but will probably back it out and replace with mine.


> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458655 ] 
            
Greg Wilkins commented on GERONIMO-2654:
----------------------------------------

Oh - I see you also fixed the handler hierarchy.
I have just taken out the setServer calls and the 4 standard context run OK - there
are exceptions when stopping the server but I think they are unrelated (jdbc connections etc).

I haven't deployed the welcome app, but will check in anyway.

> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458278 ] 
            
Greg Wilkins commented on GERONIMO-2654:
----------------------------------------

The JettyContainImpl class is adding contexts to the server object. 
It should instead add them to the contextHandlerCollection class


> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=all ]

Greg Wilkins reassigned GERONIMO-2654:
--------------------------------------

    Assignee: Greg Wilkins

> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458646 ] 
            
Greg Wilkins commented on GERONIMO-2654:
----------------------------------------

I think I have found the problem.
The contextHandlerCollection is not correctly linked in..... showing that it was never
used in the first place.

I'll prepare a fix shortly


> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

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

David Jencks closed GERONIMO-2654.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-M2

This has been working for a long time, I think by M2

> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>            Assignee: Greg Wilkins
>             Fix For: 2.0-M2
>
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Greg Wilkins (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458661 ] 
            
Greg Wilkins commented on GERONIMO-2654:
----------------------------------------

The 500 responses in the tests are because the ContextHandlerCollection sends a 500 if it has not contexts configured.

I am not sure why that is and I will probably change it.

However, for now it is indicated that the tests worked as well as the 404.  So I will change the
tests to expect 500 - and for the next release of Jetty we will probably have to change back to 
404s



> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "Joe Bohn (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458579 ] 
            
Joe Bohn commented on GERONIMO-2654:
------------------------------------

This change appears to result in NPEs being thrown at server start up and the inability to access any web application via any context :-(  ....  I'll look at it to see if I can figure out how to fix it but I think we need to revert  the change.

Here's the stacktrace:
java.lang.NullPointerException
        at org.mortbay.jetty.servlet.AbstractSessionManager.doStart(AbstractSessionManager.java:157)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.mortbay.jetty.servlet.SessionHandler.doStart(SessionHandler.java:115)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.doStart(AbstractImmutableHandler.java:36)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.doStart(AbstractImmutableHandler.java:36)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.doStart(AbstractImmutableHandler.java:36)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:119)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:493)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:129)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1180)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:474)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:433)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
        at org.apache.geronimo.jetty6.JettyWebAppContext$StartCommand.lifecycleMethod(JettyWebAppContext.java:346)
        at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.lifecycleCommand(AbstractImmutableHandler.java:52)
        at org.apache.geronimo.jetty6.handler.ThreadClassloaderHandler.lifecycleCommand(ThreadClassloaderHandler.java:57)
        at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.lifecycleCommand(AbstractImmutableHandler.java:50)
        at org.apache.geronimo.jetty6.handler.ComponentContextHandler.lifecycleCommand(ComponentContextHandler.java:57)
[*********************>     ] 79%  54s Starting org.apache.geronimo...  at org.apache.geronimo.jetty6.handler.AbstractImmutableHandler.lifecycleCommand(Abstract
ImmutableHandler.java:50)
        at org.apache.geronimo.jetty6.handler.InstanceContextHandler.lifecycleCommand(InstanceContextHandler.java:81)
        at org.apache.geronimo.jetty6.JettyWebAppContext.doStart(JettyWebAppContext.java:319)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:984)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:543)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
        at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:378)
        at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
        at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$b72089d6.startConfiguration(<generated>)
        at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:286)
        at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:366)
2006-12-14 14:00:22.867::WARN:  failed SessionHandler@4d080d

> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2654) Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2654?page=comments#action_12458647 ] 
            
David Jencks commented on GERONIMO-2654:
----------------------------------------

I set the server on a few more objects and now I get both the welcome app and webconsole working at once.  However a couple tests fail and need to be looked at more.

I'm not sure its necessary to set server on the WebAppContext, this may happen automatically later.

Greg, if you could glance over this I'd appreciate it.

trunk rev 487412.

> Enabling Welcome App (context "/") on geronimo-jetty6-jee5 assembly breaks web-console (context "/console")
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-2654
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2654
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty
>    Affects Versions: 2.0-M1
>         Environment: Windows XP ... most likely all.
>            Reporter: Joe Bohn
>         Assigned To: Greg Wilkins
>
> There seems to be something strange going on with context resolution.  When the welcome application is enabled on the jetty6-jee5 assembly (update config.xml and remove load="false" for webconsole-jetty6) the welcome application works fine (context "/").  However, it appears that all other applications, such as the web console (context "/console") are no longer accessible and return 404 errors when attempting to access the application from a browser.
> This may actually be a Jetty 6.1 problem rather than a Geronimo problem.   David Jencks recommended looking into Jetty's   ContextHandlerCollection class for clues as to what is happening.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira