Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Oct 02, 2023 Oct 02, 2023

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

TOPICS
Server administration
270
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Oct 07, 2023 Oct 07, 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')#">

 

Translate
Community Beginner , Oct 11, 2023 Oct 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!

 

Translate
Community Expert ,
Oct 07, 2023 Oct 07, 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')#">

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 11, 2023 Oct 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!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2023 Oct 11, 2023
LATEST

I'm glad to have helped.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources