I have followed instructions from http://zetcode.com/java/ejb/ to create a simple web app. It runs fine with eclipse, where it uses Glassfish server 4.1. To deploy to Tomcat, I simply copied the war file produced to the webapps folder of Tomcat 9. Tomecat 9 extracted the war file fine, and the HTML files work fine, but anything related to Java servlets fail, as shown below.
Standard Tomcat distribution doesn't support EJBs. Use Tomcat EE for that, see for instance this answer .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.