|
From: Jan B. <ja...@we...> - 2007-09-09 23:54:06
|
Hi OMax,
what jars do you have on your eclipse project's classpath?
cheers
Jan
OMax wrote:
> When running embeded Jetty 6.1.5 server using the followign code in eclipse
> as application it says on jsp page:
>
> HTTP ERROR: 500
> JSP support not configured
> RequestURI=/login_screen.html
>
> But everything runs ok when runnign from maven jetty:run and on Tomcat
> 6.0.14.
> Not the *.html is configured in web.xml as:
> <servlet-mapping>
> <servlet-name>jsp</servlet-name>
> <url-pattern>*.html</url-pattern>
> </servlet-mapping>
>
> How should I configure JSP support for Jetty in this situation?
>
> Jetty server configuration code:
> server = new org.mortbay.jetty.Server();
>
> Connector connector = new SelectChannelConnector();
>
> connector.setPort(port);
>
> server.addConnector(connector);
>
> WebAppContext context = new WebAppContext("webapp", "/");
>
> context.setClassLoader(Thread.currentThread().getContextClassLoader());
>
> server.addHandler(context);
>
> Thanks, OMax
--
Jan Bartel, Webtide LLC | ja...@we... | http://www.webtide.com
|