-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Hibernate Tools for Eclipse Fail on SuSE Linux 10.0
PostPosted: Thu Dec 01, 2005 3:18 pm 
Newbie

Joined: Mon Nov 28, 2005 4:41 pm
Posts: 8
Location: Mountain View, CA
Hello,

I am encountering difficulty getting the Eclipse tools to work under SuSE 10.0 Linux. What I need most at the moment is the XML editor extensions for Hibernate mapping and configuration files, but it does not activate. Instead, the file appears as an entirely unadorned text file (no syntax highlighting, no completion, etc.)

Here are the salient details:

Eclipse 3.1.1
- I've tried both the SuSE-supplied RPMs and the Eclipse.org-supplied tarball.

Java 5.0 / 1.5.0
- I've tried both the SuSE-supplied packages, which are 1.5.0_03 and the latest RPM from Sun, which is 1.5.0_06.

Hibernate Tools for Eclipse
- I've tried both 3.1.0beta1 and the nightly build 3.1.0.N200511302034.


Regardless of which of the eight combinations possible between the alternatives mentioned above, the result is the same.

There are two diagnostics emitted into the logs when I run Eclipse with the Hibernate Tools installed:

-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
Info 2005-11-30 23:55:05.408
Could not load library: libcore_3_1_0.so. This library provides
platform-specific optimizations for certain file system operations.
This library is not present on all platforms, so this may not be an
error. The resources plug-in will safely fall back to using
java.io.File functionality.
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
Error 2005-12-01 10:09:00.217
Invalid Menu Extension (Path is invalid):
org.hibernate.eclipse.launch.LaunchMenuDelegateMenu
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-


I have no trouble running Eclipse 3.1.1 and Hibernate Tools 3.1.0beta1 on Redhat EL 3 at work.


I'd really like to get this working, and so far nothing I've been able to find searching the forums or the Web and no clues I can discover on my own are helping me make any progress. I'd appreciate any help anyone can offer on fixing or properly diagnosing the problem.

Thanks.

Randall Schulz


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 3:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what editors are available when you right click on a hbm.xml file ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 3:42 pm 
Newbie

Joined: Mon Nov 28, 2005 4:41 pm
Posts: 8
Location: Mountain View, CA
Max,

max wrote:
what editors are available when you right click on a hbm.xml file ?


If by that you mean what editors are listed in the "Open With" sub-menu of the context menu of the .hbm.xml file in the Package Explorer pane, the answer is:

Text Editor
-----------
System Editor
Default Editor


Randall Schulz


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 3:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
for some reason you are missing the wtp xml editor.

It should work (have installed it on linux and win32 without problems before)

You could try and install WTP 0.7 (not WTP 1.0M9 unless you are using the latest cvs build) and then see if you get an XML Editor.

Do you have a hibernate console perspective ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 6:49 pm 
Newbie

Joined: Mon Nov 28, 2005 4:41 pm
Posts: 8
Location: Mountain View, CA
max wrote:
for some reason you are missing the wtp xml editor.

It should work (have installed it on linux and win32 without problems before)

You could try and install WTP 0.7 (not WTP 1.0M9 unless you are using the latest cvs build) and then see if you get an XML Editor.

Do you have a hibernate console perspective ?


Well, after much trouble, I now have WTP 0.7 installed and I can get the generic XML editor instead of a plain text editor.

It does now appear that the Hiberate-specific support while editing the source aspect of *.hbm.xml files is working (e.g., the Outline pane's first entry is "xml (Hibernate Tools)").

This exception occurs during start-up:

Code:
Error 2005-12-01 14:46:24.477
model has no JFace adapter factory


The Hibernate console perspective is available, but since so far I find it inscrutable, I cannot tell whether it's working properly or not.

Many of the following diagnostics occurred while I added a very simply <property .../> element:

Code:
   <property
      name='name'
      type='string'
      column='NAME'>
   />


(In fact, one occurs on each content-altering keystroke typed in the Hibernate XML text view):

Code:
Error 2005-12-01 14:33:59.266
A structured model client, org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterForXML@9dc852 threw following exception during adapter notification (CHANGE )
java.lang.NullPointerException
   at org.hibernate.eclipse.mapper.views.contentoutline.JFaceNodeAdapterFactoryForXML.getListeners(Unknown Source)
   at org.eclipse.wst.xml.ui.internal.contentoutline.JFaceNodeAdapter.notifyChanged(JFaceNodeAdapter.java:393)
   at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:202)
   at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notify(XMLModelNotifierImpl.java:235)
   at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyDeferred(XMLModelNotifierImpl.java:323)
   at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:175)
   at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:161)
   at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:163)
   at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:554)
   at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1202)
   at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1866)
   at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2303)
   at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
   at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:100)
   at org.eclipse.wst.sse.ui.internal.editor.EditorExecutionContext.execute(EditorExecutionContext.java:43)
   at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:110)
   at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2299)
   at org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:1187)
   at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5787)
   at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6625)
   at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2592)
   at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5098)
   at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5124)
   at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:4857)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1030)
   at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1057)
   at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:621)
   at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1964)
   at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:560)
   at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1365)
   at org.eclipse.swt.widgets.Display.windowProc(Display.java:3442)
   at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
   at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4777)
   at org.eclipse.swt.widgets.Display.eventProc(Display.java:1067)
   at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
   at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1158)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2570)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
   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:585)
   at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
   at org.eclipse.core.launcher.Main.run(Main.java:973)
   at org.eclipse.core.launcher.Main.main(Main.java:948)



Anyway, thanks for pointing out at least one of the problems.


Randall Schulz


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 01, 2005 9:13 pm 
Newbie

Joined: Mon Nov 28, 2005 4:41 pm
Posts: 8
Location: Mountain View, CA
Hi, Max,

Well, as I mentioned in my previous post, once I got the XML editor installed and running, there were lingering problems, but I believe I've nailed them all, now.

First of all, after installing the WTP tools and their dependencies, it turns out there were other updates available, requiring the use of "Search for updates of the currently installed features". After I installed those updates and then added the Hibernate Tools files for the latest nightly build (N200511302034) (*), things appear to be working properly with no exceptions or other errors reported in the Error Log.

(*) I did not allow the installation of the tools files to replace any existing files in the Eclipse plugins directory.

Also there was some confusion at one point because I thought new errors were being generated into the Log when in fact they were leftovers from previous runs. This was despite the fact that I set the Error Log filter to show only entries from the most recent session.


Anyway, all's well that ends well, though I did burn a whole day with this stuff.

Again, thanks for your help. I doubt I would have sussed this out on my own--I'm just too new to Eclipse and Hibernate at this point.


Randall Schulz


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 02, 2005 1:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
good you solved your problem - would be interesting to hear what those "extra updates" were since this "has no factory" bug have been reported a couple of times and I have not been able to reproduce it consistently.
I apparently always download the full package with no extra updates needed ;)

..in any case the latest cvs uses the WTP 1.0M9 where these issues should not be present.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.