Jayan Kandathil

If you get exceptions such as follows in WebSphere SystemOut.log when you try LiveCycle PDF Generator document conversions, you might need to run the WebSphere appserver instance as a Windows service running as the ‘SYSTEM’ account:

ERROR: API = CreateProcessAsUser
INFO [STDOUT] ERROR CODE = 1314
MESSAGE = A required privilege is not held by the client.

Download the utility WASServiceCmd.exe from here. Copy it to %WAS_HOME%bin and run it to create a Windows service for the WebSphere appserver instance that hosts LiveCycle.

Eg:
WASService.exe -add “Adobe_LiveCycle” -serverName “server1″ -profilePath “C:ProgramsIBMWebSphereAppServerprofilesAppSrv01″ -logRoot “C:ProgramsIBMWebSphereAppServerprofilesAppSrv01logsserver1″ -logFile “C:ProgramsIBMWebSphereAppServerprofilesAppSrv01logsserver1SystemOut.log” -encodeParams -stopArgs “-username SYSTEM” -startType manual -restart false

If it worked, you should get a response similar to this:

Adding Service: Adobe_LiveCycle
Config Root: C:ProgramsIBMWebSphereAppServerprofilesAppSrv01config
Server Name: server1
Profile Path: C:ProgramsIBMWebSphereAppServerprofilesAppSrv01
Was Home: C:ProgramsIBMWebSphereAppServer
Start Args:
Restart: 0
IBM WebSphere Application Server V7.0 - Adobe_LiveCycle service successfully added.

Start the service and try the document conversion again. If you still have problems, see this.

——-
Original article at http://blogs.adobe.com/livecycle/2011/04/livecycle-pdf-generator-configuring-websphere-appserver-instance-to-run-as-windows-service.html.