{"action":"created","issue":{"url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/556","labels_url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/556/comments","events_url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/556/events","html_url":"https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/556","id":108279902,"number":556,"title":"bootstrap.js wont load if located within a jar inside a jar","user":{"login":"stalet","id":377296,"avatar_url":"https://avatars.githubusercontent.com/u/377296?v=3","gravatar_id":"","url":"https://api.github.com/users/stalet","html_url":"https://github.com/stalet","followers_url":"https://api.github.com/users/stalet/followers","following_url":"https://api.github.com/users/stalet/following{/other_user}","gists_url":"https://api.github.com/users/stalet/gists{/gist_id}","starred_url":"https://api.github.com/users/stalet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stalet/subscriptions","organizations_url":"https://api.github.com/users/stalet/orgs","repos_url":"https://api.github.com/users/stalet/repos","events_url":"https://api.github.com/users/stalet/events{/privacy}","received_events_url":"https://api.github.com/users/stalet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-25T07:55:02Z","updated_at":"2015-09-29T12:52:53Z","closed_at":"2015-09-25T08:46:09Z","body":"I'm deploying a wicket-bootstrap application with spring boot. And i noticed while running `mvn spring-boot:run` all my resources loads ok, but when i deployed the application as a jar it will not load the bootstrap.js file.\r\n\r\nThis warning occurs in the log.\r\n```\r\norg.apache.wicket.request.resource.ResourceReferenceRegistry : A ResourceReference wont be created for a resource with key [scope: de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference; name: webjars/bootstrap/null/js/bootstrap.js; locale: null; style: null; variation: null] because it cannot be located.\r\n```\r\nAnd the url to the bootstrap.js inside my header tag is resolved to `<script type=\"text/javascript\" id=\"bootstrap-js\" defer=\"defer\" src=\"./wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/bootstrap/null/js/bootstrap.js\"></script>`.\r\n\r\nThe spring-boot jar artifact contains the org.webjars:bootstrap:3.3.5 artifact as a jar file inside the jar file. And the resource loader does not seem to cope with that.\r\n\r\nI resolved the issue temporarily by exploding the bootstrap artifact by using a maven plugin like this:\r\n```\r\n            <plugin>\r\n                <groupId>org.apache.maven.plugins</groupId>\r\n                <artifactId>maven-dependency-plugin</artifactId>\r\n                <version>2.10</version>\r\n                <executions>\r\n                    <execution>\r\n                        <id>unpack</id>\r\n                        <phase>prepare-package</phase>\r\n                        <goals>\r\n                            <goal>unpack</goal>\r\n                        </goals>\r\n                        <configuration>\r\n                            <artifactItems>\r\n                                <artifactItem>\r\n                                    <groupId>org.webjars</groupId>\r\n                                    <artifactId>bootstrap</artifactId>\r\n                                    <version>3.3.5</version>\r\n                                    <type>jar</type>\r\n                                    <overWrite>false</overWrite>\r\n                                    <outputDirectory>${project.build.directory}/classes</outputDirectory>\r\n                                    <includes>META-INF/resources/**/*.*</includes>\r\n                                </artifactItem>\r\n                            </artifactItems>\r\n                        </configuration>\r\n                    </execution>\r\n                </executions>\r\n            </plugin>\r\n```\r\nAfter that the application loads the resources without problems. But it seems unnecessary.\r\n"},"comment":{"url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/comments/144049191","html_url":"https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/556#issuecomment-144049191","issue_url":"https://api.github.com/repos/l0rdn1kk0n/wicket-bootstrap/issues/556","id":144049191,"user":{"login":"stalet","id":377296,"avatar_url":"https://avatars.githubusercontent.com/u/377296?v=3","gravatar_id":"","url":"https://api.github.com/users/stalet","html_url":"https://github.com/stalet","followers_url":"https://api.github.com/users/stalet/followers","following_url":"https://api.github.com/users/stalet/following{/other_user}","gists_url":"https://api.github.com/users/stalet/gists{/gist_id}","starred_url":"https://api.github.com/users/stalet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stalet/subscriptions","organizations_url":"https://api.github.com/users/stalet/orgs","repos_url":"https://api.github.com/users/stalet/repos","events_url":"https://api.github.com/users/stalet/events{/privacy}","received_events_url":"https://api.github.com/users/stalet/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T12:52:53Z","updated_at":"2015-09-29T12:52:53Z","body":"The application still works when running `mvn spring-boot:run`\r\nIf you'd like i can make a small project to show the error."}}