title: Azure Storage Exception while creating a container : Null InputStream is not a valid argument
body: <p>i have created an OSGI bundle and deployed on karaf which uploads file to Azure blob.(lets say B1)
  i also have another bundle for some other functionality.(lets say B2)</p>
  
  <p>now when i deploy B1 alone it works fine and when i deploy both bundles B1 and B2, my upload bundle gives me following exception.</p>
  
  <pre><code>2013-08-26 20:09:45,633[qtp26738776-145]|DEBUG|&lt;My_Pack&gt;fileupload.service.uploadservice.impl.UploadServiceImpl|Exception while uploading a file java.lan
  g.IllegalArgumentException: Null InputStream is not a valid argument
  java.lang.IllegalArgumentException: Null InputStream is not a valid argument
          at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:595)
          at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:309)
          at com.microsoft.windowsazure.services.core.storage.utils.Utility.createXMLStreamReaderFromStream(Utility.java:327)
          at com.microsoft.windowsazure.services.core.storage.utils.implementation.StorageErrorResponse.&lt;init&gt;(StorageErrorResponse.java:59)
          at com.microsoft.windowsazure.services.core.storage.StorageException.getErrorDetailsFromRequest(StorageException.java:54)
          at com.microsoft.windowsazure.services.core.storage.StorageException.translateException(StorageException.java:85)
          at com.microsoft.windowsazure.services.core.storage.utils.implementation.ExecutionEngine.executeWithRetry(ExecutionEngine.java:147)
          at com.microsoft.windowsazure.services.blob.client.CloudBlobContainer.createIfNotExist(CloudBlobContainer.java:339)
          at com.microsoft.windowsazure.services.blob.client.CloudBlobContainer.createIfNotExist(CloudBlobContainer.java:257)
          at &lt;My_Pack&gt;fileupload.service.uploadservice.impl.UploadServiceAzureProcess.uploadFileWithDetails(UploadServiceAzureProcess.java:82)
          at &lt;My_Pack&gt;fileupload.service.uploadservice.impl.UploadServiceImpl.uploadFile(UploadServiceImpl.java:143)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
          at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:193)
          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:102)
          at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
          at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
          at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
          at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
          at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1040)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:976)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
          at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
          at org.eclipse.jetty.server.Server.handle(Server.java:363)
          at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)
          at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:931)
          at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:992)
          at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
          at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
          at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
          at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
          at java.lang.Thread.run(Thread.java:722)
  </code></pre>
  
  <p>following is my code from where i am getting that exception.</p>
  
  <p>CloudBlobClient blobClient = storageAccount.createCloudBlobClient();</p>
  
  <pre><code>            // Create the container if it does not exist. NOTE: The container name must be lower case.
              CloudBlobContainer container = blobClient.getContainerReference(containerName);
  
              container.createIfNotExist();
              logger.debug("Uploading...");
              uploadMyBlob(container.getName(),blobClient,fileName,fileSize,stream);
              logger.debug("Uploaded...");
  </code></pre>
  
  <p>i am getting exception from <code>container.createIfNotExist();</code> i tried searching for the cause and i came across <a href="https://github.com/WindowsAzure/azure-sdk-for-java/issues/297" rel="nofollow">this</a> but unable to find a solution:(</p>
  
  <p>following is my pom dependencies xml for B1</p>
  
  <pre><code>    &lt;dependencies&gt;
  
      &lt;!-- Microsoft related dependencies START --&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.microsoft.windowsazure&lt;/groupId&gt;
              &lt;artifactId&gt;microsoft-windowsazure-api&lt;/artifactId&gt;
              &lt;version&gt;${com.microsoft.windowsazure.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
              &lt;version&gt;${org.codehaus.jackson.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
   &lt;!-- i tried adding following too
   &lt;dependency&gt;
        &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
        &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
        &lt;version&gt;1.13&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
        &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
        &lt;version&gt;2.2.7&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.10&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
        &lt;artifactId&gt;hamcrest-all&lt;/artifactId&gt;
        &lt;version&gt;1.3&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.mockito&lt;/groupId&gt;
        &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
        &lt;version&gt;1.9.0&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.inject&lt;/groupId&gt;
        &lt;artifactId&gt;javax.inject&lt;/artifactId&gt;
        &lt;version&gt;1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
        &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
        &lt;version&gt;1.13&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
        &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax.mail&lt;/groupId&gt;
        &lt;artifactId&gt;mail&lt;/artifactId&gt;
        &lt;version&gt;1.4.5&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
        &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
        &lt;version&gt;3.1&lt;/version&gt;
      &lt;/dependency&gt; --&gt;
  
      &lt;!-- Microsoft related dependencies END --&gt;
  
          &lt;!--  Other dependencies START --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
              &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
              &lt;version&gt;${javax.ws.rs.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;servlet-api&lt;/artifactId&gt;
              &lt;version&gt;${javax.servlet.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;${org.slf4j.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
              &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
              &lt;version&gt;${commons-fileupload.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;!-- Other dependencies END --&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;instructions&gt;
                          &lt;Export-Package&gt;
                              &lt;My_Pack&gt;.fileupload.service.uploadService
                          &lt;/Export-Package&gt;
                          &lt;Import-Package&gt;
                              org.codehaus.jackson.jaxrs;version="1.9.2",
                              com.microsoft.windowsazure.services.blob.client&lt;!-- ;version="0.4.2" --&gt;,
                              com.microsoft.windowsazure.services.core.storage&lt;!-- ;version="0.4.2" --&gt;,
                              javax.servlet.http;version="2.4", 
                              javax.ws.rs;version="2.0-m02",
                              javax.ws.rs.core;version="2.0-m02",
                              org.apache.commons.fileupload;version="1.2.1",
                              org.apache.commons.fileupload.disk;version="1.2.1",
                              org.apache.commons.fileupload.servlet;version="1.2.1",
                              org.slf4j;version="1.6.0",
                              org.springframework.beans.factory.config
                          &lt;/Import-Package&gt;
                          &lt;Embed-Dependency&gt;
                              &lt;!-- jackson-jaxrs --&gt;
                          &lt;/Embed-Dependency&gt;
                          &lt;Bundle-ClassPath&gt;.&lt;/Bundle-ClassPath&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>following is pom dependency for bundle B2</p>
  
  <pre><code>&lt;dependencies&gt;
  
      &lt;!-- WSO2 Dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.carbon&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.carbon.identity.entitlement.stub&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.carbon&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.carbon.um.ws.api&lt;/artifactId&gt;
          &lt;version&gt;4.0.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.carbon&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.carbon.user.core&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.carbon&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.carbon.user.api&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.carbon&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.carbon.authenticator.stub&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.wso2.securevault&lt;/groupId&gt;
          &lt;artifactId&gt;org.wso2.securevault&lt;/artifactId&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of WSO2 dependencies --&gt;
  
      &lt;!-- Apache dependencies for WSO2 --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.ws.commons.axiom.wso2&lt;/groupId&gt;
          &lt;artifactId&gt;axiom&lt;/artifactId&gt;
          &lt;version&gt;1.2.11.wso2v2&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.axis2.wso2&lt;/groupId&gt;
          &lt;artifactId&gt;axis2&lt;/artifactId&gt;
          &lt;version&gt;1.6.1.wso2v5&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.axiom.om.util&lt;/groupId&gt;
          &lt;artifactId&gt;axiom-api&lt;/artifactId&gt;
          &lt;version&gt;1.2.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.ws.commons.schema.wso2&lt;/groupId&gt;
          &lt;artifactId&gt;XmlSchema&lt;/artifactId&gt;
          &lt;version&gt;1.4.7.wso2v2&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.neethi.wso2&lt;/groupId&gt;
          &lt;artifactId&gt;neethi&lt;/artifactId&gt;
          &lt;version&gt;2.0.4.wso2v4&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.httpcomponents.wso2&lt;/groupId&gt;
          &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
          &lt;version&gt;4.1.0-wso2v1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of Apache dependecies for WSO2 --&gt;
  
      &lt;!-- Spring dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-asm&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-expression&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of Spring dependencies --&gt;
  
      &lt;!-- Spring OSGi framework dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.osgi&lt;/groupId&gt;
          &lt;artifactId&gt;spring-osgi-core&lt;/artifactId&gt;
          &lt;version&gt;${spring-osgi-version}&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;org.springframework.aop&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;org.springframework.beans&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;org.springframework.context&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;artifactId&gt;org.springframework.core&lt;/artifactId&gt;
                  &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of Spring OSGi framework dependencies --&gt;
  
      &lt;!-- Jackson dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
          &lt;version&gt;1.9.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-core-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
          &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
          &lt;version&gt;1.9.7&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of Jackson dependencies --&gt;
  
      &lt;!-- Jasypt dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.jasypt&lt;/groupId&gt;
          &lt;artifactId&gt;jasypt&lt;/artifactId&gt;
          &lt;version&gt;${jasypt.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.jasypt&lt;/groupId&gt;
          &lt;artifactId&gt;jasypt-spring31&lt;/artifactId&gt;
          &lt;version&gt;${jasypt.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.jasypt&lt;/groupId&gt;
          &lt;artifactId&gt;jasypt-spring3&lt;/artifactId&gt;
          &lt;version&gt;${jasypt.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- End of Jasypt dependencies --&gt;
  
      &lt;!-- Other third party dependencies --&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt;
          &lt;artifactId&gt;sqljdbc4&lt;/artifactId&gt;
          &lt;version&gt;3.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;${junit.version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
          &lt;version&gt;1.6.2&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
          &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
          &lt;version&gt;2.0-m02&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.16&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;skipTests&gt;true&lt;/skipTests&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;configuration&gt;
                  &lt;instructions&gt;
                      &lt;Export-Package&gt;
                          &lt;My_Pack&gt;.security.*
                      &lt;/Export-Package&gt;
                      &lt;Import-Package&gt;
                          org.osgi.framework;version="[1.5,2.0)",
                          org.osgi.service.*;version="[1.0, 2.0)",
                          org.codehaus.jackson,
                          org.codehaus.jackson.map,
                          org.codehaus.jackson.jaxrs;version="1.9.7",
                          org.apache.cxf.jaxrs.provider;version="${org.apache.cxf.version}",
                          org.apache.cxf.jaxrs.client;version="${org.apache.cxf.version}",
                          javax.ws.rs.*;version="[1.0,2)",
                          javax.xml.namespace.*,
                          org.apache.commons.httpclient.*; version="3.1.0",
                          org.xml.sax.*,
                          org.w3c.dom.*,
                          javax.xml.stream;version="1.0.1",
                          javax.xml.stream.events;version="1.0.1",
                          javax.xml.stream.util;version="1.0.1",
                          javax.xml.bind.*;version="2.1.0";resolution:=optional,
                          javax.xml.datatype,
                          javax.xml.parsers,
                          javax.xml.transform.*,
                          javax.xml.validation,
                          javax.xml.xpath,
                          javax.xml,
                          javax.sql.*,
                          *;resolution:=optional
                      &lt;/Import-Package&gt;
                      &lt;Embed-Dependency&gt;
                          org.wso2.carbon.um.ws.api,
                          org.wso2.carbon.authenticator.stub,
                          org.wso2.carbon.identity.entitlement.stub,
                          org.wso2.carbon.user.core,
                          org.wso2.carbon.user.api,
                          org.wso2.securevault,
                          axiom,
                          axis2,
                          httpcore,
                          XmlSchema,
                          neethi
                      &lt;/Embed-Dependency&gt;
                      &lt;Bundle-ClassPath&gt;.&lt;/Bundle-ClassPath&gt;
                  &lt;/instructions&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>