On 10/10/06, Kailas Lovlekar <[EMAIL PROTECTED]> wrote:

I get following error while building shale projects.
...
[INFO] Compilation failure
D:\dev\projects\shale\trunk\shale-test\src\main\java\org\apache\shale\te
st\mock\MockServlet.java:[21,-1] cannot access javax.servlet.Servlet
bad class file: C:\Documents and
Settings\kailas\.m2\repository\javax\servlet\servlet-api\2.4\servlet-api
-2.4.jar(javax/servlet/Servlet.class)
class file has wrong version 49.0, should be 48.0
------------------------------------------------------------------------

It looks like the servlet-api 2.4 jar in your local repository was
compiled with JDK 1.5.

Try deleting the directory
  C:\Documents and Settings\kailas\.m2\repository\javax\servlet\servlet-api\2.4
and re-building to force Maven to download a new servlet-api jar.  (I
don't know where yours came from, the manifest of mine says it was
build with JDK 1.4.)

--
Wendy

Reply via email to