I upgraded to Jmix 1.3
Now whenever I edit my existing services, I get an error looking like:
The bean 'pnl_HoldService' could not be registered. A bean with that name has already been defined in file ...
For the error to go away, I have to remove NAME constant from the bean defintion.
Is this something new for JMix 1.3 ?
Before Jmix 1.3, my code was working okay
I am not using multiple beans with the same name in my project.
The project was working without errors before I upgraded to Jmix 1.3.x
I am seeing what I think is the cause of the error:
Inside folder C:\Users\Robert\Jmix-Projects\pickandload\.jmix\conf\com\company\pickandload\service
I am seeing classes being generated. Once I delete these class files, the duplicate bean error goes away.
What is causing class files to be generated in C:\Users\Robert\Jmix-Projects\pickandload\.jmix\conf\com\company\pickandload\service folder ?
Ok, I see then. This happens because Studio hot deploys Spring beans, although it should not. I’ve created an issue.
The standard Run configuration in the IDE should clear the “conf” directory that contains the compiled classes. For some reason it disappeared from your config.
Your screenshot helped me alot and made me realize that I was running the wrong configuration all this time. I was running a Spring configuration which does not clean hot deploy conf directory.
I see the proper Jmix Application configuration that is setup okay and it works well.