Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is it possible to put the webMathematica folder outside the usual Tomcat webapps folder and still have webMathematica work?

webMathematica does work OK if its whole folder is placed inside webapps.

(This is with Tomcat 7 under OS X 10.8.3.)

Configuration details would be greatly appreciated!

In asking this I have two aims:

  1. Granularize things so that I can just back up the webMathematica folder, along with other documents of mine, separately from backing up Tomcat's own files such as those in its distributed webapps folder.

  2. Be able to access webMathematica (and, eventually, some specific apps using it) on localhost by means of a simple URL "alias", such as webmathematica, rather than the usual complete URL localhost:8080/webmathematica -- just as I can now access Tomcat's webapps by entering the URL tomcat.local.

share|improve this question
    
Did you try a symbolic link? –  Rolf Mertig May 6 '13 at 21:00
    
@Rolf Mertig: Yes, a symlink works, with URL http://localhost:8080/webMathematica! But what I'd actually like to do is use a simpler URL such as webmathematica.local, and for that obviously some kind of additional configuration of tomcat and/or apache is required. (In apache I'm passing calls to tomcat via ajp.) –  murray May 6 '13 at 21:24
    
For the URL part I think this and no.4 in this should get you started... –  Albert Retey May 7 '13 at 6:12

1 Answer 1

Yes, it's possible. So you don't have to type the webMathematica after your localhost address.

Steps:

  1. Put your webMathematica folder in some place like C:\webMathematica
  2. Create a file named ROOT.xml inside \Tomcat\conf\Catalina\localhost\
  3. In this file, write: <Context docBase="C:\webMathematica" reloadable="false"/>
  4. Restart you Tomcat, and now your new root is your webMathematica application
share|improve this answer
    
Will test this with my OS X configuration & report back soon. Thanks! –  murray Mar 15 at 17:10
    
@murray let me know if it works –  Murta Mar 15 at 17:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.