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.

20 webMathematica User GuideIt is often useful to create a low privilege account, such as tomcat, to run your servlet container.You can accomplish this via the System Preferences panel. If you create such anaccount, you may need to change ownership of the Tomcat layout so it can be run by thisaccount.[server1]$ sudo chown -R tomcat tomcatThe main top-level directory of Tomcat contains some important directories, including:tomcatbinconflogswebappsThe bin directory contains commands for running Tomcat; the conf directory contains siteconfiguration files; the logs directory contains various log files; the webapps directory is whereyou will install webMathematica. You should be able to launch Tomcat immediately from thebin directory, making sure to be the tomcat user.[server1]$ su Tomcat[server1]$ cd Tomcat/bin[server1]$ ./startup.shAt this point, you should be able to connect to Tomcat via a URL such as http://localhost:8080.If this does not return the Tomcat front page, then something is wrong with your setup. If youlook at the log files, it may help you track down your problem. Make sure that you have setyour JAVA_HOME variable as described in the installing Java for Mac OS X section.The bin directory also contains a script, shutdown.sh, used for shutting down Tomcat.Please also note that for webMathematica to fully function, you need to log on via the Mac OS Xconsole. This is necessary since the Mathematica front end makes use of the Mac OS X windowingenvironment.Download information for current versions of Tomcat is given at http://www.wolfram.com/products/webmathematica/resources/?tab=Updates. A variety of archive formats are available;one of these should be unpacked in some central location, for example, /Library. You mayalso wish to change the name of the top-level Tomcat directory. The actual location of Tomcatand the name of the top-level directory are entirely up to you. /Library is useful because itcan be viewed via the Finder. Other versions of Tomcat are available from the Apache website,http://jakarta.apache.org.Note that the default OS X tar command does not work to unpack the Tomcat archive asshown below. You would need to use the GNU tar utility (gnutar), which normally resides in

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

Saved successfully!

Ooh no, something went wrong!