有一个类直接运行可以发送邮件
但用jsf调用就出错了
2007-08-25 16:18:53,109 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jeeUserBll ' defined in ServletContext resource [/WEB-INF/beans/service-lsm.xml]: Cannot create inner bean 'cn.javaeecn.bll.user.impl.JeeUserBllImpl#fffa61 ' while setting bean property 'target '; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'cn.javaeecn.bll.user.impl.JeeUserBllImpl#fffa61 ' defined in ServletContext resource [/WEB-INF/beans/service-lsm.xml]: Class that bean class [cn.javaeecn.bll.user.impl.JeeUserBllImpl] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'cn.javaeecn.bll.user.impl.JeeUserBllImpl#fffa61 ' defined in ServletContext resource [/WEB-INF/beans/service-lsm.xml]: Class that bean class [cn.javaeecn.bll.user.impl.JeeUserBllImpl] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
请问要注意什么!!搞了一天一夜了!!!
------解决方案--------------------
不会,大概翻译了下报错信息
说是上下文设定初值失败
用 name \ 'jeeUserBll\ ' 创造Bean错误在 ServletContext 资源定义
[/WEB-INF/beans/service-lsm.xml]: 不能够产生内部的Bean
------解决方案--------------------
nested exception is java.lang.NoClassDefFoundError: javax/mail/MessagingException
是不是没导入mail.jar 和其他javamail的包。
------解决方案--------------------
不懂
ding.........
------解决方案--------------------
有2种情况
1,bean没有设置好,你试下用bean做其他的事情,是好的吗?
2,你看下mail jar包有没有加载对?