Jahia Dev Forum > Angular 2 avec jahia

1 (1 Good)
0 (0 Bad)

Angular 2 avec jahia

by  mathieu.girardon@capgemini.com »  2017/03/31 09:36

Bonjour, 

J'ai trouvé un module sur github (https://github.com/Jahia/generic-module) permettant d'utiliser angular avec jahia. N'ayant pas trouvé de doc sur ce module, je n'arrive pas à le faire fonctionner. J'ai téléchargé le plugin maven "resource-front-end" comme précisé dans le pom. Malgré cela, voici les erreurs que je rencontre lors du build du module (qui n'empêchent pas le build) et ensuite lorsque je l'utilise sur un site :

build :

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.jahia.modules:generic-module:bundle:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.github.eirslett:frontend-maven-plugin is missing. @ line 87, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/com/github/eirslett/frontend-maven-plugin/maven-metadata.xml
[INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/com/github/eirslett/frontend-maven-plugin/maven-metadata.xml (2 KB at 1.9 KB/sec)
[INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
[INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml (2 KB at 29.0 KB/sec)
[INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
[INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (623 B at 14.8 KB/sec)
[INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
[INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (709 B at 17.8 KB/sec)
[INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/jahia/plugins/frontend-resources-maven-plugin/1.0-SNAPSHOT/maven-metadata.xml
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building generic-module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ generic-module ---
[INFO] Deleting C:\Users\mathgira\workspace\generic-module\target
[INFO] 
[INFO] --- maven-enforcer-plugin:1.1.1:enforce (enforce-versions) @ generic-module ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0:create (default) @ generic-module ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[WARNING] Cannot get the revision information from the scm repository, proceeding with revision of 00000 : 
No such provider: 'dummy'.
[INFO] Storing buildNumber: 00000 at timestamp: 1490951946922
[WARNING] Cannot get the branch information from the scm repository, proceeding with UNKNOWN_BRANCH : 
No such provider: 'dummy'.
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:gitbuildnumber (default) @ generic-module ---
Executing: cmd.exe /X /C "git rev-parse HEAD"
Working directory: C:\Users\mathgira\workspace\generic-module
Executing: cmd.exe /X /C "git rev-list --all"
Working directory: C:\Users\mathgira\workspace\generic-module
[INFO] 
[INFO] --- frontend-maven-plugin:1.4:install-node-and-npm (npm install node and npm) @ generic-module ---
[INFO] Node v4.6.0 is already installed.
[INFO] NPM 3.3.4 is already installed.
[INFO] 
[INFO] --- frontend-maven-plugin:1.4:npm (npm install) @ generic-module ---
[INFO] Running 'npm install' in C:\Users\mathgira\workspace\generic-module
[WARNING] npm WARN install Couldn't install optional dependency: Unsupported
[INFO] 
[INFO] > generic-module@1.0.0 postinstall C:\Users\mathgira\workspace\generic-module
[INFO] > typings install
[INFO] 
[ERROR] typings WARN enoent Path "C:\Users\mathgira\workspace\generic-module\typings.json" is missing
[INFO] [?25h
[INFO] └── (No dependencies)
[INFO] 
[WARNING] npm WARN EPEERINVALID angular2-modal@2.0.3 requires a peer of @angular/common@^2.1.1 but none was installed.
[WARNING] npm WARN EPEERINVALID angular2-modal@2.0.3 requires a peer of @angular/core@^2.1.1 but none was installed.
[WARNING] npm WARN EPACKAGEJSON generic-module@1.0.0 No repository field.
[INFO] 
[INFO] --- frontend-maven-plugin:1.4:gulp (gulp build) @ generic-module ---
[INFO] Running 'gulp ' in C:\Users\mathgira\workspace\generic-module
[INFO] [11:19:30] Using gulpfile ~\workspace\generic-module\gulpfile.js
[INFO] [11:19:30] Starting 'default'...
[INFO] [11:19:30] Starting 'compile:typescript'...
[INFO] [11:19:37] Finished 'compile:typescript' after 6.01 s
[INFO] [11:19:37] Starting 'copy-modules'...
[INFO] [11:19:51] Finished 'copy-modules' after 14 s
[INFO] [11:19:51] Starting 'traceur'...
[INFO] [11:19:52] Finished 'traceur' after 1.24 s
[INFO] [11:19:52] Finished 'default' after 22 s
[INFO] 
[INFO] --- frontend-resources-maven-plugin:1.0-SNAPSHOT:frontend-resources (default) @ generic-module ---
[ERROR] Failed to write file. CreateProcess error=2, Le fichier spécifié est introuvable
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:native2ascii (native2ascii) @ generic-module ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ generic-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3842 resources
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ generic-module ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ generic-module ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\mathgira\workspace\generic-module\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ generic-module ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ generic-module ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:jahia-version (jahia-version) @ generic-module ---
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:package-imports (package-imports) @ generic-module ---
[INFO] Packaging imports from C:\Users\mathgira\workspace\generic-module\src\main\import into archive C:\Users\mathgira\workspace\generic-module\target\packaged-imports\META-INF\import.zip (excludes=null, inludes=null)
[INFO] Building zip: C:\Users\mathgira\workspace\generic-module\target\packaged-imports\META-INF\import.zip
[INFO] Attaching directory C:\Users\mathgira\workspace\generic-module\target\packaged-imports to project resources
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:dependencies (prepare-package-dependencies) @ generic-module ---
[INFO] No artifact exclusions specified. Will scan all related dependencies of the project.
[INFO] Scanning project build directory C:\Users\mathgira\workspace\generic-module\target\classes
[INFO] Scanned classes directory in 295 ms. Found 427 project packages.
[INFO] Scanning project dependencies...
[INFO] Using Aether helper for Maven 3.1+
[INFO] Scanned 3 project dependencies in 8021 ms. Currently we have 427 project packages.
[INFO] Scanning resource directory C:\Users\mathgira\workspace\generic-module\src\main\resources...
[WARNING] META-INF\definitions.cnd: Name mix:title is missing namespace URI definition !
[INFO] Scanning resource directory C:\Users\mathgira\workspace\generic-module\src\main\import...
[INFO] Scanned resource directories in 937 ms. Currently we have 427 project packages.
[INFO] Generated 44 package imports for project.
[INFO] Found referenced tag library URIs (from JSPs) :
[INFO]   http://java.sun.com/jsp/jstl/core  provided
[INFO]   http://java.sun.com/jsp/jstl/fmt  provided
[INFO]   http://java.sun.com/jsp/jstl/functions  provided
[INFO]   http://www.jahia.org/tags/functions  provided
[INFO]   http://www.jahia.org/tags/internalLib  provided
[INFO]   http://www.jahia.org/tags/jcr  provided
[INFO]   http://www.jahia.org/tags/search  provided
[INFO]   http://www.jahia.org/tags/templateLib  provided
[INFO]   http://www.jahia.org/tags/uiComponentsLib  provided
[INFO]   http://www.jahia.org/tags/user  provided
[INFO]   http://www.jahia.org/tags/utilityLib  provided
[INFO] Found 1 new content node type definitions in project.
[INFO] Found 9 content node type definitions referenced in project.
[INFO] Building OSGi capabilities for Jahia module dependencies...
[INFO] Took 12139 ms for the dependencies analysis
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ generic-module ---
[WARNING] Bundle org.jahia.modules:generic-module:bundle:1.0-SNAPSHOT : Unused Private-Package instructions, no such package(s) on the class path: [!*]
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ generic-module ---
[INFO] 
[INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ generic-module ---
[INFO] Building jar: C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:check-dependencies (verify-package-dependencies) @ generic-module ---
[INFO] No artifact exclusions specified. Will scan all related dependencies of the project.
[INFO] Scanning project build directory C:\Users\mathgira\workspace\generic-module\target\classes
[INFO] Scanned classes directory in 222 ms. Found 427 project packages.
[INFO] Scanning project dependencies...
[INFO] Using Aether helper for Maven 3.1+
[INFO] Scanned 3 project dependencies in 5215 ms. Currently we have 427 project packages.
[INFO] Extract JAR C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar contents to directory C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar-1490952050574
[INFO] Overwriting existing META-INF/MANIFEST file
[INFO] Building jar: C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar
[INFO] Deleted temporary JAR extraction directory C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar-1490952050574
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ generic-module ---
[INFO] Installing C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT.jar
[INFO] Installing C:\Users\mathgira\workspace\generic-module\pom.xml to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT.pom
[INFO] Installing C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT-sources.jar to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ generic-module ---
[INFO] Installing org/jahia/modules/generic-module/1.0-SNAPSHOT/generic-module-1.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] 
[INFO] --- jahia-maven-plugin:4.9.1:deploy (default-cli) @ generic-module ---
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] Data directory path is set to "${jahiaWebAppRoot}/../../../digital-factory-data/".
[INFO] Data directory path resolved to: C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data
[INFO] Deploying module C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar into C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data\modules
[INFO] Copied C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar to C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data\modules
[INFO] ...done
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:50 min
[INFO] Finished at: 2017-03-31T11:21:37+02:00
[INFO] Final Memory: 55M/615M
[INFO] ------------------------------------------------------------------------

 

 

Lors de l'utilisation sur un site : 

Failed to load resource: the server responded with a status of 404 (Introuvable)
home.html:298 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/lodash/index.js
    Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/lodash/index.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/lodash/index.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/lodash/index.js
(anonymous) @ home.html:298
http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js Failed to load resource: the server responded with a status of 404 (Introuvable)
home.html:295 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js
    Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js
(anonymous) @ home.html:295
http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
home.html:302 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
    Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
(anonymous) @ home.html:302
home.html:310 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
    Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js as "angular2-modal" from http://localhost:8080/modules/generic-module/javascript/app/app.module.js
        at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)
        at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)
        at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)
        at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)
    Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js as "angular2-modal" from http://localhost:8080/modules/generic-module/javascript/app/app.module.js
(anonymous) @ home.html:310
http://localhost:8080/modules/jsrepository/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/@angular/core/bundles/core.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/@angular/platform-browser/bundles/platform-browser.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/angular2-modal/plugins/bootstrap/index.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/@angular/core/bundles/core.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)
http://localhost:8080/modules/jsrepository/angular2-modal/plugins/bootstrap/index.js Failed to load resource: the server responded with a status of 404 (Introuvable)

Je pense qu'il me manque un module (jsrepository) mais je ne sais pas ou le trouver. Si vous avez besoin d'informations complémentaires, n'hésitez pas à me demander.

En vous remerciant par avance de votre aide.

cordialement,

Mathieu

  • Angular 2 avec jahia
    2017/03/31 11:58

    mathieu.girardon@capgemini.com <p>Bonjour,&nbsp;</p> <p>J&#39;ai trouv&eacute; un module sur github (https://github.com/Jahia/generic-module) permettant d&#39;utiliser angular avec jahia. N&#39;ayant pas trouv&eacute;&nbsp;de doc sur ce module, je n&#39;arrive pas &agrave; le faire fonctionner. J&#39;ai t&eacute;l&eacute;charg&eacute; le plugin maven &quot;resource-front-end&quot; comme pr&eacute;cis&eacute;&nbsp;dans le pom. Malgr&eacute; cela,&nbsp;voici&nbsp;les erreurs que&nbsp;je rencontre lors du build du module (qui n&#39;emp&ecirc;chent pas le build) et ensuite lorsque je l&#39;utilise sur un site&nbsp;:</p> <p>build :</p> <blockquote> <p>[INFO] Scanning for projects...<br /> [WARNING]&nbsp;<br /> [WARNING] Some problems were encountered while building the effective model for org.jahia.modules:generic-module:bundle:1.0-SNAPSHOT<br /> [WARNING] &#39;build.plugins.plugin.version&#39; for com.github.eirslett:frontend-maven-plugin is missing. @ line 87, column 21<br /> [WARNING]&nbsp;<br /> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.<br /> [WARNING]&nbsp;<br /> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.<br /> [WARNING]&nbsp;<br /> [INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/com/github/eirslett/frontend-maven-plugin/maven-metadata.xml<br /> [INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/com/github/eirslett/frontend-maven-plugin/maven-metadata.xml (2 KB at 1.9 KB/sec)<br /> [INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml<br /> [INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml (2 KB at 29.0 KB/sec)<br /> [INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml<br /> [INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-install-plugin/maven-metadata.xml (623 B at 14.8 KB/sec)<br /> [INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml<br /> [INFO] Downloaded: https://devtools.jahia.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (709 B at 17.8 KB/sec)<br /> [INFO] Downloading: https://devtools.jahia.com/nexus/content/groups/public/org/jahia/plugins/frontend-resources-maven-plugin/1.0-SNAPSHOT/maven-metadata.xml<br /> [INFO] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building generic-module 1.0-SNAPSHOT<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO]&nbsp;<br /> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ generic-module ---<br /> [INFO] Deleting C:\Users\mathgira\workspace\generic-module\target<br /> [INFO]&nbsp;<br /> [INFO] --- maven-enforcer-plugin:1.1.1:enforce (enforce-versions) @ generic-module ---<br /> [INFO]&nbsp;<br /> [INFO] --- buildnumber-maven-plugin:1.0:create (default) @ generic-module ---<br /> [INFO] Checking for local modifications: skipped.<br /> [INFO] Updating project files from SCM: skipped.<br /> [WARNING] Cannot get the revision information from the scm repository, proceeding with revision of 00000 :&nbsp;<br /> No such provider: &#39;dummy&#39;.<br /> [INFO] Storing buildNumber: 00000 at timestamp: 1490951946922<br /> [WARNING] Cannot get the branch information from the scm repository, proceeding with UNKNOWN_BRANCH :&nbsp;<br /> No such provider: &#39;dummy&#39;.<br /> [INFO] Storing buildScmBranch: UNKNOWN_BRANCH<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:gitbuildnumber (default) @ generic-module ---<br /> Executing: cmd.exe /X /C &quot;git rev-parse HEAD&quot;<br /> Working directory: C:\Users\mathgira\workspace\generic-module<br /> Executing: cmd.exe /X /C &quot;git rev-list --all&quot;<br /> Working directory: C:\Users\mathgira\workspace\generic-module<br /> [INFO]&nbsp;<br /> [INFO] --- frontend-maven-plugin:1.4:install-node-and-npm (npm install node and npm) @ generic-module ---<br /> [INFO] Node v4.6.0 is already installed.<br /> [INFO] NPM 3.3.4 is already installed.<br /> [INFO]&nbsp;<br /> [INFO] --- frontend-maven-plugin:1.4:npm (npm install) @ generic-module ---<br /> [INFO] Running &#39;npm install&#39; in C:\Users\mathgira\workspace\generic-module<br /> [WARNING] npm WARN install Couldn&#39;t install optional dependency: Unsupported<br /> [INFO]&nbsp;<br /> [INFO] &gt; generic-module@1.0.0 postinstall C:\Users\mathgira\workspace\generic-module<br /> [INFO] &gt; typings install<br /> [INFO]&nbsp;<br /> [ERROR] typings WARN enoent Path &quot;C:\Users\mathgira\workspace\generic-module\typings.json&quot; is missing<br /> [INFO] [?25h<br /> [INFO] &acirc;&rdquo;&rdquo;&acirc;&rdquo;&euro;&acirc;&rdquo;&euro; (No dependencies)<br /> [INFO]&nbsp;<br /> [WARNING] npm WARN EPEERINVALID angular2-modal@2.0.3 requires a peer of @angular/common@^2.1.1 but none was installed.<br /> [WARNING] npm WARN EPEERINVALID angular2-modal@2.0.3 requires a peer of @angular/core@^2.1.1 but none was installed.<br /> [WARNING] npm WARN EPACKAGEJSON generic-module@1.0.0 No repository field.<br /> [INFO]&nbsp;<br /> [INFO] --- frontend-maven-plugin:1.4:gulp (gulp build) @ generic-module ---<br /> [INFO] Running &#39;gulp &#39; in C:\Users\mathgira\workspace\generic-module<br /> [INFO] [11:19:30] Using gulpfile ~\workspace\generic-module\gulpfile.js<br /> [INFO] [11:19:30] Starting &#39;default&#39;...<br /> [INFO] [11:19:30] Starting &#39;compile:typescript&#39;...<br /> [INFO] [11:19:37] Finished &#39;compile:typescript&#39; after 6.01 s<br /> [INFO] [11:19:37] Starting &#39;copy-modules&#39;...<br /> [INFO] [11:19:51] Finished &#39;copy-modules&#39; after 14 s<br /> [INFO] [11:19:51] Starting &#39;traceur&#39;...<br /> [INFO] [11:19:52] Finished &#39;traceur&#39; after 1.24 s<br /> [INFO] [11:19:52] Finished &#39;default&#39; after 22 s<br /> [INFO]&nbsp;<br /> [INFO] --- frontend-resources-maven-plugin:1.0-SNAPSHOT:frontend-resources (default) @ generic-module ---<br /> [ERROR] Failed to write file. CreateProcess error=2, Le fichier sp&eacute;cifi&eacute; est introuvable<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:native2ascii (native2ascii) @ generic-module ---<br /> [INFO]&nbsp;<br /> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ generic-module ---<br /> [INFO] Using &#39;UTF-8&#39; encoding to copy filtered resources.<br /> [INFO] Copying 3842 resources<br /> [INFO] Copying 1 resource<br /> [INFO]&nbsp;<br /> [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ generic-module ---<br /> [INFO] Nothing to compile - all classes are up to date<br /> [INFO]&nbsp;<br /> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ generic-module ---<br /> [INFO] Using &#39;UTF-8&#39; encoding to copy filtered resources.<br /> [INFO] skip non existing resourceDirectory C:\Users\mathgira\workspace\generic-module\src\test\resources<br /> [INFO]&nbsp;<br /> [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ generic-module ---<br /> [INFO] Nothing to compile - all classes are up to date<br /> [INFO]&nbsp;<br /> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ generic-module ---<br /> [INFO] No tests to run.<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:jahia-version (jahia-version) @ generic-module ---<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:package-imports (package-imports) @ generic-module ---<br /> [INFO] Packaging imports from C:\Users\mathgira\workspace\generic-module\src\main\import into archive C:\Users\mathgira\workspace\generic-module\target\packaged-imports\META-INF\import.zip (excludes=null, inludes=null)<br /> [INFO] Building zip: C:\Users\mathgira\workspace\generic-module\target\packaged-imports\META-INF\import.zip<br /> [INFO] Attaching directory C:\Users\mathgira\workspace\generic-module\target\packaged-imports to project resources<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:dependencies (prepare-package-dependencies) @ generic-module ---<br /> [INFO] No artifact exclusions specified. Will scan all related dependencies of the project.<br /> [INFO] Scanning project build directory C:\Users\mathgira\workspace\generic-module\target\classes<br /> [INFO] Scanned classes directory in 295 ms. Found 427 project packages.<br /> [INFO] Scanning project dependencies...<br /> [INFO] Using Aether helper for Maven 3.1+<br /> [INFO] Scanned 3 project dependencies in 8021 ms. Currently we have 427 project packages.<br /> [INFO] Scanning resource directory C:\Users\mathgira\workspace\generic-module\src\main\resources...<br /> [WARNING] META-INF\definitions.cnd: Name mix:title is missing namespace URI definition !<br /> [INFO] Scanning resource directory C:\Users\mathgira\workspace\generic-module\src\main\import...<br /> [INFO] Scanned resource directories in 937 ms. Currently we have 427 project packages.<br /> [INFO] Generated 44 package imports for project.<br /> [INFO] Found referenced tag library URIs (from JSPs) :<br /> [INFO] &nbsp; http://java.sun.com/jsp/jstl/core &nbsp;provided<br /> [INFO] &nbsp; http://java.sun.com/jsp/jstl/fmt &nbsp;provided<br /> [INFO] &nbsp; http://java.sun.com/jsp/jstl/functions &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/functions &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/internalLib &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/jcr &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/search &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/templateLib &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/uiComponentsLib &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/user &nbsp;provided<br /> [INFO] &nbsp; http://www.jahia.org/tags/utilityLib &nbsp;provided<br /> [INFO] Found 1 new content node type definitions in project.<br /> [INFO] Found 9 content node type definitions referenced in project.<br /> [INFO] Building OSGi capabilities for Jahia module dependencies...<br /> [INFO] Took 12139 ms for the dependencies analysis<br /> [INFO]&nbsp;<br /> [INFO] --- maven-bundle-plugin:2.5.3:bundle (default-bundle) @ generic-module ---<br /> [WARNING] Bundle org.jahia.modules:generic-module:bundle:1.0-SNAPSHOT : Unused Private-Package instructions, no such package(s) on the class path: [!*]<br /> [INFO]&nbsp;<br /> [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ generic-module ---<br /> [INFO]&nbsp;<br /> [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ generic-module ---<br /> [INFO] Building jar: C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT-sources.jar<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:check-dependencies (verify-package-dependencies) @ generic-module ---<br /> [INFO] No artifact exclusions specified. Will scan all related dependencies of the project.<br /> [INFO] Scanning project build directory C:\Users\mathgira\workspace\generic-module\target\classes<br /> [INFO] Scanned classes directory in 222 ms. Found 427 project packages.<br /> [INFO] Scanning project dependencies...<br /> [INFO] Using Aether helper for Maven 3.1+<br /> [INFO] Scanned 3 project dependencies in 5215 ms. Currently we have 427 project packages.<br /> [INFO] Extract JAR C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar contents to directory C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar-1490952050574<br /> [INFO] Overwriting existing META-INF/MANIFEST file<br /> [INFO] Building jar: C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar<br /> [INFO] Deleted temporary JAR extraction directory C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar-1490952050574<br /> [INFO]&nbsp;<br /> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ generic-module ---<br /> [INFO] Installing C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT.jar<br /> [INFO] Installing C:\Users\mathgira\workspace\generic-module\pom.xml to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT.pom<br /> [INFO] Installing C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT-sources.jar to C:\Users\mathgira\.m2\repository\org\jahia\modules\generic-module\1.0-SNAPSHOT\generic-module-1.0-SNAPSHOT-sources.jar<br /> [INFO]&nbsp;<br /> [INFO] --- maven-bundle-plugin:2.5.3:install (default-install) @ generic-module ---<br /> [INFO] Installing org/jahia/modules/generic-module/1.0-SNAPSHOT/generic-module-1.0-SNAPSHOT.jar<br /> [INFO] Writing OBR metadata<br /> [INFO]&nbsp;<br /> [INFO] --- jahia-maven-plugin:4.9.1:deploy (default-cli) @ generic-module ---<br /> log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).<br /> log4j:WARN Please initialize the log4j system properly.<br /> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.<br /> [INFO] Data directory path is set to &quot;${jahiaWebAppRoot}/../../../digital-factory-data/&quot;.<br /> [INFO] Data directory path resolved to: C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data<br /> [INFO] Deploying module C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar into C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data\modules<br /> [INFO] Copied C:\Users\mathgira\workspace\generic-module\target\generic-module-1.0-SNAPSHOT.jar to C:\DigitalExperienceManager-EnterpriseDistribution-7.2.0.1\digital-factory-data\modules<br /> [INFO] ...done<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] BUILD SUCCESS<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Total time: 02:50 min<br /> [INFO] Finished at: 2017-03-31T11:21:37+02:00<br /> [INFO] Final Memory: 55M/615M<br /> [INFO] ------------------------------------------------------------------------</p> <p>&nbsp;</p> </blockquote> <p>&nbsp;</p> <p>Lors de l&#39;utilisation sur un site :&nbsp;</p> <blockquote> <p>Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> home.html:298 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/lodash/index.js<br /> &nbsp;&nbsp; &nbsp;Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/lodash/index.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/lodash/index.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/lodash/index.js<br /> (anonymous) @ home.html:298<br /> http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> home.html:295 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js<br /> &nbsp;&nbsp; &nbsp;Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/jquery/dist/jquery.slim.min.js<br /> (anonymous) @ home.html:295<br /> http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> home.html:302 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> &nbsp;&nbsp; &nbsp;Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> (anonymous) @ home.html:302<br /> home.html:310 Error: (SystemJS) XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> &nbsp;&nbsp; &nbsp;Error: XHR error (404 Introuvable) loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js as &quot;angular2-modal&quot; from http://localhost:8080/modules/generic-module/javascript/app/app.module.js<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.wrapFn [as _onreadystatechange] (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:698:29)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at ZoneDelegate.invokeTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:265:35)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at Zone.runTask (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:154:47)<br /> &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/modules/generic-module/javascript/node_modules/zone.js/dist/zone.js:335:33)<br /> &nbsp;&nbsp; &nbsp;Error loading http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js as &quot;angular2-modal&quot; from http://localhost:8080/modules/generic-module/javascript/app/app.module.js<br /> (anonymous) @ home.html:310<br /> http://localhost:8080/modules/jsrepository/@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/@angular/core/bundles/core.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/@angular/platform-browser/bundles/platform-browser.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/angular2-modal/plugins/bootstrap/index.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/@angular/core/bundles/core.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/angular2-modal/bundles/angular2-modal.umd.js Failed to load resource: the server responded with a status of 404 (Introuvable)<br /> http://localhost:8080/modules/jsrepository/angular2-modal/plugins/bootstrap/index.js Failed to load resource: the server responded with a status of 404 (Introuvable)</p> </blockquote> <p>Je pense qu&#39;il me manque un module (jsrepository) mais je ne sais pas ou le trouver. Si vous avez besoin d&#39;informations compl&eacute;mentaires, n&#39;h&eacute;sitez pas &agrave; me demander.</p> <p>En vous remerciant par avance&nbsp;de votre aide.</p> <p>cordialement,</p> <p>Mathieu</p>

  • Number of messages  1
    Registration date Mar 31, 2017
    0 (0 Good)
    0 (0 Bad)

    Re: Angular 2 avec jahia

    by  alexk »  2017/03/31 12:08

    Hello, Creator of the module here. 

    Unfortunatelly we have not worked on that module since October last year so there are numerous dependency issues that you will find because angular2 version has changes and all other dependencies got updated (most likelly). It is also likelly that the code itself needs to be refactored to be compatible with the latest version of angular2. Originally the module was intended as a quick start for internal projects that use angular2, but we did not have much time to progress in that direction.

    If you want to build an angular 2 application I would suggest that you use that module as your guide it terms of how you can get a basic angular 2 setup (don't approach it as a fool proof way). All dependencies and versions need to updated according to most recent angular 2 documentation.

    Let me know if you have more questions.

    Thanks, Alex

    P.S. I just did a quick check on angular 2 and it is angular 4 now, so it seems there have been quite a few changes to it.

    Number of messages  1
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Angular 4 JAHIA

    by  Angular 4 JAHIA »  2017/09/06 06:28

    Hi,
      How to proceed if I want to build an app using Angular 4 on Jahia?

     

    Angular 4 JAHIA
    Number of messages  1
    Not registered
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page