Hi, here is the spring config file:
----------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"
default-autowire="byName">
<!-- Add new DAOs here -->
<!--PersonManager-START-->
<bean id="personManager"
class="org.appfuse.service.impl.GenericManagerImpl">
<constructor-arg>
<bean class="org.appfuse.dao.hibernate.GenericDaoHibernate" >
<constructor-arg value="com.mycompany.app.model.Person"/>
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
</constructor-arg>
</bean>
<!--PersonManager-END-->
<!--AuctionItemManager-START-->
<bean id="auctionItemManager"
class="org.appfuse.service.impl.GenericManagerImpl">
<constructor-arg>
<bean class="org.appfuse.dao.hibernate.GenericDaoHibernate" >
<constructor-arg
value="com.mycompany.app.model.AuctionItem"/>
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
</constructor-arg>
</bean>
<!--AuctionItemManager-END-->
<!-- Add new Managers here -->
</beans>
----------------------------------------------------------------------------------------
Justin
tibi-3 wrote:
>
> seems ok...
>
> can you post the full config..
>
> maybe you can rerun the appfuse:gen for the two of them
>
> tibi
>
> justin_wang wrote:
>> Hi, I use appfuse:gen to generate from two bean: Peason and AuctionItem.
>> here
>> is the config for PersonManager and AuctionItemManager:
>>
>> <bean id="personManager"
>> class="org.appfuse.service.impl.GenericManagerImpl">
>> <constructor-arg>
>> <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate">
>> <constructor-arg value="com.mycompany.app.model.Person"/>
>> <property name="sessionFactory" ref="sessionFactory"/>
>> </bean>
>> </constructor-arg>
>> </bean>
>> <!--PersonManager-END-->
>>
>> <!--AuctionItemManager-START-->
>> <bean id="auctionItemManager"
>> class="org.appfuse.service.impl.GenericManagerImpl">
>> <constructor-arg>
>> <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate">
>> <constructor-arg
>> value="com.mycompany.app.model.AuctionItem"/>
>> <property name="sessionFactory" ref="sessionFactory"/>
>> </bean>
>> </constructor-arg>
>> </bean>
>>
>> How to change the config?
>> thanks,
>>
>> Justin
>>
>>
>>
>> tibi-3 wrote:
>>
>>> seems to be a spring config problem
>>>
>>> how does your auctionItemManager looks like... it seems to be able to
>>> map to personManager.
>>>
>>> tibi
>>>
>>> justin_wang wrote:
>>>
>>>> Hi, here is the error message.
>>>>
>>>> -----------------------------------------------------------------
>>>> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>>>> creating bean with name
>>>> 'com.mycompany.app.webapp.action.PersonFormTest':
>>>> Unsatisfied dependency expressed through bean property 'personManager':
>>>> There are 2 beans of type [org.appfuse.service.GenericManager]
>>>> available
>>>> for
>>>> autowiring by type: [personManager, auctionItemManager]. There should
>>>> have
>>>> been exactly 1 to be able to autowire property 'personManager' of bean
>>>> 'com.mycompany.app.webapp.action.PersonFormTest'. Consider using
>>>> autowiring
>>>> by name instead.
>>>> -----------------------------------------------------------------
>>>>
>>>>
>>>> tibi-3 wrote:
>>>>
>>>>
>>>>> waht is your error ??
>>>>>
>>>>> tibi
>>>>>
>>>>> justin_wang wrote:
>>>>>
>>>>>
>>>>>> is there some command that can delete all the stuff related to
>>>>>> Person?
>>>>>> I got some error when I install Person, the result is I can't
>>>>>> jetty:run-war.
>>>>>> I can't fix it now, but I want to know if I can delete all the stuff
>>>>>> related
>>>>>> to Person so I can jetty:run-war.
>>>>>> Thanks for your help.
>>>>>>
>>>>>>
>>>>>> tibi-3 wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> use source controle ;)
>>>>>>>
>>>>>>> tibi
>>>>>>>
>>>>>>> justin_wang wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> after I generate Person and install it, can I uninstall it?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/can-I-uninstall-Person-tf4432022s2369.html#a12657170
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]