• 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
  • 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

Need Help with JBOSS 4.0.0 and DataSource Error

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have copied the mysql data source xml form docs/sample/jca into the deploy directory of my web app and modified as per my settings. I have the jar file where the server can find (already debugged this).

During server intialization i see it gets bound to JNDI name:
"java:MySqlDS" (using same name as file originally had)

When i try to access through JNDI:
DataSource DS = (DataSource)Naming.lookup("java:MySqlDS");

I get a java.net.MalformedURLException with a description saying "invalid URL scheme"

If anyone knows how to resolve this? All the documentation is for changing the default database used by the server - none of the documentation mentions (at least from what i can find) just config of an additional different datasource to be used by an app.

[ December 03, 2004: Message edited by: j whiting ]
[ December 03, 2004: Message edited by: j whiting ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic