You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/01/09 02:31:06 UTC
[GitHub] [servicecomb-java-chassis] sunjinghan7331 opened a new issue #1514: 使用servlet将工程打成war包,无法生成契约
sunjinghan7331 opened a new issue #1514: 使用servlet将工程打成war包,无法生成契约
URL: https://github.com/apache/servicecomb-java-chassis/issues/1514

使用上述方法将项目打成war包放在tomcat下启动,成功注册到service center了,但是没有生成契约文件,不知道是什么原因,Controller类上面添加了@RestSchema的注解,本地启动是没有问题的,但是打包后就出了问题
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1514: 使用servlet将工程打成war包,无法生成契约
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1514: 使用servlet将工程打成war包,无法生成契约
URL: https://github.com/apache/servicecomb-java-chassis/issues/1514#issuecomment-572828312
May be you can add this to your web.xml
```
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:META-INF/spring/*.bean.xml
</param-value>
</context-param>
```
see this [demo](https://github.com/apache/servicecomb-java-chassis/blob/master/demo/demo-server-servlet/src/main/webapp/WEB-INF/web.xml)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services