If you would like more detailed installation instructions, please visit Tomcat Eclipse , our illustrated, step-by-step guide to installing WTP for use with a Tomcat server.
Setting up a Runtime Environment in Eclipse basically means telling its engines where to look for your application server, so it can utilize its components and automatically configure your workspace. To configure Tomcat as a new Runtime Environment, select the "Preferences" menu item from Eclipse's "Windows" menu if you are using a Mac, you can find "Preferences" under the main Eclipse menu.
You will be presented with large tree of preferences. Expand the "Server" preferences, and select "Runtime Environments". If this is the first time you have configured an application server in Eclipse, the list will be blank.
On the right hand side of the dialogue box, click the "add" button to call up the "New Server Runtime Environment" dialogue. You will be presented with a tree of application server vendors. Expand the Apache folder, and choose the version of Tomcat you have installed on your system.
You will be asked to provide the path to Tomcat's base directory, as well as the path to the JRE you wish to use. To create a new Tomcat server in Eclipse, navigate to the "Server" tab, which is located in the lower half of Eclipse's development screen by default, and secondary click. You will be presented with a dialogue in which you can configure high-level server setting such as default ports, server name, and host name.
You can also use this dialogue to set your web application deploy path. If you would like more in depth information about setting up Tomcat servers in Eclipse, please visit Tomcat Eclipse , our illustrated step-by-step guide to using Tomcat with Eclipse.
If you wish to integrate your existing Tomcat installation into Eclipse, rather than creating a new instance, follow the same steps as above for configuring a new server, and select "Use Tomcat installation" from the "Server Locations" tab of the Server Configuration menu.
All actively supported versions of Tomcat allow web application Context Descriptors to be configured via context. Eclipse supports this technique natively, but the option is enabled by default, in the interest of greater compatibility. If you wish to store application context information in a location other than "server.
Apache Tomcat includes a version of the Java utility logger called JULI, which is modified for a container-based environment. Next, in the Server Configuration menu, click the "Open launch configuration" link located in the "General Information" tab.
After associating the project with a server, you can begin creating classes and JSP files, editing deployment descriptors, and so on. If you still feel shaky and would like to build a sample servlet with directions to get your feet on the ground, check out this well-written tutorial provided on the Eclipse website, in which you will create a simple browser information servlet.
You can uninstall CE server adapters by selecting either of the followings:. In the New Server panel, click the Download additional server adapters link. Read and accept the license agreement, and click Finish. Click OK to install the server adapter, and restart Eclipse for the changes to take effect. It is highly recommended that you remove all the other available software sites: Click Manage Sites.
Deselect all selected sites. Click OK. Click Add site. Install the WTP server adapters you want. Click Next. Read and accept the license agreement. Click Finish. You will be prompted to decide whether you trust the certificates associated with the CE WTP server adapter.
You can find the details of the certificates by clicking on Details. If you trust these certificates, select the checkboxes on the left, and click OK for the installation to continue.
Otherwise, the installation will fail. You might be prompted to restart Eclipse or RAD for the changes to take effect. Select the WTP server adapter that you would like to uninstall and click Uninstall. It is highly recommended that you disable all the other update sites: Click 'Available Software Sites'. Press Ctrl and select all enabled software updates sites.
Click Disable. Click Add.. You might be prompted to restart Eclipse for the changes to take effect. Find the updatesite. On the Add Site panel, click Local Or you can create a new local archived site from the.
0コメント