development mode problem

Splash Forums Rewrite Users development mode problem

This topic contains 2 replies, has 2 voices, and was last updated by  kjaklik 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25946

    kjaklik
    Participant

    hi, I have a problem with updating rules in development mode.

    I have a jee7 project with rewrite-servlet v2.0.10.Final using xml based configuration.
    I’m trying to make development mode work without any success
    after some debugging I can tell that PrettyConfigReloader is called and reloads configuration properly, updated version of PrettyConfig object is placed in servlet context. But then during rewriting ConfigurationLoader returns old version of rules from some ConfigurationCacheProvider… and I land on Not Found page.

    What’em I doing wrong? or is it some bug that cached rules don’t get cleaned on configuration reload?

    • This topic was modified 2 years, 5 months ago by  kjaklik.
    #25954

    Yeah, it looks like Rewrite’s configuration caching is the problem here. Could you try to add this context parameter to your web.xml:

    <context-param>
        <param-name>org.ocpsoft.rewrite.config.CONFIG_RELOADING</param-name>
        <param-value>true</param-value>
    </context-param>
    

    I’m really sorry for the lacking documentation. We really need to enhance the documentation regarding this.

    #25968

    kjaklik
    Participant

    it helped, thanks

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.