Cant deploy project on Wildfly in standalone Keycloak - java

I starting standalone Keycloak on Wildfly.
Next i install keycloak-wildfly-adapter in my standalone keycloak folder (inside is include wildfly) with this command:
cd bin
./jboss-cli.sh --file=adapter-install-offline.cli
Then i want to deploy my app on server with this command:
mvn wildfly:deploy
and i get ERROR:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./ldap-portal: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
at org.keycloak.adapters.KeycloakDeploymentBuilder.internalBuild(KeycloakDeploymentBuilder.java:107)
at org.keycloak.adapters.KeycloakDeploymentBuilder.build(KeycloakDeploymentBuilder.java:135)
at org.keycloak.adapters.undertow.KeycloakServletExtension.handleDeployment(KeycloakServletExtension.java:135)
at io.undertow.servlet.core.DeploymentManagerImpl.handleExtensions(DeploymentManagerImpl.java:252)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:152)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
16:11:31,347 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ldap-portal.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./ldap-portal" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I"}}
16:11:31,349 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ldap-portal.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./ldap-portal" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./ldap-portal: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I
Caused by: java.lang.NoSuchMethodError: org.keycloak.representations.adapters.config.AdapterConfig.getMinTimeBetweenJwksRequests()I"}}
Can someone explain me why this happen and how to fix it?

Related

Deploying EJB Project to JBoss-AS with Spark dependencies throwing ClassNotFoundException

I'm trying to deploy an EJB project which uses Spark libraries to load to a trained ML model and then make a prediction from there.
When I try to deploy the project on my Wildfly server, it throws the error below.
I cannot figure out why it's throwing that ClassNotFoundException, there is a referenced jar in the project with that package inside:
Any thoughts on why this error is happening/how to fix it?
Error Message:
20:34:13,864 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."kmeans-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."kmeans-ejb.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "kmeans-ejb.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
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)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class ec.spark.KMeansStateless with ClassLoader ModuleClassLoader for Module "deployment.kmeans-ejb.jar" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:78)
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)
... 8 more
Caused by: java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/Function
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.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
... 13 more
Caused by: java.lang.ClassNotFoundException: org.apache.spark.api.java.function.Function from [Module "deployment.kmeans-ejb.jar" 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)
... 18 more
20:34:13,866 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "kmeans-ejb.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"kmeans-ejb.jar\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"kmeans-ejb.jar\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class ec.spark.KMeansStateless with ClassLoader ModuleClassLoader for Module \"deployment.kmeans-ejb.jar\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: org/apache/spark/api/java/function/Function
Caused by: java.lang.ClassNotFoundException: org.apache.spark.api.java.function.Function from [Module \"deployment.kmeans-ejb.jar\" from Service Module Loader]"}}
May be you are NOT bundled required jar in your war files. Extract your war files and see

How to expose data as webservice inside JSF2.2 project?

