Does anyone know when webMathematica will be updated to work with version 10?
Yes.. it works! Itās just change the path.
PS:Do not forget that itās commented in the standard MSPConfiguracion.xml file. Itās not enough to change the name.
Hi Rodrigo,
are you working with webMathematica and Math10? Iām not able to run it. For each example in the documentation I get the following error:
FrontEndError: ExportString failed:\
Notebook[{Cell[BoxData[RowBox[{FractionBox[x, 2], -,\
RowBox[{FractionBox[1, 4], , RowBox[{Sin, [, RowBox[{2, , x}],\
]}]}]}]], Output, ShowCellBracket ā False, CellMargins ā {{0, 0}, {0,\
0}}, PageWidth ā 800]}, WindowSize ā 900]
I changed the configuration file adding the path to Mathematica 10.0 and it works, indeed the following
ā< msp:evaluate >$Version< /msp:evaluate >ā works fine.
Please, let me know if you have any hint.
Thanks in advance.
Roberto
Mathematica 10 is not officially supported by webMathematica, but it can be made to work reasonably well.
Roberto, Iām guessing that you are using a Windows machine? If thatās true, then the problem is that Mathematica 10ās front end uses more memory than allowed by the default desktop heap setting for noninteractive users.
You can read more about it here: [Increase the maximum number of concurrent policy instances - Orchestrator | Microsoft Learn][1]
The short answer is that you can edit the registry to increase this value. Then the front end should work fine in webM.
Hi Roberto,
Can you try this:
The suggestion is to to increase the desktop heap configuration via
the registry.Windows limits the amount of memory allocated to noninteractive users
(such as kernels launched by webMathematica). When these kernels
need to perform a calculation that requires the front end (example
render a plot), the memory allocation setting may prevent the
launching of the front end. To solve this problem, edit the registry.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session
Manager\SubSystems\Windows %SystemRoot%\system32\csrss.exe
ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On
SubSystemType=Windows ServerDll=basesrv,1
ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off
MaxRequestThreads=16 In the āSharedSectionā, the 3rd number can be
deleted (512 above). This allows noninteractive users the same
amount of memory as interactive users.This is also documented under the Increasing Desktop Heap section at
Increase the maximum number of concurrent policy instances - Orchestrator | Microsoft LearnWe tested this fix on āoneā system we had available for this purpose
and found success.Let me know if this helps.
Let me know if worked for you too.
Hi there,
thanks a lot for both answers.
Iām going to try right now and let you know.
Unfortunately, it doenāt work for me. I tried deleting the value at all, as suggested by Rodrigo and then putting an hig value, as suggested in the MS support page (for instance 1024 or higher). It still gives the same error. Iām still investigating, Iāll post any news.
Thanks again
No, it want to work!
Any further suggestion?
Yes. For Windows I did this to make de V10 kernel to work:
- First install Mathematica 9
- Make WebMathematica work on 9
- Install version 10 and redirect to Mathematica 10 kernel in MSPConfiguration.xml file.
- If last step work, now you can uninstall version 9.
And then, to make Graphics work (front end dependent expressions), I need to change windows regedit.
PS: in MAC, it didnāt worked with JAVA 8, I needed to downgrade into java 7.
I have done exactly the steps you mentioned.
Now, if I change the path to 9.0 it works, when I change to 10.0 it doesnāt.
This is the corresponding code in MSPConfiguration.xml
<KernelExecutable>C:\Program Files\Wolfram Research\Mathematica\10.0\MathKernel.exe</KernelExecutable>
And this is the register key value
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,1024 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16
Where Iām wrong?
Thanks again
I canāt remember what the exact memory usage of the front end is. It may be slightly greater than 1024 (I left my 3rd entry blank).
One dumb question for you: did you reboot the machine after editing the registry?
Another possible issue is the JLink native directory. You can try specifying it explicitly (make sure to edit if you have a different location:
<JLinkNativeLibraryDirectory>
C:\Program Files\Wolfram Research\Mathematica\10.0\SystemFiles\Links\JLink\SystemFiles\Libraries\Windows-x86-64
</JLinkNativeLibraryDirectory>
yes after each change in the registry I rebooted the machine, and I also tried to leave it blank, with the same (negative) result.
Iāll try a bigger value and then also the JLink suggestion, let you know.
Well, finally it works!!!
I used a bigger value as third argument, exactly 20480 instead of 1024. The strange thing is that it doesnāt work without the third parameter. However, now it works and Iām very grateful to you for the help.
![]()
Iām very glad to hear that it works, Roberto!
Could you share the version of Windows that youāre using?
Nice!.. One more WebMathematica in V10.
Window 7 64bit
Mathematica 10 64bit
Mathematica 9 64bit
Iāll update here any interesting news about working or not working examples.
Anybody get this to work for Linux? Steps would be most helpful.
I donāt have the steps, but I have success in make it work in RedHat. It was not easy to make front end to work. Front end instance is needed for make plots or file export to work.
Our documentation for webM installation for Linux can be found here:
Here are some things that Iāve found to be quite useful:
- give the tomcat user a shell. That way, you can log in to your machine as that user and test things out yourself. Some possible issues that you can uncover this way are mathpass file issues and front end issues\
- As Rodrigo says, the FrontEnd needs to work in order for any images (plots included) to be generated. So you need to allow the tomcat user to have access to a display. Iād recommend using a vncserver for this. You will need to set the FrontEndLaunch flags in our MSPConfiguration.xml file. We have examples in the documentation; my setting is ā-display chadsLinux:1 -nogui -geometry 1000x500+24+24ā.
- For testing purposes, try logging in to a terminal as the tomcat user and launching Mathematica in your vnc display. At the terminal prompt, type ā\path\to\Mathematica -display [your machine]:[the display number]ā. In a vncviewer set to that display, check to see that it launched correctly. Try some evaluations in a notebook
- Tomcat setup is really the key issue for installation. Iāve found that default installations using apt-get (Ubuntu) and yum (Red Hat) both work nicely. If you have never used tomcat previously, those are a great starting point.
If you have any other questions, please contact our tech support. Have fun!
Now webMathematica V3.3 has official support to Mathematica V10!