• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need Help with JBOSS 4.0.0 and DataSource Error  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!