简体   繁体   中英

Web app works fine in Eclipse with Glassfish 4.1 but not when deployed to Tomcat 9

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.

What could I be missing? 在此处输入图片说明

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM