I am attempting to get Errai 4.0.0.Beta1 running in Tomcat, and I was wondering if anyone has done this before? Specifically, I am trying to determine what dependencies I can remove from Errai (i.e. Wildfly), and any additional steps required to get an Errai application running on Tomcat.
When I get this running, I will update this post.
Thanks in advance.
To show how to run an Errai 4 Maven project on Tomcat server, I created a project on GitHub called errai-tutorial-tomcat.
Prerequisites
Your Errai webapp must be installed on your local Maven repository ( mvn install )
Create a new Maven project (war packaging) and import your previous webapp
for example : errai-tutorial (https://github.com/errai/errai-tutorial)
Add Tomcat missing dependencies
Weld Servlet Core ( https://docs.jboss.org/weld/reference/2.3.4.Final/en-US/html/environments.html#weld-servlet )
Jersey JAX-RS core Servlet 2.x implementation
Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
Add Weld Servlet listener in Web.xml file
Add BeanManager reference in Web.xml file
Add Jersey JAX-RS core Servlet in Web.xml file
Add context.xml file in META-INF directory