Help - Error trying to run Jakarta Rest RSVP example from jakarta ee tutorial.

Gabriel Alejandro Soto Rivera <[email protected]> Sat, 16 May 2026 19:53:32 -0600
Newsgroups gmane.comp.java.openejb.user
Message-ID <CAOd5U34dTZpSxCT46RZbzuodZ+vQ-huktb8MtsLUJ809gmwpeQ@mail.gmail.com>
--0000000000003508460651f9b83e
Content-Type: multipart/alternative; boundary="0000000000003508440651f9b83c"

--0000000000003508440651f9b83c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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

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

I=E2=80=99m learning about Jakarta EE using the tutorial on their website:
Jakarta EE Tutorial
<https://jakarta.ee/learn/docs/jakartaee-tutorial/current/index.html.> I=E2=
=80=99ve
just modified the POMs so that they don=E2=80=99t use GlassFish
 by default, but instead run on the Tomee server I=E2=80=99ve installed loc=
ally;
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 =E2=80=98Building RESTful Web Services wi=
th
Jakarta REST=E2=80=99
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
=E2=80=98org.apach.cxf.jaxrs.provider.JAXBElementProvider=E2=80=99.

However, when adding
<property name=3D"openjpa.Log" value=3D"DefaultLevel=3DTRACE, Runtime=3DTRA=
CE,
Tool=3DTRACE"/>
to persistence.xml as the log suggests to obtain more information, the
application fails
to deploy. It throws errors relating to
 =E2=80=98jdk.internal.reflect.NativeMethodAccessorIpml.invoke=E2=80=99.

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/rs=
vp
.

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=E2=80=99m new to this, I=E2=80=99m not sure if it=E2=80=99s a configur=
ation error, an app
error or a bug.
If it is a bug, I=E2=80=99ll open an issue on GitHub to report it.

Thank you very much in advance for your help.

--0000000000003508440651f9b83c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:&quot;ti=
mes new roman&quot;,serif">Warm regards to everyone, and thank you very muc=
h in advance.<br><br>I=E2=80=99m just starting to learn Jakarta EE and Tome=
e, so I=E2=80=99m not sure if this is the right <br>place to ask for help w=
ith my problem. But I think it is, because it=E2=80=99s related to Tomee. <=
br><br>I=E2=80=99m learning about Jakarta EE using the tutorial on their we=
bsite: <br><a href=3D"https://jakarta.ee/learn/docs/jakartaee-tutorial/curr=
ent/index.html.">Jakarta EE Tutorial</a> I=E2=80=99ve just modified the POM=
s so that they don=E2=80=99t use GlassFish</div><div class=3D"gmail_default=
" style=3D"font-family:&quot;times new roman&quot;,serif">=C2=A0by default,=
 but instead run on the Tomee server I=E2=80=99ve installed locally; and ch=
ange the=C2=A0</div><div class=3D"gmail_default" style=3D"font-family:&quot=
;times new roman&quot;,serif">persistence.xml to not use eclipse as persist=
ence provider. And, so far, the examples=C2=A0</div><div class=3D"gmail_def=
ault" style=3D"font-family:&quot;times new roman&quot;,serif">have been wor=
king correctly.</div><div class=3D"gmail_default" style=3D"font-family:&quo=
t;times new roman&quot;,serif"><br></div><div class=3D"gmail_default" style=
=3D"font-family:&quot;times new roman&quot;,serif">I am using Tomee 10.0.5 =
with their default configurations, only and a user in tomcat-users</div><di=
v class=3D"gmail_default" style=3D"font-family:&quot;times new roman&quot;,=
serif">to access to the html manager. Then, to test if is the example that =
is not working or is Tomee</div><div class=3D"gmail_default" style=3D"font-=
family:&quot;times new roman&quot;,serif">I installed GlassFish 7 and the e=
xample works well. But I want to make it work with Tomee.</div><div class=
=3D"gmail_default" style=3D"font-family:&quot;times new roman&quot;,serif">=
<br></div><div class=3D"gmail_default" style=3D"font-family:&quot;times new=
 roman&quot;,serif">But I got stuck on the example in =E2=80=98Building RES=
Tful Web Services with Jakarta REST=E2=80=99=C2=A0</div><div class=3D"gmail=
_default" style=3D"font-family:&quot;times new roman&quot;,serif"><a href=
=3D"https://jakarta.ee/learn/docs/jakartaee-tutorial/current/websvcs/rest/r=
est.html#_the_rsvp_example_application">The rsvp Example Application</a>. M=
aking some testing I discover that the endpoints of=C2=A0</div><div class=
=3D"gmail_default" style=3D"font-family:&quot;times new roman&quot;,serif">=
<i>ResponseBean.java</i> works well; and <i>ConfigBean.java</i> make their =
job. But the problem=C2=A0</div><div class=3D"gmail_default" style=3D"font-=
family:&quot;times new roman&quot;,serif">comes from executing the endpoint=
s of <i>StatusBean.java</i></div><div class=3D"gmail_default" style=3D"font=
-family:&quot;times new roman&quot;,serif"><p>However, when trying to debug=
, I get confusing logs depending on the configuration. <br>With the default=
 configuration, the log indicates issues related to <br>=E2=80=98org.apach.=
cxf.jaxrs.provider.JAXBElementProvider=E2=80=99.</p><p>However, when adding=
<br>&lt;property name=3D&quot;openjpa.Log&quot; value=3D&quot;DefaultLevel=
=3DTRACE, Runtime=3DTRACE, Tool=3DTRACE&quot;/&gt; <br>to persistence.xml a=
s the log suggests to obtain more information, the application fails<br>to =
deploy. It throws errors relating to<br>=C2=A0=E2=80=98jdk.internal.reflect=
.NativeMethodAccessorIpml.invoke=E2=80=99.</p><p>I have the tutorial code w=
ith the changes that i make to work with Tomee in my github:=C2=A0<br><a hr=
ef=3D"https://github.com/Sxtormulo/jakartaee-examples/tree/main/tutorial/ja=
xrs/rsvp">https://github.com/Sxtormulo/jakartaee-examples/tree/main/tutoria=
l/jaxrs/rsvp</a>.</p><p>These are the errors I get when I try to run the ex=
ample with and without the openjpa.Log Trace <br>property in persistence.xm=
l.</p><p>As I=E2=80=99m new to this, I=E2=80=99m not sure if it=E2=80=99s a=
 configuration error, an app error or a bug.<br>If it is a bug, I=E2=80=99l=
l open an issue on GitHub to report it.</p><p>Thank you very much in advanc=
e for your help.</p></div></div>

--0000000000003508440651f9b83c--
--0000000000003508460651f9b83e--