WTP (web tools platform) is a tool set for developing J2EE Web applications. myeclipse, which has been used for a long time, is easy to replace. Over the past few days, there have been a bunch of plug-ins, I will write my experiences one by one to reference an official introduction: the eclipse web tools platform (WTP) project extends the eclipse platform with tools for developing web and Java EE applications. IT administrators des source and graphical editors for a variety of ages, wizards and built-in applications to simplify development, and tools and APIs to support deploying, running, and testing apps. more User Manual: Butler eclipse-SDK-3.3.2-win32WTP version wtp-sdk-M-2.0.3EMF version emf-sdo-xsd-SDK-2.3.2 (WTP dependency) GEF version GEF-SDK-3.3.2 (WTP dependency) Other plug-ins omitted
1.Install WTPPlug-insOmitted2.Configure Web ServerWindow-> preferences-> server-> instaled runtimes-> Add add a web server such as tomcat6
3.Create WTPEngineeringFile-> Web-> dynamic web project-> Add project name-> check Java and dynamic web module-> enter context information-> finish-> Create a JSP file for testing, it is best to write a Java class and call it in JSP to test the single-step tracking.
4.Publish an applicationWindow-> show view-> Other-> server-> servers right-click the servers view-> New-> server-> select the Web server configured in step 2-> next> select the WTP project created in step 3-> finish. In the servers view, right-click the Web server you just created-> Publish-> Start or debug-> open the browser and test it, run the breakpoint test debug again, which is no problem at all, and there is no problem with basic hot deployment.
5.WTPDeployment principlesI thought that the file was copied to Tomcat when the WTP application was released. The result was not as follows. Later, I suspected that the conf/Catalina/localhost was dynamically specified, how is it released? In the JSP write code test, <% = com. syj. testwtp. class. getclassloader (). getresource ("") %> result: file:/D:/syj. work/syj. workspace/WS1 /. metadata /. plugins/org. eclipse. WST. server. core/tmp0/wtpwebapps/test11/WEB-INF/classes/the original file is synchronized to the workspace. under metadata. D:/syj. work/syj. workspace/WS1/is my workspace test11 is the project I used for this test. It seems that WTP did not use tomcat to start batch processing but directly called Tomcat Bootstrap. jar deletes all the files in the tomcat/bin directory and only keeps the following five jar files. WTP still works. Bootstrap.jartomcat-native.tar.gztomcat-juli.jarjsvc.tar.gz commons-daemon.jar
6.Convert an existing project to WTPWebProjectThrough file comparison and a series of attempts, I finally found out the following simple method to modify it. add <nature> Org. eclipse. WST. common. project. facet. core. nature </nature> <nature> Org. eclipse. WST. common. modulecore. modulecorenature </nature> <nature> Org. eclipse. jem. workbench. javaemfnature </nature> Add <buildcommand> <Name> Org. eclipse. WST. common. project. facet. core. builder </Name> <arguments> </buildcommand> <Name> Org. eclipse. WST. validation. validationbuilder </Name> <arguments> </buildcommand> right-click to refresh the project and choose Project> Properties> Project facets> modify project panel, select Java and dynamic web module. The next step is to configure context root and content directory and source code path-> finish.
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.