ICOnator / ICOnator-backend

ICOnator backend applications and commons
Apache License 2.0
26 stars 1 forks source link

.jar file does not run the server #2

Closed JonnyBurger closed 6 years ago

JonnyBurger commented 6 years ago

I build the core using this command:

./gradlew services:core:build

then I run the server using

java -Dserver.port=9999 $JAVA_OPTS -Dspring.profiles.active=prod -jar services/core/build/libs/core.jar

but the server does quit immediately:

``` 16:32:34.874 INFO [o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-9999"] 16:32:35.038 INFO [o.a.c.c.StandardService] Starting service [Tomcat] 16:32:35.045 INFO [o.a.c.c.StandardEngine] Starting Servlet Engine: Apache Tomcat/8.5.28 16:32:35.135 INFO [o.a.c.c.AprLifecycleListener] The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/jonnyburger/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.] 16:32:35.371 INFO [o.a.c.c.C.[.[.[/]] Initializing Spring embedded WebApplicationContext 16:32:39.023 INFO [c.z.h.HikariDataSource] HikariPool-1 - Starting... 16:32:39.034 INFO [o.a.c.c.StandardService] Stopping service [Tomcat] ```
tbocek commented 6 years ago

That is caught by the try catch around the application. I have added the try/catch again to see why it quits. Can you run again, and see what the issue is? Also, you can run the server by executing the jar file directly.

gsmachado commented 6 years ago

This issue is resolved now.