Missing JSP support in Jetty, or confusing log message?

bmargulies picture bmargulies · Aug 19, 2010 · Viewed 33.8k times · Source

Launching jetty by calling the API in 6.1.24.

The JSP 2.1 component is on the classpath.

org.mortbay.jetty:jsp-2.1-jetty:jar:6.1.24:compile

But the log says:

2010-08-19 08:16:19.443:INFO::NO JSP Support for /basis_ws, did not find org.apache.jasper.servlet.JspServlet

I don't see this message when using the corresponding maven-jetty-plugin.

What am I missing?

Answer

kybernetikos picture kybernetikos · Feb 13, 2011

I got this problem when I first started with jetty. The problem is that just including the jsp jars doesn't seem to be enough. Here's the maven dependency list that I used to solve it.

    <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-server</artifactId>
        <version>7.2.2.v20101205</version>
    </dependency>
    <dependency>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-webapp</artifactId>
        <version>7.2.2.v20101205</version>
    </dependency>

    <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>