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
webswing
in Tomcat's home folder and unzip the Webswing distribution to this folder. - Move
webswing-server.war
from the distribution package to Tomcat'swebapps
folder. - In
conf/catalina.properties
file add the following properties. ( Or use-D
JVM 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.config
are 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.