title: Jboss As 7.1 ModuleNotFoundException: Module com.oracle:main is not found
body: <p>I'm deploying war file to JBoss As 7.1 , the same war file running properly with tomcat but with jboss it's giving flowing exception.</p>
  
  <pre><code>16:20:50,906 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.module.service."deployment.VSCAS.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.VSCAS.war".main: Failed to load module: deployment.VSCAS.war:main
  at  org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
   Caused by: org.jboss.modules.ModuleNotFoundException: Module com.oracle:main is not   found in local module loader @40dd550c (roots: E:\server\jboss-as-7.1.1.vsc\jboss-as-7.1.1.Final\modules)
  at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)
  at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)
  at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)
  at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)
  at org.jboss.modules.Module.addPaths(Module.java:841)
  at org.jboss.modules.Module.link(Module.java:1181)
  at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207)
  at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)
  at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
  ... 5 more
  </code></pre>
  
  <p>I have given jboss-deployment-structure.xml file also with flowing content to avoid the error.</p>
  
  <pre><code>&lt;jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"&gt;
  &lt;deployment&gt;
  &lt;exclusions&gt;
     &lt;module name="org.hibernate"/&gt;
      &lt;module name="com.oracle" /&gt;
  &lt;/exclusions&gt;
   &lt;/deployment&gt;
  &lt;/jboss-deployment-structure&gt;
  </code></pre>
  
  <p>Can any please help me.</p>