Tomcat Deployment
Even though Webswing comes with an embedded Jetty server, it is still possible to deploy it to an external servlet container like Tomcat. Other J2EE servers should work as well, as far as they support Servlet 3.0 spec (but only Tomcat 8 is tested). Previous experience with Tomcat configuration is expected.
To deploy Webswing to Tomcat, follow the following steps:
- Create a new folder named
webswingin Tomcat's home folder and unzip the Webswing distribution to this folder. - Move
webswing-server.warfrom the distribution package to Tomcat'swebappsfolder. - In
conf/catalina.propertiesfile add the following properties. ( Or use-DJVM options to specify these properties)
webswing.warLocation=webapps/webswing-server.war
webswing.configFile=webswing/webswing.config
webswing.tempDirBase=webswing/tmp
Please note that the locations in demo
webswing.configare pointing to relative paths, so in order to make the demo applications run in Tomcat you will need to change the paths accordingly.
In case of issues analyze the logfiles.