When you are doing a Web project recently, you are always following the tomcat5.5 directory
/conf/catalina/localhost to deal with the configuration file for the project.
What is he exactly?
the information obtained from the Internet is sorted as follows:
(3) Establish the ABC catalogue under C:/tomcat 5.5/webapps/, in/conf/catalina/localhost
The following d
This article describes publishing a project by adding a configuration file under the Conf/catalina/localhost directory in Tomcat. Because this is the least invasive of Tomcat, you only need to add a new configuration file, do not have to modify the original configuration, and support dynamic parsing, modify the code directly into effect (except for the modificati
Some time ago, the online server A project memory leak to run a lot of memory, causing the entire server problems, so the memory limit needs to go to do. Change the JVM memory limit under Simple records below:
[Root@21yunwei bin]# cd/usr/local/tomcat_8080/bin/[Root@21yunwei bin]# LLTotal 792-rw-r--r--1 root root 27099 June 16:40 Bootstrap.jar-rw-r--r--1 root root 1647 June 16:41 Catalina-tasks.xml-rw-r--r--1 root root 13372 June 16:40 Catalina.bat-rw
Recently in the study of Tomcat source code, in Catalina. In the Createstartdigester method, the Tomcat developer uses the digester to read the Conf/server.xml file, which was previously read in XML files, typically using dom4j and sax. Because of Digester is unfamiliar, so today took time to study how Digester parse XML file. Let's start with a brief explanation
RT, the following exceptions often occur when using normal means for multiple data source configuration: (long interception, lowest resolution)
The project is configured in Tomcat\cof\catalina\locaihost\webproject.xml, but conflicts occur when there are multiple data sources, which can be configured using the descriptor in Tnsname.ora:
There are many ways to cut Catalian logs, such as shell scripts, cronolog or configuration log4j, and so on. But today I'm going to introduce the use of logrotate to generate logs by date.The original is a foreign blogger's article, here to share to you.If the size of the catalina.out exceeds 2G, Tomcat may crash without error prompting and cannot start. So in order to avoid this problem, we should divide catalina.out every day.How to cut catalina.out
Bea uses Catalina, or Tomcat, to accidentally find a very hidden, perhaps not fatal bug, in the JSP somewhere in the tag if the error, will be in front of the output buffer without an exception exit, rather than in the real wrong place to emit error exception.
10:45 points: But found Formtag to perform an exception exit, and the error log has no output; So decide to turn around and see what's going on first
First timeThis error is the most depressing, because there is no syntax error at all, and everything is correct,Req. getSession (). setAttribute ("isaudit", audit );Req. getSession (). setAttribute ("notaudit", notaudit );Req. getRequestDispatcher ("proposer/applyHistory. jsp"). forward (req, resp );
I send messages through the session on the servlet end, and the other party receives the messages. It seems that there is no error at all, that is, the above exception will occur,Finally, I searche
1-Overview
The script catalina. sh is the most critical script for starting and disabling tomcat servers.In addition, startup. sh and shutdown. sh both use different parameters to call the script.The script is used as follows (derived from the script itself ):
echo "Usage: catalina.sh ( commands ... )" echo "commands:" echo " debug Start Catalina
From: http://cms.tech86.com/templet/default/ShowArticle.jsp? Id = 121605
We can find the answer from the Tomcat 5.5 configuration document (http://tomcat.apache.org/tomcat-5.5-doc/config/host.html:
The description below uses the variable name $ catalina_home to refer to the Directory into which you have installed Tomcat 5, and is the base Directory against which
This error has been depressing for a long time. At the beginning, I went online and found a lot of problems. I thought it was because I was using the latest version of Tomcat, after reading the xml configuration, we can see that the servlet URL-pattern configuration is less than "/". After adding the servlet, the configuration starts successfully!
June 24 5:41:23 org. Apache. Catalina. Core. containerba
Test Tomcat comet
Java. Lang. nosuchmethodexception: org. Apache. Catalina. Deploy. webxml addservlet exception
Because the project uses Tomcat's Catalina. jar and is deployed to Tomcat, this package is also deployed, and an exception is reported during deployment.
2012-7-27 11:44:05 org. Apache.
)
Solution 1:When the project references catalina under lib under the tomcat directory. when you deploy the project to tomcat using myeclipse, the catalina. add the jar package to the lib folder under the project's web-inf, so that this package will be associated with catalina
Recently, due to work requirements, the Catalina. Out file of Tomcat is constantly expanding, which leads to a smaller disk space edge and difficult to manage. Therefore, we want to use a tool to separate it. I found cronolog online.
The installation process is as follows: Download (Latest Version)
# Wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
2. Extract
# Tar zxvf cronolog-1.6.2.tar.gz
3. Go to
Split the catalina. out file in linux, which is generated as a file by nature. linuxcatalina. out
1. Download tool cronolog compressed package (http://download.csdn.net/detail/sunling_sz/8144469)
2. Drag and Drop the file to the server. Any directory can be used.
3. Go to the installation directory of cronolog
# Cd cronolog-1.6.2
4. Run and install#./Configure# Make# Make install
5. Check the directory where cronolog is installed (verify that the in
Modify catalina in windows. sh upload to linux run error This file is needed to run this program solve 1. Found the problem due to tomcat memory overflow, modified catalina in windows. sh, then upload it to the linux server through ssh, and run catalina. sh: Cannot find. /catalina
Java. lang. SecurityException: Filter of class org. apache. catalina. ssi. SSIFilter is privileged and cannot be loaded by this web application, privileged
Error:1 java. lang. securityException: Filter of class org. apache. catalina. ssi. SSIFilter is privileged and cannot be loaded by this web application 2 at org. apache. catalina. core. applicationFilterConfig
caused By:java.lang.NoSuchMethodError:javax.servlet.ServletContext.getVirtualServerName () ljava/lang/string;
ContainerBase.addChild:start:org.apache.catalina.LifecycleException:Failed to start component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]]
Problems with the Tomcat jar package when MAVEN is packagedSpringboot has its own tomcat
to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)The above marked red is two important points: in catalina. jar under the lib directory of tomcat
Specifically, the WebappClassLoaderBase c
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.