Mika, Good stuff. I agree – it’s a much
better way to deploy to production! From: No worries, I fixed the errors mxmlc
complained about (mainly some imports with case-sensitivity issues). And now it
compiles ok on both. I also noticed huge performance boost
since it now frees up a big chunk of memory on server. When compiling on server
it eats up a whopping 550 Mb of memory and it never releases it, so it was
eating up a lot of memory on server (mainly because of the compile that has to
be done on first request). But when I compile it manually with mxmlc
it eats up about 350 Mb while compiling and then it frees it (process ends) and
leaves me with an swf. I deploy that swf on server and now the server eats up only
150 Mb and it doesn’t really grow that much after that. So I got 350-400 Mb more free memory on
server now and it really shows up with better performance!! J - It’s good - -Mika From: Mika, Are you trying to access remote
objects/web services etc (anything that essentially leaves the client)?
Or is your app not getting past the initial progress screen? Is your
compiled swf the expected byte size? Mxmlc as far as I am aware can
produce zero byte swfs if compilation is a problem. But it sounds to me
like your swf doesn’t know how to get back to the flex server and a
dependency can’t be located. Are you using the correct gateway path
within your mxmlc command or within flex-config.xml? Post what you have. HTHs From: I solved it so forget the previous post
(my bad) J But I ran into another weird behaviour: My
app does not compile properly when compiled with mxmlc!! It reports some errors
(all valid errors so far) and fails. The funny thing is that it does compile
when compiled on flex server!! This is really strange, why does flex server
compile it without errors, but it fails with mxmlc?!?!? -Mika From: Hi, Does anyone have a clue what causes this error or is there
any output anywhere? It occurs always when I try to compile a simple mxml file
with mxmlc. The error is: “Failed to compile testApp.mxml”
and that’s all. Not much help there? I *think* my
params are correct for mxmlc but who knows, since I never got it to compile
anything, I just get that error… I’m using jdk1.5.0_06 This is the command: *********** java -jar "C:\Program
Files\Macromedia\Flex15\lib\mxmlc.jar" -flexlib "C:/Program Files/Macromedia/Flex15/lib" -configuration
C:/INPUT/resources/WEB-INF/flex/flex-config.xml -webroot C:/INPUT/resources -o c:/OUTPUT/testApp.swf C:/INPUT/resources/testApp.mxml *********** The scenario is that I have C:\INPUT folder that has
following structure --resources [folder] -----testApp.mxml [file] ----WEB-INF {folder] -----…all the flex stuff….[files & folders,
ie flex folder etc.]
Any help is appreciated! -Mika
|