0

我正在尝试设置SocialAuth,由网站定义为:

“用于通过 Google、Yahoo、Facebook、Twitter、LinkedIn、FourSquare、MySpace 和其他 Open ID 提供商进行注册和验证的 Java 库”

它应该像在http://opensource.brickred.com/socialauthdemo/上一样工作

我已经完全按照页面http://code.google.com/p/socialauth/wiki/SpringSample上的描述设置了工作区,但有一些差异(版本等)。我的图书馆内容如下:

  • aopalliance-1.0.jar
  • commons-codec.jar
  • commons-httpclient-3.1.jar
  • commons-logging-1.1.jar
  • json-20080701.jar openid4java.jar
  • org.springframework.aop-3.0.1.RELEASE-A.jar
  • org.springframework.asm-3.0.1.RELEASE-A.jar
  • org.springframework.aspects-3.0.1.RELEASE-A.jar
  • org.springframework.beans-3.0.1.RELEASE-A.jar
  • org.springframework.context-3.0.1.RELEASE-A.jar
  • org.springframework.context.support-3.0.1.RELEASE-A.jar
  • org.springframework.core-3.0.1.RELEASE-A.jar
  • org.springframework.expression-3.0.1.RELEASE-A.jar
  • org.springframework.instrument-3.0.1.RELEASE-A.jar
  • org.springframework.instrument.tomcat-3.0.1.RELEASE-A.jar
  • org.springframework.jdbc-3.0.1.RELEASE-A.jar
  • org.springframework.jms-3.0.1.RELEASE-A.jar
  • org.springframework.orm-3.0.1.RELEASE-A.jar
  • org.springframework.oxm-3.0.1.RELEASE-A.jar
  • org.springframework.test-3.0.1.RELEASE-A.jar
  • org.springframework.transaction-3.0.1.RELEASE-A.jar
  • org.springframework.web-3.0.1.RELEASE-A.jar
  • org.springframework.web.portlet-3.0.1.RELEASE-A.jar
  • org.springframework.web.servlet-3.0.1.RELEASE-A.jar
  • org.springframework.web.struts-3.0.1.RELEASE-A.jar
  • socialauth-2.0-beta3.jar socialauth-spring-2.0-beta2.jar

当我运行 Tomcat 服务器时,我得到了 org.springframework.beans.factory.BeanCreationException。完整的日志在这里

我是 Spring 框架的新手,因此在错误消息中有点迷失。
任何帮助是极大的赞赏。

TIA,
詹姆斯


编辑

上面的问题暂时没有了。但是,当我点击 url 时,我得到了一个新的:
http://localhost:8080/springsocialauthdemo/socialAuth.do?id=facebook

2011 年 8 月 26 日上午 10:20:25 org.springframework.web.servlet.DispatcherServlet noHandlerFound 警告:在 DispatcherServlet 中找不到带有 URI [/springsocialauthdemo/socialAuth.do] 的 HTTP 请求的映射,名称为“springsocialauthdemo”

可能这是一个太蹩脚的问题,但我只是在我工作的时候发布了它。
感谢帮助 :)

4

1 回答 1

2

查看堆栈跟踪的底部 - 您在类路径上缺少cglib,并且您需要一个具体类的范围代理 - 添加它。

于 2011-08-25T12:37:22.450 回答