Since the Eclipse project was generated with the 'wtpversion' flag,
it will be immediately recognized as a web application by Eclipse. If
this is your first time deploying web applications in Eclipse, you will
need set up your Tomcat server. To do this in Eclipse:
- Navigate to "Window -> Show View -> Other..."
- Open "Server" and select "Servers". This will open a "Servers" tab, probably in your bottom tab panel.
- Right-click in the new "Servers" tab and select "New -> Server"
- Select the version of Tomcat you installed and click "Next"
- Click "Browse" and locate your Tomcat installation, and click "Next"
- If "myportlet" isn't already in the "Configured projects" column, move it over and click "Finished"
- Right-click on the 'myportlet' project in the "Project Explorer" and select "Properties"
- Click on "J2EE Module Dependencies
- Click on the checkbox next to "M2_REPO/portlet-api/portlet-api/1.0/portlet-api-1.0.jar"
- Click "OK"
- Right-click on the 'myportlet' project in the "Package Explorer" and select "Run As -> Run on Server"
- Select the Tomcat server you set up and click "Finish"
No comments:
Post a Comment