Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/10/2005, 03:49
consultoriajava
 
Fecha de Ingreso: septiembre-2005
Ubicación: Madrid, España
Mensajes: 18
Antigüedad: 19 años, 4 meses
Puntos: 0
Prueba con lo siguiente

Intenta recuperar en primer lugar el contexto y posteriormente hacer un lookup de tu fuente de datos:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
ds = (DataSource) envCtx.lookup("jdbc/Servauto");

Deberia funcionar

Respuesta proporcionada por http://www.consultoriajava.com