CDF service from webMathematica

Suppose I enter the following (edited) piece of code in Mathematica.

manip = Manipulate[x, {x, 0, 1}];
nb = Developer`UseFrontEnd[
    CreateDocument[manip, ShowCellBracket -> False, 
    Visible -> False]];
nbTest = ExportString[nb, "NB"] =!= $Failed;
cdfTest = ExportString[nb, "CDF"] =!= $Failed;
version = First[StringSplit[SystemInformation["Kernel", "ReleaseID"]]];
{{nbTest, cdfTest},version}

I find that both nbTest and cdfTest are True. If I run the same command from webMathematica, nbTest is True and cdfTest is False. You can see this result here:

http://www.cs.unca.edu:8082/webMathematica/generateCDF.jsp

You can see the code that generates this result here:

http://www.cs.unca.edu:8082/webMathematica/generateCDF.jsp.txt

I searched the webMathematica security configuration to find a way to enable CDF export, but did not find any. Does anyone know how to do this? Of course, this may be prohibited in this context intentionally.

CDF-, JSP, HTML-. CDF .

: Mathematica , . , , 8.0.1. .

+3
1

ExportString [..., "CDF" ] UseFrontEnd , ?

C:\Users\arnoudb>math.exe
Mathematica 8.0 for Microsoft Windows (64-bit)
Copyright 1988-2011 Wolfram Research, Inc.

In[1]:= nb = CreateDocument[ Manipulate[x,{x,0,1}] ] // UsingFrontEnd

Out[1]= -NotebookObject-

In[2]:= ExportString[ nb, "CDF" ]

FrontEndObject::notavail:
   A front end is not available; certain operations require a front end.

Export::nofe: A front end is not available; export of CDF
     requires a front end.

Out[2]= $Failed

In[3]:= ExportString[ nb, "CDF" ] // UsingFrontEnd // Head

Out[3]= String

In[4]:= $Version

Out[4]= 8.0 for Microsoft Windows (64-bit) (October 7, 2011)

In[5]:= $ReleaseNumber

Out[5]= 4
+4

All Articles