[Paraview] ParaViewWeb build - PWServer
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu Aug 11 17:50:21 EDT 2011
Did you properly set the working directory in the CMake configuration.
If so, just try to delete the database by removing the database
directory in the working directory that you set in CMake.
Seb
On Thu, Aug 11, 2011 at 5:35 PM, WILKINSON M.
<maxwell.wilkinson at durham.ac.uk> wrote:
> Hi Seb
>
> To answer my previous email, I've managed to build all the components. I'm
> able to load each of the .war components in my browser from
> http://localhost:8080/PW/PWApp.html
>
> However when I try to load a visualization using PWApp, for example the
> wavelet dataset, I'm given the error:
>
> 'An error occured during the loading.
> org.hibernate.exception.GenericJDBCException: Cannot open connection'
>
> Are you able to suggest a solution?
>
> I have checked activemq is running using ./activemq status
>
> I'm nearly there!
>
> Thanks
> Max
>
> -----Original Message-----
> From: WILKINSON M.
> Sent: Thu 11/08/11 21:19
> To: Sebastien Jourdain
> Subject: RE: [Paraview] ParaViewWeb build - PWServer
>
> Hi Seb
>
> Thanks for your reply, I understand the ccmake process now. I've managed to
> build PWServer and PWService.
>
> I've added:
> PWService.war to ../tomcat/webapps/
> pw-config.properties to ../tomcat/lib/
>
> However, the host cannot find http://localhost:8080/PWService
>
> If I go to http://localhost:8080/ I get the tomcat default home page, so I
> think tomcat is working okay.
>
> From within ccmake, there was no entry for CORE_SERVICE_URL available, so I
> could not specify http://localhost:8080/PWService
>
> The ccmake parameters available are as follows:
>
> ../build-pw$ ccmake ../ParaViewWeb/
>
> ACTIVEMQ_CPP
> /usr/local/lib/libactivemq-cpp.so
> ACTIVEMQ_INCLUDE_DIR
> /usr/local/include/activemq-cpp-3.4.0
> ANT_EXECUTABLE
> /usr/share/ant/bin/ant
> BUILD_CONSOLE_SAMPLE
> ON
> BUILD_FLEX_RENDERER
> OFF
> BUILD_MANTA_SAMPLE
> OFF
> BUILD_PW_SERVER
> ON
> BUILD_REMOTE_LAUNCHER
> OFF
> BUILD_SANDBOX_SAMPLE
> OFF
> BUILD_SHUTTLE
> ON
> BUILD_SIMPLE_JS
> ON
> BUILD_STATE_APP_BUILDER
> ON
> BUILD_TESTING
> ON
> BUILD_WEB_APPLICATION
> OFF
> BUILD_WEB_SAMPLES
> OFF
> BUILD_WEB_SERVICE
> ON
> BZRCOMMAND
> BZRCOMMAND-NOTFOUND
> CMAKE_AR
> /usr/bin/ar
> CMAKE_BUILD_TYPE
> Debug
> CMAKE_COLOR_MAKEFILE
> ON
> CMAKE_CXX_COMPILER
> /usr/bin/c++
> CMAKE_CXX_FLAGS
> CMAKE_CXX_FLAGS_DEBUG
> -g
> CMAKE_CXX_FLAGS_MINSIZEREL -Os
> -DNDEBUG
> CMAKE_CXX_FLAGS_RELEASE -O3
> -DNDEBUG
> CMAKE_CXX_FLAGS_RELWITHDEBINFO -O2
> -g
> CMAKE_C_COMPILER
> /usr/bin/gcc
> CMAKE_C_FLAGS
> CMAKE_C_FLAGS_DEBUG
> -g
> CMAKE_C_FLAGS_MINSIZEREL -Os
> -DNDEBUG
> CMAKE_C_FLAGS_RELEASE -O3
> -DNDEBUG
> CMAKE_C_FLAGS_RELWITHDEBINFO -O2
> -g
> CMAKE_EXE_LINKER_FLAGS
> CMAKE_EXE_LINKER_FLAGS_DEBUG
> CMAKE_EXE_LINKER_FLAGS_MINSIZE
> CMAKE_EXE_LINKER_FLAGS_RELEASE
> CMAKE_EXE_LINKER_FLAGS_RELWITH
> CMAKE_INSTALL_PREFIX
> /home/max/Downloads/install-pw
> CMAKE_LINKER
> /usr/bin/ld
> CMAKE_MAKE_PROGRAM
> /usr/bin/make
> CMAKE_MODULE_LINKER_FLAGS
> CMAKE_MODULE_LINKER_FLAGS_DEBU
> CMAKE_MODULE_LINKER_FLAGS_MINS
> CMAKE_MODULE_LINKER_FLAGS_RELE
> CMAKE_MODULE_LINKER_FLAGS_RELW
> CMAKE_NM
> /usr/bin/nm
> CMAKE_OBJCOPY
> /usr/bin/objcopy
> CMAKE_OBJDUMP
> /usr/bin/objdump
> CMAKE_RANLIB /usr/bin/ranlib
> CMAKE_SHARED_LINKER_FLAGS
> CMAKE_SHARED_LINKER_FLAGS_DEBU
> CMAKE_SHARED_LINKER_FLAGS_MINS
> CMAKE_SHARED_LINKER_FLAGS_RELE
> CMAKE_SHARED_LINKER_FLAGS_RELW
> CMAKE_SKIP_RPATH
> OFF
> CMAKE_STRIP
> /usr/bin/strip
> CMAKE_USE_RELATIVE_PATHS
> OFF
> CMAKE_VERBOSE_MAKEFILE
> OFF
> CORE_CTX_ROOT
> PWService
> COVERAGE_COMMAND
> /usr/bin/gcov
> CTEST_SUBMIT_RETRY_COUNT
> 3
> CTEST_SUBMIT_RETRY_DELAY
> 5
> CVSCOMMAND
> CVSCOMMAND-NOTFOUND
> CVS_UPDATE_OPTIONS -d -A
> -P
> DART_TESTING_TIMEOUT
> 1500
> GITCOMMAND
> /usr/bin/git
> GWT_SDK_HOME
> HGCOMMAND
> HGCOMMAND-NOTFOUND
> Java_JAR_EXECUTABLE
> /usr/bin/jar
> Java_JAVAC_EXECUTABLE
> /usr/bin/javac
> Java_JAVA_EXECUTABLE
> /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java
> LOGGING_LEVEL
> ERROR
> LOG_PARAVIEW
> OFF
> LOG_PARAWEB
> ON
> MAKECOMMAND /usr/bin/make
> -i
> MEMORYCHECK_COMMAND
> MEMORYCHECK_COMMAND-NOTFOUND
> MEMORYCHECK_SUPPRESSIONS_FILE
> PV_ADAPTER_EXEC
> /home/max/Downloads/install-pw/bin/PWServer
> ParaView_DIR
> /home/max/Downloads/build-paraview
> SCPCOMMAND
> /usr/bin/scp
> SITE
> Vostro
> SLURM_SBATCH_COMMAND
> SLURM_SBATCH_COMMAND-NOTFOUND
> SLURM_SRUN_COMMAND
> SLURM_SRUN_COMMAND-NOTFOUND
> SVNCOMMAND
> SVNCOMMAND-NOTFOUND
> TCL_LIBRARY
> TK_LIBRARY
> WEB_DEPLOY
> OFF
> WORKING_DIR
> /home/max/Downloads/PW-work
>
> -------------------------------------------------------------------------------
>
> Could you suggest how to display CORE_SERVICE_URL and FLEX_HOME within
> ccmake?
>
> I think then the deployment should be successful.
>
> Thanks for your help.
>
> Max
>
>
> -----Original Message-----
> From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
> Sent: Thu 11/08/11 01:05
> To: WILKINSON M.
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] ParaViewWeb build - PWServer
>
> Hi Max,
>
> the wiki might be confusing, but each time the CMake step are similar
> in the sense that the wiki highlight each property setting needed for
> each individual component of ParaViewWeb, but as you might want to
> build the "full" ParaViewWeb, you should setup everything at once. No
> need to stop/start CMake as many time as ParaViewWeb has components.
>
> Seb
>
> On Wed, Aug 10, 2011 at 5:13 PM, WILKINSON M.
> <maxwell.wilkinson at durham.ac.uk> wrote:
>> Hi Seb,
>>
>> I haven't got to deployment just yet, I'm trying to build PWService at the
>> moment.
>>
>> For PWServer, I downloaded activemq-cpp 3.4.0 as source and compiled using
>> the instructions in the wiki:
>>
>> ----------
>> ActiveMQ-CPP
>>
>> ActiveMQ-CPP is needed for the compilation and the execution of the
>> application. Therefore, you will need to download the source files at the
>> following url http://activemq.apache.org/cms/download.html. As of
>> (06/28/2010) activemq-cpp 3.2 appears to have a bug in it. Please use
>> activemq-cpp 3.1.x. Then you will need to build that library. The command
>> line given below are for Unix systems.
>>
>> > ./configure
>> > make
>> > sudo make install
>>
>> Make sure that you have all the dependency needed to build this library.
>> Here are the required package for Debian/Ubuntu:
>>
>> apt-get install build-essential libaprutil1-dev libapreq2-dev
>> apache2-utils
>> python-dev cmake-curses-gui uuid-dev libapr1 libapreq2-dev
>>
>> ----------
>>
>> In order to build PWService, should I continue to use the ./build-pw and
>> ./install-pw directories carried over from the build of PWServer?
>>
>> I'm following the instructions from the wiki, given below:
>>
>> ----------
>>
>> Configuration and building
>>
>> The PWService do not require any sample to work, therefore we will
>> focusing
>> on building only the core service with all the settings that are
>> mandatory.
>> The command line given below are for Unix systems and paths are given as
>> example.
>>
>> > mkdir build-pw install-pw <---- Optional if you've done
>> > cd build-pw <---- it for ParaviewAdapter
>> > ccmake ../SOURCE_DIR
>>
>> ----------
>>
>> Should the ccmake source directory be set to ../ParaViewWeb or should I
>> use
>> one of the sub-directories?
>>
>> I'm hoping to have the sample applications running soon!
>>
>> Thanks
>>
>> Max
>>
>>
>> -----Original Message-----
>> From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
>> Sent: Wed 10/08/11 19:51
>> To: WILKINSON M.
>> Cc: paraview at paraview.org
>> Subject: Re: [Paraview] ParaViewWeb build - PWServer
>>
>> Hi Max,
>>
>> Great ! Did you managed to deploy and test the sample applications
>> yourself
>> ?
>> Just to my knowledge how did you install activemq-cpp ? Did you used
>> your system package system or you build it from the source ?
>>
>> Thanks for your feedback,
>>
>> Seb
>>
>> On Wed, Aug 10, 2011 at 12:40 PM, WILKINSON M.
>> <maxwell.wilkinson at durham.ac.uk> wrote:
>>> Hi Seb
>>>
>>> Thanks for the swift reply. I now have PWServer compiled using
>>> activemq-cpp
>>> 3.4.0, all tests were passed and it is now installed :)
>>>
>>> Max
>>>
>>>
>>> -----Original Message-----
>>> From: Sebastien Jourdain [mailto:sebastien.jourdain at kitware.com]
>>> Sent: Wed 10/08/11 16:56
>>> To: WILKINSON M.
>>> Cc: paraview at paraview.org
>>> Subject: Re: [Paraview] ParaViewWeb build - PWServer
>>>
>>> Moreover, all the version of activemq-cpp can be found here:
>>> http://activemq.apache.org/cms/download.html
>>>
>>> On Wed, Aug 10, 2011 at 11:54 AM, Sebastien Jourdain
>>> <sebastien.jourdain at kitware.com> wrote:
>>>> Hi Max,
>>>>
>>>> there is two things happening here.
>>>>
>>>> The first one is related to an API change in ActiveMQ-cpp which induce
>>>> this compilation issue. Although it happen that I was working on that
>>>> part lately and managed to use activemq-cpp 3.4 on a linux machine. To
>>>> do so, you will need to edit the ParaViewWeb source code. I've paste
>>>> the small diff at the end of that mail.
>>>>
>>>> The second issue is related to the ParaView version that you are
>>>> using. Before getting further, you should either use 3.10.1 or
>>>> git/master. But depending on the version, you have to checkout a given
>>>> tag on the ParaViewWeb git repository.
>>>>
>>>> Hope this help,
>>>>
>>>> Seb
>>>>
>>>> ====================================
>>>> In file : /ParaViewAdapter/vtkPWJMSMessagingService.cxx
>>>>
>>>> -vtkPWJMSMessagingService::~vtkPWJMSMessagingService()
>>>> +vtkPWJMSMessagingService::~vtkPWJMSMessagingService() throw()
>>>>
>>>> [...]
>>>>
>>>> -void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
>>>> +void vtkPWJMSMessagingService::onMessage(const cms::Message *message)
>>>> throw()
>>>>
>>>> In file: /ParaViewAdapter/vtkPWJMSMessagingService.h
>>>>
>>>> - void onMessage(const cms::Message *message);
>>>> + void onMessage(const cms::Message *message) throw();
>>>>
>>>> [...]
>>>>
>>>> - ~vtkPWJMSMessagingService();
>>>> + ~vtkPWJMSMessagingService() throw();
>>>>
>>>
>>>
>>
>>
>
>
>
>
More information about the ParaView
mailing list