users@jersey.java.net

[Jersey] Re: Bean Validation Problem

From: Todd Donahue <tdonahue_at_adobe.com>
Date: Thu, 22 Aug 2013 17:42:49 -0700

I'll answer my own question. The javax.el-api jar is part of the Tomcat container and shouldn't be included in the project. To fix, I added the following dependency in the provided scope since Tomcat already has this jar.


        <dependency>

        <groupId>javax.el</groupId>

        <artifactId>javax.el-api</artifactId>

        <version>2.2.4</version>

        <scope>provided</scope>

        </dependency>



From: Todd Donahue <tdonahue_at_adobe.com<mailto:tdonahue_at_adobe.com>>
Date: Thursday, August 22, 2013 5:24 PM
To: "users_at_jersey.java.net<mailto:users_at_jersey.java.net>" <users_at_jersey.java.net<mailto:users_at_jersey.java.net>>
Subject: Bean Validation Problem


I'm trying to use Bean Validation support that is part of Jersey 2.2 and fail to load the following class:


INFO: validateJarFile(/Users/tdonahue/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/pin-server/WEB-INF/lib/javax.el-api-2.2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class

I have the following dependency in my pom.xml file:


        <dependency>

        <groupId>org.glassfish.jersey.ext</groupId>

        <artifactId>jersey-bean-validation</artifactId>

        </dependency>

I'm using Eclipse Indigo J2EE release.

Does anyone know why this fails?

--
Todd Donahue