File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Joshua White
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 539
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic