-
You can deploy it with Eclipse's WTP server that comes with it.
Use window->view-> to open the server view, then create a new webserver, you select, and then set the directory you store on it.
Then double-click on the new server in the server view, add your web project to it, and then run (or debug), the access name of the URL on the page is the same as the name of your webmodule.
I can make a sticker, halo.
-
In the Eclipse settings, make sure that the JDK you use for Tomcat is the same as the JDK used by your project, otherwise you may get an error.
JDK settings for Tomcat: Windows Preferences Tomcat JVM Settings
-
First, in Eclipse Windows Preferences Tomcat, set the version of Tomcat and the path of JDK, load the application under the webapp path when Tomcat starts, you move wtwebapp to WebApp, and add wtwebapp to the address bar when accessing it.
-
A common problem for newbies is that projects in Eclipse work fine, but open Tomcat's default welcome page http: localhost:8080 in the browser
A 404 error occurs.
Solving this problem requires a deeper understanding of Eclipse's project deployments.
In fact, unlike MyEclipse, which deploys projects to webapps in the Tomcat installation directory by default, Eclipse deploys projects to the working directory by default. Middle. In other words, when you start and deploy your web project with Eclipse, Eclipse will only extract the core components of Tomcat and build them into Eclipse to complete the deployment, and at this moment, there is no change in the external Tomcat, so there will be a situation where the project is running normally but cannot open the Tomcat's default welcome page.
The specific steps are as follows:
1.Stop the tomcat sever, delete the deployed project, and clear the data.
2.Double-click Tomcat Sever to open the Tomcat Modification screen, find Servers Locations, and select the second option (User Tomcat Installation). Also change the deploy path to webapps.
3.Just save and close.
-
The docbase is the path to the project.
3.In the conf directory, create a new XML file in the Catalina localhost directory (here you need to pay attention to the case of the directory), and name it arbitrarily, as long as it is not the same as the file name in the current file, ** as follows.
The third method is relatively flexible and allows for aliases.
-
1. First of all, create a web project, open Eclipse, find File ->new ->other under the menu bar, and find Web ->Dynamic Web Project in the pop-up box.
3. In the Servers tab below, right-click Tomcat and select Tomcat"add and remove..."。
4. In the next pop-up box, click the project created on the left"add >"to the box on the right.
5. In the Servers tab below, right-click Tomcat and select Tomcat"start", you can see whether tomcat is enabled properly and whether an error is reported.
6. In the browser, access the URL address of the web project.
-
To deploy a project to Tomcat in Eclipse, the first step is to have a Tomcat server and project in Eclipse, and how to deploy the project to Tomcat
-
The steps are as follows:
1. Right-click -new-server in the servers window.
2. Select the Apache option, and then find the version of Tomcat you have installed, for example, mine is Tomcat6.
Click Next after selection.
3. Click Browse, find the home directory of Tomcat6, select the JDK configured by Eclipse or directly default to the following JRE, and then click Next.
4. Add the flying web project that needs to be deployed to the right, and click finish.
-
Right-click under servers, click Configure servers connector, then find Tomcat in it, select the version you installed Tomcat, find the path to add it, click Enable, and then OK. I'll give you a screenshot
-
Eclipse can also deploy web projects to Tomcat:
Right-> run as-->run on server and then configure the server according to the operation, the lower version of Eclipse may require plug-ins, there are many introductions on the Internet. The latest version of Eclipe must be Tomcat 7 and can be used without plug-ins.
In the Problems tab below Eclipse there is a record of all your errors and warnings, you can see the specific reason, the red cross means that there is an error, according to what you said, it is likely that the absolute path was used when importing the external jar package. Follow the prompts in the problems tab, go for it, and if there is, put those packages into the lib of the project and reload them. >>>More
To publish via IIS, if it is not installed, install the IIS component, there is IIS** on the web, and install 5, open VS, and create a new web project. Double-click the default page and set the .
After the maintenance and maintenance of the whole car, select the appropriate road section for test drive, carry out the final inspection of the vehicle, and focus on the following items in the process of test run. >>>More
1.Feasibility reportThe definition and main content of the feasibility report, the definition of the feasibility study report The feasibility study report is to engage in an economic activity Before investment, the two parties should conduct specific investigation, research and analysis from various factors such as economy, technology, production, supply and marketing, to various social environment, law and other factors to determine the favorable and unfavorable factors, whether the project is feasible Estimate the success rate of the magnitude, economic benefits and social effects The report document for the approval of decision-makers and competent authorities. >>>More
After school, the campus is a quiet and peaceful scene, without hustle and bustle, it seems so peaceful. >>>More