Windows Tomcat start failed command 127.0.0.1 could not be found

I just installed Tomcat 7 on my Windows machine and tried to fire it up through Netbeans. But instead of a running server, I just got an error message that command 127.0.0.1 could not be found (Localized error message: Der Befehl “127.0.0.1” ist entweder falsch geschrieben oder konnte nicht gefunden werden.).

I remember that I read about it in a Tomcat bugtracker (but can’t find it any more). Well the solution is pretty simple:
Just open [tomcat home]\bin\catalina.bat and remove the “-characters from lines 196 and 201 (in the code snippet below it’s line 1 and 6):

set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%

if not "%LOGGING_MANAGER%" == "" goto noJuliManager
set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%

Comments

5 responses to “Windows Tomcat start failed command 127.0.0.1 could not be found”

  1. Dieter Theiler Avatar
    Dieter Theiler

    Thx, works out fine!

  2. Franz Avatar
    Franz

    Danke, hat wunderbar funktioniert. 🙂

  3. ConquerorsHaki Avatar
    ConquerorsHaki

    kann es leider nicht speichern, Berechtigungen setzen konnte ich auch nicht…seltsam

    1. Franz Avatar
      Franz

      Texteditor als Administrator gestartet?
      So ist es bei mir nie ein Problem.

  4. Fabian Sellemond Avatar
    Fabian Sellemond

    Thank you! Works fine.