you can try to change start level !
 
------------------
谢谢!
 唐 炜  
 优秀是一种习惯!




 
 
  
 ------------------ Original ------------------ 
  From: "osgi-dev-request"<[email protected]>;
 Date: 2009年8月10日(星期一) 凌晨0:00
 To: "osgi-dev"<[email protected]>; 
 Subject: osgi-dev Digest, Vol 34, Issue 1

  
Send osgi-dev mailing list submissions to
    [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
    https://mail.osgi.org/mailman/listinfo/osgi-dev
or, via email, send a message with subject or body 'help' to
    [email protected]

You can reach the person managing the list at
    [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of osgi-dev digest..."


Today's Topics:

   1. OSGI mysql error: java.lang.NoClassDefFoundError:
      javax/naming/RefAddr (Miguel)


----------------------------------------------------------------------

Message: 1
Date: Sun, 09 Aug 2009 00:07:50 +0200
From: Miguel <[email protected]>
Subject: [osgi-dev] OSGI mysql error: java.lang.NoClassDefFoundError:
    javax/naming/RefAddr
To: OSGi Developer Mail List <[email protected]>
Message-ID: <1249769270.9498.7.ca...@mcm>
Content-Type: text/plain; charset="us-ascii"

Hi, 
I am facing a issue regarding getting GWT within an OSGi framework.
I try to connect the gwt server part with a OSGi component, and this GWT
server  bundle use another OSGi database component.
The problem is that when I start gwt server bundle I get the followin
error:

[SCR Component Actor] ERROR com.as.gwtserver -
[com.as.server.gwt.component] The activate method has thrown an
exception
java.lang.NoClassDefFoundError: javax/naming/RefAddr
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at com.mysql.jdbc.ConnectionProperties.class
$(ConnectionProperties.java:546)
    at
com.mysql.jdbc.ConnectionProperties.<clinit>(ConnectionProperties.java:560)
    at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
[...]

Caused by: java.lang.ClassNotFoundException: javax.naming.RefAddr


But, If you have a look into the manifest file of the gwt server bundle,
everything seems to be ok:

Import-Package: com.as.bbdd,
 javax.naming,

osgi> bundle 37    
com.as.gwtserver_1.0.0 [37]
[...]
 Imported packages

    javax.naming; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>


I have imported javax.naming but it keeps on saying me that it can not
find the class.
I have also try using -Dosgi.parentClassloader=ext but I get the same
error,

can anybody help me?
thank you very much.

Miguel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mail.osgi.org/pipermail/osgi-dev/attachments/20090809/3fd0b225/attachment-0001.html

------------------------------

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

End of osgi-dev Digest, Vol 34, Issue 1
***************************************
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to