War File Issue

60 views
Skip to first unread message

Hamza AIT Ahmed

unread,
Aug 4, 2024, 1:54:17 PM8/4/24
to OpenOlat
Hi,

i had a problem when i generate war file , the war file build successfully but without classes ( ClassesFileEmpty.jpg ) to generate war file a use Maven Build --> clean install ( MavenBuild.jpg ) .

i'm using ubuntu 22.04.4 LTS , Tomcat 10.1.26 , VMWare 17 and for openolat V19.1a 
for installation i followed this video ( Link Bottom ) i did the same steps and i can run it .


Thanks in advanced .MavenBuild.jpg
classesFolderEmpty.jpg

Stéphane Rossé

unread,
Aug 5, 2024, 1:43:25 AM8/5/24
to OpenOlat
Hi,

The classes are packaged in a JAR in the WEB-INF/lib folder. It's named openolat-lms-19.1-SNAPSHOT.jar

PS: 19.1 is the development branch and will constantly change. I strongly recommend you to use the 19.0 branch which is meant for production. 

Best regards
Stéphane Rossé

Hamza AIT Ahmed

unread,
Aug 5, 2024, 6:36:59 PM8/5/24
to OpenOlat
Hi,
Thanks for your reply.

Thanks for your recommendation, I did all that, but there is still one problem , when i start the app in Tomcat they show me a message ( FAIL - Application at context path [/openolat-lms] could not be started ) i'm using Tomcat 10.1.26 and also i try it in Tomcat 9.0.91 but i had the same problem , and when i check catalina.out i found many execption like :
05-Aug-2024 15:01:59.803 WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/org/olat/core/util/mail/_i18n/LocalStrings_da.properties] to the cache for web application [/openolat-lms] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

do you have any solution for that ?

Another issue I noticed was when I was trying to add a Subject in Question Bank, I had an error page ( Business path:  http://localhost:8080/olat/url/QPool/0/Taxonomy/0 ) .

Thanks in Advanced .

TomcatFail.jpg

Catalina.out.jpgSubjectPageNotWorking.jpg

Stéphane Rossé

unread,
Aug 6, 2024, 2:39:23 AM8/6/24
to OpenOlat
Hi

For the WARNING im log, you can edit the conf/context.xml file in your Tomcat installation. I have something like that:

<?xml version="1.0" encoding="UTF-8"?>
<Context>
    <Manager pathname="" />
    <Resources cachingAllowed="false"/>
</Context>

The Manager part disable session persistence which OpenOlat doesn't use.
The Resource part disable the cache which produce these Warnings

For the error screen, I need to see some log files with a stack trace (typically your olat.log)

Best regards
Stéphane Rossé

Hamza AIT Ahmed

unread,
Aug 6, 2024, 11:06:30 AM8/6/24
to OpenOlat
Hi,
Thanks for your reply

After editing conf/context.xml, the error  "Unable to add resource in..." is gone, but I still can't deploy my app, I think I have a problem when i generate the war file, can you please give me the steps I follow to generate a correct war file and deploy it ? is it normal folder class should be empty ( ClassesEmpty.jpg ) ? 

For the error screen, i can't find olat.log . 

Thanks in advanced .
ClassEmpty.png

Stéphane Rossé

unread,
Aug 7, 2024, 2:22:05 AM8/7/24
to OpenOlat
Hi
Yes, it is normal. The classes folder is almost empty. The OpenOlat code is in a JAR in the lib folder.

If you prefer, you can download the last WAR file there: https://www.openolat.com/releases/

We have a complete installation guide here:

But I need some log files to know if there is a problem with your database, with some settings or something else. You need to setup your log4j2.xml

Best regards
Stéphane Rossé

Hamza AIT Ahmed

unread,
Aug 13, 2024, 12:01:30 PM8/13/24
to OpenOlat
Hello,

Thank you, Stefan Rossi, for pointing me in the right direction, everything is going well.

Regards, Hamza Ait Ahmed
Reply all
Reply to author
Forward
0 new messages