Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

headache! jboss+mysql problem  RSS feed

 
leon ting
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm doing ejb with eclipse+mysql+jboss, as u know jboss uses it's own jndi
way:this.jdbcFactory = (DataSource)c.lookup("java:comp/env/jdbc/MySqlDS");
and i got this message:javax.naming.NameNotFoundException: comp not bound

is that jobss didn't find jdbc driver rg.gjt.mm.mysql.Driver or jndi problem? and i set mysql driver in classpath and jboss_home/lib, i believe every setting is right, but this confuse me much.

any guide will be appreciate! thanks!
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try undeploying all your app from jboss deploy's folder.
If you start jboss with no exceptions, it's probable that your configuration stuff is ok.

Then, you'll know that it is a jndi problem (maybe some missing reference).
 
leon ting
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear upstair
i found i didn't grant authority to user for access mysql
still with my best respect
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!