2013年11月17日星期日

Urgent ! Configuration tomcat7 , double-click startup.bat flashed gone. Seeking help !

Urgent ! Configuration tomcat7 , double-click startup.bat flashed gone. Seeking help !
settings : CATALINA_HOME D: \ Java \ tomcat7
JAVA_HOME D: \ Java \ jdk1.7
PATH D: \ Java \ jdk1.7 \ bin ;% CATALINA_HOME% \ lib;% CATALINA_HOME% \ lib \ servlet-api.jar;% CATALINA_HOME% \ lib \ jsp-api.jar
CLASSPATH.; D: \ Java \ jdk1.7 \ lib \ tools.jar; D: \ Java \ jdk1.7 \ lib \ dt.jar
Double-click startup.bat start tomcat, flashed gone. Please enlighten master , where is the problem ?
------ Solution ---------------------------------------- ----
do not know where the problem lies , but know how to find the answers. Open a cmd, terminal run D: \ Java \ tomcat7 \ bin \ startup.bat, there will be an error of
------ Solution ---------------- ----------------------------
environment variable should be a good reason for it not configured . You javac, java command did not succeed ?
------ Solution ---------------------------------------- ----
see log log , there are some error messages
------ Solution ------------------------ --------------------
through the command line to start startup.bat will not be fleeting , what error will be reported out ; assuming tomcat placed in : C: \ tomcat7 \ bin
Here is the console command
C: ENTER
cd tomcat7 \ bin Enter
startup.bat Enter
this time will start, put out an error report .
There are many reasons for the error in the occupied port number , path does a good job and so on, in order to remedy the error only watched

------ For reference only ---------------------------------- -----
been online . Passing all Manga .
------ For reference only -------------------------------------- -
PATH configure tomcat 's bin directory , bin directory is the command. There is the potential to modify the configuration file will be the case .
------ For reference only -------------------------------------- -
javac, java command is executed successfully
------ For reference only ---------------------------- -----------
for the machine to reconfigure the one , good. I wasted a couple of hours . Really depressed !
First, install JDK 1.7
1, add the environment variables: In My Computer - > Properties - > Advanced - > Environment Variables
2, the new system variable , the variable name : JAVA_HOME variable value : C: \ Program Files \ Java \ jdk1.7.0 (JDK installation directory )
3, in the original system variable Path followed by a semicolon , and then add % JAVA_HOME% \ bin;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ jre \ bin; do not delete the original . See, semicolon between them , are in English semicolon.
4, restart the computer into effect ( because adding a system variable , if your system is win7, you do not need to restart ) .
4, test JDK is installed successfully , run -> cmd -> D: into the D drive , enter the command javac out a lot to see whether , came out then the JDK configuration was successful.
two , Tomcat 7.0 Installation and Configuration
1, Tomcat 7.0 installation -free version of the configuration ( if the Tomcat unzip to C: \ Program Files directory , the directory structure : C: \ Program Files \ apache-tomcat-7.0.11
1, add the environment variables: In My Computer - > Properties - > Advanced - > Environment variable
2, the new system variable , the variable name : CATALINA_HOME variable value : C: \ Program Files \ apache -tomcat-7.0.11 (Tomcat extract to a directory ) .
3, at the very end of the system variable Path Add % CATALINA_HOME% \ lib;% CATALINA_HOME% \ lib \ servlet-api.jar;% CATALINA_HOME% \ lib \ jsp-api.jar Note the semicolon between them , must be in English semicolon.
4, Tomcat 7.0 configuration administrator , enter C: \ Program Files \ apache-tomcat-7.0 .11 (Tomcat directory ) under the conf directory , edit tomcat-users.xml, find the last :
< ! -





- >
in the above paragraph on the back to add :




red for added parts. It should know that we add to the administrator's user name and password is the number of the bar !
5, into the Tomcat directory under the bin directory , double-click the Start Tomcat startup.bat ; the command line prompt window will come out in English .
6, browser, enter : http://localhost:8080 can see the Tomcat welcome page on the configuration was successful , click on the upper right corner manager connection , enter the above configured user name and password , you can

------ For reference only ---------------------------------- -----
  This reply was moderator deleted at 2012-09-04 09:32:30

------ For reference only ---------------------------------- -----
encountered new situations , tomcat startup , the results can not open the page http://localhost:8080 . However, after analysis, problem solved. Cause the LAN . Workaround say now , for the future to help novices learn .
1. would cost localhost for the IP address.
2.IE browser Tools / Internet Options / Connections / LAN Settings, below for the address of the proxy server does not use a proxy server marked with check mark on OK.
------ For reference only -------------------------------------- -
previously angered environmental variables are wrong ....
------ For reference only ---------------------- -----------------
ah 11th floor is the fundamental solution , but usually so few mistakes, not the environment variable is the port occupied type of problems
------ For reference only ----------------------------------- ----
I also encountered the same problem, but tried the method you said , can not be resolved , then help !
configuration tomcat7 , double click startup.bat flashed gone.
settings : classpath:.;% java_home% \ jre \ lib \ rt.jar;% java_home% \ lib \ dt.jar;% java_home% \ lib \ tools.jar;
java_home: C: \ Program Files \ Java \ JDK1.7.0_45
path:.;% java_home% \ bin;% java_home% \ jre \ bin;

Double-click startup.bat start tomcat, flashed gone. Please enlighten master , where is the problem ?
------ For reference only -------------------------------------- -
can add a pause in start.bat inside view exception

没有评论:

发表评论