Announcement Announcement Module
Collapse
No announcement yet.
[Xlint:cantFindType] can't determine implemented interfaces of missing type Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Xlint:cantFindType] can't determine implemented interfaces of missing type

    Helo all,

    I am getting the below exception while running on WAS 6.1. Can some one help me understand when and why exactly will this happen! This cfg was working before and all of a sudden i see this error!

    thx in advance!

    [C:\WAS\AppServer\profiles\AppSrv01\installedApps\a bcNode01Cell\tdworkbench.ear\config\ic\root\platfo rm\persistence_configuration.xml]: Cannot resolve reference to bean 'root.platform.persistence.testContext' while setting bean property 'persistenceContexts' with key [testContext]; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'root.platform.persistence.testContext' defined in file [C:\WAS\AppServer\profiles\AppSrv01\installedApps\a bcNode01Cell\tdworkbench.ear\config\ic\root\platfo rm\persistence_configuration.xml]: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionWorld$Reflect ionWorldException: warning can't determine implemented interfaces of missing type com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
    [Xlint:cantFindType]


    Code:
    <?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">
    	<!-- DATA SOURCES -->
    	
    	<bean id="persistence" class="com.persistence.framework.BasicPersistenceManager">
    		<property name="persistenceContexts">
    			<map>
    				<entry key="testContext" value-ref="root.platform.persistence.testContext"/>
    			</map>	
    		</property>
    		
    		<property name="daoAssociations">
    			<map>
    				.....mapping cfg
    			</map>
    		</property>
    	</bean>
    	
    	<bean id="root.platform.persistence.dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    		<property name="jndiName">
    			<value>${datasource.jndi}</value>
    		</property>	
    	</bean>	
    	<!-- HIBERNATE SESSION FACTORIES -->
    	<bean id="root.platform.persistence.sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
    		<property name="dataSource">
    			<ref bean="root.platform.persistence.dataSource"/>
    		</property>
    		<property name="mappingLocations">
    			<list>
    				...mappings
    			</list>
    		</property>
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">net.sf.hibernate.dialect.Oracle9Dialect</prop>
    				<prop key="hibernate.show_sql">false</prop>
    			</props>
    		</property>
    	</bean>
    	
    	<!-- HIBERNATE TEMPLATES -->
    	<bean id="root.platform.persistence.hibernateTemplate" class="org.springframework.orm.hibernate.HibernateTemplate">
    		<property name="sessionFactory">
    			<ref bean="root.platform.persistence.sessionFactory"/>
    		</property>
    	</bean>
    	
    	<!-- JDBC Template -->
    	<bean id="root.platform.persistence.jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
    		<property name="dataSource">
    			<ref bean="root.platform.persistence.dataSource"/>
    		</property>
    	</bean>
    	
    	<!-- TRANSACTION TEMPLATES -->
    	<bean id="root.platform.persistence.transactionManager" class="org.springframework.orm.hibernate.HibernateTransactionManager">
    		<property name="sessionFactory">
    			<ref bean="root.platform.persistence.sessionFactory"/>
    		</property>
    	</bean>
    
    	<bean id="root.platform.persistence.transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
    		<property name="transactionManager">
    			<ref bean="root.platform.persistence.transactionManager"/>
    		</property>
    	</bean>
    
    	<!-- CONTEXTUAL CONFIGURATION -->	
    	<bean id="root.platform.persistence.testContext" class="com.persistence.framework.PersistenceConfigurationBean">
    		<property name="dataSource">
    			<ref bean="root.platform.persistence.dataSource"/>
    		</property>
    		<property name="hibernateTemplate">
    			<ref bean="root.platform.persistence.hibernateTemplate"/>
    		</property>
    		<property name="jdbcTemplate">
    			<ref bean="root.platform.persistence.jdbcTemplate"/>
    		</property>
    		<property name="transactionTemplate">
    			<ref bean="root.platform.persistence.transactionTemplate"/>
    		</property>
    		<property name="useAsDefault">
    			<value>true</value>
    		</property>
    			
    	</bean>
Working...
X