title: Ant wldeploy - failed to load java type corresponding to e=deployment-plan@http://www.bea.com/ns/weblogic/deployment-plan
body: <p>I need to deploy an EAR with a deployment plan on weblogic server 10.3
  When I manually deploy the EAR and the plan on weblogic console, all is ok.
  When I try to use ANT wldeploy task I get this exception on deploy:</p>
  
  <pre><code> [wldeploy] com.bea.xml.XmlException: failed to load java type corresponding to e=deployment-plan@http://www.bea.com/ns/weblogic/deployment-plan
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:361)
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:316)
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:326)
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:307)
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:158)
   [wldeploy]     at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
   [wldeploy]     at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
   [wldeploy]     at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
   [wldeploy]     at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:270)
   [wldeploy]     at weblogic.deploy.api.spi.config.DescriptorParser.parseDeploymentPlan(DescriptorParser.java:127)
  </code></pre>
  
  <p>As the exception says, it should be something related to the parsing of deployment plan. The plan seems valid (and on manual deploy works!) and starts with:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;deployment-plan xmlns="http://www.bea.com/ns/weblogic/deployment-plan"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.bea.com/ns/weblogic/deployment-plan http://www.bea.com/ns/weblogic/deployment-plan/1.0/deployment-plan.xsd"&gt;
  </code></pre>
  
  <p>...</p>
  
  <p>Any hints?</p>
  
  <p>Thanks
  Andrea</p>