Used to use TOMCAT4, but the new version comes out always makes people want to try all of a sudden. And in looking at the Xunlei when they found that the call with Ajax feel good, the afternoon finally can not bear under the load. I feel good. You can choose to discard the ASP, the tutorial to share the above. One of the issues I've seen during installation and commissioning is sharing. Several ports (8005,8080,8009) required by Tomcat v5.5 Server@localhost are. The server may already is running in another process,or a system process may is using the port. To start this server you'll need to stop the other process or change the port numbers. Then change other unused ports. Tomcat under the Server.xml folder in the <connector port= "8088" maxhttpheadersize= "8192" maxthreads= "minsparethreads=" maxsparethreads= "75" Enablelookups= "false" redirectport= "8443" acceptcount= "100" connectiontimeout= "20000" disableuploadtimeout= "true"/> After practice, it is found that the port can be given 80 Use the Cn_aports.exe tool to see what software is taking up the port, in fact, use the Win+r key and then in the inside type Netstat-ano can see the situation of the port is occupied, in view of the task manager inside the PID this is not I said it. or Oracle occupancy but my port is being tomcat. Haha, it's not coming out of faith.Configuring the Environment WINDOWS XP SP2 JDK 1.6 TOMCAT 6.0 ECLIPSE 3.3 Lomboz 3.3
I. Installation and configuration of JDK (JDK1.6) (1) Download JDK Toolkit (JDK1.6) at the Java official website Http://java.sun.com/javase ...
(2) Execute installation files, as shown
(3) Configure the Java Runtime Environment: Start-Control Panel-performance and maintenance-system-Advanced or right-click My Computer-Properties-Advanced, C-C
Go to the Environment variables interface and select the Path option in system variables
Enter your JDK installation directory (%java_home%/bin,%java_home% JAVA installation directory) to the bin directory at the initial end of the variable value item, note: Do not forget the semicolon.
(4) test "Start"-"Run"-"cmd"-"java-version" to view your current JDK version
Create a document in the C-packing directory, type the following statement (figure), and save it as a Java file, note that the class name must be the same as the saved document name and is case sensitive.
Test the Java file you just wrote (figure) in command line mode, and run successfully displays Hello world!
Two. Tomcat6.0 's Ann (1) Download Tomcat installation package Http://tomcat.apache.org/d ...
(2) Execute installation files, as shown
(3) Test (Close Tomcat server after test finishes) Execute the Tomcat6w.exe (%tomcat_home% for Tomcat installation directory) under the%tomcat_home%/bin directory, click Start to start the Tomcat server.
Open the browser, enter in the Address bar: http://localhost:8080 running successfully, the following screen appears
PS: Tomcat In the example is a Windows Service Installer (. exe) program that requires no additional configuration after successful installation.
Three. Installation of Eclipse (Eclipse3.3) and Lomboz (Lomboz3.3) (1) Download Eclipse and Lomboz package (Eclipse and Lomboz version number must match, or an error will be raised) Http://forge.objectweb.org ...
(2) Execution procedure (use directly after decompression, no installation required), as shown
Note: the "lomboz" option is not available in the Eclipse preferences interface above Lomboz3.1 version
Four. Installation and configuration of Tomcat plug-in (1) Download tomcatpluginv321.zip, in view of the official website cannot visit, can go to Baidu, Google search, the following address for reference only Http://d.download.csdn.net ... (need to register first)
(2) Extract the Tomcatpluginv321.zip to the Plugins folder in the Eclipse installation directory
(3) Restart Eclipse in command line mode (start in-clean mode)
(4) Configure Tomcat version and Tomcat home (refer to its own installation path) Open Eclipse, select "Window"-"Preferences"-"Tomcat"
Five. Integrated environment Test (JSP program) Create a new project Open Eclipse, select ' File '-' New '-' Project '-' Web '
Enter project name test, click Finish
Create server, select "File"-"New"-"Other"-"server"
Create JSP file, select "File"-"New"-"Other"-"Web"
Enter file name
Edit a JSP file, as shown in
Open the server and right-click to select Start
Run the server and choose Run-run as-run on server
Open the browser, enter http://localhost:8080/Test/Test.jsp in the Address bar, and then display the following screen
Note: Case sensitive |