It’s the package rename for the later servlet spec. Use tomcat 9 and you’ll
be fine.

On Wed, 20 Mar 2024 at 14:02, <[email protected]> wrote:

> [email protected]
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/topics>
>
>    - Issue with tomcat version of GWT 2.11 for class javax.validation.Path
>    <#m_4244590835279888861_group_thread_0> - 1 Update
>
> Issue with tomcat version of GWT 2.11 for class javax.validation.Path
> <http://groups.google.com/group/google-web-toolkit/t/577f569d9c5c2d0e?utm_source=digest&utm_medium=email>
> Priya <[email protected]>: Mar 20 03:14PM +0530
>
> Hi Team,
>
> We are working on development environment with Tomcat 10 where third party
> jar *jakarta.validation-api.jar *has been updated to tomcat specific
> version where package structure is changed from javax.validation to
> jakarta.validation.
>
> When GWT 2.11 with tomcat specific jars(Gwt-servlet and
> requestfactory-server.jar) are deployed, it is trying to find
> javax.validation.Path with below stack trace-
>
> Exception while dispatching incoming RPC call
> java.lang.NoClassDefFoundError: javax/validation/Path
> java.base/java.lang.Class.forName(Class.java:467)
> at
>
> com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:217)
> at
>
> com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet.loadSerializationPolicy(RemoteServiceServlet.java:98)
> at
>
> com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:437)
> at
>
> com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:251)
> at
>
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:505)
> at com.google.gwt.user.server.rpc.jakarta.RPC.decodeRequest(RPC.java:241)
>
> As this package has been changed in our environment to
> jakarta.validation.path, GWT source code is unable to find this class,
> giving NoClassDefFoundError.
>
> Also we can find several references of javax.validation.Path in gwt-user
> and other jars under GWT 2.11 jars.
>
> My queries are -
> 1. Has anyone come across such error, if yes, what is workaround.
> 2. as javax packages are outdated and replaced by jakarta, is there a plan
> to update them and what is significance of those classes .Also, how this
> failure can be addressed.
> 3. One solution I could see for older releases, is to add dependency for
> gwt-servlet-deps.jar, but that is not viable solution to us,as we are
> moving away from javax packages due to tomcat upgrade.
>
> Any immediate help will be appreciated.
> Thanks!
> Back to top <#m_4244590835279888861_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/google-web-toolkit/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to [email protected].
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CABjQu7SGWFP1Gq49-ievrkLw17cCZkJv89Kyjs_sUB5QjyO6oQ%40mail.gmail.com.

Reply via email to