Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Java-servlet application doesn't download necessary Swagger-UI dependencies #117

Open
jjloneman opened this issue Feb 6, 2018 · 1 comment

Comments

@jjloneman
Copy link

jjloneman commented Feb 6, 2018

After doing a fresh clone, Maven reimport of all projects, clean, and install of the java-servlet application, with no errors or dependency conflicts, doing a jetty:start renders the following page on localhost:8002:

image

Looking at the Chrome console, it doesn't load any of the libraries defined in index.html:

    <link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" />
    <link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" />
    <link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/>
    <link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/>
    <link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/>
    <link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/>
    <link href='css/print.css' media='print' rel='stylesheet' type='text/css'/>
    <script src='lib/jquery-1.8.0.min.js' type='text/javascript'></script>
    <script src='lib/jquery.slideto.min.js' type='text/javascript'></script>
    <script src='lib/jquery.wiggle.min.js' type='text/javascript'></script>
    <script src='lib/jquery.ba-bbq.min.js' type='text/javascript'></script>
    <script src='lib/handlebars-2.0.0.js' type='text/javascript'></script>
    <script src='lib/js-yaml.min.js' type='text/javascript'></script>
    <script src='lib/lodash.min.js' type='text/javascript'></script>
    <script src='lib/backbone-min.js' type='text/javascript'></script>
    <script src='swagger-ui.js' type='text/javascript'></script>
    <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
    <script src='lib/jsoneditor.min.js' type='text/javascript'></script>
    <script src='lib/marked.js' type='text/javascript'></script>
    <script src='lib/swagger-oauth.js' type='text/javascript'></script>

Am I missing a step here? I believe I executed all the required steps, though there is no README included so I'm not sure.

@tweissin
Copy link

I found the same too. It seems to me that it is a very old sample. If you check the Git blame on that file, you will see it references files from 2015. I went to the swagger-ui repo and then went to an old 2015 branch ("2.x") to find the code at that time. If you take the "dist" folder from that time, you'll get a lot farther along.

Check out https://github.com/swagger-api/swagger-ui/blob/2.x/dist

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants