Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Servletpattern other then root URL pattern /* is not resolving static resources #32

Closed
Maurice-Betzel opened this issue Mar 28, 2019 · 2 comments

Comments

@Maurice-Betzel
Copy link

In the class VaadinServletRegistration set:

properties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN,"/test/*");

results in static recources not getting found and the Button displays just text in the browser.
Changing the maven-antrun-plugin into the following does also not resolve the issue:

<tasks> <mkdir dir="${project.build.directory}/generated-resources/test/frontend/bower_components"></mkdir> <copy todir="${project.build.directory}/generated-resources/test/frontend/bower_components"> <fileset dir="${project.build.directory}/dependency/META-INF/resources/webjars/"/> </copy> </tasks>

What more must be done to resolve the static content of the Vaadin components?

@Maurice-Betzel
Copy link
Author

Maurice-Betzel commented Mar 28, 2019

The HTML page displays as resource path for the Button:

<link rel="import" href="./../frontend/bower_components/vaadin-button/src/vaadin-button.html">

If i am correct this means http://localhost/ comming from http://localhost/test/

@mstahv
Copy link
Member

mstahv commented Apr 23, 2021

This issue is now solved in Vaadin 19 and newer. Solving it in older versions is so tricky that we will most likely never fix this (except via warranty).

@mstahv mstahv closed this as completed Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants