Skip to main content

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

Tomaz,


That jsp works fine with the jetty test webapp using 9.2.2. I suspect you have some dependencies for a different (probably glassfish) jsp/el version. These could be transitive deps so do "mvn dependency:tree" to check.

cheers
Jan


On 17 August 2014 17:40, Tomaž Juretič <tomaz.juretic@xxxxxxxxx> wrote:
Hi Jan,

Here is content of my index.jsp file:

<%@ page import="java.io.*,java.util.*, javax.servlet.*" %>
<html>
<body>
<h2>Hello World!</h2>
<%
   Date date = new Date();
   out.print( "<h2 align=\"center\">" +date.toString()+"</h2>");
%>
</body>
</html>


Thanks,
Tomaz


On 17. 08. 2014 02:44, Jan Bartel wrote:
Tomaz,

Can you post your index.jsp file?
thanks
Jan


On 17 August 2014 02:03, Tomaž Juretič <tomaz.juretic@xxxxxxxxx> wrote:
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.


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'

Back to the top