[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [flux-dev] Error encoutered
|
Hey!
There are two projects that are imported to this:
- client.java
- client.java.osgi
The client.java includes the socket.io library.
The client.java.osgi gets those libraries copied into it in the build. And it packages it as an OSGi bundle.
From your error it looks like the OSGi wrapper bundle maybe doesn’t export all the packages of the socket.io lib.
You have to list all the packages from the socket.io lib that should be exported and visible to other bundles in the MANIFEST.MF.
Hope this helps!!!
-Martin
> Am 06.06.2016 um 17:39 schrieb Xin Wei <xinwei3@xxxxxxxxxxxx>:
>
> Hi,
> I tried to update the SocketIo lib so the mvn dependency can no longer depend on the old .jar file. However, after I updated the SocketIO lib, mvn install ran successfully, but when I tried to run the application, I encountered errors.. I attached the output of the error with the e-mail. The error said "java.lang.NoClassDefFoundError: io/socket/emitter/Emitter$Listener"
> But the compiled .jar file in located inside the /lib/ directory of java.osgi, after I ran mvn install. I don't know what caused such bug and how to fix it, any idea?
> The change I made is in my github :https://github.com/BtXin/flux I think it may caused by something changed in the .meta while running mvn install, but I'm not sure how this happened... Any help would be appreciated.
>
> Thanks !
> Sincerely
> Xin Wei
> <error.txt>_______________________________________________
> flux-dev mailing list
> flux-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/flux-dev