List Info

Thread: orchestra support for RI 1.2




orchestra support for RI 1.2
user name
2007-09-24 13:46:22
Does Orchestra support JSF 1.2, Reference Impelementation?
I am getting this error:
"Bean property 'dataSource' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?"
 
on tomcat 5.5 (spring 2, JSF RI 1.2).
 
Do you see any error on my applicationContext.xml?
 
 ;
 <import resource="classpath*:/META-INF/spring-orchestra-init.xml" />
 
 
 
 <bean
  class="org.springframework.beans.factory.config.CustomScopeConfigurer"&gt;
 &nbsp;<property name="scopes">
&nbsp;  <map>
&nbsp; &nbsp; &lt;entry key="conversation"&gt;
 &nbsp;   ;<bean
&nbsp;   ; &nbsp;class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
&nbsp;   ; &nbsp;<property name="timeout" value="30" />
&nbsp; &nbsp;   ;<property name="advices">
  ; &nbsp; &nbsp; &lt;list>
  ; &nbsp; &nbsp; &nbsp;<ref
 &nbsp; &nbsp; &nbsp; &nbsp; bean="persistentContextConversationInterceptor" />
&nbsp; &nbsp;   ; </list>
&nbsp;   ; &nbsp;</property>
&nbsp; &nbsp;  </bean>
&nbsp; &nbsp; </entry&gt;
 &nbsp; </map>;
 &nbsp;</property>
&nbsp;</bean>
 
 <bean id="persistentContextConversationInterceptor"
  class="org.apache.myfaces.orchestra.conversation.spring.PersistenceContextConversationInterceptor">
&nbsp; <property name="persistenceContextFactory"
 &nbsp; ref="persistentContextFactory" />
&nbsp;</bean>
 
 <bean id="persistentContextFactory"
  ;class="org.apache.myfaces.orchestra.conversation.persistenceContexts.JpaPersistenceContextFactory">
  <property name="entityManagerFactory"
&nbsp; &nbsp;ref="entityManagerFactory" />
&nbsp;</bean>
 
 <!-- persistence -->
&nbsp;<bean
 &nbsp;class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
 
 <tx:annotation-driven />
 
 <bean id="transactionManager"
  class="org.springframework.orm.jpa.JpaTransactionManager">;
 &nbsp;<property name="entityManagerFactory"
&nbsp; &nbsp;ref="entityManagerFactory" />
&nbsp;</bean>
 
 <bean id="dataSource"
&nbsp; class="org.apache.commons.dbcp.BasicDataSource"
 &nbsp;destroy-method="close">
&nbsp; &lt;property name="driverClassName"
 &nbsp; value="org.firebirdsql.jdbc.FBDriver" />
&nbsp; &lt;property name="url"
 &nbsp; value="jdbc:firebirdsql://localhost/C:/progetti/data/firebird/orchestra.FDB" />
&nbsp; &lt;property name="username" value="sysdba" />
&nbsp; &lt;property name="password" value="masterkey" />
&nbsp;</bean>
 
 <bean id="managedDataSource"
 &nbsp;class="org.apache.myfaces.orchestra.connectionManager.ConnectionManagerDataSource"&gt;
 &nbsp;<property name="dataSource" ref="dataSource" />
&nbsp; <;property name="listeners">;
 &nbsp; &lt;bean
&nbsp; &nbsp; class="org.apache.myfaces.examples.lib.LoggingConnectionManagerListener" />
&nbsp; &lt;/property>
 ;</bean&gt;
&nbsp;
 
 
 <bean id="entityManagerFactory"
&nbsp; class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
&nbsp; <property name="persistenceUnitName" value="default" />
&nbsp; <;property name="dataSource" ref="managedDataSource" />
&nbsp; <;property name="jpaVendorAdapter">
&nbsp; &nbsp;<bean
 &nbsp; &nbsp;class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
 &nbsp; &nbsp;<property name="showSql" value="true" />
&nbsp; &nbsp; &lt;property name="databasePlatform"
   ; &nbsp;value="org.hibernate.dialect.FirebirdDialect" />
&nbsp; &nbsp;</bean>
&nbsp; &lt;/property>
 </bean&gt;
&nbsp;
 
 
 <!-- BEAN -->
 
 <bean name="userListBean"
 &nbsp;class="agori.orchestrapp.bean.UserListBean" scope="request"
&nbsp; autowire="byName">
&nbsp; 
 </bean>
 
</beans>
&nbsp;
 
 
thanks.
Re: orchestra support for RI 1.2
country flaguser name
Austria
2007-09-25 03:02:48
Hi!
> Does Orchestra support JSF 1.2, Reference
Impelementation?
Yes.
> I am getting this error:
> "Bean property 'dataSource' is not writable or has
an invalid setter 
> method. Does the parameter type of the setter match the
return type of 
> the getter?"
This seems to be a problem with your Spring configuration.
Is there any additional information about which bean Spring
complains about?

As a test get the "managedDataSource" out of the
chain. With a correct 
JPA implementation you should not require it. You can add it
later if it 
turns out that Hibernate in JPA mode is b0rken there too.

Ciao,
Mario


OT: Unsubscribe
country flaguser name
Poland
2007-09-25 04:26:29
Hi guys

    Can't find anywhere address to unsubscribe from this
list, can anybody 
help?

Regards,
Michal 


Re: OT: Unsubscribe
user name
2007-09-25 04:35:57
Hi,

this information is included in every mail on this list.
take a look
into the mail headers:

List-Help: <mailto:users-helpmyfaces.apache.org>
List-Unsubscribe: <mailto:users-unsubscribemyfaces.apache.org>
List-Post: <mailto:usersmyfaces.apache.org>
List-Id: <users.myfaces.apache.org>


Regards,
    Volker

2007/9/25, Michal Glowacki <mgprojektpro.internetdsl.pl>:
> Hi guys
>
>     Can't find anywhere address to unsubscribe from
this list, can anybody
> help?
>
> Regards,
> Michal
>
>

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )