I have a REST webservice written in Java that runs on the Glassfish server, but 
I started having problems with the JDBC pooling system.  It kept crashing, 
saying that it was unable to allocate any more connection objects.  This made 
no sense to me, as I had set the maximum pool size to 1000, and I surely was 
not getting that many simultaneous connections.  Also, I consulted with some 
Glassfish experts at a company called OmniFish, and this didn't help.

So I decided to shift to Tomcat, which doesn't require connection pooling.  I 
have implemented my system in both IntelliJ IDEA and VSCode, with suitable 
changes to make a direct connection to MySQL.  Both of these produce a file 
called HolidaysRESTJSON-1.0-SNAPSHOT.war.  This deploys in Tomcat (I'm using 
tomcat-9.0.107), but when I try to access it with my test URL,

   
http://localhost:8080/HolidaysRESTJSON-1.0-SNAPSHOT/webresources/holidaysandevents/countries

I get a 404 error.  It is supposed to return a list of countries.  This did 
work with my Glassfish version, however.  So it should work with Tomcat.

The question is: Why not?  Is there something wrong with my URL?  How would I 
know?

P.S.: I also tried this with TomEE, with the same results.

Reply via email to