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

Bug 874090

Summary: errai-bus examples - java script validation error in JBDS for various projects
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Stefan Miklosovic <smikloso>
Component: Examples, ErraiAssignee: Pavel SLegr <pslegr>
Status: CLOSED CURRENTRELEASE QA Contact: Karel Piwko <kpiwko>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: bsutter, mnovotny, myarboro, oskutka, rruss
Target Milestone: ---   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: errai-example
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:51:35 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:

Description Stefan Miklosovic 2012-11-07 13:04:43 UTC
Description of problem:
While importing all projects of errai-bus, JavaScript validator throws the errors. 

Version-Release number of selected component (if applicable):
errai-bus examples, concretely:
asyncdemo
clientservice
rpcdemo
stockdemo

How reproducible:
Always unless JavaScript validation is turned off in JBDS preferencies.

Steps to Reproduce:
1. import the projects
2.
3.
  
Actual results:
JavaScript validation errors while importing the project.

Expected results:
No importing errors.

Additional info:
similar bug: #822060 #832066

Comment 1 mark yarborough 2012-11-09 14:39:44 UTC
Fred, Please hook the corresponding JBDS jira here for reference and ensure that this is noted in the JBDS 6.0 release notes.

Comment 2 mark yarborough 2012-11-09 14:42:02 UTC
QE to add CCFR for WFK 2.2 release notes.

Comment 3 Marek Novotny 2013-01-10 12:30:19 UTC
Was this issue release noted and what will we do for fixing it?

Comment 4 Fred Bricon 2013-01-10 12:47:00 UTC
Related JBIDE issue : https://issues.jboss.org/browse/JBIDE-11652

To workaround this issue, you must :
* manually disable Javascript validation for a specific set of js libs :
* Right click on project > Properties > JavaScript > Include Path
* edit the excluded paths of your webapp source folder

These settings will be stored under <project>/.settings/.jsdtscope
* store <project>/.settings/.jsdtscope under your SCM

Comment 5 Marek Novotny 2013-01-10 13:44:14 UTC
ok, thanks for info, Fred.

Pavel, could you add such eclipse setting file?

Comment 6 Pavel SLegr 2013-02-26 13:00:47 UTC
Can you please confirm this error remains.
I can not reproduce any more with following configuration
WFK2.2.0-ER1
http://download.devel.redhat.com/devel/candidates/JBWFK/2.2.0.ER1/jboss-wfk-2.2.0.ER1-errai-tech-preview-demo.zip
and 
with JBDS: 
Version: 6.0.0.GA
Build id: GA-v20121206-1855-B186
Build date: 20121206-1855

In my case I simply extracted downloaded zip with errai demos and then imported as existing Maven project (File/Import/...) the project was imported ok
and I could run it with mvn gwt:run successfully

thanks!

Comment 7 Stefan Miklosovic 2013-02-26 13:40:54 UTC
Hi Pavel,

I tried that in the IDE of the version you specified and I can verify that the project was imported without issues.

Comment 8 Karel Piwko 2013-05-14 14:51:35 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.