简体   繁体   English

将动态Web项目导入Eclipse Juno时出错

[英]Error while importing Dynamic Web Project into Eclipse Juno

I'm relatively new to Web Development and I'm facing an issue.I'm trying to import a WAR file into Eclipse Juno and I run into the following error. 我是Web开发的新手,现在遇到了一个问题。我试图将WAR文件导入Eclipse Juno,但遇到以下错误。 I'm using Java 1.6. 我正在使用Java 1.6。

An internal error occurred during: 在以下期间发生内部错误:

"Loading descriptor for CWP.". “ CWP的加载描述符。”。 java.net.UnknownHostException: java.sun.com java.net.UnknownHostException:java.sun.com

Where am I going wrong? 我要去哪里错了?

I was able to find a solution for my question. 我能够为我的问题找到解决方案。 My runtime environment was configured incorrectly to the wrong server since the Dynamic Web Module version was not supported. 由于不支持动态Web模块版本,因此我的运行时环境未正确配置到错误的服务器。 I had to change the Dynamic Web module version in the Navigation view in the file: 我必须在文件的“导航”视图中更改动态Web模块的版本:

org.eclipse.wst.common.project.facet.core.xml org.eclipse.wst.common.project.facet.core.xml

I was then able to choose the appropriate runtime. 这样便可以选择适当的运行时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM