异常一:

java.net.BindException: Address already in use: bind
jvm 1 | 2017-10-18 15:08:10,792+0800 WARN [jetty-main-1] org.eclipse.jetty.
util.component.AbstractLifeCycle - FAILED InstrumentedSelectChannelConnector@0.0
.0.0:8081: java.net.BindException: Address already in use: bind
jvm 1 | java.net.BindException: Address already in use: bind

原因:端口号被占用,删掉端口号的进程。

 异常二:

HTTP ERROR 500 :JSP support not configured

HTTP ERROR 500

Problem accessing /MavenView/index.jsp. Reason:

    JSP support not configured

在默认webapps下可以,但自定义的部署目录下就出现以上错误。原因是自定义的部署,没有添加jsp的module

默认的start.ini 下有个 --module=jsp

执行命令:java -jar ../start.jar --add-to-startd=jsp 即可在start.d下产生jsp.ini文件。

执行命令:java -jar ../start.jar 即可在网络上输出jsp文件。 

 如果是内置jetty服务插件,则缺少jsp的依赖:

  <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jsp-2.1</artifactId>
            <version>7.2.2.v20101205</version>
    </dependency>
    <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jsp-2.1-glassfish</artifactId>
            <version>2.1.v20100127</version>
     </dependency>

 

 

 

 

 



posted on 2017-10-27 11:31  zhaoqiang1980  阅读(449)  评论(0编辑  收藏  举报