0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[備忘録]Wagbyが起動しない  XAMPP(のTOMCAT) が起動しない

Posted at

WagbyDesignerが起動しない

WagbyDesigner が起動しない理由の一つに環境変数で、CATALINA_HOMEが設定されていると動かないとある。

環境変数 CATALINA_HOME または TOMCAT_HOME が設定されていると起動が行えないことがあります。この環境変数を削除してください。

XAMPP のTOMCATが起動しない

TOMCATのStartボタンを押すと下記のエラーが表示され、起動できない。

10:25:31 AM [Tomcat] Attempting to start Tomcat app...
10:25:33 AM [Tomcat] Tomcat Started/Stopped with errors, return code: 1
10:25:33 AM [Tomcat] Make sure you have Java JDK or JRE installed and the required ports are free
10:25:33 AM [Tomcat] Check the "/xampp/tomcat/logs" folder for more information

TOMCATのStartボタン押下

理由の一つに環境変数で、CATALINA_HOMEが設定されていないと動かないとある。
https://stackoverflow.com/questions/34069038/trying-to-get-tomcat-running-with-xampp

問題点

Wagbyは環境変数があると動かないし、XAMPPは環境変数がないと動かないので、いちいち環境変数を設定しなければならない。

とりあえずの解決策

XAMPP側のcatalina_start.batを直接たたくと下記のエラーになるので、

C:\xampp\tomcat>call "C:\xampp\tomcat\bin\setclasspath.bat" run
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program

JRE_HOME を設定してから呼び出してあげるbatを作る(かcatalina_start.batを編集する)。

my_catalina_start.bat
set "JRE_HOME=C:\Program Files\Java\jre1.8.0_251"
call .\catalina_start.bat

これでこのバッチをたたけばXAMPPで利用しているTOMCATが起動できるようになった。
(XAMPPのStartからは起動できないけど。)

TOMCAT停止も同じくbatを用意してあげる。

my_catalina_stop.bat
set "JRE_HOME=C:\Program Files\Java\jre1.8.0_251"
call .\catalina_stop.bat
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?