Eclipse - No server found in Run Configurations

ぐ巨炮叔叔 提交于 2019-12-07 11:45:25

问题


I'm having a trouble: I've got a GlassFish Server configured in Eclipse. Now, I need to add a project to its classpath: I go to Run Configurations -> Glassfish -> "Glassfish 3.1.2. at localhost" (the current server). Now, as you can see from the image attached, I cannot select any server as it seems there's no server in the dropdown menu.

I'd like to select the server and then go to "Classpath" and add the project... Anyone can help me?

What sounds strange to me is that when I run my web app, it runs on that server... So why can't I see it from Run Configuration?

Thanks to anyone can help, AN


回答1:


You likely a target runtime configured for GlassFish, but not a server instance. The launch configurations dialog isn't the right place for managing your servers. You need to do this via Servers view. In the Servers view, you can create a new server instance, assign projects to it, start/stop server, publish, etc.

If the Servers view is not visible for you currently, find it via Window -> Show View.



来源:https://stackoverflow.com/questions/11144068/eclipse-no-server-found-in-run-configurations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!