<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> 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> 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> <br> Next :<br> - I downloaded the apache-tomcat-7.0.26<br> - Copied all the *.war generated by the <span class="e">SuperBuild</span> into tomcat7.0.26's <span class="e">webapps</span> folder<br> - Copied pw-config.properties into apache-tomcat-7.0.26/lib <br> <br> To run <span class="e">PWApps</span>,<br> <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> - I started server Tomcat (./catalina.sh start)<br><br> Result: when I tried to open a session in PWApps @ http://localhost:8080/PWApp/<br> the error appeared : An error occured during the loading. org.hibernate.exception.GenericJDBCException: Cannot open connection<br><br><br> It's absolutely a problem with hibernate, the connection with the database. But I don't quite understand how to fix this. <br> Do we have to modify pw-config.properties? What do we have to do?<br><br> About the working directory, I followed the tutorial @ http://www.paraview.org/Wiki/ParaViewWeb_with_system_tomcat_package.<br> 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># * Tomcat will call any script in the following directory and will execute the<br># following command line where portnumber is an available portnumber:<br># > fullScriptPath username password <br># * Documentation on How to start a pvserver<br># - 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>*********************************************************** <br> <br><br>----- Original Message -----<br>From: Sebastien Jourdain <<span class="e">sebastien</span>.<span class="e">jourdain</span>@<span class="e">kitware</span>.com><br>To: <span class="e">Tuan</span> Ha Tran <tuan-ha.<span class="e">tran</span>@insa-lyon.fr><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>> Hi,<br>> I tried your solution with SuperBuild but the problem still exist.<br>> I wonder if I should reuse ParaView 3.10.1?<br>><br>> Thank you Seb<br>><br>> ----- Original Message -----<br>> From: "Sebastien Jourdain" <sebastien.jourdain@kitware.com><br>> To: "Tuan Ha Tran" <tuan-ha.tran@insa-lyon.fr><br>> Cc: vtkusers@vtk.org<br>> Sent: Friday, April 6, 2012 4:53:43 PM<br>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>><br>> Hi Tuan Ha Tran,<br>><br>> The documentation was written when ParaView 3.10 was out and that<br>> version was lacking some fixed that were on git/master at that time<br>> but I should definitely update the documentation to recommend to use<br>> ParaView 3.14 and not git/master.<br>> In fact, two weeks ago the latest changes in <span class="e">VTK</span> that breaks its<br>> backward compatibility went into ParaView and for which I <span class="e">didn</span><span class="e">'t</span> get<br>> the time to update ParaViewWeb.<br>><br>> Regarding your ParaView build issue, I'm wondering what you did... But<br>> anyway, if you want to ease the build process, you should definitely<br>> try to use the SuperBuild package so every third party get<br>> automatically compiled for you with the correct arguments and options.<br>><br>> <span class="e">http</span>://<span class="e">www</span>.<span class="e">paraview</span>.org/<span class="e">Wiki</span>/ParaViewWeb_SuperBuild<br>><br>> Seb<br>><br>> On Fri, Apr 6, 2012 at 9:25 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>>> Seb,<br>>> Thank you for your reply. I just followed the instructions in the ParaViewWeb site.<br>>> - Mk<span class="e">dir</span> ParaViewWeb<br>>> - Clone git from it address<br>>><br>>> 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>>> I used the latest release (3.14) of ParaView.<br>>><br>>> 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>>><br>>> so, the vtkJPEGWriter is in the ParaView folder?<br>>><br>>> Thank you once more.<br>>><br>>> ----- Original Message -----<br>>> From: "Sebastien Jourdain" <sebastien.jourdain@kitware.com><br>>> To: "Tuan Ha Tran" <tuan-ha.tran@insa-lyon.fr><br>>> Cc: vtkusers@vtk.org<br>>> Sent: Friday, April 6, 2012 3:11:17 PM<br>>> Subject: Re: [vtkusers] [ParaViewWeb] compile problem with class vtkJPEGWriter and function SetInput<br>>><br>>> Hi Tuan Ha Tran,<br>>><br>>> how did you build ParaViewWeb ? Did you do from the super build or<br>>> from the main repository ?<br>>> ParaViewWeb basically rely on ParaView that embed VTK which embed that<br>>> vtkJPEGWriter.<span class="e">cxx</span><br>>> Which version of ParaView did you used ? The latest release (3.14) is<br>>> known to work...<br>>><br>>> Seb<br>>><br>>><br>>> On Fri, Apr 6, 2012 at 5:12 AM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>>>> Hi everybody,<br>>>> I have a problem when trying to compile ParaViewWeb<br>>>> This is the detail of my problem<br>>>><br>>>> ***********************************************************************<br>>>> %] Built target <span class="e">ParaWebPlugin</span><br>>>> Scanning dependencies of target <span class="e">PWServer</span><br>>>> [ 30%] Building CXX object <span class="e">ParaViewAdapter</span>/<span class="e">CMakeFiles</span>/PWServer.dir/<span class="e">vtkPWProcessingEngine</span>.cxx.o<br>>>> /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>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:439:19: error: ‘class vtkJPEGWriter’ has no member named ‘SetInput’<br>>>> /home/thtran/projects/ParaViewWeb/ParaViewAdapter/vtkPWProcessingEngine.cxx:448:18: error: ‘class <span class="e">vtkPNGWriter</span>’ has no member named ‘SetInput’<br>>>> make[2]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/vtkPWProcessingEngine.cxx.o] Error 1<br>>>> make[1]: *** [ParaViewAdapter/CMakeFiles/PWServer.dir/all] Error 2<br>>>> make: *** [all] Error 2<br>>>> *************************************************************************<br>>>><br>>>> 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>>>><br>>>> 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>>>><br>>>> When I tried to deactivate the line where SetInput is located, ParaViewWeb compile, but I think there are some problems with it.<br>>>><br>>>> I want to know if someone has the same problem? How to fix that?<br>>>> Thank you all.<br>>>><br>>>> Ha<br>>>><br>>>><br>>>><br>>>> _______________________________________________<br>>>> Powered by www.kitware.com<br>>>><br>>>> 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>>>><br>>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>>>><br>>>> Follow this link to subscribe/<span class="e">unsubscribe</span>:<br>>>> 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>