Code-House / karaf-swagger

Repository for wrapping swagger into karaf features plus some dedicated integration with CXF.
Apache License 2.0
9 stars 6 forks source link

Error when try to open the Swagger-ui app on address "http://localhost:8181/swagger-ui/index.html" #3

Closed p4535992 closed 4 years ago

p4535992 commented 4 years ago

Hi, i have installed with success the feature on my red Hat Fuse 7.4.0.

The osgi bundle are all on active e when i start the bundle "Code-House :: Swagger :: Core" the karaf console show it get and parse my endpoint cxf or at least i get no error.

So on the page http://localhost:8181/cxf the CXF library show me this:

Available RESTful services:

Endpoint address: http://localhost:8181/cxf/swagger
WADL : http://127.0.0.1:8181/cxf/swagger?_wadl

Endpoint address: https://0.0.0.0:443/abdesbsign/rest
WADL : https://0.0.0.0:443/my/rest?_wadl

But when i access to the adress http://localhost:8181/swagger-ui/index.html i get this error on the client console of the browser:

external "deep-extend":1 Uncaught ReferenceError: require is not defined
    at Object.<anonymous> (external "deep-extend":1)
    at n (bootstrap:19)
    at Module.<anonymous> (swagger-ui.js:8)
    at n (bootstrap:19)
    at Object.<anonymous> (swagger-ui.js:1)
    at n (bootstrap:19)
    at bootstrap:83
    at swagger-ui.js:1
    at universalModuleDefinition:9
    at universalModuleDefinition:1
(anonymous) @ external "deep-extend":1
n @ bootstrap:19
(anonymous) @ swagger-ui.js:8
n @ bootstrap:19
(anonymous) @ swagger-ui.js:1
n @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ swagger-ui.js:1
(anonymous) @ universalModuleDefinition:9
(anonymous) @ universalModuleDefinition:1
index.html:31 Uncaught ReferenceError: $ is not defined
    at index.html:31
(anonymous) @ index.html:31

I forgot some step during the installation?