Understanding of the Web project execution process, including 1 HTTP URL 2 html, servlet, JSP 3 Tomcat and so on. The entire execution of the Web project, starting with an HTTP request such as Http://localhost:8080/test/login.action:
1 There are three main forms of HTTP URLs
1, info:maximum number of threads ($) created for connector with address null and port 8091Description: The maximum number of threads is wrongSolution:Using a thread pool to handle more access with fewer threads can improve the ability of Tomcat to process requests. How to use:First of all. Open/conf/server.xml, add
Executor name="Tomcatthreadpool" nameprefix="catalina-exec- "
maxthreads= "minsparethreads=" maxidletime= " 60000" />
I. Problems Found
Info: Maximum number of threads (200) created for connector with address null and port 8080
The maximum number of threads is incorrect.Solution: Use a thread pool to process more requests with fewer threads, which can improve Tomcat's ability to process requests.
Ii. Usage
Open/CONF/server. xml and add
Maxthreads = "500" minsparethreads = "20" maxidletime = "60000"/>
The maximum number of
Running error: java.net. BindException: Address already in use: JVM_Bind
To modify the Tomcat port number, follow these steps:1. Find the conf folder in the Tomcat directory.2. Go to the conf folder and find the server. xml file.3. Open the server. xml file (select notepad to open the file)4. Find the following information in the server. xml file:
Figure 1: 8080 modify
Figure 2: 8005 modify
Figure 3: 8009 modify
5. For example, change port = "
When the above error occurs, you need to configure the policy file and write a crossdomain. put the XML file in the root directory of the site, that is, http: // localhost: 8080/crossdomain. where XML can be accessed,
The content of crossdomain. XML is as follows:
Write "*" of the domain attribute to the IP address that can be accessed. In to-ports, "*" is written to the port. The problem can be solve
To modify the Tomcat port number steps:1. Locate the Conf folder in the Tomcat directory2. Go to the Conf folder and locate the Server.xml file.3. Open the Server.xml file (open with select Notepad)4. Find the following information in the Server.xml fileFigure 1:8,080 ModifyingFigure 2:8,005 ModifyingFigure 3:8,009 Modifying5. For example: Change port= "8080" to port= "8088" and save6. Launch Tomcat and enter http
Http: // localhost: 8080/phpmyadmin cannot be opened. what should I do if http: // localhost: 8080/phpmyadmin cannot be opened? is there a domain name for IIS configured, PHP has also come to this version nbsp; after finding it online, the primary automatically checks HTMLcode first to check whether apache is working.
"context root Url:/web" setting determines what you use to access it, such as: This is the http://localhost:8080/web/ X.jsp to visit, note that the "Web" is the value following the context root URL
Second Scenario: Deployment issues
Encounter this problem is more tangled, yesterday to help students get the time is to encounter this problem, no "deployment" results every time open is not open, remember mu
first, under normal circumstances, we successfully installed Tomcat, in the browser input http://localhost:8080 can normally open the kitten page, but sometimes because of the Tomcat version or computer system reasons, unable to open the page.
second, can not open the reasons for many, the following simple explanation of the solution:
"Workaround One"
The computer must have JDK installed, and if your comp
1. Use Netstat to view the usage of port 8080:Netstat-ano | findstr 8080The result is:The last column represents the process PID using port 8080, and if the return result is null, the description is not used.2. You can use Takslist to view information about processes that correspond to process numbersTasklist/fi "pid eq 10876"Results:3. Force an end to the proces
Http: // localhost: 8080/displays the description of Oracle, localhostoracle
Enter http: // localhost: 8080 to display the tomcat homepage. After checking, environment variables in jdk, tomcat, and oracle are set correctly. However, after installing oracle, enter http: // l
Symptom:
Tomcat can start normally in eclipse, and access to http://localhost:8080/in the browser is not accessible and is reported as 404 errors. Other project pages are not accessible at the same time.
Close Tomcat inside Eclipse and double-click Startup.bat under the Tomcat installation directory to manually start the Tomcat server. Access to htt://localhost:8080
Question: Start the Tomcat times error, and keep on going
Exception in Thread "Http-bio-8080-exec-2" Java.lang.OutOfMemoryError:PermGen
Exception in Thread "http-bio-8080-exec-3" Java.lang.OutOfMemoryError:PermGen
Exception in Thread "http-bi
I downloaded a Tomcat 7.0.56 version, after configuring the environment variables, directly run the bin directory Startup.bat, in the browser input http://localhost:8080,tomcat can start normally, you can see the kitten.
After that you want to integrate Tomcat into eclipse, that is, add the downloaded Tomcat to Window>preferences>server>runtime environment, run the display startup success without loading
Http: // localhost: 8080/displays Oracle instructions
Enter http: // localhost: 8080 to display the tomcat homepage. After checking, environment variables in jdk, tomcat, and oracle are set correctly. However, after installing oracle, enter http: // localhost:
Most of the reasons for the lack of access are due to changes in the configuration of TNS in Oracle.
The cause of TNS configuration problems may be: 1. Computer Name 2 was modified. Modified the IP
The default Oraclexe launches Oraclexetnslistener and oracleservicexe two services.
Oraclexetnslistener is Oracle's listening service, without which it will not be able to access the database, can not access the Http://127.0.0.1:
An error occurred while booting Tomcat in MyEclipse, with the following error message:Critical: Failed to initialize end point associated with Protocolhandler ["http-bio-8080"]This is caused by a 8080 port conflict.After you turn off MyEclipse, open Task Manager and end the process with the name Javaw.exe. Then turn MyEclipse back on and start Tomcat.This problem
The following two errors occur when you reinstall Tomcat today: 1. it can be started successfully, but error 8080 is reported when accessing http: // localhost: 404/, 2. the selected server is enable, ....... Error 1: the root folder is missing in the webapp file under my tomcat installation file. Root is also a web project, but this is the built-in tomcat. The last "/" in the
I'm just depressed. The Tomcat server was launched in Eclipse and displayed correctly, but how to get to the Web page is to access the http://localhost:8080 404 error "The following figure:
But if you start Tomcat manually (not in Eclipse), and then enter http://localhost:8080/, you can look at the kitten again. Dep
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.