ObjectiveThe company has been using the traditional Tomcat to drop the war package architecture system, with the increase of the project, the number of servers, the need to spend a lot of time on different server system environment issues. In order to advance the technology and the operational efficiency of the work, the author introduced the Docker container deployment mode, through the Gitlab+jenkins+harb
First of alldowloadSource and import intoEclipseIn,The level of code code after the import is as shown. Let's take a quick look.TomcatThe structure of the source code.javaxThis package is mainly aboutjava EENormative, such asServletWait, it's not our main analysis. Need to analyze aOrg.apacheSub-Package under,whichCatalinais important in thatTomcatThe boot is in the package under theStartupUnder the bag,catalina also defines tomcat
Tomcat can be started with port 80, but the browser does not display the tomcat homepage, 80 tomcat
1. Open and run (ctrl + r)-> Enter cmd-> OK-> enter netstat-ano
Result: Port 80 is occupied by system,
Open the process and find that it is occupied by the reference program with PID 4 (system process (pid = 4) occupies port 80)
Ii. Solutions
Open Cont
Booting Tomcat under Eclipse failed, prompting the Tomcat server configuration at \servers\tomcat v7.0 Server at Localhost-config is missing. Check the server for error.
The reason is that the server was mistakenly deleted in the project area.
The workaround is to delete tomcat and reconfigure it.
By the way to
ExceptionJava. Lang. illegalargumentexception: document base *** does not exist or is not a readable
This is because the project is deleted in webapps but not in the corresponding working directory.
Confirm 3:1. The war file of this project is removed from *** \ apache-Tomcat-6.0.16 \ webapps;2. Some configurations of this project are removed from *** APACHE-Tomcat-6.0.16 \ work \ Catalina \ localhost;3. T
Through Nginx reverse proxy, will not get the real IP, is to obtain the Nginx IP, to get the real IP to be configured nginx configuration file: nginx.conf
Proxy_set_header X-real-ip $remote _addr;
For example:
######################################################################## #要转发地域名: Upstream t.csdn.com { server 192.168.1.188:8080 max_fails=0 weight=1; #8080为tomcat端口 }#################################################################
method to see how to parse Server.xml), the context is initiated by the parent container host during Tomcat startupWell, see this picture to find déjà vu, the drop, is the context of the initialization, because in Tomcat a context instance represents a webapp, so in fact, the application WebApp release itself is the context of the initialization and start, And l
Kubernetes-initial experience of Google distributed container Technology
Kubernetes is an open-source container Cluster Management System of Google. The four features of the distributed service framework written a few days ago mentioned that a good distributed service framework needs to be implemented.
Service configuration management. Including service discovery, Server Load balancer, and service dependenc
Tomcat configuration file description, tomcat configuration file
I have never noticed the role of the configuration file in the conf directory of tomcat in the past tomcat usage. It is the idea of "tailism" and has never been studied in depth. However, I recently encountered many problems related to
= "Tomcat"/> Userusername= "both"Password= "Tomcat"Roles= "Tomcat,role1"/> Userusername= "Role1"Password= "Tomcat"Roles= "Role1"/>The solution is as follows:After the empty line commented out the configuration is released, the warning as above disappears.Reason IntroductionImage matchingLogin username and password ar
The main function of Tomcat is to provide Servlet/JSP containers. Although it can also be used as an independent Java Web server, it can process static resources (such as HTML files or image files) at a high speed, and the Web server management functions provided are not as good as other professional HTTP servers, such as IIS and Apache servers.
Therefore, Tomcat is often integrated with other HTTP servers
Tomcat Overview
Tomcat is a good servlet container based on Sun's JSWDK (Javaserverweb Developmentkit, a small servlet/jsp debugging tool launched by Sun), Tomcat itself is written entirely in the Java language. Tomcat is a software project for the Apache Open source softwa
1. What is Tomcat
Tomcat is a jsp/servlet container. As a servlet container, there are three modes of operation: a standalone servlet container, a servlet container within the process, and a servlet
Docker is based on the Linux kernel, in the current mainstream Linux system, have already native support Docker and the experience is also the best, of course, in the Windows platform and MacOS system also support Docker, You just need to use virtualization tools like Boot2docker to provide Linux support.
The following focuses on the two types of creating Docker mirror based on the start of the container differences, interested friends can follow the
starts to work (in fact, the work is still a working thread, but the business logic written in the application is executed), parse request parameters, process business processes, and generate response6. Worker thread A sends response back to the sending end of the request.
The servlet specification regulates the communication between applications and containers. To put it simply, for example, if you use SpringMVC to write a web application, springmvc complies with servlet specifications, so
Get the latest code SVN update -- username % svn_user % -- password % svn_password %>"../% LOG_FILE %" Back up Tomcat sitesMD"% App_root % \ backup \ % mvn_profile %-% cur_date %-% myran %">"% LOG_FILE %"Xcopy"% App_root % \ % mvn_profile %" "% App_root % \ backup \ % mvn_profile %-% cur_date %-% myran %"/S>"% LOG_FILE %" Compile code You must call the CMD Cal command L. Otherwise, the maven command will exit the entire bat directly. This problem has
/root/software
# ls
apache-tomcat-7.0.67.tar.gz jdk1.7.0_79.tar.gz
The initial command indicates that once the container is started, the command that needs to be run is used "/bin/bash", which means that it goes directly into the bash shell when it starts.
2.5 Installing software
To build a Java Web run environment, you need to install JDK and Tomcat, and
1: Download eclipse Java EE Development Platform address: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ Luna/sr1/eclipse-jee-luna-sr1-win32.zip
2: Download tomcat Web container address: http://tomcat.apache.org/download-80.cgi
3: Install Tomcat
3.1: Download install Java Run or development environment JDK or JRE address: ht
C3P0 Also
A better idle connection processing mechanism
Support JMX
Support for XA Connection
The advantages of the Tomcat JDBC pool are much more than this, see here for details. The Tomcat JDBC pool can be used directly in Tomcat or in standalone applications. Methods for direct use in Tomcat: Data
Problem: I took an eclipse Maven project with my colleague and imported an error, mainly showing a child container failed during startSpecific errors are as followsJune 02, 2018 12:08:50pm Org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [Setpropertiesrule]{server/service/engine/host/context} Setting ' source ' to ' org.eclipse.jst.jee.server:UcomWechat 'Did not find a matching property. June02, 2018 12:08:50pm Org.apache.catalina.star
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.