Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic