[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [nosql-dev] WildFly CDI fails to @Inject Repository (1.0.0-SNAPSHOT & 1.0.0-b5) SOLVED
|
Hello Otavio,
That was my fault. I messed up with new annotations.
1. @Database must not be used with @Injection
2. @Entity (and other annotations) now in jakarta.nosql.* library
and not in jakarta.nosql.mapping.*
3. @Repository tag instead of @ApplicationScoped
4. some other quirks
Just if anyone is interested I attached minimal project that
works.
Thank you, and eager to see the release soon.
D.
On 2/23/2023 4:35 PM, Otavio Santana
wrote:
Hello Dmitry, how are you?
Currently, Eclipse JNoSQL has support for Jakarta before
the Big Bang.
The next version will support it; we're targeting to
release on March.
Hello,
After upgrading from 1.0.0-b4 to 1.0.0-b5 (also tried
1.0.0-SNAPSHOT) My
Wildfly deployment fails (WF 26.1.3 preview & WF 27.0.1).
> Caused by: org.jboss.weld.exceptions.DeploymentException:
WELD-001408:
> Unsatisfied dependencies for type TestRepository with
qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject
@Database private
> org.eclipse.jnosql.test.TestService.test_repository
> at
>
org.eclipse.jnosql.test.TestService.test_repository(TestService.java:0)
It looks like WildFly is not scanning jnosql CDI beans,
although I put
my beans.xml in the /WEB-INF directory and tried all CDI
versions there
(1,2,3,4).
Are there any ideas what is wrong?
Thank you,
Dmitry
_______________________________________________
nosql-dev mailing list
nosql-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/nosql-dev
--
Attachment:
jnosql-wildfly-test.zip
Description: Zip compressed data