11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

26 webMathematica User GuideConfigure webMathematicaThe final step is to modify your MSPConfiguration.xml file to instruct the front end to use thisserver. The setting of FrontEndLaunchFlags is described in the Appendix: Site Configuration.Here is a sample setting that connects to the X server on display :1.-display :1 -nogui -geometry 1000x500+10+10Now your Unix server should be ready to run webMathematica.If you find that the front end does not launch correctly, it may help to add the name of theserver in the configuration file. An example is shown below; here, myserver is the name of themachine on which webMathematica and Xvnc are running.-display myserver:1 -nogui -geometry 1000x500+10+10Other X Related IssuesThe following section describes a number of further issues that relate to using webMathematicain conjunction with an X server. If you have set up an Xvnc server as described above it shouldnot be necessary to study these.Connecting to the X ServerWhen the Mathematica front end runs, it must connect to an X server. If the X server is beingrun by a different user than the user running the front end, the X server will reject the connection,as shown below.[root]# su tomcatbash$ mathematicaXlib:connection to ":0.0" refused by serverXlib:Client is not authorized to connect to Serverxset:unable to open display ":0.0"Xlib:connection to ":0.0" refused by serverXlib:Client is not authorized to connect to Serverxset:unable to open display ":0.0"Xlib:connection to ":0.0" refused by server

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!