×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / help! my tomcat can't work
    It works normally before! when I enter startup under d:\tomcat\bin ,it should open another window for me,and it means the server is started,but today the second window just appear half second and disappear quickly, I can't open the local host,it seems the server is not been started. is there any person has encountered the same situation? how to solve the problem?Thanks!
    • To fix the problem, you need modify %TOMCAT_HOME%/bin/tomcat.bat first
      Open that tomcat.bat file. Originally, it popup a new Window because
      there is a "start" word before " java .....". See the following:
      ------------------------------------

      echo Starting tomcat in new window
      echo Using classpath: %CLASSPATH%
      start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
      goto cleanup

      ------------------------------------

      This "start" word create a new window for you. If your Tomcat is healthy, this window hand up always.

      Now your Tomcat is sick, so the popup window dies away. TO shoot the problem, please remove "start". Then, start Tomcat again----your window
      will stay there so that you can read all the exception message.

      I do believe you will know what's wrong once you have luxury to read exception messages.

      Good luck, my friend!
      • yes,it works,thank you jabber!