Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] problems using jetty-maven-plugin and Jetty 9.2.2 with jsp pages

Hi,

I am experiencing problems using jetty-maven-plugin and Jetty 9.2.2 with jsp pages.

My configuration is set like this:

<properties>
    <jettyVersion>9.2.2.v20140723</jettyVersion>
</properties>


<plugin>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>${jettyVersion}</version>
    <configuration>
        <scanIntervalSeconds>2</scanIntervalSeconds>
        <webApp>
            <contextPath>/test</contextPath>
        </webApp>
    </configuration>
</plugin>


Running my webapp through the "mvn jetty:run" starts jetty server, and I can access java servlet and static pages, but when I try to access any JSP page, I get following exception:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/el/ExpressionFactory



When I am deploying the WAR into stand-alone jetty (without the jetty-maven plugin) everything works well.
Also when I am using Jetty version 9.1 (<jettyVersion>9.1.5.v20140505</jettyVersion>) everything works well - even with the maven jetty plugin.

I read in the documentation, that with version 9.2 the default jsp engine was changed. Is this maybe the reason for this behavior? Does anyone know how to get around this issue?

Thanks.


Back to the top