Today we have a very strange problem, debugging in Eclipse, running the project all right, all the coding of the project is a unified UTF-8. However, there was a Chinese garbled character when deploying to Tomcat on its own.Solution SolutionsThe first step: Ensure that the project, JSP page, database encoding unified use UTF-8.Step Two: Modify the Tomcat parameters
First place
Tomcat 6.0 and Windows server2003 servers are installed on the machine. The following message is displayed at each startup:
TheApache Tomcat native LibraryWhich allowsOptimal PerformanceIn production environmentsWas not foundOn the java. Library. Path
The solution is as follows:
The so-calledApache Tomcat native LibraryIt is actually called Apr:Apache Portable
Set the tomcat administrator password and tomcat administrator password
Open conf In the tomcat installation directory, and then open the tomcat-users.xml
Add tags
Statement
As shown in the following figure.
Tomcat administrator password added (modified)
Copyright
Tomcat multi-domain configuration and Tomcat Domain ConfigurationEnvironment
One tomcat, multiple projects are deployed below
There is an independent IP Address
Multiple top-level (second-level) domain names direct to different projects.
DNS Configuration
DNS has no special requirements. You only need to point all configurations to this IP address.Tomcat conf
Error: Server Tomcat v7.0 server at localhost failed to start.Alas!!!! Image upload not up, sad AH!!! You can only write the wrong words first ~ ~ ~Workaround:1, in Eclipse, Openthe "Server" tab.2. Double Click on the ' Tomcat6 ' entry to see the configuration.3. Then click on the "Open launch Configuration" link in the "Information" block.4, in the dialog, select the "Classpath" tab.5. Click the "ADD external jar" button.6. Select the file "/usr/s
Tomcat server learning and use (1), tomcat serverI. Package Java Web Applications
In Java, use the "jar" command to package a Java Web application into a War package. The jar command is used as follows:
Example: SetHeThis JavaWeb application is packaged into a war package.
After execution, you can get a file. After developing a Java Web application, the Java Web application is usually packa
Tomcat's JSP Engine and tomcat JSP Engine
The jasper component of tomcat must be used to parse jsp files into class files.Jasper is the JSP Engine Used in tomcat, and Jasper 2 is used in Tomcat 6. Compared with the original version, Jasper has made many improvements, such: JSP Tag Buffer Pool, background compilation,
/alibabakeyImport certificates for the client's JVMImport the certificate into the JVM, the KeyStore password entered here is ChangeitKeytool-import-keystore D:\Application\Java\jre7\lib\security\cacerts-file F:/keys/alibaba.crt-alias AlibabaTomcat Configuration Server Release NotesTomcat uses the apache-tomcat-7.0.67 versionLocate the Server.xml file to the Tomcat installation directory D:\Application\apac
Solution: Open the server view of Eclipse, double-click the tomcat you configured, open the edit window, view the server locations, and see if the first option is selected (the first option by default), which is the Use workspace metadata ( Does not modify Tomcat instation),You should choose the second option, use Tomcat installation. Then you can start the servi
Modify the Tomcat port, the Server.xml file in the Conf directoryFor example, if you want to modify the port to 8080, change the value of port to 8081, and the remaining value will be unchanged.Access via Tomcat serverTo access this page through a browser, you need to configure the relevant path in Tomcat:Find the conf directory for Tomcat and have a file called
Web development in eclipse typically runs the project directly from the Tomcat server in eclipse, sometimes after the program and page has been modified and the result is the originalA program or page that is cached in a Tomcat server needs to be cleaned up before it can be modified correctly.The tomcat server configured in Eclipse is cached in the Workspace\.m
Start the Tomcat times error with Eclipse's Tomcat plugin:FATAL ERROR in native method:jdwp No transports initialized, Jvmtierror=jvmti_error_internal (113)Error:transport error 202:connect failed:connection timed out ["transport.c", L41]ERROR:JDWP Transport Dt_socket failed to initialize, Transport_init (510) ["Debuginit.c", L500]JDWP Exit Error Jvmti_error_internal (113): No transports initializedAnd then
1. Software versionapache-tomcat-7.0.55Eclipse-standard-luna-r-win32-x86_642.eclipse configuration Tomcat7 Successful, start TOMCAT7Visit 127.0.0.1:8080Report the following error HTTP Status 404-/Error reason: Eclipse changed the Tomcat Web deployment directory by default when integrated.Select the newly configured Tomcat, right-click the popup menu, and tap open
Small program now Fire Ah, the company also need to engage. To request a free certificate from Aliyun, you may have to support HTTPS and now configure your notes as follows:
The contents of the certificate downloaded from Ali include: Pfx,pem and key three files.
The SSL configuration for Tomcat is divided into two scenarios: using APR and not APR, the SSL configurations vary between the two cases.We can find the configuration methods in these two ca
Tags: work other font page application Server startup structure user technology sharingI. INTRODUCTIONTomcat is a core project of the Apache Software Foundation (Apache Software Foundation) Jakarta Project, developed by Apache, Sun, and other companies and individuals.Tomcat server is a free open source Web application server, belongs to the lightweight application server, in small and medium-sized systems and concurrent access users are not widely used, is the first choice to develop and debug
1. Download the latest Eclipse Java EE version, as: http://www.eclipse.org/downloads/, note that you must choose Java EE version,2.Tomcat download, link to: http://tomcat.apache.org/3. Download the Eclipse Tomcat plugin as: http://download.csdn.net/detail/longshengguoji/78727834. Unzip the downloaded plugin and copy the jar file to the plugin folder in the Eclipse directory5. Restart Eclipse and you will fi
1. First, make sure that you have installed jdk and set the JAVA_HOME environment variable. Then
1. First, make sure that you have installedJdk
With settingsJAVA
_HOME
Environment variable.
ThenHttp://tomcat.apache.org/
DownloadApache-tomcat-6.0.35.tar.gz,
I move it/Usr/local/webserver/
Then
Enter
Run
Code:
[Plain]
1. sudo tar apache-tomcat-6.0.35.tar.gz zxvf
Get a folderApache --
Tomcat server Learning 1: tomcat server Learning
1. server port configuration
1. All tomcat configuration files are in the conf folder.
2. How to modify the server port:
File: server. xml
3. tomcat server default port: 8080, changed to 80 for direct access in the browser without adding a port number
Ii.
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.