aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Invalid implementation version...  when weblogic.jar on classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Invalid implementation version...  when weblogic.jar on classpath" Watch "Invalid implementation version...  when weblogic.jar on classpath" New topic
Author

Invalid implementation version... when weblogic.jar on classpath

Joshua White
Ranch Hand

Joined: Jun 04, 2001
Posts: 97
All,

When using ant 1.6.5, I encountered a problem with weblogic.jar being on the classpath. I have been googling for this error message but have not found a solution to this problem. Any help you can offer would be appreciated. Here is the error message:




I have listed my classpath below. You will notice that the weblogic.jar file appears last.

CLASSPATH
c:\utils\apache-ant-1.6.5\lib\ant.jar;C:\utils\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;C:\utils\commons-net-1.4.0\commons-net-1.4.0.jar;C:\bea8\weblogic81\server\lib\weblogic.jar

Regards,

Joshua
Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
Are you using any Weblogic-specific Ant tasks?

Weblogic comes with a version of Ant, and there are some Ant tasks defined within weblogic.jar.



What happens if you put weblogic.jar before ant.jar in your classpath? This will remove any potential overrides (where weblogic.jar and ant.jar contain the same class, but with different versions - the one that appears later on the classpath overrides the first.)


-Tim
[ June 30, 2005: Message edited by: Tim West ]
Pallavi Roy
Ranch Hand

Joined: Jun 01, 2006
Posts: 37
Hello Tim,

Thank you for solution.It helped me understand the reason for my error.

I was getting the error message as :
Invalid implementation version between Ant core and Ant optional tasks.
core : 1.6.5
optional: 1.5.3

So, as i understood from your reply ant is also packaged with weblogic and there could be conflict with my installed version.

So i swapped the places in classpath as :
D:\ant\lib\ant.jar;C:\bea\weblogic81\server\lib\weblogic.jar;
the problem still persisted so i removed the weblogic path and then it worked properly and build my JSF project.(i did not need weblogic).

But could you tell me why this happened.


Break the ice - SCJP 1.4,<br />Where There's a will- SCWCD 1.4.<br />Back in action - Websphere Certified Portal 6 Application Developer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invalid implementation version... when weblogic.jar on classpath