I had the same problem when I tried to open the Java web service application and was able to solve it by trying several things. For a Java web service application, several causes of the problem may occur. You may already have the EJB and EAR plugin installed, but Netbeans may not know the web server that will be used to run your application. Perhaps he complained that โone or more of the projects did not have a proper destination serverโ when the project was opened. To solve this problem, you need to designate a web server for the project. This should be done not only for the main project, but also for the required projects, on which the main project depends.
First you need to make sure that you have opened not only the main project, but also the necessary projects. To open the necessary projects, right-click the name of the main project in the main projects window and select "Open necessary projects" โ "Open all projects". Once opened, project names can be colored red in the project window to indicate a problem.
To use a web server, you must have it installed. I chose Glassfish. Download and install Glassfish from https://glassfish.java.net/download.html if you have not already done so. Also install the "Glassfish Server" plugin for Netbeans, if it is not already installed.
Now, in the Netbeans project window, right-click on the projectโs main name and select "Resolve the missing solution problem." If a "Glassfish server" appears in the pop-up window that appears, select it and click "OK." If you do not see it, click "Add Server", then select "Glassfish Server" and configure the Glassfish Server. Here you need to provide the installation directory of your Glassfish server, but I just used the default values โโfor the rest. Later I used the username "admin" with an empty password to start the project. Also follow the same steps to resolve the missing server for all necessary projects.
source share