[JBoss JIRA] (JBIDE-27281) EAP microprofile QS: microprofile-jwt cannot be deployed
by Robert Stryker (Jira)
[ https://issues.redhat.com/browse/JBIDE-27281?page=com.atlassian.jira.plug... ]
Robert Stryker commented on JBIDE-27281:
----------------------------------------
I'm not even able to properly import this example. I get many errors re missing dependencies for cdi, json-api, junit, etc etc etc.
> EAP microprofile QS: microprofile-jwt cannot be deployed
> --------------------------------------------------------
>
> Key: JBIDE-27281
> URL: https://issues.redhat.com/browse/JBIDE-27281
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: project-examples, server
> Affects Versions: 4.16.0.AM1
> Reporter: Josef Kopriva
> Assignee: Robert Stryker
> Priority: Major
>
> I was not able to deploy this error.
> Error log from server console:
> {code:java}
> 08:53:22,074 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "microprofile-jwt.war" (runtime-name: "microprofile-jwt.war")
> 08:53:22,112 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment microprofile-jwt.war
> 08:53:22,170 INFO [io.jaegertracing.internal.JaegerTracer] (MSC service thread 1-5) No shutdown hook registered: Please call close() manually on application shutdown.
> 08:53:22,220 INFO [io.smallrye.metrics] (MSC service thread 1-6) MicroProfile: Metrics activated (SmallRye Metrics version: 2.4.0.redhat-00004)
> 08:53:22,227 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 3) WELD-000119: Not generating any bean definitions from org.wildfly.quickstarts.mpjwt.SampleEndPoint because of underlying class loading error: Type org.eclipse.microprofile.jwt.JsonWebToken from [Module "deployment.microprofile-jwt.war" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
> 08:53:22,323 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 108) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.wildfly.quickstarts.mpjwt.App$Proxy$_$$_WeldClientProxy
> 08:53:22,324 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 108) MSC000001: Failed to start service jboss.deployment.unit."microprofile-jwt.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.unit."microprofile-jwt.war".undertow-deployment: java.lang.NoClassDefFoundError: Lorg/eclipse/microprofile/jwt/JsonWebToken;
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:748)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> Caused by: java.lang.NoClassDefFoundError: Lorg/eclipse/microprofile/jwt/JsonWebToken;
> at java.lang.Class.getDeclaredFields0(Native Method)
> at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
> at java.lang.Class.getDeclaredFields(Class.java:1916)
> at org.jboss.resteasy.spi.metadata.ResourceBuilder.processDeclaredFields(ResourceBuilder.java:1008)
> at org.jboss.resteasy.spi.metadata.ResourceBuilder.processFields(ResourceBuilder.java:987)
> at org.jboss.resteasy.spi.metadata.ResourceBuilder.fromAnnotations(ResourceBuilder.java:869)
> at org.jboss.resteasy.spi.metadata.ResourceBuilder.getRootResourceFromAnnotations(ResourceBuilder.java:830)
> at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.<init>(POJOResourceFactory.java:38)
> at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:81)
> at org.jboss.resteasy.spi.ResteasyDeployment.registration(ResteasyDeployment.java:485)
> at org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:286)
> at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:92)
> at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:119)
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
> at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
> at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
> at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:585)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541)
> at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
> ... 8 more
> Caused by: java.lang.ClassNotFoundException: org.eclipse.microprofile.jwt.JsonWebToken from [Module "deployment.microprofile-jwt.war" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
> ... 39 more
> 08:53:22,325 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"microprofile-jwt.war\".undertow-deployment" => "java.lang.NoClassDefFoundError: Lorg/eclipse/microprofile/jwt/JsonWebToken;
> Caused by: java.lang.NoClassDefFoundError: Lorg/eclipse/microprofile/jwt/JsonWebToken;
> Caused by: java.lang.ClassNotFoundException: org.eclipse.microprofile.jwt.JsonWebToken from [Module \"deployment.microprofile-jwt.war\" from Service Module Loader]"}}
> 08:53:22,336 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "microprofile-jwt.war" with deployment "microprofile-jwt.war"
> 08:53:22,337 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
> WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."microprofile-jwt.war".undertow-deployment: java.lang.NoClassDefFoundError: Lorg/eclipse/microprofile/jwt/JsonWebToken;
> {code}
> There should be no configuration on server side according to readme file.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (JBIDE-27280) EAP microprofile QS: microprofile-health wrong packaging
by Robert Stryker (Jira)
[ https://issues.redhat.com/browse/JBIDE-27280?page=com.atlassian.jira.plug... ]
Robert Stryker commented on JBIDE-27280:
----------------------------------------
I can't get this one loaded at all. Tons of errors, missing dependencies, etc.
No idea why it works for you all on import but I can't get m2e to even import it properly.
> EAP microprofile QS: microprofile-health wrong packaging
> --------------------------------------------------------
>
> Key: JBIDE-27280
> URL: https://issues.redhat.com/browse/JBIDE-27280
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: project-examples, server
> Affects Versions: 4.16.0.AM1
> Reporter: Josef Kopriva
> Assignee: Robert Stryker
> Priority: Major
>
> microprofile-health quickstart cannot be deployed to server until packaging in pom is changed from jar to war, afterwards it works as expected.
> This seems to be as an upstream issue.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (JBIDE-27278) EAP microprofile QS: Multiple JAX_RS Activators
by Robert Stryker (Jira)
[ https://issues.redhat.com/browse/JBIDE-27278?page=com.atlassian.jira.plug... ]
Robert Stryker commented on JBIDE-27278:
----------------------------------------
I'm not able to replicate this exact error. I am using 1.0.0.GA-CR2.
I get 21 random errors. Checkstyle failed, could not read maven project, plugin execution not covered by lifecycle configuration, and many project build errors as it cannot find the dependencies listed. Also non-resolvable parent pom. Failure to find org.jboss.bom:jboss-eap-xp-microprofile:pom:1.0.0.GA in various repos.
> EAP microprofile QS: Multiple JAX_RS Activators
> -----------------------------------------------
>
> Key: JBIDE-27278
> URL: https://issues.redhat.com/browse/JBIDE-27278
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: project-examples, server
> Affects Versions: 4.16.0.AM1
> Reporter: Josef Kopriva
> Assignee: Robert Stryker
> Priority: Major
>
> {code:java}
> Description Resource Path Location Type
> Multiple JAX-RS Activators are defined for the project. JaxRsApplication.java /country-client/src/main/java/org/wildfly/quickstarts/microprofile/rest/client line 7 JAX-RS Problem
> {code}
> {code:java}
> Description Resource Path Location Type
> Multiple JAX-RS Activators are defined for the project. JaxRsApplication.java /country-client/src/test/java/org/wildfly/quickstarts/microprofile/rest/client/api line 7 JAX-RS Problem
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (JBIDE-27131) WildFly quickstart 'microprofile-config' shows an error after import
by Robert Stryker (Jira)
[ https://issues.redhat.com/browse/JBIDE-27131?page=com.atlassian.jira.plug... ]
Robert Stryker commented on JBIDE-27131:
----------------------------------------
This error goes away if you right-click on the project and go to properties, search for "targeted runtimes" and make sure it targets a wildfly or eap instance.
> WildFly quickstart 'microprofile-config' shows an error after import
> --------------------------------------------------------------------
>
> Key: JBIDE-27131
> URL: https://issues.redhat.com/browse/JBIDE-27131
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: project-examples
> Affects Versions: 4.15.0.AM1
> Reporter: Zbyněk Červinka
> Assignee: Robert Stryker
> Priority: Major
> Fix For: 4.16.0.AM1
>
> Attachments: error.png
>
>
> WildFly quickstart 'microprofile-config' shows the following error after import:
> * The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path (file /microprofile-config/src/main/webapp/index.jsp (on line 1))
> !error.png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months