Dynamic Web Module 2.5 and 2.4

Source: Internet
Author: User
Tags svn jboss websphere application server

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

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

Web Eclipse SVN Java JBoss

The issue of "JBoss project facet Dynamic Web Module version 2.5 is not supported" was encountered while deploying the project with JBoss in Eclipse.

In the items and directories of the. Setting folder Find Org.eclipse.wst.common.project.facet.core.xml, open:

XML code   <?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>

Change the version= "2.5" to version= "2.4". Since the Web.xml version is 2.4, it needs to be consistent, as follows:

Java code <web-app version= "2.4" xmlns= "HTTP://JAVA.SUN.COM/XML/NS/J2EE" xmlns:xsi= "HTTP://WWW.W" 3.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 " 

The reason for this is the fact that the Eclipse project is coming from SVN everywhere, even with the setting file. When uploading code to SVN, in general. setting, which is not uploaded, is automatically generated locally by eclipse.

Article Source: http://asgab.iteye.com/blog/1028228

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

Similar questions:


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

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

The Create and maintain for your Web applications in Web projects. Unlike with static Web projects, dynamic WEB projects enable your 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 clic K 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" which you can run your applications. For example, servlet version 2.4 are only supported on WebSphere application Server V6 and not on V5. Any new servlets and JSP files, expect to create should adhere to the latest servlet specification level available . (Previous specification levels are offered to accommodate "any legacy dynamic elements" you expect to import into the P roject).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 Java EE levels:version 2.2-j2ee 1.2 version 2.3-J2EE 1.3 Ion 2.4-J2EE 1.4 Note This can upgrade your servlet version using the Java EE migration Wizard but you can ' t go revert To a earlier level. For example, if your choose version 2.4, you'll be able to deploy to servers, support as 2.4 Here®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 is associated with your new WEB project to Facilitate deployment. If you are want to override the default settings for the Enterprise application project, click New, and make your changes. When your Web project was created at the end of the wizard, the new Enterprise application project are also created with the Name SPECified in the EAR project field. This is the name of the "the" Web Project appended with ear (unless the "ear project was selected" You Opene d The wizard.) If you are want to use a 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 into the future, you can open the app Lication 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 are the top-level directory of your application when it's deployed to The WEB server). Can change the "context root" in the Create a project using the project Properties dialog, which access from the Project ' s pop-up menu. The context root can also is used by the Links builder to ensure, your links remain ready to publish as your Move and R ename 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 bo X. 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 to any HTML and JSP files I Ncluded in the project. If you are 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 t o Use in your project, the package prefix, and whether or don't you want to bundle the resources.

Note This although you can select Wdo relational database Run-time and other options, you are don't required to select these Features when you create your Web project. If you add any Faces your Web project, the Faces tools would automatically be enabled. Click Next. Select use a default page Template for the Web site if your want your entire Web site to share a common page Template. If you are 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 are 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 to your project for use when creating Web pages. Click Finish (or clickNextTo adjust your Struts settings). The wizard creates a new project that reflects the Java EE folder structure that specifies the location of Web content files, class files, class paths, the deployment descriptor, and supporting metadata.

can now begin creating or importing content for your Web project using Web Site Designer, Web resource editors (such a S 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 Tasks
Creating HTML or XHTML files creating JSP files adding Struts support to dynamic WEB projects creating We b applications using Struts creating Faces applications-overview adding Web annotation tags Terms of Use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.