• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deploy WAR file via JBoss Tools in Eclipse Juno.

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried not deploying using Eclipse but through JBoss's app console?
 
Saif Asif
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic