Build the Tomcat + JSF + ant + eclipse development environment in Ubuntu

Source: Internet
Author: User

JDK installation is not required ..

1. Go to http://tomcat.apache.org/tomcat-7.0-doc/index.htmlto download the atatapp server. The app I use is 7.0.

2. Download The jsf-impl.jar and jsf-api.jar from the Internet these two JSF implementation jar package, put in the tomcat_home/lib/directory

3. Go to http://ant.apache.org/download the Apache-ant build tool.

4. Configure the environment variable ant_home to your ant installation directory. Add the $ ant_home/bin directory to the path.

5. Download The JBoss-tools plug-in and install it correctly.

Create a project:

1. Open eclipse and select "JSF project" under JBoss-tools-Web/JSF/in the Project Wizard"

2. Modify the Web. xml file and set <URL-pattern>*. JSF</Url-pattern> changed to <URL-pattern>*. Faces</Url-pattern>

3. Modify the build. properties file in the ant/directory and add deploy. dir = Your tomcat installation directory.

Now, you can run the ant command in the ant/directory under the project directory to deploy the project.

In the browser, enter: localhost: 8080/your project/page. Faces, ApplicationProgramIt starts.

If a class not found error occursPlace the jsf-impl.jar and jsf-api.jar in the WEB-INF/lib directory of the project directory.

Related Article

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.