I finally found the solution.
I found what was missing for "appserver" to be able to export via QT4J !
The user "appserver" needs to write an empty preference file (~/
Library/Preferences/Quicktime Preferences if my memory is good) to be
able to export.
But, "appserver" has obviously no home.
So I went to NetInfo Manager and assigned a home where appserver can
write... and it works.
You can even prevent appserver from writing there as soon as one
export has succeeded.
I hope that will help someone in the same case !
Fabrice Pipart
www.icconsulting.mc
International Corporate Consulting
25, Boulevard de Belgique
MC - 98000 Monaco
We are currently experiencing a problem we can't find out how to
solve...
We are using QuickTime for Java behing WebObjects.
WebObjects is usually launched as "appserver" user. This user has
no home (ie /var/empty is his home).
I know that to be able to make the QTSession.open() call, I have to
use -Djava.awt.headless=true. This one works.
But the goal of my code is to export a movie with a set of given
parameters. And as soon as I try to export the movie, the
application blocks.
Nothing happens but no exception is raised.
I have tried to export with all the versions of
Movie.convertToFile, also MovieExporter.toFile... nothing works.
But if I launch the application with a "normal" user by changing
the /System/Library/StartupItems/WebObjects/WebObjects file (I am
under 10.3) it works.
What is missing to that "appserver" user to be able to export
movies ???
If someone could help, I would really appreciate.