<!DOCTYPE html>
<html>
<head lang="{{locale}}">
<title>Mojito</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
APP_CONFIG = {{{appConfig}}};
CSRF_TOKEN = '{{csrfToken}}';
</script>
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="{{contextPath}}/js/app-f55a2fa8bdabd992f6a0.js"></script>
<script type="text/javascript" src="{{contextPath}}/js/css-f55a2fa8bdabd992f6a0.js"></script>
</body>
</html>
spring.flyway.enabled=true
spring.flyway.clean-disabled=true
l10n.flyway.clean=false
spring.datasource.url=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true&useSSL=false
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.datasource.username=${MOJITO_DB_USERNAME}
spring.datasource.password=${MOJITO_DB_PASSWORD}
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
server.forward-headers-strategy=native
l10n.org.quartz.jobStore.useProperties=true
l10n.org.quartz.scheduler.instanceId=AUTO
l10n.org.quartz.jobStore.isClustered=true
l10n.org.quartz.threadPool.threadCount=10
l10n.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
l10n.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
l10n.org.quartz.jobStore.dataSource=myDS
l10n.org.quartz.dataSource.myDS.provider=hikaricp
l10n.org.quartz.dataSource.myDS.driver=com.mysql.cj.jdbc.Driver
l10n.org.quartz.dataSource.myDS.URL=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true
l10n.org.quartz.dataSource.myDS.user=${MOJITO_DB_USERNAME}
l10n.org.quartz.dataSource.myDS.password=${MOJITO_DB_PASSWORD}
l10n.org.quartz.dataSource.myDS.maxConnections=12
l10n.org.quartz.dataSource.myDS.validationQuery=select 1
spring.security.oauth2.client.registration.google.client-id="${MOJITO_GOOGLE_CLIENT_ID}"
spring.security.oauth2.client.registration.google.client-secret="${MOJITO_GOOGLE_CLIENT_SECRET}"
#l10n.security.authenticationType=DATABASE,OAUTH2,HEADER
l10n.security.authenticationType=DATABASE,HEADER
info.build.version=1.0
spring.profiles.include=disablescheduling
spring.mail.host=localhost
spring.jpa.hibernate.use-new-id-generator-mappings=false
spring.jpa.properties.org.hibernate.envers.audit_strategy=org.hibernate.envers.strategy.ValidityAuditStrategy
spring.jpa.properties.org.hibernate.envers.track_entities_changed_in_revision=true
spring.session.store-type=none
spring.session.jdbc.table-name=SPRING_SESSION_V2
#l10n.security.unauth-redirect-to=/login/oauth2/authorization/code/google
FROM amazoncorretto:8
RUN mkdir -p /opt/mojito && \
mkdir -p /usr/local/etc/mojito/webapp
COPY webapp/application.properties /usr/local/etc/mojito/webapp/
COPY mojito-webapp-0.111-SNAPSHOT-exec.jar /opt/mojito/
WORKDIR /opt/mojito
EXPOSE 8080
#CMD ["sleep", "infinity"]
CMD ["java", "-Dspring.config.location=/usr/local/etc/mojito/webapp/", "-jar", "mojito-webapp-0.111-SNAPSHOT-exec.jar"]
spring.flyway.clean-disabled=true
l10n.flyway.clean=false
spring.datasource.url=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true&useSSL=false
spring.datasource.username=${MOJITO_DB_USERNAME}
spring.datasource.password=${MOJITO_DB_PASSWORD}
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
l10n.org.quartz.jobStore.useProperties=true
l10n.org.quartz.scheduler.instanceId=AUTO
l10n.org.quartz.jobStore.isClustered=true
l10n.org.quartz.threadPool.threadCount=10
l10n.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
l10n.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
l10n.org.quartz.jobStore.dataSource=myDS
l10n.org.quartz.dataSource.myDS.provider=hikaricp
l10n.org.quartz.dataSource.myDS.driver=com.mysql.jdbc.Driver
l10n.org.quartz.dataSource.myDS.URL=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true&useSSL=false
l10n.org.quartz.dataSource.myDS.user=${MOJITO_DB_USERNAME}
l10n.org.quartz.dataSource.myDS.password=${MOJITO_DB_PASSWORD}
l10n.org.quartz.dataSource.myDS.maxConnections=12
l10n.org.quartz.dataSource.myDS.validationQuery=select 1
## OAUTH2
l10n.security.authenticationType=DATABASE,OAUTH2,HEADER
l10n.security.unauth-redirect-to=/login/oauth2/authorization/google
spring.security.oauth2.client.registration.google.client-id=${MOJITO_GOOGLE_CLIENT_ID}
spring.security.oauth2.client.registration.google.client-secret=${MOJITO_GOOGLE_CLIENT_SECRET}
spring.security.oauth2.client.registration.google.authorization-grant-type=authorization_code
spring.security.oauth2.client.registration.google.scope=profile
info.build.version=0.111-SNAPSHOT
spring.mail.host=localhost
spring.session.store-type=none
spring.mustache.suffix:.html
server.tomcat.relaxed-query-chars=[,]
spring.jpa.open-in-view=false
management.health.ldap.enabled=false
management.endpoint.shutdown.enabled=true
management.metrics.export.statsd.enabled=false
org.springframework.http.converter.json.indent_output=false
spring.jpa.hibernate.use-new-id-generator-mappings=false
@Component
public class SystemPromptCredentialProvider implements CredentialProvider {
@Value("${user.name}")
String systemUserName;
@Value("${user.password}")
String password;
@Override
public String getUsername() {
return systemUserName;
}
@Override
public String getPassword() {
if (password == null) {
System.out.println("Enter password for mojito user " + systemUserName + ": ");
char[] readPassword = System.console().readPassword();
password = new String(readPassword);
}
return password;
}
}
-Dl10n.resttemplate.authentication.username=... -Dl10n.resttemplate.authentication.password=...
would work already. No need to change the provider, default one would be fine
We were trying hands-on with product and got stuck when we were using the same repo for our Android and iOS projects it is giving error based on the repo was created and imported from the platform
Eg: if repo is created with iOS strings file and if we pull in Android project then it gives the error
Asset with path [res/values/strings.xml] was not found in repo [Repo Name]
Hi, i need to access the current user in workbench component but when i try to get it from Users.js , i am getting the error: "dispatcher not provided ". I have also tried to get it from UserClient but the error is still there. Does anyone have any idea to solve this problem?
Many greetings
Hello guys, I am not able to run the mojito webserver for version 0.110 with the minimum default configuration. My configuration is,
flyway.enabled=true
l10n.flyway.clean=false
spring.jpa.database=MYSQL
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.hibernate.ddl-auto=none
spring.datasource.url=jdbc:mysql://localhost:3306/${DB_NAME}?characterEncoding=UTF-8&useUnicode=true
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.testOnBorrow=true
spring.datasource.validationQuery=SELECT 1
l10n.org.quartz.jobStore.useProperties=true
l10n.org.quartz.scheduler.instanceId=AUTO
l10n.org.quartz.jobStore.isClustered=true
l10n.org.quartz.threadPool.threadCount=10
l10n.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
l10n.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
l10n.org.quartz.jobStore.dataSource=myDS
l10n.org.quartz.dataSource.myDS.driver=com.mysql.jdbc.Driver
l10n.org.quartz.dataSource.myDS.URL=jdbc:mysql://localhost:3306/${DB_NAME}?characterEncoding=UTF-8&useUnicode=true
l10n.org.quartz.dataSource.myDS.user=${DB_USERNAME}
l10n.org.quartz.dataSource.myDS.password=${DB_PASSWORD}
l10n.security.authenticationType=DATABASE
The error that I am getting is,
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'textUnitWS': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.box.l10n.mojito.service.tm.TMService
com.box.l10n.mojito.rest.textunit.TextUnitWS.tmService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TMService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.box.l10n.mojito.quartz.QuartzPollableTaskScheduler
com.box.l10n.mojito.service.tm.TMService.quartzPollableTaskScheduler; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzPollableTaskScheduler': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.quartz.Scheduler com.box.l10n.mojito.quartz.QuartzPollableTaskScheduler.scheduler; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'scheduler' defined in class path resource
[com/box/l10n/mojito/quartz/QuartzSchedulerConfig.class]: Invocation of init method failed; nested exception is org.quartz.SchedulerException:
Could not initialize DataSource: myDS [See nested exception: java.lang.NoSuchMethodException: No setter for property 'provider']
And if I use spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
I am getting this error - Cannot load driver class: com.mysql.cj.jdbc.Driver
Not sure what is going wrong. PS: I have been using the .jar file compiled from the master branch for a long time and our production server is using a 0.110 stable release and it's working fine. Trying the same configuration from the server to my local machine is failing.