http://hi.baidu.com/yuanygb/blog/item/b7f89b54c1638045d0090642.html

Project facet Dynamic Web Module version 2.X is not supported

WebEclipseSVNJavaJBoss

在Eclipse中用jboss部署项目时遇到了“jboss Project facet Dynamic Web Module version 2.5 is not supported”的问题。

在项目跟目录下的.setting文件夹找到org.eclipse.wst.common.project.facet.core.xml,打开:

Xml代码 
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <faceted-project>
  3. <fixed facet="jst.web"/>
  4. <fixed facet="jst.java"/>
  5. <installed facet="jst.web" version="2.5"/>
  6. <installed facet="jst.java" version="6.0"/>
  7. </faceted-project>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.web"/>
<fixed facet="jst.java"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="jst.java" version="6.0"/>
</faceted-project>

将version="2.5"改成version="2.4"即可。因为web.xml版本是2.4的,需要两者一致,如下:

Java代码
  1. <web-app version="2.4"
  2. xmlns="http://java.sun.com/xml/ns/j2ee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  5. http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

造成这样后果的原因是从SVN上到处eclipse项目时候,连带着将.setting文件下也导下来了。在上传代码到SVN上的时候,一般来说.setting无需上传的,都是在本地由eclipse自动生成的。

文章来源:http://asgab.iteye.com/blog/1028228

----------------------------------------------------------------------------------------------------------------------------------------------

类似问题:

==========================

http://publib.boulder.ibm.com/infocenter/radhelp/v6r0m1/index.jsp?topic=/com.ibm.etools.webtools.doc/topics/twcreprj.html

Creating a dynamic Web project

Show Me

You create and maintain the resources for your Web applications in Web projects. Unlike with static Web projects, dynamic Web projects enable you to create resources such as JavaServer Pages and servlets, and use technologies such as Struts and JavaServer Faces.

To create a new dynamic Web project, complete the following steps:

  1. Open the Web perspective and select File > New > Dynamic Web Project. The New Dynamic Web Project wizard starts.
  2. Type a name for your Web project.
  3. Accept the default value in the Project location field (this is where your project is stored in your file system), or click Browse to choose a location from the file system. Then click the Show Advanced button if the advanced options are not already displayed.
  4. Select the servlet version number. The servlet version determines the server level on which you can run your applications. For example, servlet version 2.4 is only supported on WebSphere Application Server V6 and not on V5. Any new servlets and JSP files that you expect to create should adhere to the latest servlet specification level available. (Previous specification levels are offered to accommodate any legacy dynamic elements that you expect to import into the project).
    Notes:

    • The servlet version determines the choice of target servers that appear in the drop-down list.
    • The following servlet versions correspond to the following J2EE levels:
      • version 2.2 - J2EE 1.2
      • version 2.3 - J2EE 1.3
      • version 2.4 - J2EE 1.4
    • Note that you can upgrade your servlet version using the J2EE Migration Wizard but you can't go revert to an earlier level. For example, if you choose version 2.4, you will only be able to deploy to servers that support version 2.4, such as WebSphere® Application Server V6
  5. Select a target server from the drop-down list or create a new target server by selecting the New button
  6. A new or existing Enterprise Application project (EAR Project) must be associated with your new Web project to facilitate deployment. If you want to override the default settings for the Enterprise Application project, click New, and make your changes. When your Web project is created at the end of the wizard, the new Enterprise Application project is also created with the name specified in the EAR project field. Note that the default is the name of the web project appended with EAR (unless the ear project was selected when you opened the wizard.) If you want to use an existing Enterprise Application project, select the project from the EAR project drop down list.

    If you want to add a Web project as a module to another Enterprise Application project in the future, you can open the application deployment descriptor editor for the Enterprise Application project and select the Add option in the Module page.

  7. Specify a context root. (The context root is the Web application root, which is the top-level directory of your application when it is deployed to the Web server). You can change the context root after you create a project using the project Properties dialog, which you access from the project's pop-up menu. The context root can also be used by the links builder to ensure that your links remain ready to publish as you move and rename files inside your project.
  8. To add support for annotated Java classes, select the appropriate check box.
  9. To specify or customize the project options, such as adding Struts or EGL or Tag library support, select the Next check box .
  10. Select one or more of the Web Project features. The box on the right displays a description of each feature as you select it on the left. The default features are, Default style sheet (CSS file) and web diagram. Accepting the default style sheet creates a default CSS file called Master.css, which is used for any HTML and JSP files included in the project.
    • If you want to create a project that uses Struts technology, select Struts and click Next. Later in the wizard, the Struts Settings page appears in which you can specify the version of Struts technology you want to use in your project, the package prefix, and whether or not you want to bundle the resources.

    Note that although you can select WDO Relational database run-time and other options, you are not required to select these features when you create your Web project. If you add any Faces resources to your Web project, the Faces tools will automatically be enabled.

  11. Click Next.
  12. Select Use a default Page Template for the Web Site if you want your entire Web site to share a common page template. If you want to use one of the sample templates provided, select Sample Template and then choose one of the templates shown in the Thumbnail box. If you want to use a template of your own, select User-defined Template and then click Browse to select the template from the file system. The selected template is copied into your project for use when creating web pages.
  13. Click Finish (or click Next to adjust your Struts settings). The wizard creates a new project that reflects the J2EE folder structure that specifies the location of web content files, class files, class paths, the deployment descriptor, and supporting metadata.

