Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic config loading (eg from a Servlet) isn't possible #185

Open
z-br opened this issue Jul 31, 2015 · 3 comments
Open

Dynamic config loading (eg from a Servlet) isn't possible #185

z-br opened this issue Jul 31, 2015 · 3 comments

Comments

@z-br
Copy link

z-br commented Jul 31, 2015

I'm trying to load the urlrewrite.xml dynamically, in this case from a servlet that translates Jade into XML under the url /urlrewriteconfig.

Since filters are loaded before servlets (I'm guessing this is the reason) I get this error message:

INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: unable to find urlrewrite conf file at /urlrewriteconfig

But then I said the dynamic reload to 1 second , and it still never ends up loading (and I get no subsequent error messages). Is it not possible to load from a URL? Ideally, I would like to load from a servlet before the filter is even made available - can I do this in code somehow? I'd be happy to explicitly grab the filter and tell it what the config is, if that is possible (ideally from a URL/Stream).

This is my config:

<init-param>
   <param-name>confPath</param-name>
   <param-value>/urlrewriteconfig</param-value>  
  </init-param>
  <init-param>
     <param-name>confReloadCheckInterval</param-name>
     <param-value>1</param-value>
 </init-param>
@z-br
Copy link
Author

z-br commented Aug 12, 2015

Anyone have thoughts on this? I haven't been able to figure anything out.

@outofrange
Copy link

How are you running your application? There is currently an open issue at spring-boot, which could be related. spring-projects/spring-boot#3627 (comment)

@z-br
Copy link
Author

z-br commented Apr 14, 2016

I am using standard tomcat in amazon elastic beanstalk. No Spring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants