jboss-as-maven-plugin冻结身份验证

时间:2013-10-29 16:29:12

标签: maven jboss jboss7.x

我在机器A(linux)上运行的独立模式下有jboss 7.1.1。 我想使用客户机B @ mac os X 10.8.5 / JDK 1.7.0_45-b18远程部署它。

如果我使用jboss-cli从B连接到A,一切正常,我可以登录。

如果我尝试使用maven从maven部署:

<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.5.Final</version>
<configuration>
    <hostname>${deploy.jboss.host}</hostname>
    <port>${deploy.jboss.port}</port>
    <username>${deploy.jboss.user}</username>
    <password>${deploy.jboss.password}</password>
</configuration>

<executions>
    <execution>
        <phase>install</phase>
        <goals>
            <goal>deploy</goal>
        </goals>
    </execution>
</executions>

插件无限期冻结 Authenticating against security realm: ManagementRealm mvn -X

不再提供详细信息

如果我从pom中删除密码或用户名,则无法正确执行以下操作: The connection failed: Authentication failed: all available authentication mechanisms failed 所以看起来插件以某种方式设法连接到机器A.

在谷歌上挖掘之后,我最终将-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KQueueSelectorProvider添加到mvn runner选项中,因为jdk7 @ macosx上的NIO据说是错误的,但它没有帮助。

我在jboss(https://issues.jboss.org/browse/JBASMP-58)打开了一个错误但是如果有人想到要尝试的东西,那么非常受欢迎;)


编辑: 当它被冻结时,我制作了一个maven的jstack,看起来很好的堆栈似乎是:

"main" prio=5 tid=0x00007f968d000000 nid=0x1903 in Object.wait() [0x00000001106ba000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x00000007ad9a0058> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
    at java.lang.Object.wait(Object.java:503)
    at org.jboss.threads.AsyncFutureTask.await(AsyncFutureTask.java:192)
    - locked <0x00000007ad9a0058> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
    at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:266)
    - locked <0x00000007ad9a0058> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
    at org.jboss.as.controller.client.impl.AbstractDelegatingAsyncFuture.get(AbstractDelegatingAsyncFuture.java:100)
    at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
    at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
    at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:234)
    at org.jboss.as.plugin.common.AbstractServerConnection.getClient(AbstractServerConnection.java:156)
    - locked <0x00000007ad67ca28> (a java.lang.Object)
    at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:133)
    - locked <0x00000007ad67ca28> (a java.lang.Object)
    at org.jboss.as.plugin.deployment.AbstractDeployment.validate(AbstractDeployment.java:192)
    at org.jboss.as.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:136)
    - locked <0x00000007ad67ca28> (a java.lang.Object)
    at org.jboss.as.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:70)
    at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:111)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    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:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

0 个答案:

没有答案