liubao68 commented on issue #57:
URL: 
https://github.com/apache/servicecomb-samples/issues/57#issuecomment-692648390


   In your logs there is an error:
   
   
   ```
   java.lang.IllegalArgumentException: root cannot start with '/'
           at 
io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615)
 ~[vertx-web-3.8.3.jar:3.8.3]
           at 
io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478)
 ~[vertx-web-3.8.3.jar:3.8.3]
           at 
org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45)
 ~[classes/:na]
           at 
org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212)
 ~[transport-rest-vertx-2.0.0.jar:2.0.0]
           at 
org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVert
   ```
   
   Please check 
https://github.com/apache/servicecomb-samples/blob/master/java-chassis-samples/bmi/webapp/src/main/resources/application.yml,
 and should configure 
   
   ```
   # This is web root for windows server, change this path according to where 
you put your source code
   gateway:
     webroot: 
/code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to