tomcat home 404 causes and solutions

Fleeting solution startup tomcat:

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

 
  1.  

    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;

    Fleeting solution startup tomcat: [1] earlier
  2.  

    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

    Fleeting solution startup tomcat: [1] earlier
  3.  

    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.

    Fleeting solution startup tomcat: [1] earlier
    Fleeting solution startup tomcat: [1] earlier
    Fleeting solution startup tomcat: [1] earlier
  4.  

    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.

    Fleeting solution startup tomcat: [1] earlier
    Fleeting solution startup tomcat: [1] earlier
  5.  

    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!

     

    Fleeting solution startup tomcat: [1] earlier
    Fleeting solution startup tomcat: [1] earlier
     

 

Document base E:\apache-tomcat-6.0.37(32)\webapps\xxx does not exist or is not a readable directory

Original  June 30, 2014 10:59:22
  • 15700

 

[plain]  view plain  copy
 
  1. 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

Published 22 original articles · won praise 0 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_41969813/article/details/80057701