Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 09:47:22
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello Björn,
Ok, I found out that hibernate works. It works in the App and in completed war file on tomcat-server. But it doesn’t work in preview in CCE. Is there a plugin for hibernate and CCE?
Or need I another class mapping for CCE?
I test the class mapping with xxx.hbm.xml and annotated entity.
Thanks!
Kind regards
Klas
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 09:50:46
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5387
Offline
|
Hi Klas,
the preview of the Layout Editor is an IFRAME showing you live application! ;-) So there is no difference in the application in the preview and the live one...
If you say: it does not work. What is exactly the problem? Is there an error message in the preview area? What does the log tell (tomcat/work/Catalina/lcoalhost/-files)?
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 09:57:52
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
The Error message is:
org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.hibernate.ccetest.HibernateTest.view.managedbeans.NewCars]
Kind regards
Klas
Filename |
log_eclntjsfserver.txt.0.1.zip |
Download
|
Description |
Tomcat log |
Filesize |
23 Kbytes
|
Downloaded: |
72 time(s) |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 10:20:17
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello,
I found out because i read a post in a forum where a member wrote that it doesn't work in the preview, he then turned off the preview.
but it was a different software.
so I test it on Tomcat server and it Works.
Kind regards
Klas
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 11:03:43
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Maybe it loads not all libs in Casa?
here pictures from CC and Tomcat server
hope it helps
Kind regards
Klas
|
Filename |
TomCatServer 2023-02-21 115903.png |
Download
|
Description |
Image from tomcat |
Filesize |
18 Kbytes
|
Downloaded: |
73 time(s) |
|
Filename |
CaptainCasa 2023-02-21 115943.png |
Download
|
Description |
Image from Casa |
Filesize |
27 Kbytes
|
Downloaded: |
75 time(s) |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 11:09:29
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5387
Offline
|
Hi,
what the issue could be: Hot Deployment. I assume that your hibernate*.jar are in WEB-INF/lib - so Hibernate expects entity classes to be in WEB-INF/classes. If you use hot-deployment for all your packages then the entity classes (in eclnthotdeploy/classes) are not visible to hibernate.
So, put more details into your hot deployment definition. Only specifiy these packages that are UI-relevant for hot deployment.
When packaging a .war file then there is not hot deployment. THis is a design time issue.
The hot deployment configuration is part of the "Project Configuration...". You may also try to completely switch it off - to do a quick check. (But afterwards you should use a more fine-grained definition...)
Hope this takes the right direction...(?)
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 11:26:11
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hi,
Thanks I give it a try
Kind regards
Klas
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 11:58:55
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Ok, it works without hot deployment.
you were right
Kind regards
Klas
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 21/02/2023 12:25:21
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5387
Offline
|
...as I already mentioned: Hot deployment is a key to productive development... There is also a phantastic (!!!?) video about this issue in the https://CaptainCasa.com page, quite at the top of the messages.
So, do not be satisfied with "works without hot deployment"! But establish a proper configuration of hot deployment.
We can support you of course in doing this. Just contact us directly.
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
 |
|