Hi,

I am trying to integrate Cayenne into a project that must not use
Maven. The application – not too surprisingly – crashes on this line:

        ServerRuntime cayenneRuntime = ServerRuntime.builder()
                .addConfig("cayenne-project.xml")
                .build();

Exception in thread "main"
org.apache.cayenne.configuration.server.DataDomainLoadException:
[v.4.1.1 Dec 20 2021 16:33:19] Configuration resource
"cayenne-project.xml" is not found.

It looks like Cayenne is assuming the Maven project folder structure,
which of course is not there, since I am not using Maven.

I tried the full absolute path, but that did not work either, I get
the same Exception.

Where exactly is Cayenne looking for the configuration file?

How can I specify the location of the configuration file?

Are there more stumbling blocks if I must not use Maven?

Thank you in advance!

Ali

Reply via email to