Yes, tried that. These commands don't help too:
> karaf@root()> stop com.demo.* ; uninstall com.demo.* > karaf@root()> obr:url-refresh ; obr:deploy > com.demo.discovery.dns ; refresh com.demo.discovery.dns ; start > com.demo.discovery.dns Karaf 3.0.3, Oracle JDK 1.8.0_45 Also it's really easy to reproduce - after any modification all code importing the class modified becomes unusable. On 15.06.2015 10:51, Jean-Baptiste Onofré wrote: > Hi, > > did you try a refresh ? > > Regards > JB > > On 06/14/2015 10:26 PM, Pavel E. Shirshov wrote: >> Hi. >> >> I have a single bundle, containing one service and some usual classes. >> >> Once I've deployed it from local obr repository and everything was OK. >> >> Then I updated it in repository and performed the following commands to >> redeploy bundle: >>> karaf@root()> stop com.demo.* ; uninstall com.demo.* >>> karaf@root()> obr:url-refresh ; obr:deploy -s >>> com.demo.discovery.dns >> >> It redeployed, but when I queried my service, I got cryptic >> NoClassDefFoundError: >> >>> java.lang.NoClassDefFoundError: com/demo/cluster/discovery/dns/Buffers$ >>> at >>> com.demo.cluster.discovery.dns.UDPHandler.messageReceived(UDPHandler.scala:14) >>> >>> at >>> com.demo.cluster.discovery.dns.UDPHandler.messageReceived(UDPHandler.scala:12) >>> >>> at >>> io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[228:io.netty.transport:5.0.0.Alpha2] >>> >>> ... >> >> Then I've restarted Karaf and everything became fine again. >> >> Could anybody give me any hint why I got such strange exception and how >> to avoid it? >> >> >
signature.asc
Description: OpenPGP digital signature
