You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by elMateo <so...@gmail.com> on 2012/03/14 11:02:05 UTC

MySQL in Apache Felix

Hello all,

I want to use persistence in Apache Felix. For this I have a MySQL database.

When I start my bundle Apache Felix show this exception:

java.sql.SQLException: java.lang.NoClassDefFoundError: javax/naming/RefAddr
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:435)
        at
com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
        at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:305)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)

Does anyone have any idea about what is going on?

I tried to import in the manifest file the javax.naming librery too.

Thanks in advance, Jesus

Re: MySQL in Apache Felix

Posted by BicoWang <10...@qq.com>.
Hi man ,
I am a new learner of OSGi,and I also encounter the same problem .So could
you please tell me how you solve this problem at last ?

Great thanks .



--
View this message in context: http://apache-felix.18485.n6.nabble.com/MySQL-in-Apache-Felix-tp4833482p5002427.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: MySQL in Apache Felix

Posted by Tribon Cheng <tr...@gmail.com>.
Make sure that the package "javax.naming" is exported in right version.

On Wed, Mar 14, 2012 at 6:02 PM, elMateo <so...@gmail.com> wrote:

> Hello all,
>
> I want to use persistence in Apache Felix. For this I have a MySQL
> database.
>
> When I start my bundle Apache Felix show this exception:
>
> java.sql.SQLException: java.lang.NoClassDefFoundError: javax/naming/RefAddr
>        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
>        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
>        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
>        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
>        at com.mysql.jdbc.Util.handleNewInstance(Util.java:435)
>        at
> com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
>        at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
> :305)
>        at java.sql.DriverManager.getConnection(Unknown Source)
>        at java.sql.DriverManager.getConnection(Unknown Source)
>
> Does anyone have any idea about what is going on?
>
> I tried to import in the manifest file the javax.naming librery too.
>
> Thanks in advance, Jesus
>



-- 
Contribute to Enterprise Integration