java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 Servlet
 Technote (troubleshooting)
 
Problem(Abstract)
Receive message java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 Servlet
 
Resolving the problem
This message was caused by a J2EE 1.2 Application with Servlet 2.2 that was trying to access a database using a new IBM WebSphere Application Server version 5 data source.


There are restrictions on what release applications can use version 5 or version 4 data sources in WebSphere Application Server V5.0 (any modification level).

A good explanation is located in the WebSphere Application Server V5.0 Information Center:
http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp?
topic=/com.ibm.wasee.doc/info/ee/ae/cdat_datasor.html


Here is the relevant text:

Choice of data source

  • J2EE 1.2 application - all enterprise beans, JDBC applications, or Servlets 2.2 components must use the 4.0 data source.
  • J2EE 1.3 application -
    • EJB 1.1 Module - all EJB 1.0 (any release) beans must use the 4.0 data source.
    • EJB 2.0 Module - enterprise beans that include container-managed persistence (CMP) Version 2.0 and 1.0 (any release) must use the new data source.
    • JDBC applications and Servlet 2.3 - must use the new data source.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1148389
IBM Group: Software Group
Modified date: Oct 18, 2004