Chris Kutler | 11 Jul 05:48

questions about default GlassFish deployment for JRuby apps

While trying to learn about the new behavior (the default server is JRuby) when running JRuby apps, I ran into
http://www.netbeans.org/issues/show_bug.cgi?id=139188 I was not able to get any of the expected URLs to work (that is, the 8080 equivalent of the 3000 URLs). For example, for the sample Depot application,
http://localhost:8080/store does not work, when I select GlassFish for the server.

However, when I select WEBrick for the server,

http://localhost:3000/store

does work.


Now, on to the questions

1) I discovered that if I opened the GlassFish server's properties, clicked the JRuby tab and selected the Deploy All Rails Applications At Root Context checkbox, and redeployed the app, then the above URL worked.

So, it seems to me that our users must not want to deploy Rails apps at the root context. Why wouldn't they? If you don't check the box, what URLs do you use to access the Rails app. When/why would one decide to check this box (it seems to me that the box should be checked by default, but I am sure I am not understanding what the default behavior should be). I certainly need some help to describe to our uses when they need to go and check this box.


2) I noticed that when I went to delete public/index.html from a Rails application that I was working on I got an error message from the IDE saying it was unable to delete the file (it didn't say why), I had to shutdown GF before I could delete the file. This was never a problem with WEBrick. Is this as expected for GF, if so, I had better document it?











Gmane