For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 7 replies, 4 voices, and was last updated 19 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
toutoune101MemberI am having troubles “adding hibernate capabilities” to my projects with MyEclipse plugin v4.1 (and Eclipse 3.1) or v5 (and Eclipse 3.2).
I always get an error “The chosen operation is not currently available”
Is it a limitation of the trial version? Will it work if I buy the complete version? What can I do to test these functionalities?September 23, 2006 at 10:22 am #259092
Brian FernandesModeratorHi,
The trial version has no limitations at all. What you’re experiencing seems to be a configuration issue.
Also, detailed instructions on adding Hibernate capabilities are available here: Help > Help Contents > MyEclipse Learning Center > Spring/Hibernate Development > Getting Started > Hibernate Development
Are you following the steps in the above guide?If you still experience issues, can you please post all the information we request in [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL]? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug.
Best,
Brian.September 24, 2006 at 7:52 am #259109
toutoune101MemberIn fact I have just looked into my eclipse log and here is an extract :
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY org.eclipse.osgi 4 0 2006-09-24 15:50:30.620
!MESSAGE An error occurred while automatically activating bundle com.genuitec.org.hibernate.eclipse (109).
!STACK 0
org.osgi.framework.BundleException: Exception in org.hibernate.eclipse.HibernatePlugin.start() of bundle com.genuitec.org.hibernate.eclipse.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1014)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:339)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:388)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.hibernate.eclipse.mapper.MapperPlugin.start(MapperPlugin.java:37)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:995)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:989)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:339)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:391)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:276)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1245)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:147)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistryImpl.getAdapterFactoriesAsList(AdapterFactoryRegistryImpl.java:185)
at org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistryImpl.getAdapterFactories(AdapterFactoryRegistryImpl.java:113)
at org.eclipse.wst.sse.ui.internal.editor.EditorModelUtil.addFactoriesTo(EditorModelUtil.java:46)
at org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(StructuredTextEditor.java:2151)
at org.eclipse.ui.texteditor.AbstractTextEditor$17.run(AbstractTextEditor.java:2396)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:763)
…My configuration is
*** Date: Sun Sep 24 15:44:14 EEST 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_07*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.0 GA
Build id: 20060805-5.0-GA*** Eclipse details:
Eclipse SDKVersion: 3.2.0
Build id: M20060628-1325Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse Platform
Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
Build id: M20060628-1325Eclipse Java Development Tools
Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
Build id: M20060628-1325Eclipse Plug-in Development Environment
Version: 3.2.0.v20060609m——6zXJJzJzJq
Build id: M20060628-1325Eclipse Project SDK
Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
Build id: M20060628-1325Eclipse Graphical Editing Framework
Version: 3.2.0.v20060626
Build id: 20060627-0816Eclipse RCP
Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
Build id: M20060628-1325Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\Program Files\EclipseIDE\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
9f4_a8
-vm
C:\WINDOWS\system32\javaw.exeSeptember 25, 2006 at 9:25 am #259162
Scott AndersonParticipantThe issue is likely that the Eclipse plugin cache got stale as it sometimes
does not cleanly rebuild after updates. To rectify the problem you’ll need
to restart Eclipse with the -clean flag one time: eclipse.exe -cleanThat should resolve the problem.
September 25, 2006 at 10:12 am #259177
toutoune101Member😳 I still have the same problem 😳
I tried the “eclipse.exe -clean” command but I still have the problem in the log file with a new thing :!SESSION 2006-09-25 18:06:20.540 ———————————————–
eclipse.buildId=M20060628-1325
java.version=1.5.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -os win32 -ws win32 -arch x86!ENTRY com.genuitec.eclipse.core 1 0 2006-09-25 18:06:31.807
!MESSAGE Unable to locate .myeclipse.properties file!ENTRY org.eclipse.osgi 4 0 2006-09-25 18:06:34.360
!MESSAGE An error occurred while automatically activating bundle com.genuitec.org.hibernate.eclipse (109).
!STACK 0
org.osgi.framework.BundleException: Exception in org.hibernate.eclipse.HibernatePlugin.start() of bundle com.genuitec.org.hibernate.eclipse.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1014)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:970)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.preFindLocalClass(EclipseLazyStarter.java:86)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:409)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:339)
at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
…On top of that, If i go to Window/Preferences/MyEclipse/Project Capabilities/Hibernate, I get this error :
Unable to create the selected preference page Reason : Plug-in com.genuitec.eclipse.hibernate was unable to load class com.genuitec.eclipse.hibernate.preferences.HibernateLibraryPreferencePage
I have tried to reinstall myeclipse… not better!
September 25, 2006 at 1:55 pm #259192
Brian FernandesModeratortoutoune,
I had a look at your earlier post and noticed that you are probably running with a JRE and not a JDK as required. Can you download and install a 1.4 or 1.5 series Sun JDK and give it a shot?
If you already have it installed, you need to modify your eclipse startup shortcut to point to javaw.exe within the JDK installation. Something likeeclipse.exe -clean -vm <path_to_jdk>\bin\javaw.exe -vmargs -Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128MDo you have any other plugins installed?
Hope this helps,
Brian.September 25, 2006 at 2:56 pm #259198
toutoune101MemberAll right seems to work now! Sorry for using the JRE !
And now the Database explorer works to! (does it use Hibernates functionalities?)
Thanks a lot!September 29, 2006 at 4:07 pm #259597
Riyad KallaMemberGlad to hear it is working. Yes the DB Explorer can be usde to reverse engineer a table to a project that has hibernate-capabilities enabled on it.
-
AuthorPosts
