<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Thank you Seb,<br>&nbsp; &nbsp; So, If I understand well, I will charge the file in 2 step, the first one is to charge a file in plugin with "myPlugin.py", then use the plugin to charge the file in ParaViewWeb?<br>&nbsp; &nbsp; So, in your reply<br><span>&nbsp;</span><br>&nbsp; &nbsp;"def load(file):<br>&nbsp; &nbsp; return simple.OpenDataFile('/your-path/' + file)"<br><br><span>&nbsp; &nbsp; the parameter ('nameOfFile.mhd') will be parsed directly to OpenDataFile('/my-path/'+file) and become ('/my-path/nameOfFile.mhd')</span><br>&nbsp; &nbsp; I wonder if I'm right. Sorry for this question but I just want to be sured.&nbsp;<br><br>----- Original Message -----<br>From: Sebastien Jourdain &lt;sebastien.jourdain@kitware.com&gt;<br>To: Tuan Ha Tran &lt;tuan-ha.tran@insa-lyon.fr&gt;<br>Cc: paraview@paraview.org<br>Sent: Fri, 11 May 2012 19:32:08 +0200 (CEST)<br>Subject: Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console<br><br>You can create your own python plugin that will append the proper path<br>in front of the provided name.<br><br>=== myPlugin.py ===<br>from paraview import simple<br><br>def load(file):<br>  return simple.OpenDataFile('/your-path/' + file)<br><br>=======<br><br>In JS you'll do something like that<br><br>var plugin = paraview.getPlugin('myPlugin');<br>var reader = plugin.load('NameOfFile.mhd');<br><br>But you should figure out why the server crashed by looking at the log<br>if you can. The full path should have worked.<br><br>Seb<br><br>On Fri, May 11, 2012 at 11:31 AM, Tuan Ha Tran<br><tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt; Hi everybody,<br>&gt; &nbsp; &nbsp; I have a question to ask. I use ParaViewWeb JavaScript Console to load<br>&gt; an image file to ParaViewWeb, I use the followed code "var reader<br>&gt; =paraview.OpenDataFile({filename:"../NameOfFile"});"&nbsp;&nbsp; &nbsp; I tried with the<br>&gt; absolute path of my PC (which is normally not the good solution) and get the<br>&gt; "ServerDownException"<br>&gt; &nbsp; &nbsp; So, if I want ParaViewWeb to look at in the web-apps of tomcat server,<br>&gt; which path I have to use? As I know, if the file is in the same location as<br>&gt; the PWConsole.war, we can access to it directly using {filename:"hola.mhd"}<br>&gt; (for example)<br>&gt; &nbsp; &nbsp; Anyone have an idea?<br>&gt; &nbsp; &nbsp;Thank in advance.<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; http://www.kitware.com/opensource/opensource.html<br>&gt;<br>&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; http://paraview.org/Wiki/ParaView<br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt;<br><br></tuan-ha.tran@insa-lyon.fr></body></html>