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

Java jars not working in CF2021

Explorer ,
Feb 26, 2024 Feb 26, 2024

Copy link to clipboard

Copied

Hello All,

We recently migrated to CF2021 in last week in Production and we are facing major issue with all Java jars. Jars are in CF2021/jre/lib folder but still we are facing hard errors on createObject function.
Whenever CF trying to create Java Object using createObject function, it's giving classnotfound exception on that java object.

If anyone faced this issue before please comment here. We will really appreciate your help!

Thanks in advance!

Views

133

Translate

Translate

Report

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 1 Correct answer

Community Expert , Feb 26, 2024 Feb 26, 2024

 CF2021/jre/lib is probably the wrong location.

Java JARS to be used by ColdFusion should be in a lib directory within the ColdFusion instance. Typically, in {CF2021_HOME}/cfusion/lib or {CF2021_HOME}/myCFInstance/lib.

Votes

Translate

Translate
Community Expert ,
Feb 26, 2024 Feb 26, 2024

Copy link to clipboard

Copied

 CF2021/jre/lib is probably the wrong location.

Java JARS to be used by ColdFusion should be in a lib directory within the ColdFusion instance. Typically, in {CF2021_HOME}/cfusion/lib or {CF2021_HOME}/myCFInstance/lib.

Votes

Translate

Translate

Report

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
Explorer ,
Feb 26, 2024 Feb 26, 2024

Copy link to clipboard

Copied

LATEST

Thanks a lot @BKBK !

 

some jars were missing in cfusion/lib folder. After I added them, impacted flows worked fine.

Votes

Translate

Translate

Report

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
Documentation