cancel
Showing results for 
Search instead for 
Did you mean: 

Hot Reload with Action Beans breaks Nuxeo 7.10

ioihanguren_
Star Contributor
Star Contributor

Hello,

I have some bundles with Action Beans, and I was using Nuxeo 7.2 with the IDE to develop, without problems. But now I've decided to use Nuxeo 7.10 as it is the LTS version, and I've seen that when I hot reload the bundles with Action Beans, Nuxeo breaks (the page won't load but I don't see anything in the logs). I've tried with other bundles that have no Action Beans, and everything works as it should. If I create the JARs of the bundles that have Action Beans, I have no problems neither.

To ensure that it wasn't a problem in my code, I've used a clean 7.10 SDK, with only one bundle that I've created using the wizard of Nuxeo IDE, and I've created an Action Bean also with the Nuxeo Artifact Wizard. Again, when I hot reload, Nuxeo breaks and I have to stop and restart it.

Is it a bug? Has something changed in 7.10 and do I need to change my code in order to work?

If you need any more information please ask, but as I have said, it is very easy to reproduce the error using the Nuxeo Artifact Wizard.

Thank you and Happy Holidays!

9 REPLIES 9

ioihanguren_
Star Contributor
Star Contributor

I've done the same test with 7.4 and hot reload doesn't break Nuxeo, so I guess it's something that has been introduced with the latest version.

slacoin_Lacoin
Star Contributor
Star Contributor

action beans are hot-reloaded in a specific way with the help of seam framework. Project output classes are split in two folders, one containing the main classes and another containing seam related classes.

Can you check you have the correct layout in the folder target/devbundle. Then can you give me the content of the file NUXEO_HOME/nxserver/dev.bundles file.

Hi slacoin, thanks for your quick reply!

No, the IDE is doing what's I'm expecting. Problem should comes from seam hot--reloader. Can you check now that the seam classes are deployed in the nuxeo.war/WEB-INF/dev folder.

Hello again slacoin,

Yeap, that's mean seam is not detecting the change. Can you share your project ?

Hello again,

Thanks I'm going to investigate.

Hello [slacoin Lacoin](https

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.