muuki88 / e4geminijpa Goto Github PK
View Code? Open in Web Editor NEWDependency Injection for Gemini JPA
Home Page: http://www.eclipse.org/forums/index.php/t/290891/
License: Eclipse Public License 1.0
Dependency Injection for Gemini JPA
Home Page: http://www.eclipse.org/forums/index.php/t/290891/
License: Eclipse Public License 1.0
Create a sample application with mysql and property configured directly in the @GeminiPersistenceContext annotation.
Create H2 Sample Application
The setting is -DREFRESH_BUNDLES=false
or -DGEMINI_REFRESH=false
?
The e4GeminiJPA is target to the first setting.
Try to create a sample application with MongoDb
Create an application with an generic data model, which gets mapped on runtime to different databases.
When I will start the sample from an Eclipse for RCP and RAP Developers Luna Service Release 2 (4.4.2), I am getting following log and none of the used Entity Managers is injected:
!SESSION 2016-01-27 06:35:32.371 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_80
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=hu_HU
Framework arguments: -product de.mukis.gemini.sample.rcp.product
Command-line arguments: -product de.mukis.gemini.sample.rcp.product -data /home/ivgg/EclipseWorkspaces/RCP/e4GeminiJPA/../runtime-de.mukis.gemini.sample.product -dev file:/home/ivgg/EclipseWorkspaces/RCP/e4GeminiJPA/.metadata/.plugins/org.eclipse.pde.core/de.mukis.gemini.sample.product/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog
!ENTRY org.eclipse.equinox.ds 1 0 2016-01-27 06:35:35.006
!MESSAGE Could not bind a reference of component org.eclipse.gemini.ext.di.emf. The reference is: Reference[name = EntityManagerFactory, interface = javax.persistence.EntityManagerFactory, policy = dynamic, cardinality = 0..n, target = null, bind = bindEntityManagerFactory, unbind = unbindEntityManagerFactory]
!ENTRY org.eclipse.equinox.ds 1 0 2016-01-27 06:35:35.007
!MESSAGE Could not bind a reference of component org.eclipse.gemini.ext.di.emf. The reference is: Reference[name = EntityManagerFactoryBuilder, interface = org.osgi.service.jpa.EntityManagerFactoryBuilder, policy = dynamic, cardinality = 0..n, target = null, bind = bindEntityManagerFactoryBuilder, unbind = unbindEntityManagerFactoryBuilder]
!ENTRY org.eclipse.equinox.ds 1 0 2016-01-27 06:35:35.014
!MESSAGE Could not bind a reference of component org.eclipse.gemini.ext.di.em. The reference is: Reference[name = EntityManagerFactory, interface = javax.persistence.EntityManagerFactory, policy = dynamic, cardinality = 0..n, target = null, bind = bindEntityManagerFactory, unbind = unbindEntityManagerFactory]
!ENTRY org.eclipse.equinox.ds 1 0 2016-01-27 06:35:35.015
!MESSAGE Could not bind a reference of component org.eclipse.gemini.ext.di.em. The reference is: Reference[name = EntityManagerFactoryBuilder, interface = org.osgi.service.jpa.EntityManagerFactoryBuilder, policy = dynamic, cardinality = 0..n, target = null, bind = bindEntityManagerFactoryBuilder, unbind = unbindEntityManagerFactoryBuilder]
[GEMINI_EXT][ERROR][GeminiEMSupplier] EntityManagerFactoryBuilder is null for unit 'configured' with properties {}
[GEMINI_EXT][ERROR][GeminiEMSupplier] EntityManagerFactoryBuilder is null for unit 'unconfigured' with properties {eclipselink.weaving=false, javax.persistence.jdbc.url=jdbc:derby:memory:test2;create=true, eclipselink.ddl-generation.output-mode=database, eclipselink.logging.level=FINE, eclipselink.ddl-generation=create-tables, javax.persistence.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver, eclipselink.weaving.internal=false}
[GEMINI_EXT][ERROR][GeminiEMFSupplier] EntityManagerFactoryBuilder is null for unit 'configured' with properties {}
I have following bundles installed in the Eclipse instance:
When I will get this sample working with MySQL what I must do? What must I do to get an Entity Manager injected in my own project?
Thanks for your help!
Hi i managed to get the project working "via maven" and i can compile/package install it jsut fine, but still i can not get the project(s) properly configured in my eclipse as eclipse claims the projects : *model and *.rcp are missing :
Bundle 'javax.inject' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 6 Plug-in Problem
Bundle 'javax.persistence' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.model/META-INF line 8 Plug-in Problem
Bundle 'org.eclipse.core.databinding.beans' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 10 Plug-in Problem
Bundle 'org.eclipse.core.databinding.property' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 19 Plug-in Problem
Bundle 'org.eclipse.core.databinding' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 9 Plug-in Problem
Bundle 'org.eclipse.core.runtime' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 7 Plug-in Problem
Bundle 'org.eclipse.e4.core.commands' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 22 Plug-in Problem
Bundle 'org.eclipse.e4.core.contexts' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 17 Plug-in Problem
Bundle 'org.eclipse.e4.core.di.extensions' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 25 Plug-in Problem
Bundle 'org.eclipse.e4.core.di' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 16 Plug-in Problem
Bundle 'org.eclipse.e4.core.services' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 15 Plug-in Problem
Bundle 'org.eclipse.e4.ui.bindings' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 23 Plug-in Problem
Bundle 'org.eclipse.e4.ui.css.core' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 20 Plug-in Problem
Bundle 'org.eclipse.e4.ui.services' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 13 Plug-in Problem
Bundle 'org.eclipse.e4.ui.workbench.swt' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 18 Plug-in Problem
Bundle 'org.eclipse.e4.ui.workbench' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 14 Plug-in Problem
Bundle 'org.eclipse.gemini.ext.di' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 24 Plug-in Problem
Bundle 'org.eclipse.jface.databinding' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 12 Plug-in Problem
Bundle 'org.eclipse.jface' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 11 Plug-in Problem
Bundle 'org.eclipse.persistence.jpa' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 26 Plug-in Problem
Bundle 'org.eclipse.swt' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 8 Plug-in Problem
Bundle 'org.w3c.css.sac' cannot be resolved MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 21 Plug-in Problem
No available bundle exports package 'org.osgi.framework' MANIFEST.MF /de.mukis.gemini.sample.rcp/META-INF line 30 Plug-in Problem
atlasloewenherz@numidia /projects/sandbox/osgi/e4GeminiJPA
$ tree -L 2
.
|-- de.mukis.gemini.sample.feature
| |-- build.properties
| |-- feature.xml
| `-- pom.xml
|-- de.mukis.gemini.sample.model ***** this project *****
| |-- build.properties
| |-- META-INF
| |-- pom.xml
| `-- src
|-- de.mukis.gemini.sample.rcp ***** this project *****
| |-- Application.e4xmi
| |-- build.properties
| |-- css
| |-- icons
| |-- META-INF
| |-- plugin.xml
| |-- pom.xml
| `-- src
|-- de.mukis.gemini.sample.site
| |-- category.xml
| |-- de.mukis.gemini.sample.product
| `-- pom.xml
|-- de.mukis.gemini.sample.target
| |-- de.mukis.gemini.sample.target.target
| `-- pom.xml
|-- LICENSE
|-- pom.xml
`-- README.md
11 directories, 17 files
it would be more than great if you have a clue what i could be missing here.
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.