Hello all.

I am trying to find a minimal working Java example with the following
characteristics:

- CXF 4.0.0 (alternatively 3.5.5)
- Runs on Java 11
- Simple JAX-RS resource
- Resource is provided some custom object, such as MyDAO, via an
@Context ivar or param to @GET annotated method
- Server runs programmatically from a main method
- Spring it not used
- Prefer no web.xml, but if example works I am fine with that

I realize there's a lot there, but I am hoping it sparks someone's
memory and they can point me to an example.  I've not found an example
in the CXF distribution code tree, nor elsewhere online.

My own attempt at such an example compiles and runs, but my resource's
MyDAO ivar is never populated and always null. I also tried using a
custom Application, but it does not seem to be picked up, as the
server crashes on run with the error "No resources classes were
found.". I am unable to post the code I've written.

Reply via email to