Skip to main content

Using EclipseLink with GlassFish 2

5 replies [Last post]
euqaz
Offline
Joined: 2008-08-26

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)

org.eclipse.persistence.jpa.PersistenceProvider
issdevdb

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mitesh Meswani

You seem to have a typo in platform name It should be
org.eclipse.persistence.platform.database.SQLAnywherePlatform. Note that
the 'w' is lower case

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

euqaz
Offline
Joined: 2008-08-26

Interesting. I wasn't specifying my target-database in my persistence file as I thought EL would figure it out automatically. In TopLink I had set target-database to "SQLAnyWhere" (you can see it commented out in my persistence.xml above). Is this perhaps a bug in the auto detection code for EL? I added
and all is well.

Thanks for catching that! I hadn't even thought to compare the case. :-)

-z

Mitesh Meswani

You are correct. The autodetection properties are not in sync with
actual class used in EclipseLink. The class name seems to be changed
between Toplink and Eclipelink. Can you please file a bug against
EclipseLink to take care of this (Go to bugs.eclipse.org and file bug
under RT/EclipseLink)

glassfish@javadesktop.org wrote:
> Interesting. I wasn't specifying my target-database in my persistence file as I thought EL would figure it out automatically. In TopLink I had set target-database to "SQLAnyWhere" (you can see it commented out in my persistence.xml above). Is this perhaps a bug in the auto detection code for EL? I added
and all is well.
>
> Thanks for catching that! I hadn't even thought to compare the case. :-)
>
> -z
> [Message sent by forum member 'euqaz' (euqaz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=295499
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

euqaz
Offline
Joined: 2008-08-26

Looks like somebody already got to it. Looks like it should be in EL 1.1

https://bugs.eclipse.org/bugs/show_bug.cgi?id=241090

Thanks again for your help.

euqaz
Offline
Joined: 2008-08-26

I should also mention that I had this working just find with TLE but started to run into problems when I swapped TLE for EL.