Spring

 View Only

 application.yml pathtofile: krb5.conf We are getting java.io.IOException ( no such file or directory ) when pathtofile is accessed in Java code of SPring Boot application File is in src\main\resources packaged into JAR as \BOOT-INF\krb5.conf

Bojja S's profile image
Bojja S posted Mar 07, 2019 07:13 PM

 

Daniel Mikusa's profile image
Daniel Mikusa

Can you provide some more context here? What is your app trying to do? What is trying to read that file? Do you have a code sample that shows what is trying to load it and how?

 

Off the top of my head, I'd be inclined to agree that the path being used does not match up with the exact path to your file. You may want to `cf ssh` into your app container and see what the actual path is for your app. If your app is crashing and you can't get in via ssh, try to comment out parts of the app so that you can at least get something up and running where you can explore.

 

Hope that helps!