Configuring Jetty JSP support in embedded mode in Maven project

前端 未结 6 1453
遥遥无期
遥遥无期 2021-01-30 05:50

I can visit .html pages with Jetty, but when I visit a .jsp page I get:

0 13:21:13 / [INFO] No JSP support. Check that JSP jars are in lib/jsp and th

6条回答
  •  无人及你
    2021-01-30 06:22

    I got it to work by adding the Mortbay JSP dependency (this is in Gradle notation, but you get the idea):

    compile 'org.eclipse.jetty:jetty-io:8.0.0.M3'
    compile 'org.eclipse.jetty:jetty-server:8.0.0.M3'
    compile 'org.eclipse.jetty:jetty-servlet:8.0.0.M3'
    compile 'org.eclipse.jetty:jetty-util:8.0.0.M3'
    compile 'org.eclipse.jetty:jetty-webapp:8.0.0.M3'
    compile 'org.mortbay.jetty:jsp-2.1-glassfish:2.1.v20100127'
    

    There's a larger writeup available on my blog.

提交回复
热议问题