Error reloading RestEasy class in Wildfly 17

147 views
Skip to first unread message

Peter Bursch

unread,
Nov 6, 2019, 4:51:07 PM11/6/19
to HotswapAgent
Hello
I am trying to reload a Resteasy class running in Wildfly 17/Java 8 but get the following error when the class gets recompiled with the eclipse debugger attached:

22:31:48,586 INFO  [stdout] (Thread-569) HOTSWAP AGENT: 22:31:48.584 ERROR (org.hotswap.agent.plugin.resteasy.RefreshRegistryCommand) - Could not reload rest class com.bursch.rest.calc.ReplyProcessServiceRest

22:31:48,588 INFO  [stdout] (Thread-569) org.jboss.resteasy.spi.LoggableFailure: RESTEASY003880: Unable to find contextual data of type: javax.servlet.ServletContext

22:31:48,589 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ContextParameterInjector$GenericDelegatingProxy.invoke(ContextParameterInjector.java:77)

22:31:48,589 INFO  [stdout] (Thread-569) at com.sun.proxy.$Proxy206.getAttribute(Unknown Source)

22:31:48,589 INFO  [stdout] (Thread-569) at org.wildfly.microprofile.opentracing.smallrye.TracerDynamicFeature.configure(TracerDynamicFeature.java:45)

22:31:48,590 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodInvoker.<init>(ResourceMethodInvoker.java:108)

22:31:48,590 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:349)

22:31:48,590 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.register(ResourceMethodRegistry.java:276)

22:31:48,591 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:227)

22:31:48,591 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:199)

22:31:48,591 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:185)

22:31:48,592 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:162)

22:31:48,592 INFO  [stdout] (Thread-569) at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:79)

22:31:48,592 INFO  [stdout] (Thread-569) at org.hotswap.agent.plugin.resteasy.RefreshRegistryCommand.executeCommand(RefreshRegistryCommand.java:115)

22:31:48,592 INFO  [stdout] (Thread-569) at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)



What could be the issue here or where could I investigate further? (Reloading with JRebel worked some days ago, but we want to get away from it.)


Thanks

Peter

Peter Bursch

unread,
Oct 8, 2020, 6:46:33 AM10/8/20
to HotswapAgent
Hello,
I havent really solved this. Any pointers where I could investigate further?

Thank you

Peter

Reply all
Reply to author
Forward
0 new messages