Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 949513

Summary: QUnit and jQuery related issues in jboss-html5-mobile-archetype
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Karel Piwko <kpiwko>
Component: ExamplesAssignee: Pete Muir <pmuir>
Status: CLOSED CURRENTRELEASE QA Contact: Tolis Emmanouilidis <aemmanou>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.2.0CC: aemmanou, bsutter, kpiwko, myarboro, oskutka, pmuir, ppenicka, rruss, sgilda
Target Milestone: GA   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 927314 Environment:
Last Closed: 2013-05-14 14:55:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 927314    
Bug Blocks:    

Description Karel Piwko 2013-04-08 10:46:35 UTC
Example generated from http://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html/Getting_Started_with_HTML5_Mobile_Web_Development/sect-deploying.html has several problems. See bz 927314 for more details:

* Procedure 1.5. QUnit and JBoss Developer Studio
Could not execute the QUnit tests included in index.html since jquery-1.8.1.min.js script does not exist inside the resources folder. However the jquery-1.8.2.min.js exists inside the resources folder so the index.html has to be changed to include the JQuery 1.8.2 version instead of 1.8.1.

* Procedure 1.6. JBoss Developer Studio Browser Simulator
The procedure mentioned in the doc opens the file:///home/../../jboss-as-kitchensink-html5-mobile/src/main/webapp/index.html. Obviously the application is not functional on the BrowserSim since the file is opened through the file protocol and moreover the URL does not corresponds to the URL shown in the Figure 
1.8. Mobile

Additional, jQuery

Comment 1 Karel Piwko 2013-04-08 10:47:22 UTC
Additionally, jQuery show version 1.8.2, which is not the one certified in WFK 2.2. There should be 1.7.1 instead.

Comment 2 JBoss JIRA Server 2013-04-08 10:50:32 UTC
Karel Piwko <kpiwko> made a comment on jira JDF-252

Could not execute the QUnit tests included in index.html since jquery-1.8.1.min.js script does not exist inside the resources folder. However the jquery-1.8.2.min.js exists inside the resources folder so the index.html has to be changed to include the JQuery 1.8.2 version instead of 1.8.1.

Comment 3 Karel Piwko 2013-04-08 10:51:50 UTC
Procedure 1.6 from https://bugzilla.redhat.com/show_bug.cgi?id=949513#c0 is not related to the archetype, but to its documentation.

Comment 6 JBoss JIRA Server 2013-04-08 14:14:51 UTC
Rafael Benevides <benevides> updated the status of jira JDF-252 to Coding In Progress

Comment 7 JBoss JIRA Server 2013-04-08 14:30:12 UTC
Rafael Benevides <benevides> updated the status of jira JDF-252 to Resolved

Comment 8 JBoss JIRA Server 2013-04-08 14:30:12 UTC
Rafael Benevides <benevides> made a comment on jira JDF-252

7.1.3.CR4 released with correction.

Comment 9 JBoss JIRA Server 2013-04-08 14:34:01 UTC
Pete Muir <pmuir.uk> made a comment on jira JDF-252

[~rafabene] did you also check that the quickstart has the right version>

Comment 10 Pete Muir 2013-04-08 14:35:13 UTC
A fixed version is released in the community.

Comment 11 JBoss JIRA Server 2013-04-08 14:39:18 UTC
Rafael Benevides <benevides> made a comment on jira JDF-252

[~pmuir] Yes. https://github.com/jboss-jdf/jboss-as-quickstart/blob/master/kitchensink-html5-mobile/src/test/qunit/index.html

That's why I'm working on JDF-250 ;)

Comment 14 JBoss JIRA Server 2013-04-09 13:07:37 UTC
Karel Piwko <kpiwko> made a comment on jira JDF-253

[~rafabene] can you have a look at this issue as well? Is this something to be solved by JDF-250?

Comment 15 JBoss JIRA Server 2013-04-10 14:00:40 UTC
Rafael Benevides <benevides> made a comment on jira JDF-253

Oops. I forgot to update stacks.yaml the day after the release ( I always wait for maven central sync). It should work now on JBDS.

Unfortunately that's not the kind of thing solvable by JDF-250.

Comment 16 Tolis Emmanouilidis 2013-04-10 16:24:07 UTC
The issue with the Jboss Central archetype version is fixed. 7.1.3.CR4 is the current latest version on JBoss Central.

Comment 17 Tolis Emmanouilidis 2013-04-11 14:49:25 UTC
The jQuery version jquery-1.8.2.min.js is not the one certified in WFK 2.2. There should be 1.7.1 instead. Relevant JIRA JDF-253.

Comment 18 JBoss JIRA Server 2013-04-11 16:42:18 UTC
Rafael Benevides <benevides> made a comment on jira JDF-253

I would like that you check this PR https://github.com/jboss-jdf/jboss-as-quickstart/pull/491.

Archetypes will follow the origin quickstarts so It's important that the quickstarts should be fixed first.

Comment 19 JBoss JIRA Server 2013-04-11 21:15:55 UTC
Rafael Benevides <benevides> made a comment on jira JDF-253

The Archetype are now kept in sync with the origin quickstart. That's made by a QSTools goal.

I would like that the following PR should be reviewed/tested for someone else: https://github.com/jboss-jdf/jboss-as-archetype/pull/15

I made some basic tests and I feel confortable with the sync made by QSTools, but it's always good that have another review or more tests.

This Pull Request has 3 modifications/commits


1) Remove the Blank Archetype - There's no need to keep the Archetypes on gitrepo since it's generated with release.sh script

2) Added pom.xml config that to use qstools:archetypeSync goal. The main point is that a Archetype could be synched with a branch/tag/commit - *The idea is that the archetypes should use a quickstarts .Final tag on each JDF release.*

{code:xml} 
<projectGitRepo>git://github.com/jboss-jdf/jboss-as-quickstart.git</projectGitRepo>
<projectPath>kitchensink-html5-mobile</projectPath>
<rootPackage>org.jboss.as.quickstarts.html5_mobile</rootPackage>
<branch>628fe0122ca9e81812b52d0cfc723d0e12078562</branch>
{code} 

3) The synchronization it self. I tested it but I would like that you test it too before I merge this PR.

Comment 20 JBoss JIRA Server 2013-04-18 19:14:47 UTC
Rafael Benevides <benevides> made a comment on jira JDF-253

PR updated and waiting for review

Comment 21 Karel Piwko 2013-04-19 11:07:48 UTC
Marking as modified. Waiting for async push of 7.1.3.CR5 to Maven Central.

Comment 22 JBoss JIRA Server 2013-04-22 13:57:51 UTC
Rafael Benevides <benevides> made a comment on jira JDF-253

Archetypes 7.1.3.CR5 released

Comment 23 JBoss JIRA Server 2013-04-22 13:58:03 UTC
Rafael Benevides <benevides> updated the status of jira JDF-252 to Reopened

Comment 24 JBoss JIRA Server 2013-04-22 13:58:03 UTC
Rafael Benevides <benevides> made a comment on jira JDF-252

Archetypes 7.1.3.CR5 released

Comment 25 JBoss JIRA Server 2013-04-22 13:59:17 UTC
Rafael Benevides <benevides> updated the status of jira JDF-252 to Resolved

Comment 26 JBoss JIRA Server 2013-04-23 11:32:07 UTC
Tolis Emmanouilidis <aemmanou> updated the status of jira JDF-255 to Resolved

Comment 27 Karel Piwko 2013-05-14 14:55:01 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.