GeoServer
  1. GeoServer
  2. GEOS-3122

ReverseProxy failing to engage in 2.0.x

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta1
    • Fix Version/s: 2.0-beta2
    • Component/s: Configuration
    • Labels:
      None
    • Number of attachments :
      0

      Description

      from the mailing list:

      Folks,

      when I try to enable the Reverse Proxy Filter in web.xml and restart the geoserver
      instance, it refuses to start yelling:

      32427 [main] WARN org.mortbay.log - failed Reverse Proxy Filter
      javax.servlet.ServletException: No GeoServerInfo instance found. Needed to look
      for the proxy base URL
      at org.geoserver.filters.ReverseProxyFilter.init(ReverseProxyFilter.java:123)
      at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
      at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
      at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
      at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510)
      at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at
      org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
      at org.mortbay.jetty.Server.doStart(Server.java:222)
      at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
      at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:977)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.mortbay.start.Main.invokeMain(Main.java:183)
      at org.mortbay.start.Main.start(Main.java:497)
      at org.mortbay.start.Main.main(Main.java:115)
      32429 [main] WARN org.mortbay.log - Failed startup of context
      org.mortbay.jetty.webapp.WebAppContext@52d654

      Unknown macro: {/geoserver,file}

      javax.servlet.ServletException: No GeoServerInfo instance found. Needed to look
      for the proxy base URL
      at org.geoserver.filters.ReverseProxyFilter.init(ReverseProxyFilter.java:123)
      at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)

        Activity

        Hide
        Gabriel Roldan added a comment -

        updated ReverseProxyFilter.init to grab the org.geosever.config.GeoServer from the application context and get the GeoServerInfo from it

        Show
        Gabriel Roldan added a comment - updated ReverseProxyFilter.init to grab the org.geosever.config.GeoServer from the application context and get the GeoServerInfo from it

          People

          • Assignee:
            Gabriel Roldan
            Reporter:
            Gabriel Roldan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: