After having created the Polymer UI client module, login consistently fails. Opening the regular UI results in “Unexpected error: Please contact system administrator”.
The developer tools show that there is a 500 error on
POST http://localhost:8080/app/rest/v2/oauth/token
I attempted to follow instructions in several other forum answers, and all failed. One example is changing the
api-url
in {app}-shell.html from
app/rest
to
{app}/rest
, but this resulted in a 404 error instead. Additionally, this answer seems to be specific to custom names:
localhost:8080/{app}
whereas mine is the default:
localhost:8080/app-front
How can I gain access to my application again?
ENVIRONMENT
Studio 6.5.4 (upgraded from 6.5.3)
Platform 6.5.5 (upgraded from 6.5.3, I believe)
Chrome 58.0.3029.110
macOS 10.11.5
Git 2.10.1 (Apple Git-78)
Java 8 Update 121
The build is being run on the local machine, through the Studio “(Re)Start” button.
ERRORS
Main error:
INFO [http-nio-8080-exec-8] org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.handleException Handling error: IllegalArgumentException, Service app-core/cuba_LoginService is not registered in LocalServiceDirectory
Other errors:
Initializes and destroys the following a few times:
Initializing Spring FrameworkServlet 'dispatcher'
Initializing Spring FrameworkServlet 'rest_api'
Initializing AtmosphereFramework
Then:
INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath
Then:
SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.haulmont.cuba.core.sys.AppContextLoader
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [cuba-spring.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.slf4j.helpers.NOPLogger cannot be cast to ch.qos.logback.classic.Logger
Caused by: java.lang.ClassCastException: org.slf4j.helpers.NOPLogger cannot be cast to ch.qos.logback.classic.Logger