Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Help setting up Dali in eclipse 3.5 on fedora 10, for use with RAP OSGI platform
Help setting up Dali in eclipse 3.5 on fedora 10, for use with RAP OSGI platform [message #435266] Thu, 05 February 2009 07:06 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Dali Collective,

I am currently trying to setup Dali to work with a RAP application.

i) I have decided to use eclipselink as my JPA platform/implementation
ii) I am prototyping this with a MySQL 5.0x backend, and the mysql JDBC jar
iii) I installed the Dali 2.1 tools from the update site, and "installed
software" is currently showing;

"Java Persistence API Tools - EclipseLink Support (Optional)
2.1.0.v200812180210-318Y9oA55S8_795555"

though I can't see Dali installed anywhere - I am not sure how to confirm
this is installed correctly?
However I now have a "JPA" option in eclipse preferences, and I can set
JPA properties on my projects.

iv) I have installed the OSGi bundle from the eclipselink - version 1.0.2;
http://www.eclipse.org/eclipselink/downloads/
into the eclipse/dropins folder and restarted eclipse

v) in eclipse I can now set eclipselink as the JPA platform for my project
I have also set "discover annotated classes automatically" to true

vi) I have now switched to the JPA perspective and created a new
connection to my database,
it tests OK. I can create tables from the "Data source explorer" view.

vii) I can go to my project properties and set eclipselink as the JPA
platform, and set my previously created MySQL connection there.
However I cannot click "connect" it is grayed out - is that a problem?

viii) I can now go to the "JPA content" to edit the connection properties
in persistance.xml to use the previously created MySQL connection

ix) I have created a test class called "Cat" like so;
"public class Cat {

private long id;
private String name;
private String likes;
private Gender gender;"

and added getters and setters, except for setId.

What libs or jars do I need to add to my project to allow it to recognise
the Annotations?
Should I be adding the javax.persistence and eclipselink jar files from
the main eclipselink download, I don't understand exactly where I should
be getting those libs to add to my classpath.

Also I see no "Add Java Persistence..." wizard when right clicking my
project.

I would be grateful for any help

Thanks,

Tom
Re: Help setting up Dali in eclipse 3.5 on fedora 10, for use with RAP OSGI platform [message #435458 is a reply to message #435266] Thu, 05 February 2009 16:58 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Tom,

I'm not sure if you have seen the Getting Started page on the Dali
website, but here is a link -
http://www.eclipse.org/webtools/dali/gettingstarted.php.

Did you have a previous version of Dali installed before installing 2.1?
If not, then the Dali plugins appear to be in your installation.

Make sure you also have WTP 3.0.3 Java EE Developer Tools installed. This
was probably installed while installing Dali 2.1, but just to be safe, try
to install/update the Java EE Developer tools to version 3.0.3.

> What libs or jars do I need to add to my project to allow it to recognise
> the Annotations?
> Should I be adding the javax.persistence and eclipselink jar files from
> the main eclipselink download, I don't understand exactly where I should
> be getting those libs to add to my classpath.

Library management is something we are working on for Dali 2.2, but for
now, all you need to do is define a User Library with the necessary
javax.persistence and EclipseLink classes. This can be done using the
JARs included in the main Eclipse download, or you could add all the
necessary bundles to the library.

The main download JAR's to include are:
.../jlib/eclipselink.jar
.../jlib/jpa/javax.persistence_1.0.0.jar.

For bundles, you would need the following:

javax.persistence_1.99.0.jar
org.eclipse.persistence.jpa_1.0.2.jar
org.eclipse.persistence.antlr_1.0.2.jar
org.eclipse.persistence.asm_1.0.2.jar
org.eclipse.persistence.core_1.0.2.jar


Hope this helps,
Neil


Tom H wrote:


> Hi Dali Collective,

> I am currently trying to setup Dali to work with a RAP application.

> i) I have decided to use eclipselink as my JPA platform/implementation
> ii) I am prototyping this with a MySQL 5.0x backend, and the mysql JDBC jar
> iii) I installed the Dali 2.1 tools from the update site, and "installed
> software" is currently showing;

> "Java Persistence API Tools - EclipseLink Support (Optional)
> 2.1.0.v200812180210-318Y9oA55S8_795555"

> though I can't see Dali installed anywhere - I am not sure how to confirm
> this is installed correctly?
> However I now have a "JPA" option in eclipse preferences, and I can set
> JPA properties on my projects.

> iv) I have installed the OSGi bundle from the eclipselink - version 1.0.2;
> http://www.eclipse.org/eclipselink/downloads/
> into the eclipse/dropins folder and restarted eclipse

> v) in eclipse I can now set eclipselink as the JPA platform for my project
> I have also set "discover annotated classes automatically" to true

> vi) I have now switched to the JPA perspective and created a new
> connection to my database,
> it tests OK. I can create tables from the "Data source explorer" view.

> vii) I can go to my project properties and set eclipselink as the JPA
> platform, and set my previously created MySQL connection there.
> However I cannot click "connect" it is grayed out - is that a problem?

> viii) I can now go to the "JPA content" to edit the connection properties
> in persistance.xml to use the previously created MySQL connection

> ix) I have created a test class called "Cat" like so;
> "public class Cat {

> private long id;
> private String name;
> private String likes;
> private Gender gender;"

> and added getters and setters, except for setId.

> What libs or jars do I need to add to my project to allow it to recognise
> the Annotations?
> Should I be adding the javax.persistence and eclipselink jar files from
> the main eclipselink download, I don't understand exactly where I should
> be getting those libs to add to my classpath.

> Also I see no "Add Java Persistence..." wizard when right clicking my
> project.

> I would be grateful for any help

> Thanks,

> Tom
Re: Help setting up Dali in eclipse 3.5 on fedora 10, for use with RAP OSGI platform [message #614905 is a reply to message #435266] Thu, 05 February 2009 16:58 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Tom,

I'm not sure if you have seen the Getting Started page on the Dali
website, but here is a link -
http://www.eclipse.org/webtools/dali/gettingstarted.php

Did you have a previous version of Dali installed before installing 2.1?
If not, then the Dali plugins appear to be in your installation.

Make sure you also have WTP 3.0.3 Java EE Developer Tools installed. This
was probably installed while installing Dali 2.1, but just to be safe, try
to install/update the Java EE Developer tools to version 3.0.3.

> What libs or jars do I need to add to my project to allow it to recognise
> the Annotations?
> Should I be adding the javax.persistence and eclipselink jar files from
> the main eclipselink download, I don't understand exactly where I should
> be getting those libs to add to my classpath.

Library management is something we are working on for Dali 2.2, but for
now, all you need to do is define a User Library with the necessary
javax.persistence and EclipseLink classes. This can be done using the
JARs included in the main Eclipse download, or you could add all the
necessary bundles to the library.

The main download JAR's to include are:
.../jlib/eclipselink.jar
.../jlib/jpa/javax.persistence_1.0.0.jar.

For bundles, you would need the following:

javax.persistence_1.99.0.jar
org.eclipse.persistence.jpa_1.0.2.jar
org.eclipse.persistence.antlr_1.0.2.jar
org.eclipse.persistence.asm_1.0.2.jar
org.eclipse.persistence.core_1.0.2.jar


Hope this helps,
Neil


Tom H wrote:


> Hi Dali Collective,

> I am currently trying to setup Dali to work with a RAP application.

> i) I have decided to use eclipselink as my JPA platform/implementation
> ii) I am prototyping this with a MySQL 5.0x backend, and the mysql JDBC jar
> iii) I installed the Dali 2.1 tools from the update site, and "installed
> software" is currently showing;

> "Java Persistence API Tools - EclipseLink Support (Optional)
> 2.1.0.v200812180210-318Y9oA55S8_795555"

> though I can't see Dali installed anywhere - I am not sure how to confirm
> this is installed correctly?
> However I now have a "JPA" option in eclipse preferences, and I can set
> JPA properties on my projects.

> iv) I have installed the OSGi bundle from the eclipselink - version 1.0.2;
> http://www.eclipse.org/eclipselink/downloads/
> into the eclipse/dropins folder and restarted eclipse

> v) in eclipse I can now set eclipselink as the JPA platform for my project
> I have also set "discover annotated classes automatically" to true

> vi) I have now switched to the JPA perspective and created a new
> connection to my database,
> it tests OK. I can create tables from the "Data source explorer" view.

> vii) I can go to my project properties and set eclipselink as the JPA
> platform, and set my previously created MySQL connection there.
> However I cannot click "connect" it is grayed out - is that a problem?

> viii) I can now go to the "JPA content" to edit the connection properties
> in persistance.xml to use the previously created MySQL connection

> ix) I have created a test class called "Cat" like so;
> "public class Cat {

> private long id;
> private String name;
> private String likes;
> private Gender gender;"

> and added getters and setters, except for setId.

> What libs or jars do I need to add to my project to allow it to recognise
> the Annotations?
> Should I be adding the javax.persistence and eclipselink jar files from
> the main eclipselink download, I don't understand exactly where I should
> be getting those libs to add to my classpath.

> Also I see no "Add Java Persistence..." wizard when right clicking my
> project.

> I would be grateful for any help

> Thanks,

> Tom
Previous Topic:what would it meant to use "Generic" as the JPA platform
Next Topic:no JPA implentation information in "modify JPA facet" dialog
Goto Forum:
  


Current Time: Tue Mar 19 07:30:52 GMT 2024

Powered by FUDForum. Page generated in 0.01842 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top