从Eclipse部署到远程linux JBoss服务器 [英] Deploying to remote linux JBoss server, from Eclipse

查看:762
本文介绍了从Eclipse部署到远程linux JBoss服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的开发计算机是Windows。我想从Eclipse(在Windows上)部署一些JBoss示例Web应用程序到在CentOS上运行的远程JBoss服务器。他们都安装了JBoss和Java。我认为,由于它们具有不同的操作系统,Eclipse没有看到CentOS具有所需的JBoss包。在新服务器选项下,当我进入CentOS服务器时,我指定这是一个Unix服务器。有什么办法可以让这个工作,还是我处于死胡同?顺便说一下,我可以远程浏览文件结构或使用服务器的命令行,在Eclipse中很好。



谢谢,



以下是我收到的一些错误:



16:19:43,489错误[org.jboss.msc.service.fail] (MSC服务线程1-1)MSC00001:无法启动服务jboss.network.public:org.jboss.msc.service.StartException in service jboss.network.public:JBAS015810:无法解析接口public



16:19:48,341 INFO [org.jboss.weld.deployer](MSC服务线程1-4)JBAS016005:CDI部署启动服务:ticket-monster.war



16:19:48,361 INFO [org.jboss.weld.Version](MSC服务线1-4)WELD-000900 1.1.5(AS71)



16:19:48,431 INFO [org.jboss.as](MSC服务线1-4)JBAS015954:管理控制台未启用



16:19:48,431错误[org.jboss.as](MSC服务线程1-4)JBAS015875:JBoss AS 7.1.1.FinalBrontes启动(带有错误)i n 6743ms - 308个服务中的185个(75个服务失败或缺少依赖关系,47个服务是被动或按需)



16:19:48,631 INFO [org.jboss .as.server](DeploymentScanner-threads - 2)JBAS015870:部署部署ticket-monster.war已回滚,出现失败消息JBAS014750:操作处理程序无法完成



16:19:48,631 INFO [org.jboss.as.connector.subsystems.datasources](MSC服务线1-4)JBAS010409:未绑定数据源[jboss / datasources / ticket-monsterDS]



16:19:48,681 INFO [org.jboss.as.server.deployment](MSC服务线程1-3)JBAS015877:停止部署ticket-monster.war在53ms



16:19:48,681错误[org.jboss.as.server.deployment.scanner](DeploymentScanner-threads - 1){JBAS014653:复合操作失败并已回滚。失败的步骤:=> {操作步骤2=>JBAS014750:操作处理程序无法完成}}

解决方案

p>现在为时已晚,但可能会帮助别人,在下面的工作中: -



要摆脱这个问题:


MSC000001:无法解析界面public


检查您的JBoss Standalone.xml



是否包含机器的IP地址: -

 <子系统> 
...
< alias name =你的IP地址/>
...
< ; / subsystem>

< interfaces>
< interface name =management>
< inet-address value =$ {jboss.bind.address。管理:您的IP地址}/>
< / interface>
< interface name =public>
< inet-address value =$ {jboss.bind .address:你的IP地址}/>
< / in terface>
< interface name =unsecure>
< inet-address value =$ {jboss.bind.address.unsecure:你的IP地址}/>
< / interface>
< / interfaces>

同样检查整个standalone.xml&将 localhost IP 替换为机器的当前IP。



双击JBoss服务器以检查主机名:您的IP


My development computer is Windows. I want to deploy some JBoss sample web applications from Eclipse (on Windows) to my remote JBoss server running on CentOS. They both have JBoss and Java installed. I think that since they have different operating systems though, Eclipse doesn't see that CentOS has the required JBoss packages. Under the "new server" options, when I entered the CentOS server, I specified that this was a Unix server. Is there any way that I can get this to work, or am I at a dead end? By the way, I can remotely browse through the file structure or use the command line, of the server, just fine, in Eclipse.

Thanks,

Here are some errors that I received:

16:19:43,489 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.network.public: org.jboss.msc.service.StartException in service jboss.network.public: JBAS015810: failed to resolve interface public

16:19:48,341 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: ticket-monster.war

16:19:48,361 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900 1.1.5 (AS71)

16:19:48,431 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015954: Admin console is not enabled

16:19:48,431 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 6743ms - Started 185 of 308 services (75 services failed or missing dependencies, 47 services are passive or on-demand)

16:19:48,631 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ticket-monster.war" was rolled back with failure message JBAS014750: Operation handler failed to complete

16:19:48,631 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010409: Unbound data source [jboss/datasources/ticket-monsterDS]

16:19:48,681 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment ticket-monster.war in 53ms

16:19:48,681 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS014750: Operation handler failed to complete"}}

解决方案

It's too late to answer, but may it will help someone else. In my case below works :-

To get rid of this :

MSC000001 : failed to resolve interface public

Check your JBoss Standalone.xml

Whether it contains IP address of your machine or not :-

<subsystem>
   ...
    <alias name="your IP Address"/>
   ...
</subsystem>

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:your IP Address}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:your IP Address}"/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:your IP Address}"/>
    </interface>
</interfaces>

likewise check whole standalone.xml & replace localhost or IP with the current IP of machine.

Double click on JBoss server to check Host Name : Your IP

这篇关于从Eclipse部署到远程linux JBoss服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