I'm currently experiencing a problem at work I've been bashing my head against for a fair while and was hoping someone here might be able to provide some help. I'd like to point out this is my first question here, so I apologise if it could be better formatted, please feel free to let me know if I should add anything.
Our application has been running quite happily off a TomEE server for the past couple of months, but recently some higher ups in our company have told us that we MUST use Jetty. Unfortunately trying to dissuade them from this won't be an option unless we can prove using Jetty is actually impossible for us.
I've since tried setting up a Jetty server, but I've been focusing on using the maven-jetty plugin. We had great success with the tomee-maven plugin in the past so I hoped this would be just as effective.
Unfortunately, we've had no luck with this approach. I understand Jetty is not a JavaEE server, so we've tried adding dependencies. Take a look at our approach:
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.3.9.v20160517</version>
<dependencies>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-6</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.3.2.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>1.1.33.Final</version>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-core</artifactId>
<version>4.7.4</version>
</dependency>
</dependencies>
</plugin>
Unfortunately, every attempt to contact our application at the same URL as we used in TomEE has given us a 404. Note that our Java code has not changed whatsoever since trying to migrate to Jetty.
I have done a lot of Googling and come up with very little. This SE question was found, but it was written back in the days of Jetty 6. We're using Jetty 9, so the Servlet version is no longer an issue.
So, does anyone here think this can be done?
Further details: We are using JavaEE 6, We are focused on getting CDI and Bean Validation, other EE features are unimportant.