Start Application after cuba 7 migration -> Name [jdbc/CubaDS] is not bound in this Context

After I migrate my cuba application to cuba 7 version I got the follow error:

Caused by: javax.naming.NameNotFoundException: Name [jdbc/CubaDS] is not bound in this context. Unable to find [jdbc].
at org.apache.naming.NamingContext.lookup(NamingContext.java:817)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at org.apache.naming.NamingContext.lookup(NamingContext.java:827)
at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:163)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at org.springframework.jndi.JndiTemplate.lambda$lookup$0(JndiTemplate.java:156)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:91)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:156)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:96)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:114)
at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:238)
at com.haulmont.cuba.core.sys.CubaJndiDataSourceFactoryBean.lookupWithFallback(CubaJndiDataSourceFactoryBean.java:27)
at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:224)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
... 74 more

my context.xml file has a custom dataSource

<Context>
<!-- Database connection -->
<Resource driverClassName="org.postgresql.Driver"
          maxIdle="2"
          maxTotal="20"
          maxWaitMillis="5000"
          name="jdbc/CubaDS"
          password="notImportantPass"
          type="javax.sql.DataSource"
          url="jdbc:postgresql://localhost:5432/rafaelteste_db?currentSchema=go"
          username="postgres"/>
<!-- Switch off session serialization -->
<Manager pathname=""/>

<Resource driverClassName="org.postgresql.Driver"
          maxIdle="2"
          maxTotal="20"
          maxWaitMillis="5000"
          name="jdbc/adaptivego_cuba"
          password="notImportantPass"
          type="javax.sql.DataSource"
          url="jdbc:postgresql://localhost:5432/rafaelteste_db"
          username="postgres"/>

Hello @rafaelratacheski

Could you clarify what version was used before and what version is used now?

Is the issue reproduced for new project?

Regards,
Daniil