Steps to follow.
Install Eclipse 3.3 Europa version.
Download http://www.eclipsetotale.com/tomcatPlugin.html version tomcatPluginV321.zip
Unzip and copy the contents i.e folder/not the contents of the folder -com.sysdeo.eclipse.tomcat_3.2.1 into eclipse plugin folder.
Start eclispe – In eclipse Windows-> Preferences set Tomcat 5.x and the root directory of the tomcat ie youpath/Tomcat5.5
Create a new Tomcat Projects from New->Projects->Tomcat Projects.
In Root folder place index.jsp
<html>
<body>
Hello
</body>
</html>
In web-inf folder place
<?xmlversion="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app 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/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Welcome toTomcat</display-name>
<description>
Welcome to Tomcat
</description>
<welcome-file-list>
<welcome-file>index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
Start Tomcat Server from Eclipse.
Access the webpage as http://localhost:8080/TestTomcat/ -- TestTomcat is the my Tomcat project which we created in step 5.
Also you can create a war file and place it in your specified folder by right clicking the project and Tomcat Project ->Export war.
But first you will have to do the settings by rightclicking Tomcat Project->Properties->Export war configuration.
Install Eclipse 3.3 Europa version.
Download http://www.eclipsetotale.com/tomcatPlugin.html version tomcatPluginV321.zip
Unzip and copy the contents i.e folder/not the contents of the folder -com.sysdeo.eclipse.tomcat_3.2.1 into eclipse plugin folder.
Start eclispe – In eclipse Windows-> Preferences set Tomcat 5.x and the root directory of the tomcat ie youpath/Tomcat5.5
Create a new Tomcat Projects from New->Projects->Tomcat Projects.
In Root folder place index.jsp
<html>
<body>
Hello
</body>
</html>
In web-inf folder place
<?xmlversion="1.0" encoding="ISO-8859-1"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app 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/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Welcome toTomcat</display-name>
<description>
Welcome to Tomcat
</description>
<welcome-file-list>
<welcome-file>index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
Start Tomcat Server from Eclipse.
Access the webpage as http://localhost:8080/TestTomcat/ -- TestTomcat is the my Tomcat project which we created in step 5.
Also you can create a war file and place it in your specified folder by right clicking the project and Tomcat Project ->Export war.
But first you will have to do the settings by rightclicking Tomcat Project->Properties->Export war configuration.
No comments:
Post a Comment