Hello Amn, When you say that you want to do it in NetBeans I assume that you mean for executing the project. If that is the case you need to do three things:
1 - To install the Tomcat server and configure it on NetBeans in the Servers section, if you do not have it yet. 2 - Choose it as the target server in the project properties. 3 - Add to the project the libraries that Glassfish may provide as a full stack Javax/Jakarta server, that Tomcat does not have. Which ones to add would depend on your project necessities. I recommend you to start just adding the Javax or Jakarta platform and then the rest as the errors start cropping in execution, to avoid including anything unnecessary. IMPORTANT: The version of Tomcat to use is affected by the version of the EE Framework you are using. If you are still in JavaEE, you need to use a Tomcat version older tan Tomcat10. Tomcat10 needs JakartaEE libraries to work directly. You can adapt a JavaEE application using the Tomcat migration tool, but that is an extra step that you need to do manually over the generated war before deploying, so it is an added complication to a quick testing environment. I hope this helps you! On Sat, 14 Jan 2023 at 16:49, Laszlo Kishalmi <laszlo.kisha...@gmail.com> wrote: > Open the project properties and on the Run card select Tomcat as server > instead of Glassfish. > > On 1/14/23 06:27, Amn Ojee Uw wrote: > > I have a small project that uses Glassfish server, however, I would > > like to change the server to Tomcat; how do I do that in NetBeans 16. > > > > Any suggestions would be much, much appreciated. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: users-h...@netbeans.apache.org > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >