Yeah, 4.0 branch doesn't have full support for 17, it could be built
on Java 8 and 11 (I think).
Runtime should be good on 17 and with this release Modeler should work on 17.

On Sun, Feb 19, 2023 at 9:56 PM Andrus Adamchik <aadamc...@gmail.com> wrote:
>
> Java 17 probably. I was using Java 8 for the local build.
>
> > On Feb 19, 2023, at 7:38 PM, Michael Gentry <blackn...@gmail.com> wrote:
> >
> > I'm seeing errors when building:
> >
> > [mrg@odin 13:31:49] ~/Projects/Cayenne-Release/cayenne-4.0.3-src > mvn
> > clean verify -Passembly,src,generic,mac
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > ...
> > [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 0.001 s <<< FAILURE! - in
> > org.apache.cayenne.remote.hessian.HessianConfigTest
> > [ERROR]
> > testLoadFactoryNoExtensions(org.apache.cayenne.remote.hessian.HessianConfigTest)
> > Time elapsed: 0 s  <<< ERROR!
> > java.lang.NoClassDefFoundError: Could not initialize class
> > com.caucho.hessian.io.ContextSerializerFactory
> > at
> > org.apache.cayenne.remote.hessian.HessianConfigTest.testLoadFactoryNoExtensions(HessianConfigTest.java:36)
> > ...
> > [ERROR] Errors:
> > [ERROR]   ROPServletTest.testInitHessianService:174 » NoClassDefFound Could
> > not initiali...
> > [ERROR]   ROPServletTest.testInitWithExtraModules:142 »
> > ExceptionInInitializer
> > [ERROR]   ROPServletTest.testInitWithLocation:88 » NoClassDefFound Could
> > not initialize ...
> > [ERROR]   ROPServletTest.testInitWithServletName:66 » NoClassDefFound Could
> > not initiali...
> > [ERROR]   ROPServletTest.testInitWithStandardModules:110 » NoClassDefFound
> > Could not ini...
> > [ERROR]   HessianConfigTest.testLoadFactoryNoExtensions:36 »
> > NoClassDefFound Could not i...
> > [ERROR] Tests run: 985, Failures: 0, Errors: 6, Skipped: 0
> >
> > It has been ages since I built 4.0, though, so I'm probably doing it
> > wrongly.
> >
> > [mrg@odin 13:33:59] ~/Projects/Cayenne-Release/cayenne-4.0.3-src > mvn -v
> > Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
> > Maven home: /usr/local/Cellar/maven/3.9.0/libexec
> > Java version: 17.0.6, vendor: Homebrew, runtime:
> > /usr/local/Cellar/openjdk@17/17.0.6/libexec/openjdk.jdk/Contents/Home
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "mac os x", version: "13.1", arch: "x86_64", family: "mac"
> >
> > Thoughts?
> >
> > On Tue, Feb 14, 2023 at 6:08 AM Nikita Timofeev <ntimof...@objectstyle.com>
> > wrote:
> >
> >> Hi all,
> >>
> >> Here is the 4.0.3 release that just adds JDK 17 support in the Modeler.
> >>
> >> Release notes:
> >> https://github.com/apache/cayenne/blob/4.0.3/RELEASE-NOTES.txt
> >> Maven repo:
> >> https://repository.apache.org/content/repositories/orgapachecayenne-1057/
> >> Assemblies: https://dist.apache.org/repos/dist/dev/cayenne/4.0.3/
> >>
> >> Please evaluate and cast your votes
> >>
> >> --
> >> Best regards,
> >> Nikita Timofeev
> >>
>


-- 
Best regards,
Nikita Timofeev

Reply via email to