This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Joshua White
Ranch Hand
Posts: 97
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic