<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Hi <span class="e">Seb</span>,<br>&nbsp;&nbsp;&nbsp; I have another thing to ask you (I<span class="e">'m</span> sorry if this question is already asked, but I found my problem different)<br>&nbsp; &nbsp; I use super build to build <span class="e"><span class="e">ParaView</span>Web</span> with all the settings by default. It<span class="e">'s</span> done.<br>&nbsp;&nbsp; <br>&nbsp; &nbsp; Next :<br>&nbsp; &nbsp; - I downloaded the apache-tomcat-7.0.26<br>&nbsp; &nbsp; - Copied all the *.war generated by the <span class="e">SuperBuild</span> into tomcat7.0.26's <span class="e">webapps</span> folder<br>&nbsp;&nbsp;&nbsp; - Copied pw-config.properties into apache-tomcat-7.0.26/lib <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; To run <span class="e">PWApps</span>,<br>&nbsp;&nbsp;&nbsp; <span></span>- I started <span class="e">JMS</span> broker d4apache <span class="e">Activemq</span>, the latest version is 5.5.1 (./activemq-admin start)<br>&nbsp;&nbsp;&nbsp; - I started server Tomcat (./catalina.sh start)<br><br>&nbsp;&nbsp;&nbsp; Result: when I tried to open a session in PWApps @ http://localhost:8080/PWApp/<br>&nbsp;&nbsp;&nbsp; the error appeared : An error occured during the loading. org.hibernate.exception.GenericJDBCException: Cannot open connection<br><br><br>&nbsp;&nbsp;&nbsp; It's absolutely a problem with hibernate, the connection with the database. But I don't quite understand how to fix this. <br>&nbsp;&nbsp;&nbsp; Do we have to modify pw-config.properties? What do we have to do?<br><br>&nbsp;&nbsp;&nbsp; About the working directory, I followed the tutorial @ http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package.<br>&nbsp; &nbsp; Thank you for your help. <br><br><br>********************************************************************<br>***************** pw-config.properties **********************************<br>********************************************************************<br><br># Directory used to store application files<br>pw.working.directory=/var/lib/tomcat6/paraviewweb-work/<br><br># Logging level that should be used [DEBUG, INFO, WARNING, ERROR, CRITICAL]<br>pw.logging.level=ERROR<br><br># Do we enable logging [on, off, yes, no]<br>paraview.logging=OFF<br>pw.logging=ON<br><br># Inactivity timeout for garbage collecting PWServer applications <br># time is given in minute<br>pw.garbage.collector.timeout=5<br><br># Administration page user credentials<br>pw.admin.login=admin<br>pw.admin.password=admin<br><br># Total number of resources available<br>pw.max.resources=5<br><br># PWServer executable path settings<br>pw.executable.path.default=/var/lib/tomcat6/paraviewweb-work/bin/PWServer.sh<br># pw.executable.path.parallel=/home/thtran/projects/ParaViewWeb/install-pw/bin/PWServer<br># pw.executable.path.manta=/home/seb/tmp/ParaWeb-work/exec/manta.sh<br><br># pvserver executable path settings<br># pvserver.executable.path.demo=/home/seb/tmp/ParaWeb-work/exec/demo.sh<br><br># Plugin directory settings<br>pw.plugins.default=/var/lib/tomcat6/paraviewweb-work/plugins<br># pw.plugins.parallel=/usr/local/PVW/PWSer_WD/plugins<br># pw.plugins.manta=/usr/local/PVW/PWSer_WD/plugins<br><br># Resource consumption definition<br>pw.resource.consumption.default=1<br># pw.resource.consumption.parallel=4<br># pw.resource.consumption.manta=2<br><br># Optional thirdpart properties<br>pw.gwt-app.data=/var/lib/tomcat6/paraviewweb-work/data<br>pw.gwt-app.states=/var/lib/tomcat6/paraviewweb-work/states<br># pw.gwt-app.webgl=/usr/local/PVW/PWSer_WD/webgl<br>pw.gwt-app.confs=default<br># Optional PWApp upload properties<br># - size in MegaBytes<br># - timeout in minute<br># - types provides the set of extension allowed<br>pw.gwt-app.upload.size=10<br>pw.gwt-app.upload.timeout=2<br>pw.gwt-app.upload.types=vtp:vtk<br><br># Remote server command line<br>#&nbsp; * Tomcat will call any script in the following directory and will execute the<br>#&nbsp;&nbsp;&nbsp; following command line where portnumber is an available portnumber:<br>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; fullScriptPath username password <br>#&nbsp; * Documentation on How to start a pvserver<br>#&nbsp;&nbsp;&nbsp; - http://www.cmake.org/Wiki/Setting_up_a_ParaView_Server<br># pw.remote.settings=/usr/local/PVW/PWSer_WD/remote-settings<br><br>pw.remote.log.dir=/var/lib/tomcat6/paraviewweb-work/logs<br><br># Optional PWStateApp working directory<br>pw.state.working.directory=/var/lib/tomcat6/paraviewweb-work/states-workdir<br><br>***********************************************************<br>************ end of pw-config.properties*************************<br>***********************************************************&nbsp; <br>&nbsp;&nbsp;&nbsp; <br><br>----- Original Message -----<br>From: Sebastien Jourdain &lt;<span class="e">sebastien</span>.<span class="e">jourdain</span>@<span class="e">kitware</span>.com&gt;<br>To: <span class="e">Tuan</span> Ha Tran &lt;tuan-ha.<span class="e">tran</span>@insa-lyon.fr&gt;<br>Cc: <span class="e"><span class="e">vtk</span>users</span>@vtk.org<br>Sent: Fri, 06 Apr 2012 19:33:40 +0200 (<span class="e">CEST</span>)<br>Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class <span class="e">vtkJPEGWriter</span> and function <span class="e">SetInput</span><br><br>You should use ParaView 3.14.<br><br>I'm sure you are doing something wrong that I'm not aware of, because<br>I'm using ParaViewWeb with ParaView 3.14 myself. So if I managed to<br>build it, you should too, unless we are doing something different.<br><br>What did you do with the SuperBuild ? Did it manage to fetch ParaView<br>and ParaViewWeb and start building those as well as their dependency<br>like <span class="e">apr</span> ?<br><br>Seb<br><br>On Fri, Apr 6, 2012 at 11:04 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt; Hi,<br>&gt; &nbsp;I tried your solution with SuperBuild but the problem still exist.<br>&gt; &nbsp;I wonder if I should reuse ParaView 3.10.1?<br>&gt;<br>&gt; &nbsp;Thank you Seb<br>&gt;<br>&gt; ----- Original Message -----<br>&gt; From: "Sebastien Jourdain" <sebastien.jourdain@kitware.com><br>&gt; To: "Tuan Ha Tran" <tuan-ha.tran@insa-lyon.fr><br>&gt; Cc: vtkusers@vtk.org<br>&gt; Sent: Friday, April 6, 2012 4:53:43 PM<br>&gt; Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>&gt;<br>&gt; Hi Tuan Ha Tran,<br>&gt;<br>&gt; The documentation was written when ParaView 3.10 was out and that<br>&gt; version was lacking some fixed that were on git/master at that time<br>&gt; but I should definitely update the documentation to recommend to use<br>&gt; ParaView 3.14 and not git/master.<br>&gt; In fact, two weeks ago the latest changes in <span class="e">VTK</span> that breaks its<br>&gt; backward compatibility went into ParaView and for which I <span class="e">didn</span><span class="e">'t</span> get<br>&gt; the time to update ParaViewWeb.<br>&gt;<br>&gt; Regarding your ParaView build issue, I'm wondering what you did... But<br>&gt; anyway, if you want to ease the build process, you should definitely<br>&gt; try to use the SuperBuild package so every third party get<br>&gt; automatically compiled for you with the correct arguments and options.<br>&gt;<br>&gt; <span class="e">http</span>://<span class="e">www</span>.<span class="e">paraview</span>.org/<span class="e">Wiki</span>/ParaViewWeb_SuperBuild<br>&gt;<br>&gt; Seb<br>&gt;<br>&gt; On Fri, Apr 6, 2012 at 9:25 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt;&gt; Seb,<br>&gt;&gt; Thank you for your reply. I just followed the instructions in the ParaViewWeb site.<br>&gt;&gt; - Mk<span class="e">dir</span> ParaViewWeb<br>&gt;&gt; - Clone git from it address<br>&gt;&gt;<br>&gt;&gt; I used the <span class="e">Ccmake</span> command (in build-pw) for the source in the ParaViewWeb directory (build-pw is a sub-directory of ParaViewWeb). I compiled and then the errors.<br>&gt;&gt; I used the latest release (3.14) of ParaView.<br>&gt;&gt;<br>&gt;&gt; there was a problem with ParaView, it is the problem of share library. but I resolved this by adding -fPIC in the <span class="e">CFLAGS</span> and <span class="e"><span class="e">CXX</span>FLAGS</span>, I don't know if that is the problem.<br>&gt;&gt;<br>&gt;&gt; so, the vtkJPEGWriter is in the ParaView folder?<br>&gt;&gt;<br>&gt;&gt; Thank you once more.<br>&gt;&gt;<br>&gt;&gt; ----- Original Message -----<br>&gt;&gt; From: "Sebastien Jourdain" <sebastien.jourdain@kitware.com><br>&gt;&gt; To: "Tuan Ha Tran" <tuan-ha.tran@insa-lyon.fr><br>&gt;&gt; Cc: vtkusers@vtk.org<br>&gt;&gt; Sent: Friday, April 6, 2012 3:11:17 PM<br>&gt;&gt; Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>&gt;&gt;<br>&gt;&gt; Hi Tuan Ha Tran,<br>&gt;&gt;<br>&gt;&gt; how did you build ParaViewWeb ? Did you do from the super build or<br>&gt;&gt; from the main repository ?<br>&gt;&gt; ParaViewWeb basically rely on ParaView that embed VTK which embed that<br>&gt;&gt; vtkJPEGWriter.<span class="e">cxx</span><br>&gt;&gt; Which version of ParaView did you used ? The latest release (3.14) is<br>&gt;&gt; known to work...<br>&gt;&gt;<br>&gt;&gt; Seb<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Fri, Apr 6, 2012 at 5:12 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt;&gt;&gt; Hi everybody,<br>&gt;&gt;&gt; &nbsp; I have a problem when trying to compile ParaViewWeb<br>&gt;&gt;&gt; &nbsp; This is the detail of my problem<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ***********************************************************************<br>&gt;&gt;&gt; %] Built target <span class="e">ParaWebPlugin</span><br>&gt;&gt;&gt; Scanning dependencies of target <span class="e">PWServer</span><br>&gt;&gt;&gt; [ 30%] Building CXX object <span class="e">ParaViewAdapter</span>/<span class="e">CMakeFiles</span>/PWServer.dir/<span class="e">vtkPWProcessingEngine</span>.cxx.o<br>&gt;&gt;&gt; /home/<span class="e">thtran</span>/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx: In member function ‘double vtkPWProcessingEngine::<span class="e">ProcessAndSendImage</span>(<span class="e">const</span> char*, <span class="e">vtkImageData</span>*)’:<br>&gt;&gt;&gt; /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:439:19: error: ‘class vtkJPEGWriter’ has no member named ‘SetInput’<br>&gt;&gt;&gt; /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:448:18: error: ‘class <span class="e">vtkPNGWriter</span>’ has no member named ‘SetInput’<br>&gt;&gt;&gt; make[2]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o] Error 1<br>&gt;&gt;&gt; make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2<br>&gt;&gt;&gt; make: *** [all] Error 2<br>&gt;&gt;&gt; *************************************************************************<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; When I went to the "<span class="e">wtkPWProcesingEngine</span>.cxx", I found out that <span class="e">wtkJPEGWriter</span> is included by #include vtkJPEGWriter.h". But I <span class="e">couldn</span>'t find wtkJPEGWriter.h neither vtkJPEGWriter.cxx.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; When I tried to look for vtkJPEGWriter.cxx by <span class="e">Google</span>, I found this file but I couldn't find any function "SetInput".<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; When I tried to deactivate the line where SetInput is located, ParaViewWeb compile, but I think there are some problems with it.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I want to know if someone has the same problem? How to fix that?<br>&gt;&gt;&gt; Thank you all.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Ha<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Powered by www.kitware.com<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Visit other <span class="e">Kitware</span> open-source projects at http://www.kitware.com/<span class="e">opensource</span>/opensource.<span class="e">html</span><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Follow this link to subscribe/<span class="e">unsubscribe</span>:<br>&gt;&gt;&gt; http://www.vtk.org/mailman/<span class="e">listinfo</span>/vtkusers<br><br></tuan-ha.tran@insa-lyon.fr></tuan-ha.tran@insa-lyon.fr></sebastien.jourdain@kitware.com></tuan-ha.tran@insa-lyon.fr></tuan-ha.tran@insa-lyon.fr></sebastien.jourdain@kitware.com></tuan-ha.tran@insa-lyon.fr></body></html>