This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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 ]
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