Could not initialize class com.axelor.meta.loader.XMLViews

Dear All,

I am new to Axelor but based on what I read on the site, I am interested in trying it.

I followed the installation guide and installed it from war file. This means that I installed Tomcat, Postgres and OpenJDK on my machine (Windows 10 as initial test).

There were a number of bugs that I could resolve (including a missing jaxws-api-2.2.12.jar file). However there is one that I am not able to do anything with.

This makes Axelor not start at all and the following error message in a browser:

HTTP Status 404 – Not Found
Type Status Report

Message The requested resource [/axelor-erp-latest/] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.77

When looking into it, the C:\Program Files\Apache Software Foundation\Tomcat 8.5\logs\localhost.XXXX-XX-XX.log file shows the followings:

06-Apr-2022 16:17:03.353 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [guiceFilter]
	java.lang.NoClassDefFoundError: Could not initialize class com.axelor.meta.loader.XMLViews
		at com.axelor.meta.loader.ViewLoader.process(
		at com.axelor.meta.loader.ViewLoader.doLoad(
		at com.axelor.meta.loader.AbstractParallelLoader.lambda$feedTransactionExecutor$1(
		at com.axelor.db.ParallelTransactionExecutor.runCommands(
		at java.base/
		at com.axelor.db.tenants.TenantAware.lambda$run$0(
		at com.axelor.db.JPA.runInTransaction(
		at java.base/java.util.concurrent.Executors$
		at java.base/
		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
		at java.base/java.util.concurrent.ThreadPoolExecutor$
		at java.base/

Any help on this would be welcome!


what’s your java version, and postgres version, and connection is fine?

Java version:

openjdk version "" 2022-02-08  
OpenJDK Runtime Environment Temurin- (build
OpenJDK 64-Bit Server VM Temurin- (build, mixed mode)

Postgres version:

There was a problem earlier based on the output of Tomcat, but that was resolved.

you need java 8 and postgres 12

1 « J'aime »

Thanks, it worked! Now I am up and running…

1 « J'aime »

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.