title: What causes java.net.MalformedURLException: no protocol: when trying to deploy .ear in weblogic?
body: <p>I am trying to deploy an EAR file. I am new to weblogic. I am using oracle enterprise pack for eclipse. I have a running weblogic server. I created an Enterprise Application Project
  My application.xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ASCII"?&gt;
  &lt;application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"&gt;
     &lt;display-name&gt;My App&lt;/display-name&gt;
  &lt;module&gt;
  &lt;ejb&gt;appEJB.jar&lt;/ejb&gt;
  &lt;/module&gt;
  &lt;module&gt;
  &lt;web&gt;
    &lt;web-uri&gt;app.war&lt;/web-uri&gt;
    &lt;context-root&gt;app&lt;/context-root&gt;
  &lt;/web&gt;
  &lt;/module&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>my weblogic-application.xml is:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic- application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd"&gt;
  &lt;!--weblogic-version:10.3.3--&gt;
  &lt;wls:application-param&gt;
      &lt;wls:param-name&gt;webapp.encoding.default&lt;/wls:param-name&gt;
      &lt;wls:param-value&gt;UTF-8&lt;/wls:param-value&gt;
  &lt;/wls:application-param&gt;
  &lt;/wls:weblogic-application&gt;
  </code></pre>
  
  <p>I get the error Module named 'EARNAME' failed to deploy. See Error log.
  The error log has this stack Trace:</p>
  
  <pre><code>java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
  at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
  at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:506)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1466)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:898)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:686)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:539)
  at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
  at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108)
  at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
  Caused by: java.net.MalformedURLException: no protocol: Files/OracleWebLogic/Middleware/wlserver_10.3/server/lib/../../../modules/features/weblogic.server.modules_10.3.3.0.jar
  at java.net.URL.&lt;init&gt;(URL.java:567)
  at java.net.URL.&lt;init&gt;(URL.java:464)
  at java.net.URL.&lt;init&gt;(URL.java:413)
  at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:751)
  at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
  at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
  at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
  at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
  at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
  at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
  at javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1513)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1505)
  at javax.management.remote.rmi.RMIConnectionImpl.access$500(RMIConnectionImpl.java:72)
  at javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1548)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1544)
  at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:771)
  at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
  at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
  at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
  at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
  at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
  </code></pre>
  
  <p>What could be the cause of this failur to deploy? I know the server is running and when I successfully access the gui at localhost:7001/console</p>
  
  <p>I exported the .ear file to the autodeploy folder. Also put a module (.jar) in it.</p>
  
  <p>New Exception:</p>
  
  <pre><code> java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
  at oracle.eclipse.tools.weblogic.server.internal.DeploymentProgressListener.watch(DeploymentProgressListener.java:190)
  at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:506)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1466)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:898)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:686)
  at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:539)
  at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
  at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108)
  at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  
   Caused by: weblogic.application.ModuleException: 
  at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:332)
  at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
  at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:285)
  at weblogic.application.internal.flow.InitModulesFlow.initModules(InitModulesFlow.java:298)
  at weblogic.application.internal.flow.InitModulesFlow.prepare(InitModulesFlow.java:330)
  at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
  at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
  at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
  at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
  at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
  at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
  at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
  at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
  at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
  at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
  at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
  at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
  at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
  at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
   Caused by: java.io.FileNotFoundException: Unable to find ejb-jar with uri appEJB.jar in ear at C:\Users\Jonathan.Rosenski\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\EAR\beadep\base_domain\EAR\split_src
  
  at weblogic.ejb.spi.EJBJar.&lt;init&gt;(EJBJar.java:81)
  at weblogic.ejb.container.deployer.EJBModule.buildClassFinder(EJBModule.java:199)
  at weblogic.ejb.container.deployer.EJBModule.init(EJBModule.java:311)
  </code></pre>