Skip to main content
michaels14629018
Participant
October 2, 2023
Answered

ORM error when using fieldType="one-to-many" (Migrating from CF11 to CF2023)

  • October 2, 2023
  • 1 reply
  • 386 views

Hi, I have a REST-service that is working excellent on CF11. When I copy the files to a new CF2023 server and try to register the service in the administrator I get the following error when the model contains either fieldType="one-to-many" or fieldType="one-to-one"

 

exception.log:

Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.spi.SharedSessionContractImplementor not found by orm [155]

 

I tried it with the original build-in Java 17.0.6 and 17.0.8

This topic has been closed for replies.
Correct answer michaels14629018

After installing the Update 5, that was released this Friday, I am able to register the REST-Service on Windows and Linux in the Coldfusion Administrator.

Thanks BKBK!

 

1 reply

BKBK
Community Expert
Community Expert
October 7, 2023

I don't think it has to do with Java. I suspect your ColdFusion 2023 installation is missing one or more ORM packages.


Some questions, for context:

  1.  The ColdFusion 2023 update level?
  2. Your Operating System?
  3.  What happens when you save the following line of code as a CFM file, and launch it?

 

<cfdump var = "#createobject('java','org.hibernate.engine.spi.SharedSessionContractImplementor')#">

 

michaels14629018
michaels14629018AuthorCorrect answer
Participant
October 11, 2023

After installing the Update 5, that was released this Friday, I am able to register the REST-Service on Windows and Linux in the Coldfusion Administrator.

Thanks BKBK!

 

BKBK
Community Expert
Community Expert
October 11, 2023

I'm glad to have helped.