Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jsonp version to use jakarta package #22943

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

jbescos
Copy link
Member

@jbescos jbescos commented Mar 16, 2020

It works to compile, execute the quick look tests, start the domain, running TCK tests of this other PR jakartaee/platform-tck#147 . Sig tests works too if you use an updated sigtest.jar

I attach some logs of previous executions.
gfQuickLook.log
tck.log

It seems that glassfish is not making use directly jsonp, and that is why previous executions worked.

But I expect to have run time errors. For example if you run an app that is using Jersey (because Jersey depends on Jsonp).

There is a discussion going on about this jakarta integration topic:
#22892 (comment)

Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
@glassfish-bot
Copy link
Contributor

Can one of the admins verify this patch?

@jbescos
Copy link
Member Author

jbescos commented Mar 17, 2020

https://ci.eclipse.org/glassfish/job/glassfish/job/PR-22943/1/testReport/

There are 5 tests failing in 'continuous-integration/jenkins/pr-merge' but I cannot see the reason of the failure. This is what I see:
Error Message
NA

@arjantijms
Copy link
Contributor

@jbescos You'd have to take a look at the full logs for the stage where failures occurred.

See https://ci.eclipse.org/glassfish/job/glassfish/job/PR-22943/

ejb_group_3 has failures, and you can look at its logs to get an idea of what failed. You can also download the artefacts that the run generated and inspect the server log.

@jbescos
Copy link
Member Author

jbescos commented Mar 20, 2020

I have checked the error, and it is caused by what I said before. Jersey is trying to load the previous jsonp with different package, and it doesn't find it.

I copy the exception here:

[2020-03-16T17:09:29.680Z]      [java] JdbcRuntimeExtension,  getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
[2020-03-16T17:09:29.680Z]      [java] Mar 16, 2020 5:09:29 PM org.apache.catalina.core.StandardContext log
[2020-03-16T17:09:29.680Z]      [java] SEVERE: WebModule[/ejb-ejb31-embedded-jaxrs-web]StandardWrapper.Throwable
[2020-03-16T17:09:29.680Z]      [java] java.lang.NoClassDefFoundError: javax/json/JsonValue
[2020-03-16T17:09:29.680Z]      [java] 	at java.lang.Class.getDeclaredMethods0(Native Method)
[2020-03-16T17:09:29.680Z]      [java] 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
[2020-03-16T17:09:29.680Z]      [java] 	at java.lang.Class.getDeclaredMethods(Class.java:1975)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller$2.run(IntrospectionModeller.java:236)
[2020-03-16T17:09:29.680Z]      [java] 	at java.security.AccessController.doPrivileged(Native Method)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller.getAllDeclaredMethods(IntrospectionModeller.java:230)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller.checkForNonPublicMethodIssues(IntrospectionModeller.java:150)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder(IntrospectionModeller.java:97)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller.access$000(IntrospectionModeller.java:58)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:90)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:87)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
[2020-03-16T17:09:29.680Z]      [java] 	at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:87)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.model.Resource.from(Resource.java:781)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.ResourceBagConfigurator.init(ResourceBagConfigurator.java:55)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:331)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:293)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:292)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:259)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:311)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347)
[2020-03-16T17:09:29.681Z]      [java] 	at javax.servlet.GenericServlet.init(GenericServlet.java:180)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1441)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1240)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5343)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5588)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.web.WebModule.start(WebModule.java:516)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:877)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:860)
[2020-03-16T17:09:29.681Z]      [java] 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:644)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2020)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1666)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:83)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:98)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:267)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:328)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:476)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:195)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:467)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:516)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:512)
[2020-03-16T17:09:29.681Z]      [java] 	at java.security.AccessController.doPrivileged(Native Method)
[2020-03-16T17:09:29.681Z]      [java] 	at javax.security.auth.Subject.doAs(Subject.java:360)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:511)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:542)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:534)
[2020-03-16T17:09:29.681Z]      [java] 	at java.security.AccessController.doPrivileged(Native Method)
[2020-03-16T17:09:29.681Z]      [java] 	at javax.security.auth.Subject.doAs(Subject.java:360)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:533)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1441)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:86)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1823)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1699)
[2020-03-16T17:09:29.681Z]      [java] 	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:109)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:117)
[2020-03-16T17:09:29.681Z]      [java] 	at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:110)
[2020-03-16T17:09:29.681Z]      [java] 	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:103)
[2020-03-16T17:09:29.681Z]      [java] 	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:78)
[2020-03-16T17:09:29.681Z]      [java] 	at com.acme.Client.testEJB(Client.java:73)
[2020-03-16T17:09:29.681Z]      [java] 	at com.acme.Client.main(Client.java:49)
[2020-03-16T17:09:29.681Z]      [java] Caused by: java.lang.ClassNotFoundException: javax.json.JsonValue
[2020-03-16T17:09:29.681Z]      [java] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
[2020-03-16T17:09:29.681Z]      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
[2020-03-16T17:09:29.681Z]      [java] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
[2020-03-16T17:09:29.681Z]      [java] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

@smillidge
Copy link
Contributor

OK probably needs a Jersey update before we can merge

@jbescos
Copy link
Member Author

jbescos commented Mar 24, 2020

@jansupol do you think it is feasible to make Jersey to use the latest jsonp libraries (having jakarta packages)?. Then I can update Glassfish in this PR to use the latest Jersey libraries.

Problem could be that other libraries in Jersey also uses JSONP. In this case I would need to update them too.

@m0mus
Copy link
Member

m0mus commented Mar 24, 2020

@smillidge We will never merge anything if this approach is used. Implementations dependency graph is too complicated and there are some cross-dependencies. We should accept that master will not pass all tests until all components are integrated.

@smillidge
Copy link
Contributor

OK I put out a discussion on the mailing list RE: how to do this in parallel. I suppose that's a question to go out to the list. Can we accept a broken master as I imagine in some cases server won't start at all due to OSGI issues?

@smillidge
Copy link
Contributor

OK let's break master.

@smillidge smillidge merged commit a75a918 into eclipse-ee4j:master Apr 1, 2020
@smillidge smillidge linked an issue Apr 1, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorporate JSON Processing 2.0.0 into GlassFish 6.0
5 participants