Yuup. Well spotted. servlet-api jar downloaded by maven was compiled
with JDK1.5.

Interestingly, while downloading maven is expecting this jar file at -
http://people.apache.org/maven-snapshot-repository/
There is no javax package at this URL... So it then downloads from
https://maven-repository.dev.java.net/. This one is built with JDK1.5

--------------From mvn install-----------
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/maven-snapshot-repository/javax/servlet/servlet
-api/2.4/servlet-api-2.4.jar
[WARNING] Unable to get resource from repository apache.snapshots
(http://people.apache.org/maven-snapshot-repository)
Downloading:
https://maven-repository.dev.java.net/nonav/repository/javax.servlet/jar
s/servlet-api-2.4.jar
102K downloaded
-------------------------------------------

So 
1. Where do I get servlet-api-2.4.jar compiled with jdk1.4?
2. How to fix this invalid URL? I guess this is not my local
environment. Don't know where remote repository location information is
held by Maven :-(

Kailas

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2006 14:03
To: dev@shale.apache.org
Subject: Re: Build problem


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


                
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

Reply via email to