我决定尝试Scalatra。但是服务器似乎没有启动,并且命令不会返回任何错误。
我首先从GitHub获得了scalatra项目:
git clone http://github.com/scalatra/scalatra-sbt-prototype.git
然后跑了sbt:
java -jar "/path/to/sbt-launch.jar" jetty-run
并得到了这个(在下载依赖项之后):
[info] Loading project definition from /home/platon/PrF/scalatra/scalatra-sbt-prototype/project
[info] Set current project to scalatra-sbt-prototype (in build file:/home/platon/PrF/scalatra/scalatra-sbt-prototype/)
[info] jetty-7.4.5.v20110725
[info] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
[info] started o.e.j.w.WebAppContext{/,file:/home/platon/PrF/scalatra/scalatra-sbt-prototype/target/webapp/},/home/platon/PrF/scalatra/scalatra-sbt-prototype/target/webapp
[info] Started SelectChannelConnector@0.0.0.0:8080 STARTING
但在http://localhost:8080
,我什么都没看到。我做错了什么?
答案 0 :(得分:1)
试试这个
java -jar "sbt-launch.jar"
jetty-run
这会让你进入可以进行码头运行的sbt控制台,否则该过程会立即开始和停止