You can now begin creating or importing content for your Web project using Web Site Designer, Web resource editors (such as Page Designer), the New File wizards, or the Import wizards available from the File menu.

Related concepts

Dynamic Web projects and applications
Static Web projects
Annotation-based programming overview

Related tasks

Creating HTML or XHTML files
Creating JSP files
Adding Struts support to dynamic Web projects
Creating well-architected Web applications using Struts
Creating Faces applications - overview
Adding Web annotation tags

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.

dynamic web module 2.5与2.4相关推荐

  1. Maven - Dynamic Web Module 3.0 requires Java 1.6 or newer.

    2019独角兽企业重金招聘Python工程师标准>>> 首先先看一下错误信息: Dynamic Web Module 3.0 requires Java 1.6 or newer. ...

  2. 转eclipse如何修改dynamic web module version .

         --------------------------------------------------------------------------------------------- 原 ...

  3. Failed while installing Dynamic Web Module 2.5. Project facet jst.web.jstl has not been defined.

    问题:用eclipse导入一个myeclipse的web项目后,不能添加到tomcat中,在修改project facets的相关属性时报:Failed while installing Dynami ...

  4. Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案

    Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案 参考文章: (1)Eclipse Maven 编译错 ...

  5. 解决JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer问题

    解决JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer问题 参考文章: (1)解决JavaServer Faces 2.2 re ...

  6. Cannot change version of project facet Dynamic Web Module to 2.5 问题的解决方法

    Description Resource Path Location Type Cannot change version of project facet Dynamic Web Module to ...

  7. eclipse如何修改dynamic web module version

    eclipse如何修改dynamic web module version eclipse如何修改dynamic web module version 一.修改工程属性: 右键eclipse的工程,选 ...

  8. Cannot change version of project facet Dynamic Web Module to 3.0.

    问题描述   Eclipse 新建 Maven Web 项目,修改 Dynamic Web Module 时报错:Cannot change version of project facet Dyna ...

  9. Dynamic Web Module 3.0 requires Java 1.6 or newer

    Description 在使用 Eclipse 创建 Maven 项目的时候报错 Dynamic Web Module 3.0 requires Java 1.6 or newer,已经确认了 JRE ...

最新文章

  1. 2小时演讲,近140页PPT,这个NeurIPS Tutorial真是超硬核的AI硬件教程
  2. 利用nginx和mongrel、unicorn 对puppet进行端口负载均衡
  3. 关于VS附加调试Unity引起卡顿无响应问题
  4. html.编辑数据回显,从HTML表格编辑/更新MySQL数据库值
  5. C++ cin cout
  6. 当当花160买400的书,确定不囤一波?
  7. config设置源 使用pip_python pip源配置
  8. 记录——《C Primer Plus (第五版)》第十二章编程练习第1-8题
  9. 百度地图开发只显示网格不显示地图信息
  10. ubuntu opencv4 需要的依赖
  11. commons-io之FileUtils
  12. floppy计算机专业术语,计算机专业术语解释
  13. wz框架登录功能详解——demo1
  14. MySQL的日志 - relay log
  15. 高德地图 天气java_高德地图API获取天气
  16. 台式计算机截图快捷键,台式电脑怎么用快捷键截图
  17. 测试银行卡号必看(长度限制及卡号字符类型总结)
  18. 监督学习三要素——模型、参数、目标函数
  19. 在线文档查看器GroupDocs.Viewer 9月新版V17.9发布 | 附下载
  20. 【unity shader】基于UGUI字体的outline优化

热门文章

  1. Codeforces Round #552 (Div. 3) —— A. Restoring Three Numbers
  2. ubuntu16.04安装ROS
  3. 【机器视觉】 dev_get_window算子
  4. 【Qt】 XML流读写XML
  5. mysql 分段执行_面试官问你MySQL的优化,看这篇文章就够了
  6. android studio 反编译修改versioncode,在android studio 中修改versioncode 跟versionname(示例代码)...
  7. android查看存储占用,Android获取App内存使用情况的方法
  8. 是什么专业_自考什么专业容易就业
  9. 记录x86调试命令总结
  10. hive(4)——元数据概述