you have the jetty-servlets and any other dependencies in your web-inf/lib?

--
jesse mcconnell
[email protected]


On Fri, May 24, 2013 at 3:40 AM, Libor Jelinek <[email protected]> wrote:

> Hello Jetty-users!
> In Jetty 9.0.3.v20130506 I can't use org.eclipse.jetty.servlets.CGI
> because it's not found by Jetty.
>
> This is my web.xml:
>
>   <servlet>
>         <servlet-name>PHP</servlet-name>
>         <servlet-class>org.eclipse.jetty.servlets.CGI</servlet-class>
>         <init-param>
>             <param-name>commandPrefix</param-name>
>             <param-value>php-cgi</param-value>
>         </init-param>
>    </servlet>
>
>     <servlet-mapping>
>         <servlet-name>PHP</servlet-name>
>         <url-pattern>*.php</url-pattern>
>     </servlet-mapping>
>
> And starting Jetty with no config file modified
>    java -jar start.jar
>
> I see
>    java.lang.ClassNotFoundException: org.eclipse.jetty.servlets.CGI
>    ...
>    javax.servlet.UnvailableException: org.eclipse.jetty.servlets.CGI
>
> Same web.xml works in Jetty 8.x. I've also noticed that other default
> servlets cannot be found. What changed in 9.x?
>
> Thanks.
>
> ​
> --
> Hezky den / Have a nice day
> Libor JELÍNEK
> ​
> ​http://devblog.virtage.com/libor-jelinek/​​
> ​
> https://twitter.com/liborjelinek
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to