{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1665","repository_url":"https://api.github.com/repos/swagger-api/swagger-core","labels_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1665/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1665/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-core/issues/1665/events","html_url":"https://github.com/swagger-api/swagger-core/issues/1665","id":134033446,"number":1665,"title":"Grizzly+Swagger giving 500 Error","user":{"login":"moezubair","id":3712264,"avatar_url":"https://avatars.githubusercontent.com/u/3712264?v=3","gravatar_id":"","url":"https://api.github.com/users/moezubair","html_url":"https://github.com/moezubair","followers_url":"https://api.github.com/users/moezubair/followers","following_url":"https://api.github.com/users/moezubair/following{/other_user}","gists_url":"https://api.github.com/users/moezubair/gists{/gist_id}","starred_url":"https://api.github.com/users/moezubair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moezubair/subscriptions","organizations_url":"https://api.github.com/users/moezubair/orgs","repos_url":"https://api.github.com/users/moezubair/repos","events_url":"https://api.github.com/users/moezubair/events{/privacy}","received_events_url":"https://api.github.com/users/moezubair/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T16:52:59Z","updated_at":"2016-02-16T20:10:54Z","closed_at":"2016-02-16T20:10:54Z","body":"Hey,\r\nI have an existing program that I am trying to add Swagger to, but I keep getting 500 error when I try to access the swagger.json or swagger.yaml file\r\nHere is how I am doing it:\r\n\r\n```java\r\npackage abc.service.rest.main;\r\n\r\n//Bunch of imports\r\n@Path(\"/ABC/server\")\r\npublic class DynamicPublicationServer {\r\n\tpublic static void main(String args[]) throws Exception {\r\n        BeanConfig beanConfig = new BeanConfig();\r\n        beanConfig.setVersion(\"1.0.2\");\r\n        beanConfig.setSchemes(new String[]{\"http\"});\r\n        beanConfig.setHost(\"localhost:9134\");\r\n        beanConfig.setBasePath(\"/ABC/server/\");\r\n        beanConfig.setResourcePackage(\"abc.service.rest.main\");\r\n        beanConfig.setScan(true);\t\t\r\n\t\tResourceConfig rc = new ResourceConfig();\r\n\t\trc.register(DynamicPublicationServer.class);\r\n\t\trc.register(BenchmarkRS.class);\r\n\t\trc.register(SupportServiceRS.class);\r\n\t\trc.register(JacksonFeature.class);\r\n\t\trc.register(MultiPartFeature.class);\r\n\t\trc.register(ApiListingResource.class);\r\n\t\trc.register(SwaggerSerializers.class);\r\n\t\tEncodingFilter.enableFor(rc, GZipEncoder.class);\r\n\t\tString baseUri = \"http://\" + InetAddress.getLocalHost().getHostAddress() + \":\"\r\n\t\t\t\t\t+ System.getProperty(\"PORT\", \"9134\") + \"/\";\r\n\t\tHttpServer server = GrizzlyHttpServerFactory.createHttpServer(URI.create(baseUri), rc);\r\n}\r\n}\r\n```\r\n\r\nIn my pom file i've added : \r\n```\r\n\t\t<dependency>\r\n\t\t\t<groupId>io.swagger</groupId>\r\n\t\t\t<artifactId>swagger-jersey2-jaxrs</artifactId>\r\n\t\t\t<version>1.5.0</version>\r\n\t\t</dependency>\r\n```\r\nBut when I go to localhost:9134/swagger.json I get :\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3712264/13083613/ce96c976-d4a3-11e5-87b2-eba0e3d3667a.png)\r\n"}}