title: java.lang.ClassNotFoundException: com.mulesoft.weave.module.writer.Writer
body: <p>I'm having an error with mule standalone version 3.8.1 when trying to transform a payload into an xml before sending it to a webservice.</p>
  
  <p>My flow config is like this:</p>
  
  <pre><code>&lt;dw:transform-message doc:name="Transform Message" mode="immediate"&gt;
                              &lt;dw:set-payload&gt;
      &lt;![CDATA[%dw 1.0
      %input payload application/java
      %output application/xml
      %namespace ns0 urn:INDRA:JIRA:Integracion
      ---
      {
          ns0#Create: {
              KeyClient: payload.externalIssue,
              Accion: payload.accion,
              Priority: payload.priority,
              Assignee: payload.assignee,
              Resolution_Coment: payload.reopenComment,
              Solucion: payload.comment,
              IssueType: payload.issueType,
              ComponentJIRA: payload.component,
              No_Rellenar: ""
          }
      }
      ]]&gt;
                          &lt;/dw:set-payload&gt;
     &lt;/dw:transform-message&gt;
  </code></pre>
  
  <p>When we try to process the message we get:</p>
  
  <pre><code>ERROR 2016-12-19 13:37:52,208 [ActiveMQ Session Task-1] org.mule.exception.RollbackMessagingExceptionStrategy:
  ********************************************************************************
  Message               : com.mulesoft.weave.module.Module: Provider com.mulesoft.weave.module.flatfile.FlatFileModule could not be instantiated: java.lang.NoClassDefFoundError: com/mulesoft/weave/module/writer/Writer (java.util.ServiceConfigurationError).
  Payload               : RemedyMessageBean{accion='TCURSO', comment=' ', empresa='SSII-Administración (CSA)', externalIssue='INC000000004965', projectParameter4='No Aplica', dueDate='31/12/2016 10:17:00', priority='', reopenComment='', projectParameter1='No Aplica', projectParameter11='No Aplica', stopReason='', component='AX-UTES', issueType='', stopComment='null', assignee=''}
  Element XML           : &lt;dw:transform-message doc:name="Transform Message" mode="immediate"&gt;
                          &lt;dw:set-payload&gt;%dw 1.0%input payload application/java%output application/xml%namespace ns0 urn:INDRA:JIRA:Integracion---{ns0#Create: {KeyClient: payload.externalIssue,Accion: payload.accion,Priority: payload.priority,Assignee: payload.assignee,Resolution_Coment: payload.reopenComment,Solucion: payload.comment,IssueType: payload.issueType,ComponentJIRA: payload.component,No_Rellenar: ""}}&lt;/dw:set-payload&gt;
                          &lt;/dw:transform-message&gt;
  Payload Type          : es.indra.esb.remedy.servicios.RemedyMessageBean
  Element               : /AsincronoRemedySI/processors/2/5/0/3 @ EsbOrigin-a:remedy-config.xml:508 (Transform Message)
  --------------------------------------------------------------------------------
  Root Exception stack trace:
  java.lang.ClassNotFoundException: com.mulesoft.weave.module.writer.Writer
          at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
          at org.mule.module.launcher.FineGrainedControlClassLoader.findClass(FineGrainedControlClassLoader.java:175)
          at org.mule.module.launcher.MuleApplicationClassLoader.findClass(MuleApplicationClassLoader.java:134)
          at org.mule.module.launcher.FineGrainedControlClassLoader.loadClass(FineGrainedControlClassLoader.java:119)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
          at java.lang.Class.getDeclaredConstructors0(Native Method)
          at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
          at java.lang.Class.getConstructor0(Class.java:2803)
          at java.lang.Class.newInstance(Class.java:345)
          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
          at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
          at scala.collection.convert.Wrappers$JIteratorWrapper.next(Wrappers.scala:43)
  </code></pre>
  
  <p>The dependency in my pom.xml is:</p>
  
  <pre><code>...
          &lt;mule.version&gt;3.8.1&lt;/mule.version&gt;
  ...
              &lt;dependency&gt;
                  &lt;groupId&gt;com.mulesoft.weave&lt;/groupId&gt;
                  &lt;artifactId&gt;mule-plugin-weave&lt;/artifactId&gt;
                  &lt;version&gt;${mule.version}&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;com.mulesoft.weave&lt;/groupId&gt;
                  &lt;artifactId&gt;flatfile&lt;/artifactId&gt;
                  &lt;version&gt;1.2.0-M4&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>
  
  <p>Thanks,
  Jose.</p>