You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
javaOptions in Universal+="-Dlogger.file=conf/logback-prod.xml"
sbt dist from a Windows machine.
run in linux => error:
Error encountered while configuring logback:
ch.qos.logback.core.joran.spi.JoranException: Could not open URL [file:/var/www/api-3.20-SNAPSHOT/conf/logback-prod.xml%0D].
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at play.api.Logger$.configure(Logger.scala:278)
at play.api.Logger$.configure(Logger.scala:232)
at play.api.inject.guice.GuiceApplicationBuilder.applicationModule(GuiceApplicationBuilder.scala:73)
at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:126)
at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:93)
at play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
at play.core.server.ProdServerStart$.start(ProdServerStart.scala:52)
at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
at play.core.server.ProdServerStart.main(ProdServerStart.scala)
(No such file or directory)undException: /var/www/api-3.20-SNAPSHOT/conf/logback-prod.xml
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:48)
... 9 more
if before run the app, I run the following command to remove \r:
sed -i.bak 's/\r$//' conf/application.ini
=> OK
The text was updated successfully, but these errors were encountered:
Doesn't sound like a play issue, either it's a logback issue or it's just
different platforms are incompatible.
But who created this file with such line endings?
And since when does play use .ini?
build.sbt
sbt dist
from a Windows machine.run in linux => error:
if before run the app, I run the following command to remove
\r
:sed -i.bak 's/\r$//' conf/application.ini
=> OK
The text was updated successfully, but these errors were encountered: