Warm regards to everyone, and thank you very much in advance.

I’m just starting to learn Jakarta EE and Tomee, so I’m not sure if this is
the right
place to ask for help with my problem. But I think it is, because it’s
related to Tomee.

I’m learning about Jakarta EE using the tutorial on their website:
Jakarta EE Tutorial
<https://jakarta.ee/learn/docs/jakartaee-tutorial/current/index.html.> I’ve
just modified the POMs so that they don’t use GlassFish
 by default, but instead run on the Tomee server I’ve installed locally;
and change the
persistence.xml to not use eclipse as persistence provider. And, so far,
the examples
have been working correctly.

I am using Tomee 10.0.5 with their default configurations, only and a user
in tomcat-users
to access to the html manager. Then, to test if is the example that is not
working or is Tomee
I installed GlassFish 7 and the example works well. But I want to make it
work with Tomee.

But I got stuck on the example in ‘Building RESTful Web Services with
Jakarta REST’
The rsvp Example Application
<https://jakarta.ee/learn/docs/jakartaee-tutorial/current/websvcs/rest/rest.html#_the_rsvp_example_application>.
Making some testing I discover that the endpoints of
*ResponseBean.java* works well; and *ConfigBean.java* make their job. But
the problem
comes from executing the endpoints of *StatusBean.java*

However, when trying to debug, I get confusing logs depending on the
configuration.
With the default configuration, the log indicates issues related to
‘org.apach.cxf.jaxrs.provider.JAXBElementProvider’.

However, when adding
<property name="openjpa.Log" value="DefaultLevel=TRACE, Runtime=TRACE,
Tool=TRACE"/>
to persistence.xml as the log suggests to obtain more information, the
application fails
to deploy. It throws errors relating to
 ‘jdk.internal.reflect.NativeMethodAccessorIpml.invoke’.

I have the tutorial code with the changes that i make to work with Tomee in
my github:
https://github.com/Sxtormulo/jakartaee-examples/tree/main/tutorial/jaxrs/rsvp
.

These are the errors I get when I try to run the example with and without
the openjpa.Log Trace
property in persistence.xml.

As I’m new to this, I’m not sure if it’s a configuration error, an app
error or a bug.
If it is a bug, I’ll open an issue on GitHub to report it.

Thank you very much in advance for your help.

Reply via email to