JXTA JXSE 2.7 破坏了 JBoss Netty 库依赖性

发布于 2024-12-05 01:18:39 字数 479 浏览 1 评论 0原文

最近我在研究要使用的 p2p 框架,并遇到了 JXTA。不幸的是,Oracle 决定放弃 JXTA。对于一个好的软件来说真是可惜。无论如何,我遇到的问题是尝试以集合模式启动节点。

NetworkManager 管理器 = new NetworkManager(NetworkManager.ConfigMode.RENDEZVOUS,...);

当我调用 manager.startNetwork(); 时,我收到 NoClassDefFoundError;

有问题的类是: org/jboss/netty/channel/socket/httptunnel/HttpTunnelClientChannelFactory

JXSE 2.7 附带 JBoss netty 3.1.5 GA jar 文件。而且 Netty 的那个版本中确实没有这样的类。

有没有人成功运行 JXSE 会合节点以及使用 JXSE 2.7 的正确 Netty jar 文件应该是什么?

Recently I was investigating p2p framework to use and I came across JXTA. Too bad, Oracle decided to dropped JXTA. Real shame for a nice software. Anyway the problem that I have is trying to start a node in rendezvous mode.

NetworkManager manager = new NetworkManager(NetworkManager.ConfigMode.RENDEZVOUS,...);

I'm getting a NoClassDefFoundError when I call manager.startNetwork();

The class it is having problem with is:
org/jboss/netty/channel/socket/httptunnel/HttpTunnelClientChannelFactory

JXSE 2.7 came with JBoss netty 3.1.5 GA jar file. And there is really no such a class in that release of Netty.

Has anyone successfully ran a JXSE rendezvous node and what should be the right Netty jar file with JXSE 2.7?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

花开浅夏 2024-12-12 01:18:39

试试这个jar文件:http://files.cnblogs.com/cuizhf/httptunnel-0.92.rar

try this jar file :http://files.cnblogs.com/cuizhf/httptunnel-0.92.rar

只是我以为 2024-12-12 01:18:39

以下是如何构建一个 netty JAR,其中包含正确的类集来运行 JXSE 2.7:

  • 从此处下载 git 存储库:
    https://github.com/iainmcgin/netty
    (我刚刚获取了 zip 文件)

  • 使用 maven 构建它:

    cd iainmcgin-netty-5f5c87b (或 zip 文件提供的任何内容)
    
    MVN包
    
  • 构建对我来说失败了,我必须在 pom.xml 文件中添加以下 XML
    标签:

    ;
    <插件存储库>
    JBoss 存储库
    https://repository.jboss.org/nexus/content/repositories/releases
    <名称>JBoss Repo

  • 我从 maven 收到另一条失败消息,但它似乎在名为 target 的子文件夹中创建了 jar 文件。

  • 最后一步是确保运行 JXTA 程序时刚刚构建的 jar 文件 maven 位于类路径中。 (该文件名为 netty-4.0.0.Alpha1-SNAPSHOT.jar)。

Here is how you can build a netty JAR with the correct set of classes in it to run JXSE 2.7:

  • Download the git repository from here:
    https://github.com/iainmcgin/netty
    (I just grabbed the zip file)

  • Build it using maven:

    cd iainmcgin-netty-5f5c87b (or whatever the zip file gives you)
    
    mvn package
    
  • The build failed for me and I had to add the following XML to the pom.xml file, before the
    </project> tag:

    <pluginRepositories>
    <pluginRepository>
    <id>JBoss Repo</id>
    <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
    <name>JBoss Repo</name>
    </pluginRepository>
    </pluginRepositories>

  • I got another fail message from maven, but it seemed to create the jar file OK in a subfolder named target.

  • Final step is to make sure the jar file maven just built is in your classpath when running your JXTA programs. (the file is called netty-4.0.0.Alpha1-SNAPSHOT.jar).

一梦浮鱼 2024-12-12 01:18:39

是否有人成功运行 JXSE 集合节点以及应该是什么
JXSE 2.7 的正确 Netty jar 文件?

是的,我确实做到了。依赖项可在此处获取。在我看来,依赖项可能不在您的类路径上。

Has anyone successfully ran a JXSE rendezvous node and what should be
the right Netty jar file with JXSE 2.7?

Yes, I sure did. The dependencies are available here. It seems to me that the dependencies may not be on your class path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文