i've some classes deployed in WEB-INF/classes. When i refresh design database on production, this classes are not updated? Why?
Asked
Active
Viewed 352 times
0
-
Do you have their sources in database? If not, you should use JARs, not CLASS files... – Frantisek Kossuth Oct 07 '13 at 06:56
-
Sources are in WebContent/WEB-INF/src of database...do i need to use a jar? – Andrea Baglioni Oct 07 '13 at 07:33
-
1No, if sources are there, no need to use JARs. Make sure the template you are refreshing from is built. – Frantisek Kossuth Oct 07 '13 at 07:47
-
And sources are updated? – Panu Haaramo Oct 07 '13 at 08:23
-
Yes, it's built ("Build automatically" checked), but no update happens during refresh. Classes are all in my pakage explorer under WebContent/WEB-INF/src folder – Andrea Baglioni Oct 07 '13 at 08:57
-
What version on Domino Designer are you using? And if you check in Navigator, do you see .class files in WEB-INF folder? – Egor Margineanu Oct 07 '13 at 09:03
-
Release 8.5.2 - Folder "classes" in WEB-INF is present. – Andrea Baglioni Oct 07 '13 at 11:02
-
I'd suggest to try with 8.5.3 FP4 (and latest fixes) or even FP5. Also, you can check http://www.runningnotes.net/index.php/2013/08/29/mystery-application-breakage/ for some tips. On another note, you can use NotesPeek to check if you java design elements are up-to-date and present. – Egor Margineanu Oct 07 '13 at 14:41
-
There is a trick to make a view showing all design elements. We adopted it as standard to be included in every database - it addresses many deployment problems - for example "Prohibit refresh/replace" flags turned on for design elements which have no way to turn it on/off in designer interface. http://www-10.lotus.com/ldd/ddwiki.nsf/dx/view-of-design-elements.htm – Frantisek Kossuth Oct 08 '13 at 09:10
2 Answers
0
Depending on the server version you need to take a "brute force" attack:
- Instead of refresh design use replace design
- Use a small agent that removes the Java design elements before the refresh/replace operation (they are stored in regular design note entries
The failure might happen when the classes are currently loaded

stwissel
- 20,110
- 6
- 54
- 101
0
Try to make Clean on production database after design refresh. That will wipe class files and compile them from sources. From that moment on there should be no problem with next refresh.

Frantisek Kossuth
- 3,524
- 2
- 23
- 42