• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploy WAR file via JBoss Tools in Eclipse Juno.

 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already set up an OpenShift application called test1 in eclipse.

Steps I've done so far :

1) I copied and pasted the WAR file of a dynamic web project into the deployments folder of test1.

2) Republished via Eclipse ( right click > Publish ) .

3) Web address of Openshift application still shows the default JBoss webpage.

4) Tried adding a war.dodeploy file in the same deployments folder, same end result.


Any help is very much appreciated.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Lim,

Did you see the logs of JBOSS when you performed any of the 4 steps ? Was the war file successfully deployed at all in the first place ?
 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saif Asif wrote:Hello Lim,

Did you see the logs of JBOSS when you performed any of the 4 steps ? Was the war file successfully deployed at all in the first place ?


I can't seem to view the log files under Openshift > Tail Files. It keeps showing "loading..." and nothing happens.

Attached is the image below after I copied the WAR file into the deployments folder and published it. Is the WAR file supposed to still remain as a WAR file ?



ead1.png
[Thumbnail for ead1.png]
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WeiJie Lim wrote:
I can't seem to view the log files under

You should make sure that the environment is setup properly.

WeiJie Lim wrote:
Attached is the image below after I copied the WAR file into the deployments folder and published it. Is the WAR file supposed to still remain as a WAR file ?


No , once jboss7 deploys a war file e.g named ( test.war) , a file named test.war.deployed will be created which shows successful deployment of the app. If its not being created then there is something wrong with the deployment.



 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saif Asif wrote:
You should make sure that the environment is setup properly.


Now there is always this error, " could not find any files matching glob".

I tried changing the command line from the default "-f -n 100 jbossas-7/logs/*" to "-f jbossas-7/logs/server.log -o '-n100' " and it still gives the same " could not find any files matching glob" error.

Saif Asif wrote:
No , once jboss7 deploys a war file e.g named ( test.war) , a file named test.war.deployed will be created which shows successful deployment of the app. If its not being created then there is something wrong with the deployment.


Hmm is there any reason why the .deployed file isn't created ? Any guidance is appreciated. I followed this linkto setup my Openshift app on Eclipse.

 
K. Tsang
Bartender
Posts: 3406
13
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried not deploying using Eclipse but through JBoss's app console?
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WeiJie Lim wrote:
Saif Asif wrote:
You should make sure that the environment is setup properly.


Now there is always this error, " could not find any files matching glob".

I tried changing the command line from the default "-f -n 100 jbossas-7/logs/*" to "-f jbossas-7/logs/server.log -o '-n100' " and it still gives the same " could not find any files matching glob" error.

Saif Asif wrote:
No , once jboss7 deploys a war file e.g named ( test.war) , a file named test.war.deployed will be created which shows successful deployment of the app. If its not being created then there is something wrong with the deployment.


Hmm is there any reason why the .deployed file isn't created ? Any guidance is appreciated. I followed this linkto setup my Openshift app on Eclipse.




I believe it is reported issue on their side. Check this and this.

I think you will need to update the rhc utility.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic