0 Replies Latest reply on Nov 20, 2014 3:22 AM by Jacques Lecoq

    java ee app deployment fails

    Jacques Lecoq Newbie

      Hi guys.

      I have no idea even where to start to debug this. I guys it is a config somewhere.

       

      Locally this app works fine, but as soon as I deploy the app I get this:

       

           [INFO] Service_Transit_Host ............................... SUCCESS [ 0.582 s]

           [INFO] Service-ejb-remote ................................. SUCCESS [ 2.823 s]

           [INFO] Service-ejb ........................................ SUCCESS [ 4.181 s]

           [INFO] Service-ws ......................................... SUCCESS [ 1.101 s]

           [INFO] Service-ear ........................................ FAILURE [ 3.088 s]

           [INFO] Service-unit-test .................................. SKIPPED

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 12.041 s

      [INFO] Finished at: 2014-11-20T09:45:11+02:00

      [INFO] Final Memory: 23M/61M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.1.Final:deploy (default) on project Service-ear: Could not execute goal deploy on /var/lib/jenkins/jobs/Service_Transit_Host/workspace/Service-ear/target/Service_Transit_Host.ear. Reason: I/O Error could not execute operation '{

      [ERROR] "operation" => "read-attribute",

      [ERROR] "address" => [],

      [ERROR] "name" => "launch-type"

      [ERROR] }': java.net.ConnectException: JBAS012174: Could not connect to http-remoting://127.0.0.1:9990. The connection failed: Authentication failed: the server presented no authentication mechanisms

      [ERROR] -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.1.Final:deploy (default) on project Service-ear: Could not execute goal deploy on /var/lib/jenkins/jobs/Service_Transit_Host/workspace/Service-ear/target/Service_Transit_Host.ear. Reason: I/O Error could not execute operation '{

        "operation" => "read-attribute",

        "address" => [],

        "name" => "launch-type"

      }'

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)

      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)

      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)

      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)

      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)

      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:483)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      Caused by: org.apache.maven.plugin.MojoExecutionException: Could not execute goal deploy on /var/lib/jenkins/jobs/Service_Transit_Host/workspace/Service-ear/target/Service_Transit_Host.ear. Reason: I/O Error could not execute operation '{

        "operation" => "read-attribute",

        "address" => [],

        "name" => "launch-type"

      }'

      at org.wildfly.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:160)

      at org.wildfly.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:70)

      at org.wildfly.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:111)

      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)

      ... 19 more

      Caused by: java.lang.IllegalStateException: I/O Error could not execute operation '{

        "operation" => "read-attribute",

        "address" => [],

        "name" => "launch-type"

      }'

      at org.wildfly.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:252)

      at org.wildfly.plugin.common.AbstractServerConnection.getClient(AbstractServerConnection.java:162)

      at org.wildfly.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:139)

      at org.wildfly.plugin.deployment.AbstractDeployment.validate(AbstractDeployment.java:192)

      at org.wildfly.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:136)

      ... 23 more

      Caused by: java.io.IOException: java.net.ConnectException: JBAS012174: Could not connect to http-remoting://127.0.0.1:9990. The connection failed

      at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:129)

      at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)

      at org.wildfly.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:245)

      ... 27 more

      Caused by: java.net.ConnectException: JBAS012174: Could not connect to http-remoting://127.0.0.1:9990. The connection failed

      at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:118)

      at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)

      at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)

      at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)

      at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:148)

      at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:67)

      at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:117)

      at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:92)

      at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)

      at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)

      at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)

      ... 29 more

      Caused by: javax.security.sasl.SaslException: Authentication failed: the server presented no authentication mechanisms

      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:378)

      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:240)

      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:196)

      at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:110)

      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)

      at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)

      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:87)

      at org.xnio.nio.WorkerThread.run(WorkerThread.java:531)

      at ...asynchronous invocation...(Unknown Source)

      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)

      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)

      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)

      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:339)

      at org.jboss.as.protocol.ProtocolConnectionUtils.connect(ProtocolConnectionUtils.java:79)

      at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:110)

      ... 39 more

      [ERROR]

      [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

      [ERROR]

      [ERROR] After correcting the problems, you can resume the build with the command

      [ERROR] mvn <goals> -rf :Service-ear

      Build step 'Invoke Maven 3' changed build result to FAILURE

      Build step 'Invoke Maven 3' marked build as failure

      Finished: FAILURE