Skip to content
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

Missing mail.properties file - causes exception while running of webapp. #370

Open
techgod opened this issue Mar 12, 2020 · 0 comments
Open

Comments

@techgod
Copy link

techgod commented Mar 12, 2020

Hi!

I think I found an issue which many of those who build the project for the first time will encounter.
Following the instructions in the README, I built the project, and deployed the .war in Apache Tomcat. However, the application could not be started. The tomcat logs revealed the following error:

Error in custom provider, java.io.IOException: could not locate mail.properties
I couldn't find the mail.properties file anywhere in the project.

Currently, I worked around this by creating a mail.properties file of my own with the compulsory details as required in MailerImpl.java.

After doing this, the application ran and I was able to test the APIs.
I'm guessing the file is skipped out on purpose (due to its configuration details)? Or is this just a bug?

Either way, I think including a dummy mail.properties (attaching the contents as txt below) would at least allow users to start the application in tomcat without any issues.

I did however just get started with this project, and apologies if I'm overlooking something. :)

dummy mail.properties & tomcat logs:
mail.properties.txt

enviroCar-server 2.26.02 AM.log

@techgod techgod changed the title Missing mail.properties file - prevents deployment. Missing mail.properties file - causes exception while running of webapp. Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant