When defining more than one external datasource in project properties, for instance “My2ndDataSource” and after closing and reopening the project we get:
Additional data store ‘My2ndDataSource,’ not loaded. ‘cuba.dataSourceJndiName_My2ndDataSource,’ property not found in ‘[…/app.properties]’ properties files.
The referred property IS in fact in app.properties.
Don’t know if because of this issue but now every entity on those external datastores gives "IllegalArgumentException: MetaClass not found for " running the browser screen.
This happens in Studio 6.7.2 after upgrading to platform 6.7.1
Please, how do I correct this?
And Studioo 7.2 version still has the problem above described.
I’ve been solving editing app.properties and removing the ‘,’ separator from datasources names in cuba.additionalStores
@iskandarov i checked each file and when i try to test app: (- ./gradlew -g /cache/.gradle test --info)
i get exeption (latest stable version of cuba):
12:34:05.202 DEBUG com.haulmont.cuba.core.sys.CubaJndiDataSourceFactoryBean - Located object with JNDI name [java:comp/env/jdbc/CubaDS]
[529](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/39#L529) 12:34:08.823 DEBUG com.haulmont.cuba.core.sys.CubaJndiObjectFactoryBean - Converted JNDI name [java:comp/env/jdbc/atena] not found - trying original name [jdbc/atena]. javax.naming.NamingException: Not bound: java:comp/env/jdbc/atena
[530](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/39#L530) 12:34:08.838 WARN com.haulmont.cuba.core.sys.CubaCoreApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Cannot resolve reference to bean 'cubaDataSource_atena' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cubaDataSource_atena' defined in class path resource [com/company/ramcovezmluvy/spring.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Not bound: jdbc/atena
[531](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/39#L531) Gradle Test Executor 1 finished executing tests.
[532](https://gitlab.atena.sk/root/ramcove-zmluvy/-/jobs/39#L532) > Task :app-core:test FAILED