Skip to main content

[jxta 2.7 RC1] Problem in start jxta platform

6 replies [Last post]
fra86co
Offline
Joined: 2011-01-18
Points: 0

Hello,
I'm new in using JXTA 2.7 RC1.
I try to run tutorial example like PipeClient.java but obtain always this error:

run:
18-gen-2011 16.10.52 net.jxta.logging.Logging logCheckedInfo
INFO: Line 354 net.jxta.platform.NetworkManager.configure()
Created new configuration. mode = ADHOC
18-gen-2011 16.10.52 net.jxta.logging.Logging logCheckedInfo
INFO: Line 405 net.jxta.platform.NetworkManager.startNetwork()
Starting JXTA Network! MODE = ADHOC, HOME = file:/E:/FRANCESCO/Documenti/NetBeansProjects/JXTA_2.7/.cache/PipeClient
18-gen-2011 16.10.52 net.jxta.logging.Logging logCheckedInfo
INFO: Line 158 net.jxta.impl.membership.pse.PSEUtils.<init>()
Loaded Security Providers into system class loader
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 292 net.jxta.peergroup.WorldPeerGroupFactory.newWorldPeerGroup()
Making a new World Peer Group instance using : net.jxta.impl.peergroup.Platform
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 308 net.jxta.impl.cm.Srdi.clearSrdi()
Clearing SRDI for null
18-gen-2011 16.10.53 net.jxta.impl.cm.InMemorySrdi clearSrdi
INFO: Clearing SRDIs for urn:jxta:jxta-WorldGroup[0,797592032] / [899205949]
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 679 net.jxta.impl.peergroup.GenericPeerGroup.loadModule()
Loaded privileged module : PSE Membership Service (net.jxta.impl.membership.pse.PSEMembershipService)
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 331 net.jxta.impl.membership.pse.PSEMembershipService.startApp()
PSE Membmership Service started.
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 539 net.jxta.impl.membership.pse.PSEMembershipService.join()
Initializing the PSE key store.
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 174 net.jxta.impl.membership.pse.PSEConfig.initialize()
Initializing new PSE keystore...
18-gen-2011 16.10.53 net.jxta.logging.Logging logCheckedInfo
INFO: Line 679 net.jxta.impl.peergroup.GenericPeerGroup.loadModule()
Loaded privileged module : Always Access Service (net.jxta.impl.access.always.AlwaysAccessService)
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/channel/ServerChannelFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at net.jxta.impl.loader.RefJxtaLoader.locateModuleImplAdvertisement(RefJxtaLoader.java:728)
at net.jxta.impl.loader.RefJxtaLoader.locateModuleImplementations(RefJxtaLoader.java:671)
at net.jxta.impl.loader.RefJxtaLoader.locateModuleImplementations(RefJxtaLoader.java:583)
at net.jxta.impl.loader.RefJxtaLoader.findClass(RefJxtaLoader.java:310)
at net.jxta.impl.loader.RefJxtaLoader.loadClass(RefJxtaLoader.java:370)
at net.jxta.impl.loader.RefJxtaLoader.loadClass(RefJxtaLoader.java:349)
at net.jxta.impl.loader.RefJxtaLoader.findModuleImplAdvertisement(RefJxtaLoader.java:487)
at net.jxta.impl.peergroup.GenericPeerGroup.loadModule(GenericPeerGroup.java:753)
at net.jxta.impl.peergroup.StdPeerGroup.loadAllModules(StdPeerGroup.java:295)
at net.jxta.impl.peergroup.StdPeerGroup.initFirst(StdPeerGroup.java:842)
at net.jxta.impl.peergroup.Platform.initFirst(Platform.java:214)
at net.jxta.impl.peergroup.GenericPeerGroup.init(GenericPeerGroup.java:907)
at net.jxta.peergroup.WorldPeerGroupFactory.newWorldPeerGroup(WorldPeerGroupFactory.java:312)
at net.jxta.peergroup.WorldPeerGroupFactory.<init>(WorldPeerGroupFactory.java:182)
at net.jxta.peergroup.NetPeerGroupFactory.<init>(NetPeerGroupFactory.java:203)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:408)
at tutorial.pipe.PipeClient.<init>(PipeClient.java:115)
at tutorial.pipe.PipeClient.main(PipeClient.java:136)
Caused by: java.lang.ClassNotFoundException: org.jboss.netty.channel.ServerChannelFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 20 more
COSTRUZIONE INTERROTTA (tempo totale: 6 secondi)

Anyone can help me??

Edit: I'am also usig jxta 2.5 in a separate project.
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gritche
Offline
Joined: 2010-12-27
Points: 0

Hello,
Did you check if netty jar is in your classpath?
If you use maven to run this exemple, change the optional value of org.jboss.netty artifact from true to false. This will force maven to include the dependency in your classpath.

fra86co
Offline
Joined: 2011-01-18
Points: 0

Hello gritche,

thank you for your answer.
This is my classpath:
E:\FRANCESCO\Documenti\NetBeansProjects\JXTA_2.7\lib\jxse-2.7-RC1.jar;
E:\FRANCESCO\Documenti\NetBeansProjects\JXTA_2.7\lib\bcprov-jdk14.jar;
E:\FRANCESCO\Documenti\NetBeansProjects\JXTA_2.7\build\classes;
E:\FRANCESCO\Documenti\NetBeansProjects\JXTA_2.7\src
and there is no trace of netty jar.
Do you know what this jar is? Is necessary for jxta 2.7 application? Where i can download it?
Thank you again.

a29044
Offline
Joined: 2010-12-03
Points: 0

Try to import this jar to your classpath http://rapidshare.com/files/443526739/httptunnel-0.92.jar
I download it from a repository of the JXSE.

By the way, my peer cannot connect to my RDV in 2.7 Beta and RC1.
Can you test this problem and post the result for me ?

marcelocbf
Offline
Joined: 2009-11-30
Points: 0

Can you please post the httptunnel-0.92.jar again ? because the rapidshare link is not available anymore and I can't find this library anywhere.

Thanks in advance

fra86co
Offline
Joined: 2011-01-18
Points: 0

I've tried the connectivitymonitoring tutorial in jxta 2.6 tutorial source.
The peer and the rv are correctly connect each other.
The only error is that the peer (edge) doesn't see that the rdv as received is connection request and so doesn't report any rdv in the getLocalRendezVousView() method.

fra86co
Offline
Joined: 2011-01-18
Points: 0

Hello a29044,
it' works !! I've also added others jar to my classpath (jetty,javax.servlet,netty,h2...).
In any way it works also by deactivating the http:

NetworkConfigurator nc = manager.getConfigurator();
nc.setHttp2Enabled(false);

Im having also problem with RendezVous connection.