-
Bug
-
Resolution: Done
-
Blocker
-
7.1.0.DR8, 7.1.0.DR9, 7.1.0.DR10, 7.1.0.DR11, 7.1.0.DR12, 7.1.0.DR13
-
None
When following the instructions for shopping-cart quickstart application, step Run the Client Application currently produces Exception which prevents further execution of the application. As the quickstart applications are supposed to expose features to users, this is a functional blocker. However, it is not caused by error in quickstart itself, but rather by wrong implementation of feature it presents. Quickstarts are expected to run when following the instructions in the quickstart readme file.
[mjurc@tigris shopping-cart]$ mvn exec:java -f client/pom.xml [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JBoss EAP Quickstart: shopping-cart - client 7.1.0.Alpha1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ jboss-shopping-cart-client >>> [INFO] [INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ jboss-shopping-cart-client <<< [INFO] [INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ jboss-shopping-cart-client --- [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: org/jboss/modules/ModuleLoadException at org.jboss.remoting3.EndpointBuilder.build(EndpointBuilder.java:117) at org.jboss.remoting3.RemotingXmlParser.parseEndpoint(RemotingXmlParser.java:53) at org.jboss.remoting3.ConfigurationEndpointSupplier.lambda$static$0(ConfigurationEndpointSupplier.java:44) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.remoting3.ConfigurationEndpointSupplier.<clinit>(ConfigurationEndpointSupplier.java:42) at org.wildfly.common.context.ContextManager.setGlobalDefaultSupplierIfNotSet(ContextManager.java:108) at org.jboss.remoting3.Endpoint.lambda$static$0(Endpoint.java:58) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.remoting3.Endpoint.<clinit>(Endpoint.java:56) at org.jboss.ejb.client.remoting.EndpointPool.getEndpoint(EndpointPool.java:89) at org.jboss.ejb.client.remoting.RemotingEndpointManager.getEndpoint(RemotingEndpointManager.java:49) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:136) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:118) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47) at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:279) at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:289) at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:200) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:216) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:193) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:176) at javax.naming.InitialContext.lookup(InitialContext.java:417) at org.jboss.as.quickstarts.client.Client.main(Client.java:79) ... 6 more Caused by: java.lang.ClassNotFoundException: org.jboss.modules.ModuleLoadException at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 28 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.535 s [INFO] Finished at: 2016-11-15T13:23:18+01:00 [INFO] Final Memory: 11M/298M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project jboss-shopping-cart-client: An exception occured while executing the Java class. null: InvocationTargetException: org/jboss/modules/ModuleLoadException: org.jboss.modules.ModuleLoadException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
After inserting the jboss-modules dependency, the following exception is produced:
[mjurc@tigris shopping-cart]$ mvn exec:java -f client/pom.xml [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JBoss EAP Quickstart: shopping-cart - client 7.1.0.Alpha1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) > validate @ jboss-shopping-cart-client >>> [INFO] [INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) < validate @ jboss-shopping-cart-client <<< [INFO] [INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ jboss-shopping-cart-client --- Nov 15, 2016 1:27:41 PM org.wildfly.security.Version <clinit> INFO: ELY00001: WildFly Elytron version 1.1.0.Beta13 Nov 15, 2016 1:27:41 PM org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers WARN: Could not register a EJB receiver for connection to localhost:8080 javax.security.sasl.SaslException: Authentication failed: none of the mechanisms presented by the server are supported at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:391) at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:225) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) at org.xnio.nio.WorkerThread.run(WorkerThread.java:567) at ...asynchronous invocation...(Unknown Source) at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:438) at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:173) at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:194) at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:150) at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:81) at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:161) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:118) at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47) at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:279) at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:289) at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:200) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:216) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:193) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:176) at javax.naming.InitialContext.lookup(InitialContext.java:417) at org.jboss.as.quickstarts.client.Client.main(Client.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:745) [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:745) Caused by: javax.naming.NamingException: Failed to create proxy [Root exception is java.lang.IllegalStateException: EJBCLIENT000024: No EJB receiver available for handling [appName:, moduleName:jboss-shopping-cart-server, distinctName:] combination] at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:195) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:176) at javax.naming.InitialContext.lookup(InitialContext.java:417) at org.jboss.as.quickstarts.client.Client.main(Client.java:79) ... 6 more Caused by: java.lang.IllegalStateException: EJBCLIENT000024: No EJB receiver available for handling [appName:, moduleName:jboss-shopping-cart-server, distinctName:] combination at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:838) at org.jboss.ejb.client.EJBClient.createSessionWithPossibleRetries(EJBClient.java:222) at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:202) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:216) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:193) ... 9 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.778 s [INFO] Finished at: 2016-11-15T13:27:41+01:00 [INFO] Final Memory: 12M/289M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project jboss-shopping-cart-client: An exception occured while executing the Java class. null: InvocationTargetException: Failed to create proxy: EJBCLIENT000024: No EJB receiver available for handling [appName:, moduleName:jboss-shopping-cart-server, distinctName:] combination -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
- is blocked by
-
JBEAP-8983 Legacy EJB client configuration ignores user credentials and can't be used to invoke even unsecured beans
- Closed
-
JBEAP-9351 wildfly-discovery client shouldn't fail if JBoss Modules is not present
- Closed
-
JBEAP-8991 Artifact jboss-quickstart-parent is not available in product Maven repository
- Closed
- is caused by
-
JBEAP-7282 Remoting dependency on jboss-modules must be optional
- Closed