I'm developping an application that expose some data from database as Restful webservice(jersey plugin based) to be consumed by a mobile app. The problem is that my project is a JSF 2.2 framework based, and when I add the jersey dependencies jars to the build path and try to run the app as a web app with wildfly 10 I got many errors in the console and the application doesn't deployed in the server I really didn't understand why with jersey dependencies The JSF app is not able to run and to consume some ws resources.
I have tried to add the requested jars when the server is crashed and always seem to end up having errors in the console.
This is a console overview
01:44:54,763 ERROR [org.jboss.msc.service.fail] (ServerService Thread
Pool -- 70) MSC000001: Failed to start service
jboss.undertow.deployment.default-server.default-host./JSFWebService:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./JSFWebService:
java.lang.NoClassDefFoundError:
org/glassfish/hk2/utilities/binding/BindingBuilder at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) at
org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by:
java.lang.NoClassDefFoundError:
org/glassfish/hk2/utilities/binding/BindingBuilder at
org.glassfish.jersey.server.ResourceConfig.<init>(ResourceConfig.java:356)
at
org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig.<init>(ResourceConfig.java:1050)
at
org.glassfish.jersey.server.ResourceConfig.forApplicationClass(ResourceConfig.java:348)
at
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.addServletWithDefaultConfiguration(JerseyServletContainerInitializer.java:245)
at
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.onStartupImpl(JerseyServletContainerInitializer.java:183)
at
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer.onStartup(JerseyServletContainerInitializer.java:144)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)
at
io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at
io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at
io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at
io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at
io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at
io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at
io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at
io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at
io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at
org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more Caused by: java.lang.ClassNotFoundException:
org.glassfish.hk2.utilities.binding.BindingBuilder from [Module
"deployment.JSFWebService.war:main" from Service Module Loader] at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 24 more
01:44:54,776 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed -
address: ([("deployment" ="JSFWebService.war")]) - failure
description: {
"WFLYCTL0080: Failed services" ={"jboss.undertow.deployment.default-server.default-host./JSFWebService"
="org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./JSFWebService:
java.lang.NoClassDefFoundError:
org/glassfish/hk2/utilities/binding/BindingBuilder
Caused by: java.lang.NoClassDefFoundError: org/glassfish/hk2/utilities/binding/BindingBuilder
Caused by: java.lang.ClassNotFoundException: org.glassfish.hk2.utilities.binding.BindingBuilder from [Module
\"deployment.JSFWebService.war:main\" from Service Module Loader]"},
"WFLYCTL0412: Required services that are not installed:" =["jboss.undertow.deployment.default-server.default-host./JSFWebService"],
"WFLYCTL0180: Services with missing/unavailable dependencies" =undefined } 01:44:54,854 INFO [org.jboss.as.server] (ServerService
Thread Pool -- 34) WFLYSRV0010: Deployed "JSFWebService.war"
(runtime-name : "JSFWebService.war") 01:44:54,916 INFO
[org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183:
Service status report WFLYCTL0186: Services which failed to start:
service
jboss.undertow.deployment.default-server.default-host./JSFWebService:
org.jboss.msc.service.StartException in service
jboss.undertow.deployment.default-server.default-host./JSFWebService:
java.lang.NoClassDefFoundError:
org/glassfish/hk2/utilities/binding/BindingBuilder
Thanks for support.

Jboss application running(war file) getting below error. I'm using windfly/jboss 10 version

Guys any idea what's causing. I searched the internet but was unable to find this kind of error while running my war file in the windfly/jboss 10 server
I'm using Maven pom file build. ................................................................................................................................................................
At the end it gives me an error in the console saying that
WFLYCTL0186: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./smsc2
15:56:02,168 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 58) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./smsc2: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./smsc2: javax.servlet.ServletException: No resources
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: javax.servlet.ServletException: No resources
at org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:338)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
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:250)
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:546)
at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:517)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:559)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
... 6 more
Caused by: javax.naming.NameNotFoundException: comp/Resources -- service jboss.naming.context.java.comp.Resources
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:106)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)
at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.apache.catalina.servlets.DefaultServlet.init(DefaultServlet.java:333)
... 24 more
15:56:02,180 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "smsc2.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./smsc2" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./smsc2: javax.servlet.ServletException: No resources
Caused by: javax.servlet.ServletException: No resources
Caused by: javax.naming.NameNotFoundException: comp/Resources -- service jboss.naming.context.java.comp.Resources"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./smsc2"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
15:56:02,271 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0
It looks like a JNDI look up failure issue, try to check where you are trying to look up for resource named comp/Resources or correct the JNDI name.
the issue is fixed i had missed the resource files(jndi.properties.....config xmls etc) which were not deployed in my war file in src/main/resources

Getting error while deploying lightblue on WildFly 10.1.0

What is LightBlue?
This is the error I am getting :
10:34:15,886 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.module.service."deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war".main: WFLYSRV0179: Failed to load module: deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war:main
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.modules.ModuleNotFoundException: com.redhat.lightblue:main
at org.jboss.modules.Module.addPaths(Module.java:1093)
at org.jboss.modules.Module.link(Module.java:1449)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)
... 5 more
10:34:15,888 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 64) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main: WFLYSRV0179: Failed to load module: deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: com.redhat.lightblue:main"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
10:34:15,888 ERROR [org.jboss.as.server] (management-handler-thread - 64) WFLYSRV0021: Deploy of deployment "lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war" was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main" => "org.jboss.msc.service.StartException in service jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main: WFLYSRV0179: Failed to load module: deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: com.redhat.lightblue:main"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.module.service.\"deployment.lightblue-rest-crud-basic-auth-2.10.0-SNAPSHOT.war\".main"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
I have found some solutions that are telling me to add module.xml but I don't know exactly where to add that and what should be the content of module.xml for light blue.
I am very new in wildfly deployment it will great help if anyone comes up with a solution.
Does anyone with the same error as mine?

