title: com.sun.star.lang.IllegalArgumentException - Unsupported URL <file:///
body: <p>Hi Stackoverflow community, i am having an issue about reading a file from my java webapp. I want to get a file from a directory in my webapp, then converting it to PDF. Everything works just fine in my developpement environement ( Windows) but when i am puting this on sever ( LINUX), when the server reach the code to read my doc file to convert it, java throw this exception : </p>
  
  <pre><code>com.sun.star.lang.IllegalArgumentException - Unsupported URL &lt;file:///
  </code></pre>
  
  <p>Here is the code : </p>
  
  <pre><code>fileDocToConvert = new File(GET_REAL_PATH()+repo_Name+slash+fileName);
  </code></pre>
  
  <p><code>fileDocToConvert</code> path become then : /usr/share/tomcat7/webapps/myapp/repo_name/exemple.doc</p>
  
  <p>the exception fired up when i try to convert : </p>
  
  <pre><code>OpenOfficeConnection connection = new SocketOpenOfficeConnection(8100);
  connection.connect();
  DocumentConverter converter  = new OpenOfficeDocumentConverter(connection); 
  //HERE...=&gt; //     converter.convert(docFile, pdfFile);
  </code></pre>
  
  <p>I am using : </p>
  
  <p><strong>jodConverter 2.2.1, openOffice 3, Java7, Tomcat 7</strong></p>
  
  <p>I start the openOffice service this way : </p>
  
  <pre><code>soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard
  </code></pre>
  
  <p>I can't get a way to follow to solve this issue.</p>
  
  <p>Thank you in advance</p>