CATALINA_HOME sifatida ocholmaydigan nuqta (:) belgisi mavjud

Men boshlang'ich ssenariyasini ishlatishga harakat qilaman, lekin men CATALINA_HOME ichidagi nuqta borligini ko'rmoqdaman, lekin buni men tomosha qilish yo'lidir.

Boshqa savollarda CATALINA_HOME ni o'rnatish uchun misollar shu jumladan shunga o'xshash narsalarni ko'rmayapman.

MINGW64 dan foydalangan holda Windows-da ishlayapman va JAVA_HOME-ni o'rnatdim.

$ ./startup.sh
Using CATALINA_HOME:   C:\projects\apache-tomcat-8.5.11
Unable to start as CATALINA_HOME contains a colon (:) character

Buning oldidan kimdir kelishyapti?

2

7 javoblar

Bu xabar bilan men uchun bir muammo:

[email protected] MINGW64 /g/dev
$ catalina.sh
Using CATALINA_HOME:   G:\dev\apache-tomcat-8.5.12-windows-x64
Unable to start as CATALINA_HOME contains a colon (:) character

Solution:

CATALINA_HOME kodini : dan foydalanmasdan belgilang:

enter image description here

Shundan so'ng, ish natijasi:

[email protected] MINGW64 /g/dev
$ catalina.sh
Using CATALINA_BASE:   \dev\apache-tomcat-8.5.12-windows-x64
Using CATALINA_HOME:   \dev\apache-tomcat-8.5.12-windows-x64
Using CATALINA_TMPDIR: \dev\apache-tomcat-8.5.12-windows-x64/temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.8.0_121
Using CLASSPATH:       \dev\apache-tomcat-8.5.12-windows-x64/bin/bootstrap.jar:\dev\apache-tomcat   -8.5.12-windows-x64/bin/tomcat-juli.jar
Usage: catalina.sh ( commands ... )
commands:
  debug             Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  jpda start        Start Catalina under JPDA debugger
  run               Start Catalina in the current window
  run -security     Start in the current window with security manager
  start             Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop              Stop Catalina, waiting up to 5 seconds for the process to end
  stop n            Stop Catalina, waiting up to n seconds for the process to end
  stop -force       Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running
  stop n -force     Stop Catalina, wait up to n seconds and then use kill -KILL if still running
  configtest        Run a basic syntax check on server.xml - check exit code for result
  version           What version of tomcat are you running?
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is d   efined

[email protected] MINGW64 /g/dev
$

Eslatma:

catalina.sh faylida quyidagini topasiz:

# Ensure that neither CATALINA_HOME nor CATALINA_BASE contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $CATALINA_HOME in *:*)  
   echo "Using CATALINA_HOME:   $CATALINA_HOME";
   echo "Unable to start as CATALINA_HOME contains a colon (:) character";
   exit 1;

Shunday qilib, yo'g'on ichakni ajratib olish muammoga aylandi.

1
qo'shib qo'ydi

Bu xabar bilan men uchun bir muammo:

[email protected] MINGW64 /g/dev
$ catalina.sh
Using CATALINA_HOME:   G:\dev\apache-tomcat-8.5.12-windows-x64
Unable to start as CATALINA_HOME contains a colon (:) character

Solution:

CATALINA_HOME kodini : dan foydalanmasdan belgilang:

enter image description here

Shundan so'ng, ish natijasi:

[email protected] MINGW64 /g/dev
$ catalina.sh
Using CATALINA_BASE:   \dev\apache-tomcat-8.5.12-windows-x64
Using CATALINA_HOME:   \dev\apache-tomcat-8.5.12-windows-x64
Using CATALINA_TMPDIR: \dev\apache-tomcat-8.5.12-windows-x64/temp
Using JRE_HOME:        C:\Program Files\Java\jdk1.8.0_121
Using CLASSPATH:       \dev\apache-tomcat-8.5.12-windows-x64/bin/bootstrap.jar:\dev\apache-tomcat   -8.5.12-windows-x64/bin/tomcat-juli.jar
Usage: catalina.sh ( commands ... )
commands:
  debug             Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  jpda start        Start Catalina under JPDA debugger
  run               Start Catalina in the current window
  run -security     Start in the current window with security manager
  start             Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop              Stop Catalina, waiting up to 5 seconds for the process to end
  stop n            Stop Catalina, waiting up to n seconds for the process to end
  stop -force       Stop Catalina, wait up to 5 seconds and then use kill -KILL if still running
  stop n -force     Stop Catalina, wait up to n seconds and then use kill -KILL if still running
  configtest        Run a basic syntax check on server.xml - check exit code for result
  version           What version of tomcat are you running?
Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is d   efined

[email protected] MINGW64 /g/dev
$

Eslatma:

catalina.sh faylida quyidagini topasiz:

# Ensure that neither CATALINA_HOME nor CATALINA_BASE contains a colon
# as this is used as the separator in the classpath and Java provides no
# mechanism for escaping if the same character appears in the path.
case $CATALINA_HOME in *:*)  
   echo "Using CATALINA_HOME:   $CATALINA_HOME";
   echo "Unable to start as CATALINA_HOME contains a colon (:) character";
   exit 1;

Shunday qilib, yo'g'on ichakni ajratib olish muammoga aylandi.

1
qo'shib qo'ydi

Agar siz Windows-ning bosh mashinasida git bashdan foydalansangiz, "./startup.sh" o'rniga "./startup.bat" ni yozishingiz kerak.

1
qo'shib qo'ydi

Agar siz Windows-ning bosh mashinasida git bashdan foydalansangiz, "./startup.sh" o'rniga "./startup.bat" ni yozishingiz kerak.

1
qo'shib qo'ydi

Agar siz Windows-ning bosh mashinasida git bashdan foydalansangiz, "./startup.sh" o'rniga "./startup.bat" ni yozishingiz kerak.

1
qo'shib qo'ydi

Yarat faylini to'g'ridan-to'g'ri ishlatish o'rniga, ushbu papkada buyruqlar oynasini ochishga harakat qiling (ctrl tugmachasini bosib, agar siz bilmasangiz, bu erda "Buyruza oynasini oching" papkasini o'ng tugmasini bosib turing)

catalina.bat ishga tushirish

U ishlayotganiga qarang.

0
qo'shib qo'ydi
Bu savolga javob bermaydi
qo'shib qo'ydi muallif HDJEMAI, manba

Yarat faylini to'g'ridan-to'g'ri ishlatish o'rniga, ushbu papkada buyruqlar oynasini ochishga harakat qiling (ctrl tugmachasini bosib, agar siz bilmasangiz, bu erda "Buyruza oynasini oching" papkasini o'ng tugmasini bosib turing)

catalina.bat ishga tushirish

U ishlayotganiga qarang.

0
qo'shib qo'ydi
Bu savolga javob bermaydi
qo'shib qo'ydi muallif HDJEMAI, manba