日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

dynamic web module 2.5与2.4

發布時間:2024/4/17 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 dynamic web module 2.5与2.4 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?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代碼?
  • <?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>??
  • <?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代碼
  • <web-app?version="2.4"? ??
  • ????xmlns="http://java.sun.com/xml/ns/j2ee"? ??
  • ????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"? ??
  • ????xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee???
  • ????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:

  • Open the Web perspective and select File > New > Dynamic Web Project. The New Dynamic Web Project wizard starts.
  • Type a name for your Web project.

  • 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.

  • 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
  • Select a target server from the drop-down list or create a new target server by selecting the New button
  • 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.

  • 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.
  • To add support for annotated Java classes, select the appropriate check box.
  • To specify or customize the project options, such as adding Struts or EGL or Tag library support, select the Next check box .
  • 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.

  • Click Next.
  • 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.
  • 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的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。