Stream: hapi
Topic: Deploying HAPI server to AWS Tomcat
Jean Duteau (May 14 2019 at 17:08):
This isn't going to be a HAPI-specific question...
I have my HAPI server running locally and I want to deploy it to an AWS Beanstalk installation. When I do the deploy, I don't get any page. Checking the logs, I have the following error:
Caused by: org.apache.derby.iapi.error.StandardException: Failed to create database 'directory:target/jpaserver_derby_files', see the next exception for details.
Caused by: org.apache.derby.iapi.error.StandardException: Directory /usr/share/tomcat8/target/jpaserver_derby_files cannot be created.
So I'm trying to figure out how to create that directory in the Beanstalk environment. Has anyone succesfully deployed a HAPI server to an AWS Beanstalk environment and can you help a brother out?
Jean Duteau (May 14 2019 at 19:50):
Figured out my own problem. Had to fix permissions on the target directory and had to specify the server address properly. Now I can go about adding my custom operations!
James Agnew (May 15 2019 at 13:43):
Ah, ok, based on this question I now know you're using JPA server so that answers my other question from the email. :)
The easiest thing then will be to create a plain provider class with an operation method on it, and then register that against the RestfulServer instance.
Last updated: Apr 12 2022 at 19:14 UTC