Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Fortunately, Enunciate provides a way to automatically merge your web.xml file into the Enunciate-generated one:

Code Block
xml
xml

<enunciate ...>
  ...
  <modules>
    <spring-app mergeWebXML="/path/to/my/web.xml"/>
    ...
  </modules>
</enunciate>

There are a number of examples/tutorials for integrating Enunciate with your favorite framework that may be helpful, too.

Element Order

By default during a merge, Enunciate puts the elements if your web.xml file before the elements that are generated by Enunciate. But sometimes order is significant (e.g. listeners, servlets, filters, etc.). 

As of Enunciate 1.29, you can tell Enunciate to put the elements after the generated elements, you can add a custom attribute to the web.xml element, e.g.:

Code Block
languagexml
<web-app>
  ...
  <filter enunciate_order="after">
    ...
  </filter>
  ...
  <listener enunciate_order="after">
    ...
  </listener>
  ...
  <servlet enunciate_order="after">
    ...
  </servlet>
  ...
</web-app>