I want to deploy an application on a Centos server.
Tomcat server is 8.0.45
Java version is 1.8.0_45
Tomcat is behind a Apache server, server by AJP protocol.
Everything looks ok in the log file, until I want to log in. Then I get this error.
2017-08-18 13:52:12.764 ERROR [ajp-nio-8903-exec-5] com.haulmont.cuba.web.AppUI - Unable to init ui
java.lang.IllegalArgumentException: Service app-core/cuba_LoginService is not registered in LocalServiceDirectory
at com.haulmont.cuba.web.sys.remoting.LocalServiceProxy$LocalServiceInvocationHandler.invoke(LocalServiceProxy.java:99)
at com.sun.proxy.$Proxy195.getSession(Unknown Source)
at com.haulmont.cuba.web.DefaultConnection.doLoginAnonymous(DefaultConnection.java:98)
at com.haulmont.cuba.web.DefaultConnection.loginAnonymous(DefaultConnection.java:64)
at com.haulmont.cuba.web.AppUI.setupUI(AppUI.java:258)
at com.haulmont.cuba.web.AppUI.init(AppUI.java:198)
at com.vaadin.ui.UI.doInit(UI.java:693)
I had changed the default modules prefix in the project properties from ‘app’ to ‘klint’. Therefore my middleware path was klint-core/… instead of app-core.
Now I changed back too the default prefix app, make a new build and everything is working.
Did I do anything wrong by changing the moduls prefix?
Please open a separate topic and attach your log files. It is a very generic problem that might hiding actual problem on server start, so we cannot help you without additional details.