雄猫+ Struts + OpenID 引发 ServletExceptions
我正在使用 Tomcat 5.5.x 和 Struts 1.2 来运行一个相当大的网站(大型 wrt 源代码)。我希望将 OpenID 添加到我的网站,主要是为了访问属性交换以帮助加速注册过程。
我尝试使用的每个 OpenID Java 实现都会导致 ServletException。追踪这一点非常困难,但似乎仅仅实例化任何使用 Apache HttpClient 的类都会导致崩溃。
这是我可以在 JVM 中解决的配置问题,还是尝试从入站 Http 请求中发起出站 Http 请求肯定是错误的?
I am working with Tomcat 5.5.x with Struts 1.2 to run a rather large website (large w.r.t. source code). I'm looking to add OpenID to my website, mostly to access attribute exchange to help accelerate the registration process.
Every Java implementation for OpenID I have attempted to use will cause a ServletException. Tracing this has been very difficult, but it seems merely instancing any class that makes use of Apache HttpClient will cause the crash.
Is this a configuration problem I can address in the JVM, or is it positively wrong to try to initiate an outbound Http request from within an inbound Http request?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来错误出在键盘和椅子之间。虽然我已将库添加到构建路径中,但我认为 Eclipse 会自动将这些 jar 移至 lib 文件夹中,但我错了。感谢您让我自己解决这个问题,以及群众的智慧等等。
Well it appears the error was in between the keyboard and the chair. Although I had added the libraries to my build path, I assumed Eclipse would automatically move these jars into the lib folder, but I was wrong. Thanks for letting me figure this one out on my own, wisdom of the crowd and all that.