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

java-resteasy Error: Uncaught ReferenceError: JSONEditor is not defined #45

Closed
4F2E4A2E opened this issue Jan 18, 2016 · 2 comments
Closed

Comments

@4F2E4A2E
Copy link

Hello guys!

Thank you for this amazing library, we are having fun learning it.
Right now we are having a hard time getting it to run properly, this is what we did:

  1. Download the master swagger-samples: https://github.com/swagger-api/swagger-samples/archive/master.zip
  2. mvn install
  3. cd java/java-resteasy/ && mvn jetty:run
  4. Browse over to http://localhost:8002
  5. See the error in the debug mode of you browser: Uncaught ReferenceError: JSONEditor is not defined

What are we doing wrong?
Should we wait and go for the release 2.0.0?
Is there a minimalistic example of how to use swagger for already existing resteasy projects?

Thanks in advance.

@fehguy
Copy link
Contributor

fehguy commented Jan 18, 2016

Please add this line:

  <script src='lib/jsoneditor.min.js' type='text/javascript'></script>

to your index.html. I'll make sure the samples are updated with this change.

@4F2E4A2E
Copy link
Author

Yes it worked preety good!
I am getting some warnings now, but i guess that's plain normal:

localhost/:1 Failed to decode downloaded font: http://localhost:8002/fonts/DroidSans-Bold.ttf
localhost/:1 OTS parsing error: FFTM: misaligned table
localhost/:1 Failed to decode downloaded font: http://localhost:8002/fonts/DroidSans.ttf
localhost/:1 OTS parsing error: FFTM: misaligned table
Thank you.

@webron webron closed this as completed Jan 19, 2016
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

3 participants