<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Source not found while deploy process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/source-not-found-while-deploy-process/m-p/79964#M53302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi this is my simple code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public void init(ServletConfig config) throws ServletException {&lt;BR /&gt;super.init(config);&lt;BR /&gt;processEngine = ProcessEngines.getDefaultProcessEngine();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PrintWriter out = response.getWriter();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RepositoryService repositoryService = processEngine.getRepositoryService();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RuntimeService runtimeService = processEngine.getRuntimeService();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deployment deployment = repositoryService.createDeployment().addClasspathResource("C:/Users/Simone/workspace/ProvaNewDesigner/target/classes/diagrams/bpmn2_diagram.bpmn20.xml").deploy();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("helloworld");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out.println("Started Process instance id " +processInstance.getProcessInstanceId());&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;when program perform this operation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deployment deployment = repositoryService.createDeployment().addClasspathResource("C:/Users/Simone/workspace/ProvaNewDesigner/target/classes/diagrams/bpmn2_diagram.bpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I' get the follow exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;GRAVE: Servlet.service() for servlet [ThisService] in context with path [/SimpleTry] threw exception&lt;BR /&gt;org.activiti.engine.ActivitiException: resource "C:/Users/Simone/workspace/ProvaNewDesigner/target/classes/diagrams/bpmn2_diagram.bpmn20.xml" not found&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.repository.DeploymentBuilderImpl.addClasspathResource(DeploymentBuilderImpl.java:58)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at ThisService.doGet(ThisService.java:45)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;26-mag-2011 15.15.38 org.activiti.engine.impl.ProcessEngineImpl &amp;lt;init&amp;gt;&lt;BR /&gt;INFO: ProcessEngine default created&lt;BR /&gt;26-mag-2011 15.15.38 org.activiti.engine.ProcessEngines initProcessEnginFromResource&lt;BR /&gt;INFO: initialised process engine default&lt;BR /&gt;26-mag-2011 15.15.38 org.activiti.engine.impl.jobexecutor.JobAcquisitionThread run&lt;BR /&gt;INFO: JobAcquisitionThread starting to acquire jobs&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This is the operation that it can perform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(i don't now if it can be helpful)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;excluding the path is uncorrect, what can be the reason of this exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 16:17:35 GMT</pubDate>
    <dc:creator>simonetogno</dc:creator>
    <dc:date>2011-05-26T16:17:35Z</dc:date>
    <item>
      <title>Source not found while deploy process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/source-not-found-while-deploy-process/m-p/79964#M53302</link>
      <description>Hi this is my simple codepublic void init(ServletConfig config) throws ServletException {super.init(config);processEngine = ProcessEngines.getDefaultProcessEngine();}protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp; PrintWriter o</description>
      <pubDate>Thu, 26 May 2011 16:17:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/source-not-found-while-deploy-process/m-p/79964#M53302</guid>
      <dc:creator>simonetogno</dc:creator>
      <dc:date>2011-05-26T16:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Source not found while deploy process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/source-not-found-while-deploy-process/m-p/79965#M53303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The method clearly says "addClasspathResource", this expects a path relative to the classPath. If you want to add a resource for which you know the absolute location, use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;deploymentBuilder.addInputStream("bpmn2_diagram.bpmn20.xml", new FileInputStream("C:/…."));&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 16:21:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/source-not-found-while-deploy-process/m-p/79965#M53303</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-05-26T16:21:20Z</dc:date>
    </item>
  </channel>
</rss>

