isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Nišević <vnise...@gmail.com>
Subject Simpleapp 12.0.1. - Swagger not working when packaging war and deploying to Tomcat
Date Mon, 16 May 2016 09:02:44 GMT
Based on discussion in https://issues.apache.org/jira/browse/ISIS-1358 I
think I've found an issue, but I cannot create new JIRA issue any more -
seems the issue creation policy has been changed, so I am sending the issue
on this way.

*Steps to reproduce:*

1. Create archetype as described in guide
*mvn archetype:generate \*
*-D archetypeGroupId=org.apache.isis.archetype \*
*-D archetypeArtifactId=simpleapp-archetype \*
*-D archetypeVersion=1.12.1 \*
*-D groupId=com.mycompany \*
*-D artifactId=myapp \*
*-D version=1.0-SNAPSHOT \*
*-B*

2. execute "*mvn clean package"*

3. deploy simpleapp.war to external tomcat, eg. thru tomcat manager webapp
and call swagger WebUI*
http://localhost:8080/simpleapp/swagger-ui/index.html
<http://localhost:8080/simpleapp/swagger-ui/index.html> *

*Error*: Can't read swagger JSON from
http://localhost:8080/restful/swagger/public

It seems that the service
org.apache.isis.core.metamodel.services.swagger.SwaggerServiceDefault is
not recognized.

[image: Inline-Bild 2]

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message