Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:25:22+00:00 2026-06-06T18:25:22+00:00

I have a java project that uses JPA 2/Hibernate 3.5.6 for data access and

  • 0

I have a java project that uses JPA 2/Hibernate 3.5.6 for data access and it works great on a JBoss app server. Now I am trying to run this on a Coldfusion 9 environment and I see CF 9 already has hibernate3.jar and related jars thats needed for its ORM implementation. But, I would like to use my java project as is on CF and for that, I would need the same hibenate 3.5.6 jar and related jars on CF. So, I moved all the jars that I need, created a new folder in CF and updated the jvm.config to include this new path. It worked great!! But now the concern is, will this conflict with the default Hibernate/ORM behaviour that CF9 uses. Would this result in any other issues?(class loading, conflicts etc..)?

Option 2:
Also, to circumvent any “possible” issues I decided to create a webservice application, package all jars that I need and deploy it as a war file on CF9-JRun4, and it worked great. In this case I dont have to worry about clasloading because its within the web application’s scope. But, I wouldn’t want my calls from CF app really go through a webservice layer, when all it has to do is plainly access the database and get data back. So I would really want my Option 1(previous paragraph) to work.

So could anyone who might have worked on a similar setup before provide some insight on this. Appreciate the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:25:23+00:00Added an answer on June 6, 2026 at 6:25 pm

    I’m currently working on exactly that setup (spring/hibernate/jpa app running within a CF app). The only difference is that I’m on Railo, but I’ve done the same thing with Adobe ColdFusion (ACF) before also. In both ACF and Railo you can definitely run into problems with bringing your own Hibernate. The consensus seems to be that you’ll get away with removing/replacing ACF’s Hibernate as long as you’re not using it’s built-in ORM functionality.

    Like you, I was left looking at option 2 and not liking it very much.
    If you want to properly separate your Java app form the CF container you’re running in, you ought to use JavaLoader. It provides a child-first classloader which can load up the JARs in your app and will resolve classes and resources from there in preference to going up the chain to the classes provided in ACF.

    The only gotcha I’ll mention is that a lot of modern frameworks (Spring in particular) use the thread context Classloader to get at resources so you may need to switch the classloader round when constructing objects from your Java code. This is covered in the JavaLoader documentation, but it’s worth knowing that it’s likely the cause when your code moans about not being able to load properties files from your JARs etc. I tend to create one CFC which hides the fuss of constructing the Java Objects and lets the rest of your application code stay simple. You could look at the Railo implementation of CFSpreadsheet and this class in particular for an example of that.

    Hope it all works out for you

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that uses Java and Groovy intermixed. This works very well.
I have a java project that uses java.io.RandomAccessFile to manage data loading. It seeks
i have a java ee project which has a text file that uses a
I have a project in Java I am running that uses an external JAR
I have a Java project that uses this driver for serial communication. The driver
I have a java/maven project that uses tango icons, so I'm using the following
I have an existing Java project in Netbeans that uses Swing and I would
I have a project that uses a Java library converted using IKVM . I
I have a Rails 3 project that uses some java jar files. I'm putting
I have a project that uses generics and a few Java 1.5/6 bits and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.