https://kotlinlang.org logo
Title
m

marior

07/21/2017, 9:34 AM
Hi guys, I am trying to make REST API with Spring in Kotlin using Android Studio and deploy to Tomcat server. Project works fine on IDE gradle server, but final .war file does´t run on Tomcat server. Any suggestions?
I have got the same project in Java which works fine, but that Kotlin one not
n

nfrankel

07/21/2017, 9:39 AM
That’s perhaps a bit terse to provide any answer. Do you have any stack trace? Can you deploy a war with no Kotlin but Java? etc.
m

marior

07/21/2017, 10:23 AM
Yes, I am using the same approach when deploying Java project and that works fine even on the same Tomcat server. There´s no stacktrace. War runs on Tomcat without exceptions. But on target URL is just 404 tomcat error message.

https://kb.globalscape.com/attachments/ME/TomcatError.PNG

Seems like Spring does not even boot, but I cant figure out why.
BTW I am using Tomcat 8.0.41. That was just illustration picture from web.
n

nfrankel

07/21/2017, 10:56 AM
if you’ve no stack trace from deployment, then try to play around the package add a static file to check if it’s rendered