thank you for your attention, and I'll try it

On May 10, 4:05 pm, "Artashes Hovasapyan"
<artashes.hovasap...@gmail.com> wrote:
> Hi,
>
> Stack trace says it clearly - you are have more than one bean of type
> EmailApplicationControllerBean. Try to reconfigure the autowiring in
> EmailController. You can autowire by name, or exclude certain beans from
> being autowiring candidates by setting autowire-candidate attribute of the
> <bean /> element to false.
>
> --
> Regards,
> Artashes Hovasapyan
>
> -----Original Message-----
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
>
> [mailto:java-ee-j2ee-programming-with-pass...@googlegroups.com] On Behalf Of
> raram hakim
> Sent: Monday, May 10, 2010 6:07 AM
> To: Java EE (J2EE) Programming with Passion!
> Subject: [java ee programming] Error called sessionsbeans in webapplications
> using spring
>
> hi
> I have an error when I create web applications using EJB. with session
> beans, JPA, and springController.
>
> when I called sessionbeans into web applications using Spring.
> @Controller
> @RequestMapping("/mail.app")
> public class EmailController {
> @ Autowired
> private  EmailApplicationControllerBean mailService;
>
> I have this error:
> : Error creating bean with name 'emailController': Autowiring of
> fields failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Could not
> autowire field: private
> com.sss.mail.join.controller.bean.EmailApplicationControllerBean
> com.sss . email.spring.Application.EmailController.mailService; nested
> exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> unique bean of type
> [com.sss.mail.join.controller.bean.EmailApplicationControllerBean] is
> defined: Unsatisfied dependency of type [class
> com.sss.mail.join.controller.bean.EmailApplicationControllerBean]:
> Expected at least 1 matching bean
>
> maybe anyone knows a solution should i do
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/java-ee-j2ee-programming-with-passion?...
> l=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/java-ee-j2ee-programming-with-passion?...

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to