|Equinox Issue and Question [message #1004786]
||Wed, 23 January 2013 16:45
| kilosi mesdor
Registered: January 2013
I am looking at the Equinox OSGi framework to run a telnet server that can do dynamic code updates without rebooting (and losing all of the current connections). I have a question and an issue.
I currently start my telnet server (already written) on a Linux box with a nuhup java command. This allows me to start the server, and then log off. Can I attain the same functionality with using Equinox? I haven't seen anything that says I can start it with my loaded bundles and then "leave"/logoff. A requirement is for me NOT to be connected in order to ensure uptime.
If I cannot do this with Equinox, do you know of another framework that can do this?
Issue: [THIS IS NOW RESOLVED!! I had to edit the manifest file.]
I have played around with this a bit, and it seems to work well but I have an issue. I'm using Eclipse to do development.
I am creating two bundles. One bundle will be for the networking code (that holds the sockets) and the other bundle will be the actual server application that is running (let's say it is a chat server portion - so it'll contain all of the functionality to do that).
I wrote up a little test program that has two plug-in bundles. One is the networking code and the other is the chat portion. When the networking bundle tries to create an instance of a data object from the chat bundle, it crashes with the following exception (hello_world is the server and the hdata is the chat portion):
Caused by: java.lang.NoClassDefFoundError: hdata/Data
at java.security.AccessController.doPrivileged(Native Method)
... 11 more
So the Data class from the chat bundle can't be found. I am unsure as to why this is happening as on my Run Configuration I have both of them checked.
It is not possible to have references to another bundle? I thought this was possible.
I suspect that more information will be needed so just ask! I'll be more than happy to provide it.
[Updated on: Wed, 23 January 2013 22:11]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02237 seconds