[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Deployment of project from windows to linux  XML
Forum Index -> Development
Author Message
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
[Thumb - Error_After_Action.png]
 Filename Error_After_Action.png [Disk] Download
 Description
 Filesize 89 Kbytes
 Downloaded:  52 time(s)

[Thumb - Image_Not_Displaying.png]
 Filename Image_Not_Displaying.png [Disk] Download
 Description
 Filesize 61 Kbytes
 Downloaded:  133 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
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
kklasen

Active

Joined: 19/11/2020 08:33:30
Messages: 17
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
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
kklasen

Active

Joined: 19/11/2020 08:33:30
Messages: 17
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5112
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
kklasen

Active

Joined: 19/11/2020 08:33:30
Messages: 17
Offline

Hi Björn,

Thank you! It runs perfect on Tomcat 9.

Kind regards
klas

 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team