best solution for this problem is that you are workingwith jakarta apache ant, and build your jar and earfile with ant then deploy it on weblogic .