users@glassfish.java.net

Re: Generic DAO - problems with Toplink

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Tue, 18 Aug 2009 21:27:58 +0200

humm.. I tried Glassfish V3, same problem :(

perhaps it is time to accept Hibernate :(


2009/8/18 Felipe Gaścho <fgaucho_at_gmail.com>:
> 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
>



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