Eclipse - 运行配置中找不到服务器 [英] Eclipse - No server found in Run Configurations
问题描述
我想选择服务器,然后转到Classpath并添加项目...任何人都可以帮助我?
对我来说听起来很奇怪,当我运行我的网络应用程序时,它运行在该服务器上...那么为什么我不能从运行配置看到它? / p>
感谢任何人都可以帮助,
AN
您可能是为GlassFish配置的目标运行时,但不是服务器实例。启动配置对话框不是管理服务器的正确位置。您需要通过服务器视图执行此操作。在服务器视图中,您可以创建一个新的服务器实例,为其分配项目,启动/停止服务器,发布等。
如果服务器视图不可见你目前通过窗口 - >显示视图找到它。
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
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.
这篇关于Eclipse - 运行配置中找不到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!