eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
384 stars 143 forks source link

org.eclipse.persistence.jpars.server.jar is missing in Glassfish 7.0.1 #24305

Open mheydem opened 1 year ago

mheydem commented 1 year ago

I am migrating from Glassfish 6.2.5 to 7.0.1.

Problem Description

If I deploy my application from the Eclipse IDE with the Payara Tools, then there are no problems. But if I start Glassfish like .\bin\asadmin start-domain and deploy my application (an EAR) using the GlassFish Server Administration Console, several lines like this appear in the log file:

[2023-02-22T05:32:09.917773Z] [GlassFish 7.0] [SEVERE] [] [org.glassfish.apf] [tid: _ThreadID=288 _ThreadName=admin-listener(9)] [levelValue: 1000] [[
  Class [ org/eclipse/persistence/internal/jpa/rs/weaving/PersistenceWeavedRest ] not found. Error while loading [ class org.example.MyClass ]]]

EclipseLink provides the class PersistenceWeavedRest in org.eclipse.persistence.jpars.server-4.0.0.jar, but the jar was never released with Glassfish.

Workaround

Questions

I hope you can help clarifying some questions

  1. Why is it different if the application is deployed from Eclipse IDE or GlassFish Server Administration Console?
  2. Until Glassfish 6.2.5 the application was running fine without the org.eclipse.persistence.jpars.server-4.0.0.jar. Why is it neccessary with Glassfish 7.0.1?
  3. The org.eclipse.persistence.jpars.server-4.0.0.jar works when placing it in glassfish/domains/domain/lib only. Why the jar has not effect when placing it in glassfish/modules?
  4. If the org.eclipse.persistence.jpars.server-4.0.0.jar is necessary, will it be delivered with Glassfish in the future?
arjantijms commented 1 year ago

It seems jpars.server is a new jar with the 4.0.0 release, see https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpars.server

It's called "EclipseLink JPA-RS Server".

Not sure why it doesn't work in glassfish/modules. That's normally the case when there's no OSGi manifest present, but in this case there is.

@dmatej what do you think?

github-actions[bot] commented 8 months ago

This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment