<div dir="ltr">Yes that is my plan, but I don't know when I'll get a chance to do it. (couple of weeks) <div>For now you may look here: <a href="https://bitbucket.org/terafrac/pvconfs/wiki/Home">https://bitbucket.org/terafrac/pvconfs/wiki/Home</a></div>
<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 8:06 PM, kai liu <span dir="ltr"><<a href="mailto:liuwukai@yahoo.com" target="_blank">liuwukai@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>
<span>Hi Sebastien,</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span>Great. Thank you in advance.  Are you going to post the new doc on this page <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/</a> 
 once you have it ready? Do you know when you might have it ready by any chance? Thank you!</span></div><span class="HOEnZb"><font color="#888888"><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span>Kai</span></div>
</font></span><div><div class="h5"><div>  </div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10pt"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
 <div dir="ltr"> <font face="Arial"> On Saturday, April 19, 2014 4:04 PM, Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>> wrote:<br> </font> </div>
  <div><div><div><div dir="ltr">I don't know the exact match for ubuntu Package, but I should be able to right some new doc with the latest 14 LTS ubuntu.<div><br clear="none"></div><div>Seb</div></div><div><div><br clear="none">
<br clear="none"><div>
On Sat, Apr 19, 2014 at 12:11 AM, kai liu <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:liuwukai@yahoo.com" target="_blank">liuwukai@yahoo.com</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex">

<div><div style="font-size:10pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div><span>Hi Sebastien,</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span>I think ParaViewWeb finally work on my local machine. It seems that I should not close my terminal after I run <span style="font-weight:bold">java -jar JettySessionManager-Server-1.1.jar pw-config.properties &
  </span><span>in the background</span><span style="font-weight:bold">. </span>If I close the terminal, the <a rel="nofollow" shape="rect" href="http://localhost/apps/Visualizer" target="_blank">http://localhost/apps/Visualizer</a> does not work anymore. Is there anyway to solve this? </span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

I have apache 2.2 (From Lampstack, in etc/apache2 directory) and apache 2.4.9 (For ParaViewWeb, in /opt/apache2.4.9 <span style="font-size:10pt">directory</span><span style="background-color:transparent">). Is it possible for me to run ParaViewWeb on apache 2.2? If not, Is it possible to update apache 2.2 to apache 2.4.9 perhaps? I have searched through online, but I could not find anything helpful. </span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="background-color:transparent"><br clear="none">

</span></div><div style="font-style:normal;font-size:13px;background-color:transparent"><span style="background-color:transparent">I am almost ready to deploy ParaViewWeb to an Amazon EC2 Instance, and the server uses Ubuntu. On "<a rel="nofollow" shape="rect" href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">How to set up an Amazon EC2 AMI instance to run ParaViewWeb</a>" I believe some commands are based on RedHat Linux system. </span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span></span></div>
<pre style="padding:10px 12px;font-family:Menlo,'Courier New',Courier,monospace;line-height:1.3em;border:1px solid rgb(232,232,232);background-color:rgb(247,247,247);color:rgb(49,78,100);max-width:900px"><code style="padding:0px;font-style:inherit;font-weight:inherit;font-family:Menlo,'Courier New',Courier,monospace;line-height:13px"><span style="color:rgb(0,0,0)">$ sudo yum install patch</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">x86_64
$ sudo yum install pcre</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">devel</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">x86_64
$ sudo yum install mesa</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">libGLU</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">x86_64
$ sudo yum install xorg</span><span style="color:rgb(102,102,0)">*</span></code><code style="padding:0px;font-style:inherit;font-weight:inherit;font-family:Menlo,'Courier New',Courier,monospace;line-height:13px"><span style="font-family:'Courier New';font-style:inherit;font-weight:inherit;font-size:10pt;color:rgb(0,0,0)">$ sudo nvidia</span><span style="font-family:'Courier New';font-style:inherit;font-weight:inherit;font-size:10pt;color:rgb(102,102,0)">-</span><span style="font-family:'Courier New';font-style:inherit;font-weight:inherit;font-size:10pt;color:rgb(0,0,0)">config</span></code><code style="padding:0px;font-style:inherit;font-weight:inherit;font-family:Menlo,'Courier New',Courier,monospace;line-height:13px"><span style="color:rgb(102,102,0)"><br clear="none">

</span></code></pre><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div><div style="font-style:normal;font-size:13px">
<span>Do you know what are the Ubuntu commands for these packages? I tried <span><span style="font-weight:bold">sudo apt-get install </span><span style="font-family:Menlo,'Courier New',Courier,monospace;line-height:13px;white-space:pre-wrap;background-color:rgb(247,247,247)"><span style="font-weight:bold">XXXXX </span>for all of these, but they don't seem to work. Thank you!</span></span></span></div>

<span><font color="#888888"></font></span><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:Menlo,'Courier New',Courier,monospace"><span><span><span style="font-family:Menlo,'Courier New',Courier,monospace;line-height:13px;white-space:pre-wrap;background-color:rgb(247,247,247)"><br clear="none">

</span></span></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:Menlo,'Courier New',Courier,monospace"><span><span><span style="font-family:Menlo,'Courier New',Courier,monospace;line-height:13px;white-space:pre-wrap;background-color:rgb(247,247,247)">Kai</span></span></span></div>

<div><div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">
<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">

<span><br clear="none"></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none">
</span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span><br clear="none"></span></div><div> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10pt">

 <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> On Friday, April 18, 2014 10:58
 AM, Sebastien Jourdain <<a rel="nofollow" shape="rect" href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>> wrote:<br clear="none"> </font> </div>  <div><div><div><div dir="ltr">
Hi Kai,<div><br clear="none"></div>
<div>both apache and jetty are a web server, and you can only have one process using the port 80.</div><div>So if you want apache to be the web server, you need jetty to pick something else than port 80 (and it can be anything).</div>


<div>The only thing is that apache need to be aware on which port jetty is running so it could forward all the launch request to jetty which is in the config that you wrote for apache with port 8080...</div><div><br clear="none">

</div>
<div>Seb</div><div><br clear="none"></div></div><div><div><br clear="none"><br clear="none"><div>On Thu, Apr 17, 2014 at 11:00 PM, kai liu <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:liuwukai@yahoo.com" target="_blank">liuwukai@yahoo.com</a>></span> wrote:<br clear="none">


<blockquote style="margin:0 0 0 .8ex"><div><div style="font-size:10pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>
<span style="font-size:13px">Hi Sebastien,</span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:13px"><span>I changed pw-config.properties file's pw.web.port=80 since I want to use Apache as front-end. I fixed </span><span>pw.factory.session.url.generator.pattern=ws://viz.local/proxy?sessionId=SESSION_ID. When I run <span style="font-weight:bold">java -jar JettySessionManager-Server-1.1.jar pw-config.properties, </span>I got the following errors:</span></span></div>


<div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small">==== Starting ParaViewWeb multi-user front-end ====</span></div>


<div style="background-color:transparent"><span style="font-size:small">Configuration: /home/kai/Desktop/ParaViewWeb/pw-config.properties</span></div><div style="background-color:transparent"><span style="font-size:small">WebContent: /var/www/pvweb-deploy/www</span></div>


<div style="background-color:transparent"><span style="font-size:small">Port: 80</span></div><div style="background-color:transparent"><span style="font-size:small">===================================================</span></div>


<div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small">2014-04-18 00:35:33.281:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT</span></div>


<div style="background-color:transparent"><span style="font-size:small">2014-04-18 00:35:33.435:WARN:oejuc.AbstractLifeCycle:FAILED <a rel="nofollow" shape="rect" href="http://SelectChannelConnector@0.0.0.0/" target="_blank">SelectChannelConnector@0.0.0.0:80</a>: java.net.SocketException: Permission denied</span></div>


<div style="background-color:transparent"><span><span style="font-size:small"></span></span></div><div style="background-color:transparent"><span style="font-size:small">java.net.SocketException: Permission denied</span></div>


<div><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">  </span>at sun.nio.ch.Net.bind0(Native Method)</span></div>

<div style="background-color:transparent">
<span style="font-size:small"><span style="white-space:pre-wrap">       </span>at sun.nio.ch.Net.bind(Net.java:444)</span></div><div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">   </span>at sun.nio.ch.Net.bind(Net.java:436)</span></div>


<div style="background-color:transparent"><span style="font-size:small"></span></div><div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">    </span>at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)</span></div>


<div><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:13px"><span>If I set </span><span>pw-config.properties file's <span style="font-weight:bold">pw.web.port=8080,</span> the result for </span><span><span style="font-weight:bold">opt/apache-2.4.7/pv-mapping-file/mapping.txt</span>:</span></span></div>


<div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><span style="background-color:transparent"><span style="white-space:pre-wrap">                                        </span>                      {"f6ac78f2-4c2c-4da2-ae33-a0b514a5ea1e":{"host":"localhost","port":9100}}</span><br clear="none">


</span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent">


<span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:13px"><span>and </span><span><span style="font-weight:bold">home/pvweb/ParaView/launcher/logs</span> has the following output</span></span></div>


<div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent">

<span style="font-size:13px">/home/kai/Desktop/ParaViewWeb/build/lib/site-packages/zope/__init__.py:3: UserWarning:
 Module twisted was already imported from /home/kai/Desktop/ParaViewWeb/build/lib/site-packages/twisted/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/Twisted-13.1.0-py2.7-linux-i686.egg is being added to sys.path</span></div>


<div style="background-color:transparent"><span style="font-size:small"></span></div><div style="background-color:transparent"><span style="font-size:small">  import pkg_resources</span></div><div style="background-color:transparent">


<span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div style="background-color:transparent"><span style="font-size:13px"><span>I believe </span><span> </span><span>Jetty can write/create. When you said run as </span><a rel="nofollow" shape="rect" href="http://localhost/apps/Visualizer" target="_blank">http://localhost/apps/Visualizer</a>, shouldn't it be <a rel="nofollow" shape="rect" href="http://localhost/apps/Visualizer" target="_blank">http://localhost:8080/apps/Visualizer</a> if I have <span>pw.web.port=8080. </span><a rel="nofollow" shape="rect" href="http://localhost/apps/Visualizer" target="_blank">http://localhost/apps/Visualizer</a> give me page cannot found. </span></div>


<div style="background-color:transparent"><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small"></span></div><div style="background-color:transparent"><span style="font-size:13px"><span>I am so sorry if I misinterpret anything. Thank you for your patient !</span><span> </span></span></div>


<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span>Kai </span></span></div>


<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span><br clear="none">

</span></span></div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:13px"><span>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span></span></div>


<div><div><div><span style="font-size:small"><br clear="none"></span></div><div> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"> <div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">


 <div dir="ltr"> <span style="font-size:small"><font face="Arial"> On Thursday, April 17, 2014 1:11 AM, Sebastien Jourdain <<a rel="nofollow" shape="rect" href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>> wrote:<br clear="none">


 </font> </span></div>  <div><div><div><div dir="ltr"><span style="font-size:small">First of all, if you are using apache as a front-end, you should connect on port 80 not 9000. Otherwise, that means that you are using Jetty as your web server not apache.</span><div>


<span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">Moreover, you've asked Jetty to tell the client to connect to "viz.local" which is supposed to be the exact same URL that you are starting with and not <a rel="nofollow" shape="rect" href="http://localhost:9000/xxxx" target="_blank">http://localhost:9000/xxxx</a>.</span></div>



<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">On top of that, can Jetty write/create that file? /opt/apache-2.4.7/pv-mapping-file/mapping.txt</span></div><div><span style="font-size:small">And can apache read it?</span></div>


<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">What you should try for your local test:</span></div>
<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">1) Fix the pw-config.properties</span></div><div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">pw.factory.session.url.generator.pattern=ws://viz.local/proxy?sessionId=SESSION_ID<br clear="none">


</span></div><div><span style="font-size:small">==> pw.factory.session.url.generator.pattern=ws://localhost/proxy?sessionId=SESSION_ID</span></div>
<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">(I'm assuming the rest of the path are OK and ParaView works on that machine.</span></div><div><span style="font-size:small"><br clear="none">


</span></div><div><span style="font-size:small">2) Connect with firefox and firebug open to <a rel="nofollow" shape="rect" href="http://localhost/apps/Visualizer" target="_blank">http://localhost/apps/Visualizer</a></span></div>



<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">3) Check what is happening in the console,  /opt/apache-2.4.7/pv-mapping-file/mapping.txt file and the content of the directory /home/pvweb/ParaView/launcher/logs</span></div>


<div><span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small">Seb</span></div><div>
<span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small"><br clear="none"></span></div></div><div><span style="font-size:small"><br clear="none"><br clear="none"></span><div><span style="font-size:small">On Wed, Apr 16, 2014 at 9:54 PM, kai liu <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:liuwukai@yahoo.com" target="_blank">liuwukai@yahoo.com</a>></span> wrote:<br clear="none">



</span><blockquote style="margin:0 0 0 .8ex"><div><div><div style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><div>
<span style="font-size:small">Hi</span></div><div><span style="font-size:small"><br clear="none"></span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"><span style="font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">I complied offscreen OSMesa ParaViewWeb, but I do not know how to use Apache as front-end. I have followed both "</span><font><a rel="nofollow" shape="rect" href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/apache_setup" target="_blank">How to use Apache as Frotn-end</a></font>" and "<a rel="nofollow" shape="rect" href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">How
 to set up an Amazon EC2 AMI instance to run ParaViewWeb</a>" guides, but I could not get it to work. </span></div><div style="font-style:normal;background-color:transparent"><span style="font-size:small"><br clear="none">


</span></div>
<div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:small">I run the command "java -jar JettySessionManager-Server-1.1.jar pw-config.properties", and then I input the link  <a rel="nofollow" shape="rect" href="http://localhost:9000/apps/Visualizer," target="_blank">http://localhost:9000/apps/Visualizer</a> on the browser. I always got the following error:</span></div>



<div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:small"><br clear="none"></span></div>



<div style="background-color:transparent"><span style="font-size:small">2014-04-16 23:45:23.355:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT</span></div><div style="background-color:transparent"><span style="font-size:small">2014-04-16 23:45:23.487:INFO:oejs.AbstractConnector:Started <a rel="nofollow" shape="rect" href="http://SelectChannelConnector@0.0.0.0:9000/" target="_blank">SelectChannelConnector@0.0.0.0:9000</a></span></div>



<div style="background-color:transparent"><span style="font-size:small"><span>Apr 16, 2014 11:45:37 PM com.kitware.paraviewweb.websocket.WebSocketForwarder onOpen </span><span style="background-color:transparent">INFO: null</span></span></div>



<div style="background-color:transparent"><span style="font-size:small">java.util.concurrent.ExecutionException: java.net.ConnectException: Connection refused</span></div><div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">      </span>at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:569)</span></div>



<div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">     </span>at org.eclipse.jetty.websocket.WebSocketClient$WebSocketFuture.get(WebSocketClient.java:372)</span></div>


<div style="background-color:transparent">
<span style="font-size:small"></span></div><div style="background-color:transparent"><span style="font-size:small"><span style="white-space:pre-wrap">      </span>at
 com.kitware.paraviewweb.websocket.WebSocketForwarder.onOpen(WebSocketForwarder.java:54)</span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small">..........................</span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small">..........................</span></div><div><span style="font-size:small"><br clear="none"></span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"> </span></div><div><span style="font-size:small"><span>  I feel I did not missed any steps while following the </span><span> "</span><a rel="nofollow" shape="rect" href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">How to set up an Amazon EC2 AMI instance to run ParaViewWeb</a><span>" guide, but I always get the above error when I run it. I use </span><span>apache-2.4.9 since I could not find apache-2.4.7 online. I attached </span><span>pw-config.properties.  I run everything on Localhost first because I do not want to screw up my Amazon EC2 instance. </span></span></div>



<div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:small"><br clear="none"></span></div>



<div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:small"><br clear="none"></span></div>



<div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><span style="font-size:small"><span>Is it okay to put </span><span style="background-color:rgb(247,247,247);font-family:Menlo,'Courier New',Courier,monospace;line-height:13px;white-space:pre-wrap">ServerName <a rel="nofollow" shape="rect" href="http://127.0.1.1/" target="_blank">127.0.1.1</a> instead of my instance DNS name since I am running on localhost? Thank you!</span></span></div>



<div><span style="font-size:small"><br clear="none"></span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"></span></div><pre style="padding:10px 12px;font-family:Menlo,'Courier New',Courier,monospace;line-height:1.3em;border:1px solid rgb(232,232,232);background-color:rgb(247,247,247);color:rgb(49,78,100);max-width:900px">
<code style="padding:0px;font-style:inherit;font-weight:inherit;font-family:Menlo,'Courier New',Courier,monospace;line-height:13px"><span style="font-size:small"><span style="color:rgb(0,0,136)"><VirtualHost</span><span style="color:rgb(0,0,0)"> *:80</span><span style="color:rgb(0,0,136)">></span><span style="color:rgb(0,0,0)">
    ServerName <a rel="nofollow" shape="rect" href="http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com/" target="_blank">ec2-XXX-XXX-XXX-XXX.compute-1.amazonaws.com</a>
    ServerAdmin <a rel="nofollow" shape="rect" href="mailto:webmaster@example-host.example.com" target="_blank">webmaster@example-host.example.com</a>
    DocumentRoot "/var/www/pvweb-deploy/www"
    ErrorLog "logs/pv-error_log"
    CustomLog "logs/pv-access_log" common

    ProxyPass /paraview <a rel="nofollow" shape="rect" href="http://localhost:9000/paraview" target="_blank">http://localhost:9000/paraview</a>

    # Turn on the rewrite engine
    RewriteEngine On

    # This is the path the mapping file Jetty creates
    RewriteMap session-to-port txt:/opt/apache-2.4.7/pv-mapping-file/mapping.txt

    # This is the rewrite condition. Look for anything with a sessionId= in the query part of the URL and capture the value to use below.
    RewriteCond %{QUERY_STRING}     ^sessionId=(.*)$ [NC]

    # This does the rewrite using the mapping file and the sessionId
    RewriteRule    ^/proxy.*$  ws://${session-to-port:%1}/ws  [P]

    </span><span style="color:rgb(0,0,136)"><Directory</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,136,0)">"/var/www/pvweb-deploy/www"</span><span style="color:rgb(0,0,136)">></span><span style="color:rgb(0,0,0)">
        Options Indexes FollowSymLinks
        Order allow,deny
        Allow from all
        AllowOverride None
        Require all granted
    </span><span style="color:rgb(0,0,136)"></Directory></span><span style="color:rgb(0,0,0)">

</span><span style="color:rgb(0,0,136)"></VirtualHost></span></span></code></pre><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"><br clear="none"></span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"><br clear="none"></span></div><div style="font-style:normal;background-color:transparent;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif">



<span style="font-size:small"><br clear="none"></span></div><div><span style="font-size:small"><br clear="none"></span></div></div></div></div><span style="font-size:small"><br clear="none">_______________________________________________<br clear="none">



Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" shape="rect" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br clear="none">
<br clear="none"></span></blockquote></div><span style="font-size:small"><br clear="none"></span></div></div></div><span style="font-size:small"><br clear="none"></span><br clear="none"></div>  </div> </div>  </div> </div>

</div></div></div></blockquote>
</div><br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div> </div></div></div></div></blockquote></div><br clear="none"></div></div></div></div><br><br></div>  </div> </div>
  </div> </div></div></div></div></blockquote></div><br></div>