Amir_Af
Amir_Af

Reputation: 574

JRebel monitoring class folder but not deploying

While starting WL with JRebel I can see folder monitor message but when placing class file into the folder its not being loaded.

Currently we have WL 9.2 which part of classpath is api.jar.

In addition we added to the classpath classes folder with same package structure of the api.jar.

In the root of the api.jar we have the rebel.xml which pointing to the classes folder.

While starting the WL I can see its monitoring the classes folder but while placing any class file to the classes folder , JRebel not reloading it.

Please advice.

Upvotes: 1

Views: 1367

Answers (1)

Margus Pala
Margus Pala

Reputation: 8663

JRebel writes the classes it is making reloadable into the log with lines that contain this: instrumented class 'com.package.ClassName' from '/path1/com/package/ClassName.class'

If file change is detected then log contains line something like this Event 'CHANGE' on: '/path2/com/package/ClassName.class'

If path1 and path2 are same then upon next usage of the class the JRebel will reload the .class and print to log following Reloading class 'com.package.ClassName'

If path1 and path2 are not same then you must finetune your rebel.xml

This will get and idea of where the process breaks and where to continue looking.

Upvotes: 3

Related Questions