How to add lib into modules in wildfly 8.2 Final?

I'm trying to deploy my jar using appclient but i get this error.
This is my deploy command
C:\wildfly-8.2.0.Final\bin>appclient socket-gateway.jar
16:56:03,155 ERROR [org.jboss.msc.service.fail] (MSC service thread
1-16) MSC000001: Failed to start service
jboss.deployment.unit."socket-gateway.jar".POST_MODULE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."socket-gateway.jar".POST_MODULE: JBAS018733:
Failed to process phase POST_MODULE ofdeployment "socket-gateway.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
[jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71] Caused by: java.lang.RuntimeException: JBAS014187: Could not load view
com.switching.serverapi.ServiceManagerBeanRemote
at org.jboss.as.ejb3.deployment.processors.EjbRefProcessor.processDescriptorEntries(EjbRefProcessor.java:99)
at org.jboss.as.ee.component.deployers.AbstractDeploymentDescriptorBindingsProcessor.deploy(AbstractDeploymentDescriptorBindingsProcessor.java:95)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more Caused by: java.lang.ClassNotFoundException: com.serverapi.ServiceManagerBeanRemote from [Module
"deployment.socket-gateway.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
[jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
[jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
[jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
[jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
[jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_71]
at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_71]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
[wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.as.ejb3.deployment.processors.EjbRefProcessor.processDescriptorEntries(EjbRefProcessor.java:97)
... 7 more
16:56:03,167 ERROR [org.jboss.as.controller.management-operation]
(Thread-43) JBAS014613: Operation ("deploy") failed - address:
([("deployment" => "socket-gate way.jar")]) - failure description:
{"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"socket-gateway.jar\".POST_MODULE" =>
"org.jboss.msc.service.Start Exception in service
jboss.deployment.unit.\"socket-gateway.jar\".POST_MODULE: JBAS018733:
Failed to process phase POST_MODULE of deployment
\"socket-gateway.jar\" Caused by: java.lang.RuntimeException:
JBAS014187: Could not load view
com.switching.serverapi.ServiceManagerBeanRemote Caused by:
java.lang.ClassNotFoundException:
com.switching.serverapi.ServiceManagerBeanRemote from [Module
\"deployment.socket-gateway.jar:main\" from Service Module Loader]"}}
16:56:03,170 ERROR [org.jboss.as.server] (Thread-43) JBAS015870:
Deploy of deployment "socket-gateway.jar" was rolled back with the
following failure message: {"JBAS014671: Failed services" =>
{"jboss.deployment.unit.\"socket-gateway.jar\".POST_MODULE" =>
"org.jboss.msc.service.StartException in service jboss.deployme
nt.unit.\"socket-gateway.jar\".POST_MODULE: JBAS018733: Failed to
process phase POST_MODULE of deployment \"socket-gateway.jar\" Caused
by: java.lang.RuntimeException: JBAS014187: Could not load view
com.switching.serverapi.ServiceManagerBeanRemote Caused by:
java.lang.ClassNotFoundException:
com.switching.serverapi.ServiceManagerBeanRemote from [Module
\"deployment.socket-gateway.jar:main\" from Service Module Loader]"}}
16:56:03,197 INFO [org.jboss.as.server.deployment] (MSC service thread
1-9) JBAS015877: Stopped deployment socket-gateway.jar (runtime-name:
socket-gateway.jar ) in 26ms 16:56:03,198 INFO
[org.jboss.as.controller] (Thread-43) JBAS014774: Service status
report JBAS014777: Services which failed to start: service
jboss.deployment.unit ."socket-gateway.jar".POST_MODULE
From that error it clearly said " java.lang.ClassNotFoundException: com.serverapi.ServiceManagerBeanRemote from [Module "deployment.socket-gateway.jar:main" from Service Module Loader]".
And i already read the redhat documentation
using that references , i make folder in "C:\wildfly-8.2.0.Final\modules\com\switching\serverapi" and put the serverapi.jar (this jar where the code for com.serverapi.ServiceManagerBeanRemote )
but i still have same problems. Anyone can help me?
Thank you
i think the folder you have made is not in the right directory. It should be under:
[WidlFly-HOME]\modules\system\layers\base .. \com\switching\serverapi\serverapi.jar

Categories

Resources