Page 1 of 1

Using Docx4j as a service

PostPosted: Fri Apr 05, 2019 4:10 am
by stephen.ross.munro
Hello,

I've developed an application which uses the enterprise version of docx4j to create word templates for use within a web based workflow.
When testing this locally, I can see that the word templates are generated successfully.

When I deploy and test this within a cloud environment, nothing appears to be happening. I'm not seeing the template getting generated nor am I getting any errors logged on the console.

Does docx4j require word to be installed on the target environment it's used? This is problematic if this is the case as we need to ensure our cloud agents have this installed. I assumed this would not be the case since all it's doing is generating an XML document which could eventually be opened in a word document.

Unfortunately, I can't provide logs as there are no errors being logged when I attempt to use the API (unless I'm missing a logging config). The response completes with an HTTP 200, so the request is being services, it's not no template is created and stored in the DB. Any ideas would be welcome.

Stephen

Re: Using Docx4j as a service

PostPosted: Fri Apr 05, 2019 6:25 am
by jason
Docx4j doesn't need Word.

And it is regularly used server-side / in cloud. (Recently even on AWS Lambda as native code thanks to graalvm)

If you are having problems, the first thing to do is get logging working. Then add log messages to your code to satisfy yourself that it runs, and pin point where the problem is.

Feel free to add some detail about the cloud environment, and how you deploy to it. Then it might be possible to make some specific suggestions.