来自netty git repository的netty安全聊天示例中的编译错误(Compilation error in netty secure chat example from netty git repository)
我将以下netty示例地址中的所有类复制到我的java项目中: https : //github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat
我从这个文件中添加了所有的jar(没有包含源代码的jar): http : //dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2
但是我的类中有编译错误,因为在上面地址的jar中找不到SslContextBuilder类。
您是否会告诉我是否跳过包含SslContextBuilder类的jar或者是使用SslContextBuilder类的正确上下文来处理安全聊天的代码示例。
最诚挚的问候,Aurelian
I copied into my java project all the classes from the following netty example address: https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/securechat
and I added all the jars (without the jars that contain source code) from this file: http://dl.bintray.com/netty/downloads/netty-4.0.27.Final.tar.bz2
However I have compilation errors in my classes because the SslContextBuilder class cannot be found inside the jars from the above address.
Would you tell me if i skipped a jar which contains the SslContextBuilder class or which is the right context to use the SslContextBuilder class in order to work the examples of code for the secure chat.
Best Regards, Aurelian
原文:https://stackoverflow.com/questions/29661753
满意答案
要在Zope2平台上使用Grok(由Plone使用),您需要安装正确版本的
five.grok
软件包 。Grok是针对Zope Toolkit开发的,而ZTK中的发布者套件与Zope2发布者提供的API有略微不同。
five.grok
桥梁的区别。 但是你需要有正确的版本才能进行正确的匹配。对于Plone 4.1(Zope 2.13),请确保使用
five.grok
1.3.1或更高版本:
- 修复重定向方法以正常工作。 与Zope 3不同,它不支持可信。
如果您要升级到Plone 4.2,则包含的versions.cfg文件中将包含正确的版本引脚。
To use Grok on the Zope2 platform (used by Plone), you need to install the correct version of the
five.grok
package.Grok is developed against the Zope Toolkit, and the publisher package in the ZTK has a slightly different API than what the Zope2 publisher offers.
five.grok
bridges that difference. But you need to have the right version to make the correct match.For Plone 4.1 (Zope 2.13), make sure you use
five.grok
version 1.3.1 or newer:
- Fix the redirect method to properly work. Unlike in Zope 3, it doesn't support trusted.
If you were to upgrade to Plone 4.2, the right version pin is included in the included versions.cfg file.
相关问答
更多是否可以使用five.grok在Plone 4.1中注册portlet?(Is it possible to use five.grok to register portlets in Plone 4.1?)
Plone 4中是否有一些注销挂钩?(Is there some logout hook in Plone 4?)
CalendarWidget打破了Plone 4.2.4 + PloneFormGen(CalendarWidget broken on Plone 4.2.4 + PloneFormGen)
使用Plone调用grok.View时,self.redirect会导致TypeError(self.redirect causes TypeError when calling grok.View with Plone)
词汇源,函数不可迭代,在Plone 4.1中具有灵巧性(Vocabulary source, function is not iterable, with dexterity in Plone 4.1)
Plone中的Javascript表单处理问题(Javascript form processing issue in Plone)
Plone / Grok - 在使用“zopeskel plone”构建的产品中,能否与plone.directives产生冲突?(Plone/Grok - In a product built using “zopeskel plone”, can grok conflict with plone.directives?)
Plone REST API:如何通过对plone进行REST调用来操纵plone上的用户?(Plone REST API: How do I manipulate user on plone by making REST calls on plone?)
Plone plone.app.jquery 1.9.1打破了TinyMCE等?(Plone plone.app.jquery 1.9.1 breaks TinyMCE etc?)
如何测试进行重定向的帮助程序Grok视图(How to test a helper Grok view that makes a redirect)
相关文章
更多[Netty 1] 初识Netty
Netty环境配置
Netty开发环境配置
Netty源码分析
storm学习之Netty代替ZMQ
Netty基于流的传输处理
Netty入门实例-时间服务器
Netty入门实例-使用POJO代替ByteBuf
在Twitter,Netty 4 GC开销降为五分之一
那些年挠头的git
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!