Openshift - ROOT.war已部署,但没有应用程序

时间:2014-05-26 15:22:03

标签: eclipse jboss openshift

这就是我在日志中看到的内容:

[jbossas-DOMAIN.rhcloud.com SHA]\> tail_all
2014/05/26 09:08:35,527 INFO  [org.jboss.as.messaging] (MSC service thread 1-4)
JBAS011601: Bound messaging object to jndi name java:/ConnectionFactory
2014/05/26 09:08:35,599 INFO  [org.jboss.as.deployment.connector] (MSC service t
hread 1-2) JBAS010406: Registered connection factory java:/JmsXA
2014/05/26 09:08:35,620 INFO  [org.hornetq.ra.HornetQResourceAdapter] (MSC servi
ce thread 1-2) HornetQ resource adaptor started
2014/05/26 09:08:35,621 INFO  [org.jboss.as.connector.services.ResourceAdapterAc
tivatorService$ResourceAdapterActivator] (MSC service thread 1-2) IJ020002: Depl
oyed: file://RaActivatorhornetq-ra
2014/05/26 09:08:35,623 INFO  [org.jboss.as.deployment.connector] (MSC service t
hread 1-4) JBAS010401: Bound JCA ConnectionFactory [java:/JmsXA]
2014/05/26 09:08:35,785 INFO  [org.jboss.as.server.deployment] (MSC service thre
ad 1-4) JBAS015876: Starting deployment of "ROOT.war"
2014/05/26 09:08:38,512 INFO  [org.jboss.web] (MSC service thread 1-4) JBAS01821
0: Registering web context:
2014/05/26 09:08:38,532 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951
: Admin console listening on http://127.2.148.129:9990
2014/05/26 09:08:38,532 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015874
: JBoss AS 7.1.1.Final "Brontes" started in 19348ms - Started 211 of 330 service
s (116 services are passive or on-demand)
2014/05/26 09:08:38,785 INFO  [org.jboss.as.server] (DeploymentScanner-threads -
 2) JBAS018559: Deployed "ROOT.war"
[jbossas-DOMAIN.rhcloud.com SHA]\> find . -name ROOT.war
find: `./.ssh': Permission denied
find: `./.sandbox': Permission denied
./app-root/runtime/dependencies/jbossas/deployments/ROOT.war
find: `./.tmp': Permission denied
./app-deployments/2014-05-26_08-49-32.024/dependencies/jbossas/deployments/ROOT.
war
[jbossas-DOMAIN.rhcloud.com SHA]\>

但是当我转到根网址时,我会看到默认的Welcome to your JBoss AS application on OpenShift页面。我不是在使用maven。试图按照this page中Jboss(jboss-as-7.1.1.Final)的说明进行操作 - 虽然没有删除src文件夹。我需要做什么 ?我是否需要删除src文件夹(?)并添加部署文件夹?

构建输出(eclipse Java EE Luna M7)

Stopping jbossas cartridge
Sending SIGTERM to jboss:301473 ...
Building git ref 'master', commit e48bedf
Skipping Maven build due to absence of pom.xml
Preparing build for deployment
Deployment id is 72c749b6
Activating deployment
Deploying JBoss
Starting jbossas cartridge
Found 127.2.148.129:8080 listening port
Found 127.2.148.129:9999 listening port
/var/lib/openshift/538267574382ece7950004a4/jbossas/standalone/deployments /var/lib/openshift/SHA/jbossas
/var/lib/openshift/538267574382ece7950004a4/jbossas
Artifacts deployed: ./ROOT.war
-------------------------
Git Post-Receive Result: success
Activation status: success
Deployment completed with status: success


Repository already uptodate.
编辑:嗯,战争是24k,这很少 - 该项目是一个常规的Java Web应用程序项目 - 在glassfish和jboss上本地运行良好

2 个答案:

答案 0 :(得分:0)

我会接受一个答案,告诉我如何从eclipse(编辑:问here)开始,但直到手动生成战争(右键点击项目然后导出为战争),然后{{1}直接从git Bash(msy​​sgit,mingwin):

scp

详细here(详细是委婉语)解决了它。

有关最终设置的详细信息,请参阅here

答案 1 :(得分:0)

这个问题已经很老了所以我确信这个问题已经解决了,但我遇到了同样的问题,我相信其他人也会这样做。在我的情况下,git没有跟踪我本地存储库中的src文件夹。

您只需要在git repo文件夹中打开一个终端并输入git status以显示未跟踪哪些文件夹,然后git add [file/foldername],最后重新发布它。