[equinox-dev] equinox mysql error

2011-04-05 Thread 刘伦
Hi I'm a chinese student. I'm writing a plugin that connects to a mysql database, when I used whiting eclipse it works correctly, however when I try to run it in the standalone equinox does not works the message is: java.sql.SQLException: java.lang.NoClassDefFoundError: javax/naming/RefAddr

Re: [equinox-dev] equinox mysql error

2011-04-05 Thread Thomas Watson
The most likely cause is you are not importing the javax.naming package in your bundle manifest (using Import-Package). Standalone Equinox follows the strict OSGi class loading rules which requires you to use either Import-Package or Require-Bundle to get access to all non-java.* packages (this in