GeeCON Prague 2014*
The moose likes JBoss/WildFly and the fly likes Deploy WAR file via JBoss Tools in Eclipse Juno. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploy WAR file via JBoss Tools in Eclipse Juno." Watch "Deploy WAR file via JBoss Tools in Eclipse Juno." New topic
Author

Deploy WAR file via JBoss Tools in Eclipse Juno.

WeiJie Lim
Ranch Hand

Joined: Sep 05, 2012
Posts: 85
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

Joined: Aug 11, 2011
Posts: 440

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 ?


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
WeiJie Lim
Ranch Hand

Joined: Sep 05, 2012
Posts: 85
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 ?





[Thumbnail for ead1.png]

Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

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

Joined: Sep 05, 2012
Posts: 85
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

Joined: Sep 13, 2007
Posts: 2452
    
    8

Have you tried not deploying using Eclipse but through JBoss's app console?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

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.
 
jQuery in Action, 2nd edition
 
subject: Deploy WAR file via JBoss Tools in Eclipse Juno.