Tomcat 9 support

Official Content
This documentation is valid for:

The GeneXus 15 Java generated applications, run on Tomcat 9.

Software Requirements

  • Java 8

Details on the implementation
 

At development time

Use annotations for servlet definition property must be set to Yes, at prototyping time. 

For optimization purposes (reducing annotation searches during application deployment), content similar to the following is automatically added to the context.xml file:

<Context reloadable="true" privileged="true">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <JarScanner><JarScanFilter pluggabilitySkip="*" tldSkip="*" pluggabilityScan="GXWebSocket.jar"/></JarScanner>
</Context>

Reference here.

Note: For Tomcat 8, the same entry is included in the context.xml file. In the case of Tomcat 7, the GXJarScanner is used.

At production time

When taken to production, build the deployment package using the Application Deployment tool. In that case, it isn't necessary to generate annotated servlets, so it isn't mandatory to generate using Use annotations for servlet definition property = Yes. The reason is that the descriptor file (web.xml) declares all the servlets explicitly.


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.