-
1. Re: Understanding how JBoss Tools selects the first file to be executed.
maxandersen Jul 1, 2013 6:15 AM (in response to nakawoh)JBoss Tools does not have any play in this matter - it is all up to OpenShift.
My guess is you haven't actually committed/pushed new content yet ?
If you haven't committed and *pushed* the content to OpenShift then it will still find your old index.html.
-
2. Re: Understanding how JBoss Tools selects the first file to be executed.
nakawoh Jul 1, 2013 8:22 AM (in response to maxandersen)I clicked "publish" under the Openshift Application server in Eclipse. Does this have the same effect at committing and pushing the content ?
-
3. Re: Understanding how JBoss Tools selects the first file to be executed.
maxandersen Jul 2, 2013 3:51 AM (in response to nakawoh)yes it should.
-
4. Re: Understanding how JBoss Tools selects the first file to be executed.
nakawoh Jul 2, 2013 10:16 AM (in response to maxandersen)Hmm it still doesn't work =/.
I tried deploying my own WAR file to the deployments folder in the OpenShift app in Eclipse, but it is not deployed too.
The WAR file still remains as a WAR file in the deployments folder, and JBOSS informs me that "there are no local changes in "project1" even after copying the WAR file to the deployments folder in eclipse. Shouldn't this be a local change already ?
Thanks for guidance.
In the attached image, this is what happens after publishing. I placed my "AssignHelp.war" file into the deployments folder as shown.
-
5. Re: Understanding how JBoss Tools selects the first file to be executed.
maxandersen Jul 3, 2013 2:40 AM (in response to nakawoh)See that ? on the AssignHelp.war - this means you haven't committed the file yet.
Right click the file and do Team > Add to Index then Team > Commit (you can also use Team > Commit directly and then just select the file you want to add).
Once you have committed new files will be pushed to openshift when you publish via the server adapter.
Hope that helps.
-
6. Re: Understanding how JBoss Tools selects the first file to be executed.
nakawoh Jul 3, 2013 10:54 AM (in response to maxandersen)Oh thanks alot, I didn't know about the committing part.
After committing the WAR file, it has some read error and the war file isn't available in the files to commit anymore when I tried re-committing.
I will try creating a brand new openshift application and see how things goes =)
-
7. Re: Understanding how JBoss Tools selects the first file to be executed.
nakawoh Jul 7, 2013 6:39 AM (in response to maxandersen)I re-created a new OpenShift application and placed the WAR file in the deployments folder.
After that, I right clicked on the WAR file and click Team > Commit.
I clicked "publish" but the " no local changes " message still shows.
After publishing, I checked the OpenShift site, it is still showing the default page.
Anything I am doing wrong here ?
There's this tail end portion of the logs after publishing : ( not sure if it helps. My war file isn't ROOT.war though )
Downloaded: http://mirror1.ops.rhcloud.com:80/nexus/content/groups/public/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar (422 KB at 1160.6 KB/sec)
[INFO] Packaging webapp
[INFO] Assembling webapp [ead3] in [/var/lib/openshift/51d9413a50044694bf000108/app-root/runtime/repo/target/ead3]
[INFO] Processing war project
[INFO] Copying webapp resources [/var/lib/openshift/51d9413a50044694bf000108/app-root/runtime/repo/src/main/webapp]
[INFO] Webapp assembled in [182 msecs]
[INFO] Building war: /var/lib/openshift/51d9413a50044694bf000108/app-root/runtime/repo/deployments/ROOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
-
8. Re: Understanding how JBoss Tools selects the first file to be executed.
dgolovin Jul 9, 2013 8:57 PM (in response to nakawoh)when you call Team->Commit... did you see list of files to commit in the bottom part of "Commit Changes" Window? You need to select files to commit and add comment. Then press "Commit and Push" button. After pushing is finished you can reference the app in in your war file as https://${appname}-${loginname}.rhcloud.com/${warfilename} and it will open default index page from web app in your war file.