jlm
Aug 13th, 2004, 02:00 PM
This is my first project using spring frameworks. I am getting this error when setting my datasource using the jndi lookup. Does this mean that I can't use spring if I am using a V4 datasource?
8/13/04 9:36:41:078 PDT] 673c1ebe XmlWebApplica I org.springframework.web.context.support.XmlWebAppl icationContext Refreshing listeners
[8/13/04 9:36:41:078 PDT] 673c1ebe DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [propertyConfigurer,messageSource,myDataSource,sess ionFactory,transactionManager,clinicTarget,clinic]; Root of BeanFactory hierarchy]
[8/13/04 9:36:41:078 PDT] 673c1ebe DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Creating shared instance of singleton bean 'myDataSource'
[8/13/04 9:36:41:578 PDT] 673c1ebe DSFactoryImpl E CONM7019E: Attempted to use a 4.0 DataSource from a version 2.3 (or higher) servlet. Invalid configuration.
[8/13/04 9:36:41:703 PDT] 673c1ebe Helpers W NMSV0605W: A Reference object looked up from the context "localhost/nodes/localhost/servers/server1" with the name "jdbc/xep" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
Reference Factory Class Name: com.ibm.websphere.advanced.cm.factory.DataSourceFa ctory$ResourceReferenceObjectFactory
Reference Factory Class Location URLs: <null>
Reference Class Name: com.ibm.ejs.cm.portability.PortableDataSource
Exception data follows:
javax.naming.NamingException: Attempted to use a 4.0 DataSource from a 2.3 (or higher) servlet. Invalid configuration.
at com.ibm.ejs.cm.DSFactoryImpl.verifyConfiguration(D SFactoryImpl.java:237)
at com.ibm.websphere.advanced.cm.factory.DataSourceFa ctory$ResourceReferenceObjectFactory.getObjectInst ance(DataSourceFactory.java:733)
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyP laceholderConfigurer" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
<property name="location"><value>/WEB-INF/jdbc.properties</value>
</property>
</bean>
<!-- Message source for this context, loaded from localized "messages_xx" files
-->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundle MessageSource" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
<property name="basename"><value>messages</value>
</property>
</bean>
<!-- ========================= PERSISTENCE DEFINITIONS ========================= -->
<!--
- Makes a JNDI DataSource available as bean reference, assuming a J2EE environment.
- By default, "java:comp/env/" will be prepended if not already specified.
-->
<bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"><value>jdbc/xep</value></property>
</bean>
8/13/04 9:36:41:078 PDT] 673c1ebe XmlWebApplica I org.springframework.web.context.support.XmlWebAppl icationContext Refreshing listeners
[8/13/04 9:36:41:078 PDT] 673c1ebe DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [propertyConfigurer,messageSource,myDataSource,sess ionFactory,transactionManager,clinicTarget,clinic]; Root of BeanFactory hierarchy]
[8/13/04 9:36:41:078 PDT] 673c1ebe DefaultListab I org.springframework.beans.factory.support.DefaultL istableBeanFactory Creating shared instance of singleton bean 'myDataSource'
[8/13/04 9:36:41:578 PDT] 673c1ebe DSFactoryImpl E CONM7019E: Attempted to use a 4.0 DataSource from a version 2.3 (or higher) servlet. Invalid configuration.
[8/13/04 9:36:41:703 PDT] 673c1ebe Helpers W NMSV0605W: A Reference object looked up from the context "localhost/nodes/localhost/servers/server1" with the name "jdbc/xep" was sent to the JNDI Naming Manager and an exception resulted. Reference data follows:
Reference Factory Class Name: com.ibm.websphere.advanced.cm.factory.DataSourceFa ctory$ResourceReferenceObjectFactory
Reference Factory Class Location URLs: <null>
Reference Class Name: com.ibm.ejs.cm.portability.PortableDataSource
Exception data follows:
javax.naming.NamingException: Attempted to use a 4.0 DataSource from a 2.3 (or higher) servlet. Invalid configuration.
at com.ibm.ejs.cm.DSFactoryImpl.verifyConfiguration(D SFactoryImpl.java:237)
at com.ibm.websphere.advanced.cm.factory.DataSourceFa ctory$ResourceReferenceObjectFactory.getObjectInst ance(DataSourceFactory.java:733)
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyP laceholderConfigurer" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
<property name="location"><value>/WEB-INF/jdbc.properties</value>
</property>
</bean>
<!-- Message source for this context, loaded from localized "messages_xx" files
-->
<bean id="messageSource" class="org.springframework.context.support.ResourceBundle MessageSource" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
<property name="basename"><value>messages</value>
</property>
</bean>
<!-- ========================= PERSISTENCE DEFINITIONS ========================= -->
<!--
- Makes a JNDI DataSource available as bean reference, assuming a J2EE environment.
- By default, "java:comp/env/" will be prepended if not already specified.
-->
<bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName"><value>jdbc/xep</value></property>
</bean>