Plan to start learning java. First step
1. Create a new server in the Servers window
2. The pop-up interface to select the corresponding Tomcat version
3. Here is the key, existing projects do not select the past, or the last generated server configuration cannot modify the server locations
Note: Although the internet found a lot of on the server configuration right click on clean can be set up afte
Problem: the following problem occurs when you configure the Tomcat runtime environment today,
The catalina_home environment variable is not defined correctlyThis environment variable is needed to run this program
Then the catalina_home environment variable is added, and a new problem occurs.
The java_home environment variable is not defined correctlyThis environment variable is needed to run this programNB: java_home shocould point to a JDK not a JRE
How to manually deploy the Java project corresponding to the war package in Tomcat 7, tomcatwar
We usually deploy projects through IDE, but sometimes we have to perform manual deployment (for example, on the Server ).
Manual deployment involves the following steps:
Step 2: Use maven to pack war (if the obtained war package name is: appkit-web.war)
mvn package
To skip the test during packaging, run the fol
the path of the application, Docbase can use absolute paths, or relative paths, relative paths relative to WebApps;Reloadable: Indicates that the class package can be loaded automatically at run time under the classes and Lib folders. This property is usually set to true in the development phase to facilitate development, and should be set to false in the release phase to increase the access speed of the application;See related documentation for additional properties.3 Adding an XML configurati
Tomcat startup Exception in Struts2: Exception starting filter struts2, a java. lang. ClassNotFoundException, struts2filter
When writing a small example of struts2 + hibernate integration, start the Tomcat server and report:
Severe: Exception starting filter struts2Java. lang. ClassNotFoundException: org. apache. struts2.dispatcher. ng. filter. StrutsPrepareAndEx
about TomcatTomcat is an open source, free, small and medium-sized Web application server under the Apache Open source organization that supports the servlet and JSP specifications in Java EE.installation1, to the official website, select the appropriate version to download2. Install TomcatTomcat has installed version and press release (green version)3. Directory structure4. Start and close
Enter the bin directory./startup.sh//Run
./shutd
1. Configure the Tomcat virtual directoryCreate the folder javaweb on disk D, and then add the WEB-INF folder and its content. Create an index.html page and write anything at will.
Add the following content to the Host node in the full webapps/conf/server. xml file in the tomcat installation path:
Then, enter http: // localhost: 8080/javaweb/in the browser. Oh, too.
2. install
One, Java environment configurationIf the Java configuration environment is in path then please reconfigure the configuration environment below, if so, look directly at the next step;(1) New variable name "Java_home", Variable Value "D:\Program Files (x86) \java\jdk1.8.0_11" (that is, the installation path of the JDK)Path in WIN10 requires a separate edit, Win7 d
Personal blog Address: http://www.cnblogs.com/wdfwolf3/. Reproduced in the source, thank you.Java reflection One is to get the internal structure of the program at run time, and the other is to operate a Java object at runtime. The main uses are the following points:1. Factory mode:Factory class with reflection, after adding a new class, there is no need to modify the factory class Factory 2. Database JDBC through the Class.forName (Driver) to get the
download "Eclipse IDE for Java EE Developers" version, other versions do not meet the needs of subsequent learning Java Web application development TOMCAT is a Java Web running server and a more commonly used Web server installation files: http://tomcat.apache.org/ The next thing to do 1. Install
When Tomcat is started in MyEclipse, java. lang. OutOfMemoryError: PermGen space, permgenspacetomcat is reported.
When Tomcat is started in MyEclipse, java. lang. OutOfMemoryError: PermGen space is reported.
This error is reported when the project is too large. The solution is as follows, not all of which work.1. Win
Summary of Java versions and compatibility supported by Tomcat, tomcatjava
The latest and most comprehensive versions of Tomcat support Java, that is, the compatibility list:
Servlet Spec
JSP Spec
EL Spec
WebSocket Spec
Apache Tomcat version
Actual r
The latest and most complete version of Tomcat-supported Java versions, the Compatibility Checklist:
Servlet Spec
JSP Spec
EL Spec
WebSocket Spec
Apache Tomcat Version
Actual Release Revision Support
Java Versions
4.0
TBD (2.4?)
TBD (3.1?)
TBD (1.
Consistent, value is UTF-82) browser display character encoding consistent with the requested JSP page encoding2. get The Chinese parameter value in the JSP page: the encoding used by the default parameter in transit is iso-8859-11) for post requests: call request.setcharacterencoding ("UTF-8") before getting the parameters;1 2 request.setcharacterencoding ("UTF-8");3 4 %>5Username=Request.getparameter ("username") %> 2) for GET requests:① first get the parameters, then decode, then e
Sometimes obviously on Windows is very normal, and on Linux is not normal, on the Windows post Submission Request.request.getParameter () has a value, and on the liunx there is no value.I started thinking it was my Tomcat version and found that it wasn't, and Tomcat was basically the same on Linux and Windows.This way I suspect that it is not my configuration file error, the Conf server.xml file configurati
After 64-bit jdk7_17 is installed, Tomcat 7 always reports a memory overflow error.
After the adjustment, it still does not work, and has to switch back to the 32-bit JDK.
Adjust the memory Configuration:
export JAVA_OPTS="-server -Xmx1536M -XX:MaxPermSize=512m -Dfile.encoding=UTF-8"
Save as % tomcat_home %/bin/setenv. bat
Parameter description:
-Server
Select the Java hotspot server VM.For more informatio
Installing JDK in Ubuntu is simple.
$ Sudo apt-Get install sun-java6-jre sun-java6-jdkAutomatic Installation of JRE and JDK
Download ant, JUnit, and unzip tomcat to your desired location, under my/home/ycpeng/Java directory
Edit/etc/profile
$ Sudo gedit/etc/profile
Add the following content and change the file directory to your own
# Set Java environmentA
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.