You can have your own J2EE web application sit alongside the Enunciate-generated Web service application. The only issue is that you have to "merge" the web.xml file that Enunciate generates with your own web.xml file. (Of course, you won't even have to do that with the J2EE 5 support for the webapp fragment.)
Fortunately, Enunciate provides a way to automatically merge your web.xml file into the Enunciate-generated one:
<enunciate ...> ... <modules> <spring-app mergeWebXML="/path/to/my/web.xml"/> ... </modules> </enunciate>
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.
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.:
<web-app> ... <filter enunciate_order="after"> ... </filter> ... <listener enunciate_order="after"> ... </listener> ... <servlet enunciate_order="after"> ... </servlet> ... </web-app>