Back

Problem with deploying a java application

  • 0
  • Functions
Idan Elazar
4 Oct, 2023, 13:48

First image shows the build commands

And when I tried to deploy function I got an error (in the second image):

Did you encounter this problem? After a search I saw it is related to premissions, but I don't think I can/ need to deal with premmisions inside Appwrite instance. Thanks for your help

TL;DR
User is experiencing a problem with deploying a Java application using Appwrite. They are unsure of the correct approach and ask for guidance. The user mentions using a GitHub repository and Maven as a build tool. They ask whether they should create a JAR with dependencies or deploy it as is. A suggestion is given to use the CLI for deployment. The user encountered an error related to permissions and asks if they need to handle permissions within Appwrite. They express gratitude for any help. Solution: Use the Appwrite CLI to initialize and deploy the function. Check the permissions within Appwrite instance to ensure they are properly configured.
Idan Elazar
4 Oct, 2023, 14:05

Problem with deploy a java application

Idan Elazar
4 Oct, 2023, 14:05

Problem with deploying a java application

Drake
4 Oct, 2023, 17:06

I highly recommend using the CLI to init and deploy your function. https://appwrite.io/docs/tooling/command-line/deployment#deploying-function. Please try that

Idan Elazar
5 Oct, 2023, 15:34

Help me to understand something: I have github repository of java application that usinig maven as a build tool. I want do deploy it using Appwrite instance. Do I need to create jar that includes the dependencies and put it as my entry point or should I leave it as it is and try to deploy it similarly to what you see in the scrennshot above?

Drake
5 Oct, 2023, 16:24

that probably won't work because your java application doesn't match the structure required by Appwrite Functions

Idan Elazar
5 Oct, 2023, 17:08

so whats the correct way to go?

Drake
5 Oct, 2023, 18:50

this

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more