Author |
Message |
01/04/2019 06:54:40
|
rchiluano
Power User
Joined: 28/12/2017 07:21:54
Messages: 79
Offline
|
Hi captain,
I tried to import an existing project made by captain casa framework(made in windows transferred to linux).
I followed the steps provided from installation guide.
However I encountered an error upon deploying the project.
It seems the action is not detected. It shows an error when the action was triggered.
Here are some of the screenshots attached below.
Regards,
Ryan
|
Filename |
Error_After_Action.png |
Download
|
Description |
|
Filesize |
89 Kbytes
|
Downloaded: |
119 time(s) |
|
Filename |
Image_Not_Displaying.png |
Download
|
Description |
|
Filesize |
61 Kbytes
|
Downloaded: |
269 time(s) |
|
|
|
01/04/2019 07:45:03
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
...difficult to say...! ;-)
Please check the logs, CaptainCasa-log in tomcat/works/Catalina/localhost/<webapp>
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
02/12/2021 11:57:13
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello,
I have got a similar issue like that. On a virtual Linux server, I won’t to run a test application. But I get always the 404 Error for the tomcat server.
“Please check the logs, CaptainCasa-log in tomcat/works/Catalina/localhost/<webapp>”
This directory is empty! In Windows there are some data.
Should I edit the web.xml for Linux?
Thank you
Klas
|
|
|
02/12/2021 13:11:34
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
Hi Klas,
if the direcrtory is empty, then the web application does not start up propertyl at all.
Please then check tomcat/logs/catalina.*.log (newest one)
Kind regards1 Björn
PS: the web application does not require any change when being deployed with Linux. Mabye you are running a different Java version? Or: you run a different Tomcat version e.g. Tomcat 9 in WIndwos and Tomcat 10 in Linux (and Tomcat 10 is the jakarta-version)...?
|
Björn Müller, CaptainCasa GmbH |
|
|
03/12/2021 09:32:12
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hi Björn,
Thank you for your quick answer!
I checked the catalina.log. but I don’t know what I should looking for (there are 1200 lines).
So, I install Tomcat 10 on the Windows machine and the same happen like on Linux (Error 404).
My question is should I update Captain Casa environment?
CCE:
jdk1.8.0_281
Window 10
Apache Tomcat Version 8.0.36
Linux-Server:
Open jdk version 11.0.11
Ubuntu 2.20.04
Apache Tomcat / 10.0.13
Kind regards
klas
|
|
|
03/12/2021 09:40:35
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
Hi,
there was a big/dramatic change in the "JEE" world - the move from "javax" to "jakarta".
Please check: http://captaincasa.org/jakarta-ee
In short: either use Tomcat <= 9 for your project on all platforms, or use Tomcat >= 10 on all platforms - but not at all a mixture. If you use Tomcat <= 9 then use "Javax" variant of CaptainCasa, if you use Tomcat >= 10 then use "Jakarata" variant.
We in general currently see a lot of projects not moving to Tomcat 10 because of this change... which has not be done in many frameworks (including e.g. Spring). So current recommendation would be to stay on "javax"...
Kind regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
03/12/2021 12:10:56
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hi Björn,
Thank you! It runs perfect on Tomcat 9.
Kind regards
klas
|
|
|
|