【问题标题】:Deployment error on TomcatTomcat 上的部署错误
【发布时间】:2015-12-31 13:39:19
【问题描述】:

我正在 Eclipse Mars、JDK 1.7 和 Tomcat 6 中部署一个 mavenize Web 项目

这是例外

    06/01/2016 11:30:06,962 ERROR org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:177) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ajaxFacade' defined in class path resource [applicationContext-ajax.xml]: Can't resolve reference to bean 'posanetService' while setting property 'posanetService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tunisiana.posanet.service.impl.DefaultPosanetService#19ca9bb' defined in class path resource [applicationContext-service.xml]: Can't resolve reference to bean 'invoiceService' while setting property 'invoiceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.RegexpMethodPointcutAdvisor#46f6ad' defined in class path resource [applicationContext-service.xml]: Can't resolve reference to bean 'generatePaymentReferenceAdvice' while setting property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'threadlocalTargetSource' defined in class path resource [applicationContext-common.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'targetClass' of bean class [org.springframework.aop.target.ThreadLocalTargetSource]: Bean property 'targetClass' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tunisiana.posanet.service.impl.DefaultPosanetService#19ca9bb' defined in class path resource [applicationContext-service.xml]: Can't resolve reference to bean 'invoiceService' while setting property 'invoiceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.RegexpMethodPointcutAdvisor#46f6ad' defined in class path resource [applicationContext-service.xml]: Can't resolve reference to bean 'generatePaymentReferenceAdvice' while setting property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'threadlocalTargetSource' defined in class path resource [applicationContext-common.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'targetClass' of bean class [org.springframework.aop.target.ThreadLocalTargetSource]: Bean property 'targetClass' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.RegexpMethodPointcutAdvisor#46f6ad' defined in class path resource [applicationContext-service.xml]: Can't resolve reference to bean 'generatePaymentReferenceAdvice' while setting property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'threadlocalTargetSource' defined in class path resource [applicationContext-common.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'targetClass' of bean class [org.springframework.aop.target.ThreadLocalTargetSource]: Bean property 'targetClass' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'threadlocalTargetSource' defined in class path resource [applicationContext-common.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'targetClass' of bean class [org.springframework.aop.target.ThreadLocalTargetSource]: Bean property 'targetClass' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?
org.springframework.beans.NotWritablePropertyException: Invalid property 'targetClass' of bean class [org.springframework.aop.target.ThreadLocalTargetSource]: Bean property 'targetClass' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?

【问题讨论】:

    标签: java eclipse spring maven tomcat


    【解决方案1】:

    将 cglib.jar 和 asm.jar 添加到您的类路径(或 pom.xml 中的依赖项)

    【讨论】:

    • 嗨@zied,我没有找到文件!
    • 所有的cmets都被删除了
    • thnx @zied 对不起,但我不明白:为什么你没有把 .war 生成的文件发给我? :o 因为这个文件夹不被认为是我可以导入的项目
    • 其实我在tomcat上部署了war然后我直接对文件夹进行了修改。因为我没有新的战争。
    • 那我该怎么办?我想我什至不能在 Tomcat 中部署它,因为我也需要 .war 吗?
    猜你喜欢
    • 1970-01-01
    • 2012-01-04
    • 1970-01-01
    • 2011-12-28
    • 2014-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多