Bundle with static website [message #1821092] |
Wed, 05 February 2020 13:54 |
Ombre Hammo Messages: 3 Registered: February 2020 |
Junior Member |
|
|
Hello, I'm beginner in kura, so please don't kill me. :)
I tried to add to my kura bundle with static page (builder in vue), but now I have a little problem, it's looks like working properly, but I don't have any idea how to enter this website (I tried localhost:8080/webpage and other similar websites).
I create new bundle, it look's like that:
private HttpService httpService;
@Reference(name = "HttpService", unbind = "unbindHttpService")
protected void bindHttpService(HttpService httpService) {
this.httpService = httpService;
}
protected void unbindHttpService(HttpService httpService) {
this.httpService = null;
}
@Activate
protected void activate(ComponentContext componentContext, Map<String, Object> properties) {
try {
httpService.registerResources("/webpage", "www", null);
LOGGER.info("Registred Resources!");
} catch (NamespaceException e) {
LOGGER.error("Could not register resources.", e);
}
}
My target file, after building project:
classes -> com, www
(...) some dependency files, tests(..)
bundle.jar
|
|
|
|
Powered by
FUDForum. Page generated in 0.02749 seconds