【问题标题】:org.springframework.beans.factory.BeanCreationException in SocialAuth (Spring)SocialAuth(Spring)中的 org.springframework.beans.factory.BeanCreationException
【发布时间】:2011-11-03 15:36:41
【问题描述】:

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

"用于通过 Google 注册和认证的 Java 库, Yahoo、Facebook、Twitter、LinkedIn、FourSquare、MySpace 等开放 ID 提供者”

它应该像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。 完成日志here

我是 Spring 框架的新手,因此在错误消息中有点迷失。
非常感谢任何帮助。

TIA,
詹姆斯


编辑

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

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

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

【问题讨论】:

    标签: java spring spring-mvc socialauth


    【解决方案1】:

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

    【讨论】:

    • 它在 root-context.xml 中,就像您在 code.google.com/p/socialauth/wiki/SpringSample 上看到的一样
    • 跨度>
    • 感谢 Bozho,这个错误现在已经消失了。但是,我遇到了一个新的。请检查上面的编辑。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-04
    • 1970-01-01
    • 2020-12-20
    • 1970-01-01
    相关资源
    最近更新 更多