0
votes

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? enter image description here

1
What is line 32 in Greet.java? - user7294900
Tomcat does not have an EJB container! - Seelenvirtuose
Please post the full stack trace. As the hint states, you can find the full stack trace in the server logs. - vanje
Code is given in zetcode.com/java/ejb. Anyway, line 32 in Greet.java is firstBean.setName(request.getParameter("name")); - AlexScalar
@Seelenvirtuose: That could very well be the reason. Thanks for pointing that out! - AlexScalar

1 Answers

2
votes

Standard Tomcat distribution doesn't support EJBs. Use Tomcat EE for that, see for instance this answer.