• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Standalone java app - JNDI lookup on weblogic server - Spring/Hibernate/JTA not committing to DB

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all!

I have been racking my brain for the last few days trying to convert a standalone java application from a standard database connection to a JNDI lookup on a weblogic server and I can't seem to get it to work.

applicationContext.xml follows:



persistence.xml:



I apologize if this isn't the correct forum.

 
Nickolas Case
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved my issue. I hadn't implemented JTA correctly and I didn't need to. After I reverted my code to JNDI lookup and added the following jars my code worked.

com.bea.core.diagnostics.instrumentor_1.0.1.0.jar
com.bea.core.repackaged.asm_1.5.2.jar
com.bea.core.xml.beaxmlbeans_2.2.0.0


Of course, you'll still need the wlfullclient.jar using the jarbuilder.

Also, you don't want weblogic.jar along with wlfullclient.jar as this can cause errors too.

Cheers!
 
If a regular clown is funny, then a larger clown would be funnier. Math. Verified by this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic