I was facing another weird issue today that took me a while to chase down.

I didn't have the proper services directory in place when starting Knox for
the first time. This meant that a gateway.xml file was created in the
deployments dir for my topologies that was totally empty. It didn't have
any filters so all my tests returned a "Failed to match path" error.

The problem here is that Knox checks on startup what the timestamp on the
topology is and only if that has changed does it create a new deployment.
If anything else changes this is not rewritten. So changes to the services
files will not be noticed by Knox and silently ignored.

I understand that this is an edge-case but other than a slightly longer
startup would it hurt to recreate the deployments on every startup?

Cheers,
Lars

Reply via email to