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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem oin connecting Oracle database in JBOSS AS 4.2.3

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi All,
I am using JBoss AS 4.2.3.GA.I have to use oracle 10g as database.For this I put a file named oracle-ds.xml in .../default/deploy/ folder.
The code is given..



Now when I am running the server ,it is starting.But whenever their is database hit it throw's an error....





Can you please tell me what iss the problem?And how to solve it?
Please help me out....
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Did you place the oracle jdbc driver jar in the server/default/lib folder?
 
Suddhasattwa Mukherjee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I have placed the classes12.jar file in the specified folder.Is it right?I am using Jdk6.May I have to place ojdbc6.jar instead of classes12.jar?
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Yes. We had the same problem with our app. We had an include statement for ojdbc14.jar in our build.xml, but it didn't put it in the right directory. Put it in the location (server\default\lib) mentioned in the previous post and it should work.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am trying to configure the oracle datasource and I copied and made the necessary changes for oracle-ds.xml. My oracle datasource is 'TestOraDatasource' and when I try to lookup the datasource using 'TestOraDatasource' in the application its giving me HSQLDB datasource which is the default one for jboss.

How do I make my oracle datasource as the default datasource ?

Thanks


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Amarnatha, welcome to Java Ranch.

Please do not append a new question to an old topic. Instead, please create a new topic. And provide the *-ds.xml file and the code you are using to lookup the datasource, and an explanation of how you know you are getting HSQLDB.
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic