Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Having Trouble Configuring a JNDI Connection  RSS feed

 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to run an existing web app on my machine (using WSAD as an IDE) and I continually get an error when the app tries to perform a JNDI datasource lookup. Here is the code being executed:



And here is some of the stack trace I get when the exception occurs:



In that, it looks like I'm missing a class, com/microsoft/jdbcx/base/BaseXADataSource. Anyone know what that class is or where it might be found?

Thanks,
Corey
[ November 01, 2004: Message edited by: Corey McGlone ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That class belongs to the Microsoft SQL Server JDBC Driver
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gah! Thanks for the tip, Gregg. I think I'm just the kind of person that needs to verbalize (or at least write down) my problems. As soon as I finished this post, I checked out my classpath settings. While all 3 JDBC driver JAR files were defined for my JNDI data source settings, only 1 of the 3 was defined in my app server class path settings.

Putting the other 2 in there solved my problem. Sometimes, I hate IDE's - they hide too much.

At least it's working now. Thanks again, Gregg.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!