users@glassfish.java.net

Using EclipseLink with GlassFish 2

From: <glassfish_at_javadesktop.org>
Date: Tue, 26 Aug 2008 14:51:45 PDT

I'm trying to build a simple little application using GF2ur2 using EclipseLink 1.0 and Sybase ASA10. When I run a test client I get the following:

I have eclipselink.jar in my domain1/lib dir and I have specified my provide in the persistence.xml

Exception Description: Database platform class [org.eclipse.persistence.platform.database.SQLAnyWherePlatform] not found.
Internal Exception: Exception [EclipseLink-3007] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)): org.eclipse.persistence.exceptions.ConversionException
Exception Description: The object [org.eclipse.persistence.platform.database.SQLAnyWherePlatform], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [org.eclipse.persistence.platform.database.SQLAnyWherePlatform] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
Internal Exception: java.lang.ClassNotFoundException: org.eclipse.persistence.platform.database.SQLAnyWherePlatform
        at eiss.shareholder.fund._EFundBeanRemote_Wrapper.getFund(eiss/shareholder/fund/_EFundBeanRemote_Wrapper.java)
        at morris.services.FundService.getFund(FundService.java:25)
        at eiss.samples.services.ServiceSample.main(ServiceSample.java:35)

<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
        <persistence-unit name="EISS_ejb">
                <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
                <jta-data-source>issdevdb</jta-data-source>
            <properties>
                    <property name="eclipselink.weaving" value="static"/>
                    <property name="eclipselink.target-server" value="SunAS9"/>
                <!--property name="toplink.target-database" value="SQLAnyWhere"/-->
            </properties>
        </persistence-unit>
</persistence>

eclipselink.jar is also on my client application (which is using Spring to lookup an EJB in GF).

Any pointers on getting this resolved would be much appreciated.

Thanks!

-z
[Message sent by forum member 'euqaz' (euqaz)]

http://forums.java.net/jive/thread.jspa?messageID=295488