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(ViewLoader.java:209)
		at com.axelor.meta.loader.ViewLoader.doLoad(ViewLoader.java:114)
		at com.axelor.meta.loader.AbstractParallelLoader.lambda$feedTransactionExecutor$1(AbstractParallelLoader.java:54)
		at com.axelor.db.ParallelTransactionExecutor.runCommands(ParallelTransactionExecutor.java:194)
		at java.base/java.lang.Thread.run(Thread.java:829)
		at com.axelor.db.tenants.TenantAware.lambda$run$0(TenantAware.java:51)
		at com.axelor.db.JPA.runInTransaction(JPA.java:610)
		at com.axelor.db.tenants.TenantAware.run(TenantAware.java:51)
		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
		at java.base/java.lang.Thread.run(Thread.java:829)

Any help on this would be welcome!

Bests,
bbrosch

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

Java version:

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

Postgres version:
13

Connection:
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.