Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic