title: Spring boot application with apache axis
body: <p>I am trying to run a spring boot jar which has axis2 dependencies in it. I am using spring boot maven plugin to build the jar (with dependencies). When I try to run my jar, I get the following exception in my console:</p>
  
  <pre><code>org.apache.axis2.AxisFault: The G:application\myapp\target\myapp.jar!\lib\axis2-1.6.1.jar file cannot be found.
  at org.apache.axis2.deployment.repository.util.DeploymentFileData.setClassLoader(DeploymentFileData.java:111)
  at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:70)
  at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
  at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
  at org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:222)
  at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:71)
  at org.apache.axis2.deployment.RepositoryListener.&lt;init&gt;(RepositoryListener.java:64)
  at org.apache.axis2.deployment.DeploymentEngine.loadFromClassPath(DeploymentEngine.java:175)
  at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:135)
  at ...
  </code></pre>
  
  <p>I then checked the structure of my jar. It has lib folder inside it, which contained all the jars (including the above mentioned axis jar). Attached is the screen shot of lib folder<img src="https://i.stack.imgur.com/9uD2g.jpg" alt="enter image description here">.
  Following are the solutions which I have tried:</p>
  
  <ol>
  <li>Placed axis jar in the same directory as application jar.</li>
  <li>Created lib folder in the same directory as application jar and placed axis jar inside it.</li>
  <li>Modified manifest file to include Class-Path: /lib/</li>
  </ol>
  
  <p>None of the solutions has worked. However, when I run the application class in eclipse, the app starts and runs perfectly. But, once I create the jar, nothing seems to run. </p>
  
  <p>Can anyone please help? Thanks in advance.</p>