如何配置Eclipse(Kepler)以使用Wildfly [英] How configure Eclipse (Kepler) to use Wildfly

查看:415
本文介绍了如何配置Eclipse(Kepler)以使用Wildfly的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与JBoss 7.1一起使用的Eclipse动态Web项目,但是现在我想尝试Wildfly版本.我可以将新服务器定义为Wildfly,但是我的Project的javax.servlet导入无法解析,因为构建路径中没有服务器. (我最初有JBoss 7.1,但是为使用Wildfly做准备而删除了它.)但是,当我访问项目的Properties> Java Build Path> Libraries> Add Library> Server Runtime时,我有一个空列表.我看不到如何将Wildfly放入此列表,以便可以将其添加到Build Path来解决javax.servlet导入.

I have an Eclipse Dynamic Web Project that I have used with JBoss 7.1 but I now want to try the Wildfly release. I can define a new server as Wildfly but my Project's javax.servlet imports are unresolved because I do not have a server in the Build Path. (I originally had JBoss 7.1 but removed that in preparation for using Wildfly.) However, when I access my Project's Properties > Java Build Path > Libraries > Add Library > Server Runtime I have an empty list. I cannot see how to get Wildfly into this list so that I can add it to the Build Path to resolve the javax.servlet imports.

有人可以告诉我该怎么做吗?

Can someone tell me how to do this?

谢谢. 铝

推荐答案

您必须为wildfly服务器创建服务器运行时环境.转到窗口-首选项-服务器-运行时环境,然后单击添加按钮.然后从jboss社区中选择wildfly 8运行时(实验性).如果看不到wildfly 8的条目,请转到Eclipse市场,并为开普勒安装最新的jboss工具(JbossAS).

You have to create a server runtime environment for the wildfly server. Go to window - preferences - servers - runtime environments and click the add button. Then choose from jboss community the wildfly 8 runtime (experimental). If you don't see the entry for wildfly 8, go to the eclipse marketplace and install the latest jboss tools (JbossAS) for kepler.

创建wildfly的运行时环境后,必须在服务器视图"中创建一个新的服务器"(右键单击并说新建-服务器").然后选择jboss社区wildfly 8服务器类型,然后在下拉框中选择先前创建的wildfly 8运行时.

When the runtime environment for wildfly is created, you must create a new "server" from within the "Servers View" (right click and say new - server). Then choose the jboss community wildfly 8 server type and in the drop down box choose the previously created wildfly 8 runtime.

在那之后,您应该能够启动wildfly服务器(到目前为止尚未部署).成功完成后,您将能够将服务器运行时添加到项目的构建路径.

After that, you should be able to start the wildfly server (without deployments so far). When this is successful, you will be able to add the server runtime to the build path of your project.

如果根本无法选择运行时环境,请尝试创建一个新项目.从Eclipse中删除项目(不删除磁盘上的内容),并手动删除.project和.classpath.然后使用动态Web项目向导重新创建项目,然后选择wildfly 8运行时作为目标运行时.

If the runtime environment is not selectable at all, try to create a new project. Delete the project from eclipse (without deleting contents on disk) and remove the .project and .classpath manually. Then recreate the project using the dynamic web project wizard and select the wildfly 8 runtime as target runtime.

这篇关于如何配置Eclipse(Kepler)以使用Wildfly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