views:

14

answers:

1

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?

+1  A: 

I don't do Jetty, so I looked a bit round and found this blog. Here's a cite of relevance:

But, this is not enough, if you start the server you get an error like this:

INFO::NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet

So you have to enable jsp support in jetty passing additional undocumented options to the jetty start script:

$ java -jar jetty.jar OPTIONS=Server,jsp
BalusC
Thanks for looking, but the mapping of that to the embedded environment is not obvious. The 'start script' isn't involved at all. However, this is a clue I can follow into the source.
bmargulies
You're welcome.
BalusC