Starting of Tomcat failed from Netbeans

前端 未结 6 1759
星月不相逢
星月不相逢 2020-11-28 21:39

I have problem with starting Apache Tomcat 6 from Netbeans IDE 7.4 (on 7.3 version I had the same troubles. Other people mentioned that this problem exist also in other vers

6条回答
  •  我在风中等你
    2020-11-28 22:04

    It affects at least NetBeans versions 7.4 through 8.0.2. It was first reported from version 8.0 and fixed in NetBeans 8.1. It would have had the problem for any tomcat version (confirmed for versions 7.0.56 through 8.0.28).

    Specifics are described as Netbeans bug #248182.

    This problem is also related to postings mentioning the following error output:

    '127.0.0.1*' is not recognized as an internal or external command, operable program or batch file.

    For a tomcat installed from the zip file, I fixed it by changing the catalina.bat file in the tomcat bin directory.

    Find the bellow configuration in your catalina.bat file.

    :noJuliConfig
    set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
    
    :noJuliManager
    set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"
    

    And change it as in below by removing the double quotes:

    :noJuliConfig
    set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
    
    :noJuliManager
    set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
    

    Now save your changes, and start your tomcat from within NetBeans.

提交回复
热议问题