Fleeting solution startup tomcat:
-
6
But if you want to double-click Shique startup.bat start flashing in the installation directory of tomcat and over. This is why (tomcat failed to start), will take you immediately look at the specific reasons.
Tools / materials
-
Tomcat
-
notebook
Method / Step
-
Let me begin with confirm prerequisite problems (the native version of java: 1.6.20, tomcat: 6.0.32)
1) When you start tomcat in eclipse which is normal.
2) equipped with various environmental variables in the system as follows:
JAVA_HOME:H:\DevelopTools\Java\jdk1.6.0_20
CATALINA_BASE:H:\DevelopTools\apache-tomcat-6.0.32
CATALINA_HOME:H:\DevelopTools\apache-tomcat-6.0.32
CLASSPATH:.;%JAVA_HOME%;%JAVA_HOME%\jre\lib;
PATH:.;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;
-
We specifically analyze the causes and solutions to problems:
Enter the installation directory of tomcat (ie, place to place after decompression):
See red circle of three bat file, usually started by tomcat startup.bat process is: startup-> catalina-> setclasspath-> catalina
If these three bat file there is an error occurs, then fails to start. To find the cause of a flash of need we have to look at what these three documents which in the end is the
-
First Notepad to open startup.bat, to find the last word :: end, we know the end indicates the end mean,: end is a mark, we add a pause (pauses for meaning) in the back;
Executed again startup.bat, you will see as shown, when we press cmd window when any key is flashed up. But it has been determined that our environment variables are correct.
-
For more detailed information see, let's change the sentence: find the call "% EXECUTABLE%" start% CMD_LINE_ARGS% inside start to be replaced run.
Look at the cmd window inside the output error message:
error occurred during initialization of vm
could not reserve enough space for object heap
could not create the java virtual machine
We generally can be understood as: not enough memory because the requested program initialization, causing vm program exits.
-
Well, since the cause of the problem is found, we can solve this problem: apply enough memory on it
As follows: Execute The Requested Command found in the following in catalina.bat
set JAVA_OPTS this one replaced by:
set JAVA_OPTS= -server -Xms800m -Xmx800m -XX:MaxNewSize=256m
About set JAVA_OPTS fact, this statement there are many alternative ways, but in general are the same
Start again startup.bat we will see the long-awaited screen friends.
Start Success!
Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory
- Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory
Start the server, the above error, because the server (such as tomcat) delete a project, the single remaining profiles not deleted due. The solution is to find a server to find the error message in the corresponding configuration file \ Catalina under conf \ localhost, delete OK, if you have the same name .bak be deleted, restart the server has not given up.
According to this method, it was found localhost folder is empty. This is my Baidu to another method, delete /conf/server.xml in <context> node, and I found a deletion of items related to the <context> in here node, then delete the restart Tomcat problem solved. hope that helps