Note that there are some explanatory texts on larger screens.

plurals
  1. POel-api-1.0.jar - jar not loaded - Offending class: javax/el/Expression.class
    text
    copied!<p>I'm trying to get a simple restful service running using RestEasy. Following is my setup. </p> <p>Tomcat7 Eclipse &amp; Maven I Maven Install and copy the war file to webapps folder. </p> <p>When deploying the war file the catalina.out file shows this and the application is not deployed. </p> <pre><code> Mar 24, 2013 9:44:38 PM org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/usr/share/tomcat7/webapps/buzzcore-1.0/WEB-INF/lib/el-api-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class Mar 24, 2013 9:44:40 PM org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/buzzcore-1.0]] </code></pre> <p>I'm not sure what is causing the problem. Following are my pom.xml and web.xml. </p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;buzzcore&lt;/groupId&gt; &lt;artifactId&gt;buzzcore&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;version&gt;1.0&lt;/version&gt; &lt;name&gt;buzzcore&lt;/name&gt; &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;org.jboss.resteasy&lt;/id&gt; &lt;url&gt;http://repository.jboss.org/maven2/&lt;/url&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;eap&lt;/id&gt; &lt;url&gt;http://maven.repository.redhat.com/techpreview/all&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;pluginRepositories&gt; &lt;pluginRepository&gt; &lt;id&gt;eap&lt;/id&gt; &lt;url&gt;http://maven.repository.redhat.com/techpreview/all&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;/snapshots&gt; &lt;/pluginRepository&gt; &lt;/pluginRepositories&gt; &lt;properties&gt; &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt; &lt;maven.compiler.source&gt;1.6&lt;/maven.compiler.source&gt; &lt;maven.compiler.target&gt;1.6&lt;/maven.compiler.target&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt; &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt; &lt;version&gt;3.0.0.Final-redhat-1&lt;/version&gt; &lt;type&gt;pom&lt;/type&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt; &lt;artifactId&gt;resteasy-jaxrs&lt;/artifactId&gt; &lt;version&gt;2.3.5.Final&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt; &lt;artifactId&gt;resteasy-jaxb-provider&lt;/artifactId&gt; &lt;version&gt;2.3.5.Final&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt; &lt;artifactId&gt;resteasy-jettison-provider&lt;/artifactId&gt; &lt;version&gt;2.3.5.Final&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;profiles&gt; &lt;profile&gt; &lt;!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. --&gt; &lt;!-- Use this profile for any OpenShift specific customization your app will need. --&gt; &lt;!-- By default that is to put the resulting archive into the 'webapps' folder. --&gt; &lt;!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html --&gt; &lt;id&gt;openshift&lt;/id&gt; &lt;build&gt; &lt;finalName&gt;buzzcore&lt;/finalName&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt; &lt;version&gt;2.1.1&lt;/version&gt; &lt;configuration&gt; &lt;outputDirectory&gt;webapps&lt;/outputDirectory&gt; &lt;warName&gt;ROOT&lt;/warName&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;/profiles&gt; &lt;/project&gt; </code></pre> <p>web.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="false"&gt; &lt;/web-app&gt; </code></pre> <p>This is an OpenShift application, hence the openshift entries. I've copied the lib from RestEasy to src\main\webapp\WEB-INF\lib. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload