-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java application can't read file from Resources #158
Comments
I'm moving this issue to the templates repo where the Java code exists. |
@BTony95 : can you check if the resource is in the jar file ? Also this might help: https://www.baeldung.com/java-classpath-resource-cannot-be-opened .
|
best solution I come across, after struggling for many hours to make it work. |
My actions before raising this issue
Expected Behaviour
I am currently experimenting with Openfaas and Java. I made a simple function to check the body of an HTTP call against a JSON schema.This JSON schema is read from the resources folder.
Current Behaviour
Once deployed on the openfaas environment in my kubernetes cluster it fails to read the file
I get an error of the following type:
Context
The flow of my program:
Your Environment
FaaS-CLI version: 0.8.19
Docker version: 18.09.6
Are you using Docker Swarm or Kubernetes (FaaS-netes)? Kubernetes
Operating System and version (e.g. Linux, Windows, MacOS): Linux
Code example or link to GitHub repo or gist to reproduce problem:
The text was updated successfully, but these errors were encountered: