信息-已启动Jetty服务器,但未完成 [英] INFO - Started Jetty Server, but does not finish
问题描述
我正在尝试设置Dashbuilder.我已经解决了几个问题(其中一个在其他人的帮助下,谢谢).我到了必须使用命令编译,构建和运行程序的地步
I am trying to setup Dashbuilder. I have worked through a couple issues already (one with the help of others here, thank you). I am at the point where the program must be compiled, built, and run using command
./buildandrun.sh h2
事情开始按预期进行,但随后仅在终端中的"[INFO] Started Jetty Server"处停止.
things start off as expected, but then just stop at "[INFO] Started Jetty Server" in terminal.
我已经坐了几个小时,没有进展.我尝试使用-X标志运行,但该步骤未显示任何额外信息.当我尝试访问 http://localhost:8080/dashbuilder 以查看程序是否启动时,我收到503错误看看
I've let it sit for hours, no progress. I tried running with the -X flag, but no extra info for that step appeared. When I try to visit http://localhost:8080/dashbuilder to see if the program started I get a 503 error and see
HTTP错误:503
HTTP ERROR: 503
访问/dashbuilder时出现问题.原因:
Problem accessing /dashbuilder. Reason:
Service Unavailable
由Jetty提供支持://9.3.9.v20160517
Powered by Jetty:// 9.3.9.v20160517
我如何才能更详细地了解发生了什么以及为什么发生这种情况?
How can I see in better detail what and why something like this is happening?
SH文件的内容为:
#!/bin/bash
if [ "$1" = "" ] ; then
echo "Build & Run the application for a given database."
echo ""
echo "USAGE: buildandrun.sh [h2|postgres]"
else
echo "-----------------------------------------------------------------"
echo "Building & Running the application for the '$1' database..."
echo "------------------------------------------------------------------"
cd ..
mvn clean install -P $1,jetty $2 $3 $4
export MAVEN_OPTS="-Xms1024M -Xmx2048M -XX:MaxPermSize=512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
cd modules/dashboard-showcase/
mvn jetty:run -P $1,jetty
fi
推荐答案
jetty-maven-plugin
的jetty:run
目标正是这样做的.
The jetty:run
goal of the jetty-maven-plugin
does exactly that.
它通常会运行Jetty,并等待用户终止它(使用TERM,KILL,Ctrl + C,使用Shutdown工具)
It runs Jetty, normally, and waits for the user to terminate it (either with TERM, KILL, Ctrl+C, use of the Shutdown facilities)
该mvn jetty:run
命令从不返回.
也许您想使用mvn jetty:start
和mvn jetty:stop
请参阅: https://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#jetty-start-goal
这篇关于信息-已启动Jetty服务器,但未完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!