<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
<version>1.5.0</version>
</dependency>
<bean id="swaggerSerializers" class="io.swagger.jaxrs.listing.SwaggerSerializers"/>
<bean id="swaggerConfig" class="com.wordnik.swagger.jaxrs.config.BeanConfig">
<property name="resourcePackage" value="com.disney.abcdm.vp2.ws"/>
<property name="version" value="1.0.0"/>
<!--<property name="basePath" value="http://localhost:8080/api-utils"/>//-->
<property name="schemes" value="http"/>
<property name="host" value="localhost:8080"/>
<property name="basePath" value="api-utils"/>
<property name="title" value="ABC EIA Utils APP"/>
<property name="description" value="This Swagger Instance is a collection ..."/>
<property name="contact" value="EIA"/>
<property name="license" value="Apache 2.0 License"/>
<property name="licenseUrl" value="http://www.apache.org/licenses/LICENSE-2.0.html"/>
<property name="scan" value="true"/>
</bean>
import com.wordnik.swagger.annotations.*;"wordnik" is highlighted in red.
Can you see what I am missing? It's like it can't find Swagger?
Thanks,
johnh
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
There’s no bug. You can see in the samples this works fine - https://github.com/swagger-api/swagger-samples/blob/master/java/java-jaxrs-cxf/src/main/java/io/swagger/sample/resource/PetResource.java#L19.
The problem is probably with the dependencies. I’d need to see the output of the following commands: mvn clean dependency:tree and mvn clean dependency:list ran at the root of the project.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
<bean id="swaggerConfig" class="io.swagger.jaxrs.config.BeanConfig">
<property name="resourcePackage" value="com.disney.abcdm.vp2.ws"/>
<property name="version" value="1.0.0"/>
<property name="basePath" value="http://localhost:8080/api-utils"/>
<!--<property name="schemes" value="http" />
<property name="host" value="localhost:8080" />
<property name="basePath" value="api-utils" />//-->
<property name="title" value="ABC EIA Utils APP"/>
<property name="description" value="This Swagger Instance is a collection of API Web Services built by ABC and The Walt Disney Company technologies for WATCH ABC, Partners of Disney or ABC and related Video On Demand Presentation Integrations. These APIs are used by applications integrating with the Service."/>
<property name="contact" value="EIA"/>
<property name="license" value="Apache 2.0 License"/>
<property name="licenseUrl" value="http://www.apache.org/licenses/LICENSE-2.0.html"/>
<property name="scan" value="true"/>
</bean>
Do you see anything wrong with this?
Thanks, johnh<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.0</version>
<scope>compile</scope>
</dependency>
I provided my beans.xml file. Is there something wrong with the path to swagger.json. There seems to be an issue with your pom.xml which causes all subsequent problems.
You should revert back to the original swagger-jaxrs dependency as a first step.
The problem is that for some reason it does not load the dependencies it has. This is the issue you need to solve.
However, this is something I cannot help with within this scope, and you’d have to find a solution by yourself.
For reference, if you run mvn dependency:tree on the cxf project from our samples, you’ll see the following for the swagger-jaxrs dependency:
[INFO] +- io.swagger:swagger-jaxrs:jar:1.5.0:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.2:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.4.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.4.2:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.4.2:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.4.2:compile
[INFO] | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | +- io.swagger:swagger-core:jar:1.5.0:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.2:compile
[INFO] | | | \- joda-time:joda-time:jar:2.2:compile
[INFO] | | +- io.swagger:swagger-models:jar:1.5.0:compile
[INFO] | | | \- io.swagger:swagger-annotations:jar:1.5.0:compile
[INFO] | | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | +- org.reflections:reflections:jar:0.9.9:compile
[INFO] | | +- com.google.guava:guava:jar:15.0:compile
[INFO] | | +- org.javassist:javassist:jar:3.18.2-GA:compile
[INFO] | | \- com.google.code.findbugs:annotations:jar:2.0.1:compile
[INFO] | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.2:compile
[INFO] | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.4.2:compile
Without all those dependencies, swagger-core will not work. This is why you’re not finding any of the annotations as well.
You’re output is:
[INFO] +- io.swagger:swagger-jaxrs:jar:1.5.0:compile
As you can see, no other dependencies are loaded. This is what you need to solve.
If you’re still stuck and need further assistance, we can help but that would fall under our professional services.
Feel free to contact me in person should that be the case.
BR,
Ron
Hi Ron,
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
-------------------------------------------http://swagger.io
https://twitter.com/SwaggerApi
-----------------------------------------
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.