1. Configure the Tomcat sysdeo plug-in to the tomcat installation directory (Window -> Preferences-> Tomcat).
2. Tell the created project that it is a web project based on the sysdeo plug-in (Project-> right-click Properties-> Tomcat).
The context name item corresponds to path, and the subdirectory to set as Web application root item corresponds to docbase. If it is not set or set to backslash/, docbase = "F: /Eclipse/workspace/JBoss-seam-JPA ".
<Context Path = "/JBoss-seam-JPA" reloadable = "true"
Docbase = "F:/Eclipse/workspace/JBoss-seam-JPA/webcontent"
Workdir = "F:/Eclipse/workspace/JBoss-seam-JPA/Work">
</Context>
3. Now update/define the context of the project in Tomcat (Server. Xml/orProject-Name. XML will be updated)
Note:
1. If you right-clickProjectNoTomcat ProjectIs not configured in step 2.
2. This configuration is not suitable for myeclipse. If myeclipse is used, noTomcat Project.