Description of problem:
I am unable to test helloworld-html5 application for REST communication on any JBoss AS / EAP server. The problem is that in documentation, it is said I have to query
in order to get some xml formatted answer of David (substitue xml to json for json response).
However, I am getting 404/405 error codes.
The solution lies in class org.jboss.as.quickstarts.html5rest.HelloWorld where both endpoints are set. They are set as @POST but it does not make sense, they have to be annotated as @GET. After it, the application behaves correctly.
Web counterpart of the application behaves without issues.
Issued pull 553 with the fix:
@pmuir: There is also a 'Quickstarts' component under JBoss Enterprise Application Platform. Would that be a better location for this one?
@sgilda, no this one is targeted at WFK. An issue in JDF is the correct thing.
@pmuir: OK. This one is fixed an merged.
Edited doc text for WFK 2.3 release notes.
The commit with the fix is here:
The fix impacts the following files:
@ppenicka, @smikloso: Should this fix be applied to the WFK repository (https://github.com/jboss-eap/quickstart/tree/master-wfk23) also? Or is it too late?
@ppenicka: Please note, the index.html file also needs modification. Otherwise, the simple "Hello" doesn't work when you click the button.
Changed the doc text so that the workaround matches the mentioned upstream fix, thanks sgilda for the notice ;)
.. and inserted the doc text into the right field (Doc Text instead of Environment).
Migrated to JIRA
Sande Gilda <email@example.com> made a comment on jira WFK2-32
This issue was fixed in the community version of the quickstarts here: https://github.com/jboss-jdf/jboss-as-quickstart
This is the commit that was done on July 3, 2013: https://github.com/jboss-jdf/jboss-as-quickstart/commit/f2158fa4fd177b65b4a1f543fbe62165e69b8099
In the bug comments (https://bugzilla.redhat.com/show_bug.cgi?id=980488#c6), I asked whether the fix needed to be applied to the WFK repository. From the comments after, it's not clear what was decided.
After I fixed bug 980488, I reassigned it to Marek Novotny. Since this is fixed in the community quickstarts, should this JIRA be assigned Marek or someone on the WFK team?
Added dev_ack flag.