1. Modify Tomcat's Server.xml
Url= "Jdbc:oracle:thin:@192.168.3.250:1521:devdb" username= "xxx" password= "xxx" maxactive= "10"maxwait= "-1"/>
2. Copy the driver jar of the corresponding database to Tomcat's lib directory
Remember, easy to search, more detailed configuration see the following links:
Http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
Error cause:Port 8080 is occupied by other applications!Solution:Step 1: run the command: netstat-anoActive connectionsPROTO local address foreign address State PIDTCP 0.0.0.0: 8080 0.0.0.0: 0 listening 656TCP 0.0.0.0: 8080 0.0.0.0: 0 listening 656It can be seen that the PID of the Process occupying port 8080 is 656Step 2: run the command prompt Symbol: tasklistImage name PID session name session # memory usage=========================================
1. Root directory
Appbase= "WebApps" Then there is a root directory below WebApps (must be capitalized), and the virtual directory is the same as root.
2. Manager directory and Host-manager directory.
If you put your app directly under Webapps/root and you have the manager directory in your webapp, then you must have an error accessing it because Tomcat has created two virtual directories by default:
Week 6 Project 1-deep replication experience (2) (3), week 6 experience
Problem
(2) What will happen if I remove the line in which the comment (a) is located? Why? Why does the storage space occupied by a data member increase by 1 Based on the aa length? If pointer a does not point to a character (that is, it is no
6-2. string identifier. modify the idcheck of Example 6-1. PY script to detect the identifier with a length of one and identify the python keyword. For the latter requirement, you can use the keyword module (especially the keyword. kelist) to help you.
Import stringfrom keyword import iskeywordnums = string. digitscharacters = string. Letters + '_' def check (
Tomcat is an excellent Jsp/servlet container that was originally developed by Sun and later contributed to the Apache community. Tomcat now has a version of 6. TOMCAT6 implements the Servlet2.5 and JSP2.1 specifications. More new features are available for Web development and Web services. This article uses a version of Tomcat6.0.14, which requires a minimum of 1
Build JEESZ distributed architecture 2 -- install Tomcat 7 (Environment preparation) and jeesztomcat7 in CentOs
Declaration: Because the runtime environment is based on the Linux system, some preliminary environment preparations are required before the framework is implemented.Many instances of Tomcat 7 are installed in CentOs. As the post-blog serves as the nati
In the previous "Step by step" tomcat+mysql for their own app to build server (2-1) servlet usage We simply have a general understanding of what the servlet is doing, the position in the server, and finished in a brand new WorkSpace When you create the first Dynamic Web Project and create the first Servlet that resolves the common problems that you may encounter during the solution, there is still a lot of
Package com; public class test {public static void main (string [] ARGs) {system. out. println (getsteps1 (); system. out. println (">>>>>>>>>>>>>>>>>>>>>>>>>>>>"); system. out. println (test. getsteps (); system. out. println (">>>>>>>>>>>>>>>>>>>>>>>>>>>> ");} public static int getsteps () {// use the minimum public multiple to reduce the number of traversal times. Int I = 1; int step = 2; Boolean maxstep = false; while (true) {system. Out. Print ("
Problem description: there are now n ordered arrays in M groups, such as {1, 2, 3, 4}, {2, 3, 6}, {1, 3, 5, 7 }, select the data smaller than K in these arrays and return this value.
Idea: Compare the minimum data selected each time by referring to the process of merging two Arrays
1. Define the selection position array index [m], initialized to 0
2-6 Sayings 2: Repeat exercise 2-5, but store the name of the celebrity in the variable Famous_person, and then createTo display the message and store it in the variable message, and then print the message.'Albert Einstein'a person whonever made a mistake never tried anything new.' Print (Famous_person +" once Said,\""
Ping An Technology Mobile Development Team 2 technology weekly (Phase 6), Team 2 sixthPing An Technology Mobile Development Team 2 technology weekly (Phase 6) industry news 1) WWDC 15 press conference
After a funny rehearsal video of different past styles, WWDC 2015 kicked
CLR. via. C # Part 2 Part 2 Section 12th generic Reading Notes (6 ),
Finally, we talked about generics. When I first saw this title, I wanted to see the author's understanding of generic, delegate, and reflection concepts. Many people's understanding of generics remains on the generic set. At the beginning, I started to understand generics more and more.
The con
When the value is 6, 2, 9, 13, and 19, cate_noin (2) cannot be found. a field in the table named cate_no is of the string type. When the cate_no nbsp; value is nbsp; 6, 2, 9, 13, 19 nbsp. SELECT nbsp; * nbsp; FROM nbsp; member nbsp; WHERE nbsp; cate_no nb value =
Java interview question: if an array [2, 4, 6, 2,] is known, sort the Array (in descending order, the tool class cannot be used for sorting) and create two threads to output the sorted array alternately, thread name customization,
Package com. swift; import java. util. arrays; import java. util. comparator; public class ArrayThread_Test {public static void main (
Chapter 2 attracting your attention-UI programming (6) and Chapter 2 ui2.2 highlight your personality-custom UI Components
Many times, common Android controls cannot meet our needs. To attract more attention and achieve unconventional results, we can define various controls by ourselves. We can override some links by inheriting the basic controls. Of course, we c
)-firewall configuration
3. (3) deployment of the Linux environment (Centos + Nginx + Tomcat + Mysql)-deployment of the Nginx Environment
4. (4) Linux environment deployment (Centos + Nginx + Tomcat + Mysql)-install Tomcat and JDK and integrate Nginx with Tomcat
5. (5) Linux environment deployment (Centos + Nginx +
Install/integrate/configure Tomcat 5.0.20 and Apache 2 in Linux
PrefaceOfficial WebsiteHttp://jakarta.apache.org/tomcat/connectors-doc/2004/11/15/has announced that JK2 will not be further developed.The reason is that the installation and configuration of JK2 are complex and difficult to attract developers' interest. (Note: JK2 is still usable, not to mention any
Tomcat, the comments of server. xml include examples of SingleSignOn Valve configuration. You only need to remove the comments to use them. Therefore, any user who has logged on to an application is equally valid for all applications on the same virtual host.
Using single sign-on valve has some important restrictions:1> value must be configured and nested in the same Host element, and all web applications that require spof (must be defined by the con
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.