Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] oej.servlets.CGI servlet ClassNotFoundException

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

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx


On Fri, May 24, 2013 at 3:40 AM, Libor Jelinek <ljelinek@xxxxxxxxxxx> 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

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top