• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

NameNotFoundException: Can't see my datasource

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I decided to upgrade to the CVS version after running 2.14 for a few days. I'm running into a very strange problem however.

Everything ran relatively fine when I downloaded and installed the stable version. Now I'm getting a NameNotFoundException when the forum tries to start up.

Environment:

App Server: JBoss 4.0.3RC2
Java: JDK 1.5.0
OS: Both Mac OS 10.4 and Debian Linux
DB: PostgreSQL 8.0


As you can see from my JBoss JMX Console, the data source "jdbc/forum-ds" is bound:




Here's part of my SystemGlobals.properties:



I even added a debug statement to DataSourceConnection.java, but it's truncating the JNDI name of my datasource. I've even tried changing the JNDI name. Nothing seems to work.






The same datasource worked before I grabbed the code from CVS. What a am I doing wrong?
[originally posted on jforum.net by elusivemel]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've added the issue to Jira. Sorry about the double- and cross-posting.
[originally posted on jforum.net by elusivemel]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
instead of

java:jdbc/forum-ds

try changing the name to just

java:/forum-ds

I had similar problems with this jdbc/ thing too

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic