question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vaadin 14.0.1+Intellij+Tomcat: visited 0 jar files

See original GitHub issue

Steps to reproduce:

  1. git clone https://github.com/vaadin/skeleton-starter-flow master and make sure Vaadin version in pom.xml is 14.0.1
  2. Create a local Tomcat launch configuration
  3. Launch. The app starts but shows a red Webpack Error popup. The log:
[RMI TCP Connection(2)-127.0.0.1] INFO com.vaadin.flow.server.startup.DevModeInitializer - Starting dev-mode updaters in /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow folder.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Scanning classes to find frontend configurations and dependencies...
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Visited 657 classes. Took 1524 ms.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Added "@vaadin/vaadin-core-shrinkwrap": "14.0.1" line.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Added "@vaadin/vaadin-shrinkwrap": "14.0.1" line.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Updated npm /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/target/frontend/package.json.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Running `npm install` ...
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
20-Aug-2019 13:27:39.837 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/mavi/local/apache-tomcat-9.0.20/webapps/manager]
20-Aug-2019 13:27:40.128 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
20-Aug-2019 13:27:40.192 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/mavi/local/apache-tomcat-9.0.20/webapps/manager] has finished in [355] ms

> @vaadin/vaadin-usage-statistics@2.0.4 postinstall /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/node_modules/@vaadin/vaadin-core-shrinkwrap/node_modules/@vaadin/vaadin-usage-statistics
> node check.js


    Vaadin collects development time usage statistics to improve this product. To opt-out, either run:
    npm explore @vaadin/vaadin-usage-statistics -- npm run disable
    to store disable statistics for the machine, or add
    "vaadin": { "disableUsageStatistics": true }
    to the project package.json and re-run npm install to disable statistics for the project.

    For more details, see https://github.com/vaadin/vaadin-usage-statistics
  

> @vaadin/vaadin-usage-statistics@2.0.4 postinstall /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/node_modules/@vaadin/vaadin-shrinkwrap/node_modules/@vaadin/vaadin-usage-statistics
> node check.js


    Vaadin collects development time usage statistics to improve this product. To opt-out, either run:
    npm explore @vaadin/vaadin-usage-statistics -- npm run disable
    to store disable statistics for the machine, or add
    "vaadin": { "disableUsageStatistics": true }
    to the project package.json and re-run npm install to disable statistics for the project.

    For more details, see https://github.com/vaadin/vaadin-usage-statistics
  

> @vaadin/vaadin-usage-statistics@2.0.8 postinstall /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/node_modules/@vaadin/vaadin-usage-statistics
> node check.js


    Vaadin collects development time usage statistics to improve this product. To opt-out, either run:
    npm explore @vaadin/vaadin-usage-statistics -- npm run disable
    to store disable statistics for the machine, or add
    "vaadin": { "disableUsageStatistics": true }
    to the project package.json and re-run npm install to disable statistics for the project.

    For more details, see https://github.com/vaadin/vaadin-usage-statistics
  

> core-js@2.6.9 postinstall /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/node_modules/core-js
> node scripts/postinstall || echo "ignore"

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN no-name@ No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 887 packages from 394 contributors in 34.631s
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - package.json updated and npm dependencies installed. 
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Copying frontend resources from jar files ...
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - Visited 0 jar files. Took 2 ms.
[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - 

  Failed to find the following imports in the `node_modules` tree:
      - @vaadin/flow-frontend/flow-component-renderer.js
  If the build fails, check that npm packages are installed.

  To fix the build remove `node_modules` directory to reset modules.
  In addition you may run `npm install` to fix `node_modules` tree structure.


[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - No js modules to update
[RMI TCP Connection(2)-127.0.0.1] INFO dev-webpack - Starting webpack-dev-server, port: 38833 dir: /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow
   /usr/bin/node /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/node_modules/webpack-dev-server/bin/webpack-dev-server.js --config /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/webpack.config.js --port 38833 -d --inline=false
[webpack] INFO dev-webpack - ℹ 「wds」: Project is running at http://localhost:38833/webpack-dev-server/
[webpack] INFO dev-webpack - ℹ 「wds」: webpack output is served from /
[webpack] INFO dev-webpack - ℹ 「wds」: Content not from webpack is served from /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/target/classes/META-INF/VAADIN, src/main/webapp
[webpack] INFO dev-webpack -          Serving the 'stats.json' file dynamically.
[webpack] INFO dev-webpack - ✖ 「wdm」: Hash: c005afc0d81e90f6d8f2
[webpack] INFO dev-webpack - Version: webpack 4.30.0
[webpack] INFO dev-webpack - Time: 4049ms
[webpack] INFO dev-webpack - Built at: 08/20/2019 1:28:17 PM
[webpack] INFO dev-webpack -                                                                  Asset       Size      Chunks                    Chunk Names
[webpack] INFO dev-webpack -                      build/vaadin-bundle-0a696e907628830b9cdd.cache.js   1.82 MiB      bundle  [emitted]         bundle
[webpack] INFO dev-webpack -                  build/vaadin-bundle.es5-f5d6953b9b1eec0690a1.cache.js   2.04 MiB  bundle.es5  [emitted]  [big]  bundle.es5
[webpack] INFO dev-webpack -                                       build/webcomponentsjs/LICENSE.md   1.52 KiB              [emitted]         
[webpack] INFO dev-webpack -                                        build/webcomponentsjs/README.md   10.9 KiB              [emitted]         
[webpack] INFO dev-webpack -                      build/webcomponentsjs/bundles/webcomponents-ce.js   16.7 KiB              [emitted]         
[webpack] INFO dev-webpack -                  build/webcomponentsjs/bundles/webcomponents-ce.js.map    112 KiB              [emitted]         
[webpack] INFO dev-webpack -                build/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js    108 KiB              [emitted]         
[webpack] INFO dev-webpack -            build/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map    653 KiB              [emitted]         
[webpack] INFO dev-webpack -                   build/webcomponentsjs/bundles/webcomponents-sd-ce.js   80.9 KiB              [emitted]         
[webpack] INFO dev-webpack -               build/webcomponentsjs/bundles/webcomponents-sd-ce.js.map    527 KiB              [emitted]         
[webpack] INFO dev-webpack -                      build/webcomponentsjs/bundles/webcomponents-sd.js   65.1 KiB              [emitted]         
[webpack] INFO dev-webpack -                  build/webcomponentsjs/bundles/webcomponents-sd.js.map    415 KiB              [emitted]         
[webpack] INFO dev-webpack -                   build/webcomponentsjs/custom-elements-es5-adapter.js  924 bytes              [emitted]         
[webpack] INFO dev-webpack - build/webcomponentsjs/entrypoints/custom-elements-es5-adapter-index.js  656 bytes              [emitted]         
[webpack] INFO dev-webpack -        build/webcomponentsjs/entrypoints/webcomponents-bundle-index.js   1.66 KiB              [emitted]         
[webpack] INFO dev-webpack -            build/webcomponentsjs/entrypoints/webcomponents-ce-index.js  672 bytes              [emitted]         
[webpack] INFO dev-webpack -         build/webcomponentsjs/entrypoints/webcomponents-sd-ce-index.js  851 bytes              [emitted]         
[webpack] INFO dev-webpack -      build/webcomponentsjs/entrypoints/webcomponents-sd-ce-pf-index.js   1.19 KiB              [emitted]         
[webpack] INFO dev-webpack -            build/webcomponentsjs/entrypoints/webcomponents-sd-index.js  761 bytes              [emitted]         
[webpack] INFO dev-webpack -                                     build/webcomponentsjs/package.json      3 KiB              [emitted]         
[webpack] INFO dev-webpack -                          build/webcomponentsjs/webcomponents-bundle.js    109 KiB              [emitted]         
[webpack] INFO dev-webpack -                      build/webcomponentsjs/webcomponents-bundle.js.map    655 KiB              [emitted]         
[webpack] INFO dev-webpack -                          build/webcomponentsjs/webcomponents-loader.js   6.13 KiB              [emitted]         
[webpack] INFO dev-webpack - Entrypoint bundle = build/vaadin-bundle-0a696e907628830b9cdd.cache.js
[webpack] INFO dev-webpack - Entrypoint bundle.es5 [big] = build/vaadin-bundle.es5-f5d6953b9b1eec0690a1.cache.js
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-button/theme/lumo/vaadin-button.js] 72 bytes {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-button/theme/lumo/vaadin-button.js] 72 bytes {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/color.js] 7.63 KiB {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/color.js] 7.43 KiB {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/icons.js] 87 bytes {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/icons.js] 87 bytes {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/sizing.js] 679 bytes {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/sizing.js] 664 bytes {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/spacing.js] 1.29 KiB {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/spacing.js] 1.27 KiB {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/style.js] 1.24 KiB {bundle.es5} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/style.js] 1.23 KiB {bundle} [built]
[webpack] INFO dev-webpack - [../node_modules/@vaadin/vaadin-lumo-styles/typography.js] 3.61 KiB {bundle.es5} [built]
[webpack] INFO dev-webpack - [../target/frontend/generated-flow-imports.js] 770 bytes {bundle.es5} [built]
[webpack] INFO dev-webpack - [../target/frontend/generated-flow-imports.js] 772 bytes {bundle} [built]
[webpack] INFO dev-webpack -     + 171 hidden modules
[webpack] INFO dev-webpack - 
[webpack] ERROR dev-webpack - ERROR in ../target/frontend/generated-flow-imports.js
[webpack] ERROR dev-webpack - Module not found: Error: Can't resolve '@vaadin/flow-frontend/flow-component-renderer.js' in '/home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/target/frontend'
[webpack] ERROR dev-webpack -  @ ../target/frontend/generated-flow-imports.js 12:0-58
[webpack] ERROR dev-webpack - 
[webpack] ERROR dev-webpack - ERROR in ../target/frontend/generated-flow-imports.js
[webpack] ERROR dev-webpack - Module not found: Error: Can't resolve '@vaadin/flow-frontend/flow-component-renderer.js' in '/home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/target/frontend'
[webpack] ERROR dev-webpack -  @ ../target/frontend/generated-flow-imports.js 12:0-58
[webpack] ERROR dev-webpack - ℹ 「wdm」: Failed to compile.
[webpack] ERROR dev-webpack - 
------------------ Frontend compilation failed. -----------------
20-Aug-2019 13:28:17.289 INFO [RMI TCP Connection(2)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
[RMI TCP Connection(2)-127.0.0.1] INFO com.vaadin.flow.server.startup.ServletDeployer - Automatically deploying Vaadin servlet with name com.vaadin.flow.server.startup.ServletDeployer to /*
[2019-08-20 01:28:17,464] Artifact project-base:war exploded: Artifact is deployed successfully
[2019-08-20 01:28:17,464] Artifact project-base:war exploded: Deploy took 47,243 milliseconds
[http-nio-8080-exec-1] WARN com.vaadin.flow.server.DefaultDeploymentConfiguration - 
====================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
====================================================================

Workaround: downgrade to Vaadin 14.0.0. The jar files are now correctly auto-discovered and the app starts:

[RMI TCP Connection(4)-127.0.0.1] INFO dev-updater - Visited 10 jar files. Took 9 ms.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
caaladorcommented, Aug 20, 2019

Wildfly has another problem which is in ticket https://github.com/vaadin/flow/issues/6245 as it uses vfs:/ instead of file:/

0reactions
denis-anisimovcommented, Mar 17, 2020

This comment says that home/mavi/temp/skeleton-starter-flow/ path works . Looks like the problem is only with special paths like /home/mavi/work/vaadin/starters-10+/skeleton-starter-flow/.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Releases | Vaadin
Vaadin Collaboration Kit. The latest version is 5.3.0, published on Dec 13, 2022. See release notes in GitHub. Learn more about the Collaboration ......
Read more >
ERROR: Update from 14.0.2 to 14.0.8 | Vaadin
HI, I bumped up the Vaadin version from 14.0.2 to 14.0.8, cleaned the project, Updated Maven and upon running the updated application using ......
Read more >
Starting spring boot app with Vaadin Flow 14.0.0.rc9 is very slow
I just finished migrating my Spring Boot 2.1.6 / Vaadin 13 app ro 14.0.0.rc9, only using polymer3/npm (using ...
Read more >
`UI` being instantiated over and over again in default Vaadin ...
Yet in Vaadin 14.0.1 I am seeing the UI object being re-instantiated ... UI id # 0 2019-08-24T02:26:37.336419Z BASIL - new UI instantiated....
Read more >
How to deploy vaadin to a jar file
I write a common vaadin components, wanna to package it and sharing to other project. But when i use mvn install -Pproduction ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found