users@glassfish.java.net

Generic DAO - problems with Toplink

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Tue, 18 Aug 2009 20:47:36 +0200

Trying to deploy a generic DAO to Glassfish v2.1 with TopLink, I got
the following exception:

[#|2009-08-18T20:28:55.696+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=47;_ThreadName=Thread-2714;_RequestID=2253f10e-6a78-43f3-bbf7-cd2db430e763;|Exception
occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException:
Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build
b04-fcs (04/17/2008))):
oracle.toplink.essentials.exceptions.EntityManagerSetupException
Exception Description: predeploy for PersistenceUnit [arenapuj] failed.
Internal Exception: java.lang.ClassCastException:
sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast
to java.lang.Class


googling around I found a lot of blogs talking about a TopLink limitation..

question: is it solved in EclipseLink ?

if I adopt Glassfish V3 I fixed my problems ?


-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl