RE: [java ee programming] Error called sessionsbeans in webapplications using spring

2010-05-10 Thread Artashes Hovasapyan
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 at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?h
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 at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en


[java ee programming] Lab 4016 (JspBookstore) Homework Questions

2010-05-10 Thread BillyRay
A couple of questions regarding the homework assignment for the
JspBookstore lesson:

1. Are we supposed to implement the sale price logic using custom
tags as was done in the Bookstore3 example?
2. Do we need to implement the sale price logic throughout the
entire application, or only on the catalog page that is shown in the
homework requirements section?

Thanks!

BillyRay

-- 
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