Open hpppxl opened 11 years ago
Hi,
I have imported the different packages in Eclipse IDE for Java EE Developers.
I could run the example, as indicated in the readme. I get the expected output, plus at the end an error:
!ENTRY org.eclipse.osgi 4 0 2013-05-28 15:43:34.226 !MESSAGE Could not find bundle: org.eclipse.equinox.console !STACK 0 org.osgi.framework.BundleException: Could not find bundle: org.eclipse.equinox.console at org.eclipse.osgi.framework.internal.core.ConsoleManager.checkForConsoleBundle(ConsoleManager.java:211) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:297) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)```
(in my opinion we need to check this, because it should not happen).
I have also tried to execute "Run as > OSGi Framework..." on org.hibernate4.osgi.example.person
, but the launch config that is generated contains all the available plugins (that is the default behavior from eclipse, and it is wrong).
This project is an extract from our code in production, it is working! Maybe the example needs to be extended in order to demonstrate our approach. My company is happy to get your feedback and to fill the gap. If more explanations are needed for this small example, let us know. I just need to find the key developers to answer your questions.
For the maven build, I have run:
C:\<path to git folder>\org.hibernate4.osgi_repo\org.hibernate4.osgi.parent>mvn clean install
It is working, but it might be because we host a local p2 mirror inside the company. The error you describe seems to be a provisioning error. I will try to analyse this with the maven expert in house. I think this is not related to this particular project.
I just figured out, we didn't push the jars as binary files.
I have done this with commit 232834767541fead6084305a0d5870a33d3c1dc0. It is not a really good practice, but I hope it will help you to run manually the example.
Thanks! I will have a look at this.
I just updated the used version of maven tycho from a SNAPSHOT version to 0.18.0 in commit cdcc18afd0dd76f7d2eead131fb9a4d31ce7445e. I also switched to a release url from orbit in the target file. The problem which Toby faced should be solved I hope.
@sleicht this did the trick! Thank you very much. Now we can have a deeper look at it. :+1:
Hi there.
I was so happy to see, that someone finally found a solution to connect hibernate and osgi! Unfortunately when I import your GIT I get the following error message in every pom.xml:
Project build error: Unresolveable build extension: Plugin org.eclipse.tycho:tycho-maven-plugin:0.17.0-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.eclipse.tycho:tycho-maven-plugin:jar:0.17.0-SNAPSHOT
Also: Which project would I have to start? None of them is showing OSGI-Framework as an "run as" option.
Thanks in advance, Toby.
Edit: I'm running on
Eclipse Java EE IDE for Web Developers. Version: Juno Service Release 2 Build id: 20130225-0426
Using OSX Mountain Lion. Maven is installed.