Я искал в Stack Overflow и не нашел ответа на эту проблему. Я вижу другие похожие вопросы, которые несколько отличаются (они связаны с ошибкой кода 0, у меня — ошибка кода 1).
Я использую это для создания службы:
https://tomcat.apache.org/tomcat-7.0-do ... g_services
Код: Выделить всё
tomcat7 //IS//Tomcat7 --DisplayName="Apache Tomcat 7" \
Код: Выделить всё
Windows could not start the Apache Tomcat 7 on Local Computer. For
more information, review the System Event Log. If this is a
non-Microsoft service, contact the service vendor, and refer to
service-specific error code 1.
Код: Выделить всё
The Apache Tomcat 7 service terminated with service-specific error Incorrect function..
Если я запускаю Tomcat вручную с помощью файла Startup.bat, он запускается правильно.
Подробнее здесь: https://stackoverflow.com/questions/324 ... in-windows
Мобильная версия