-->
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.  [ 10 posts ] 
Author Message
 Post subject: Can not get Hibernate Console perspective in Eclipse 3.1.2
PostPosted: Wed May 31, 2006 12:41 pm 
Newbie

Joined: Wed May 31, 2006 12:20 pm
Posts: 4
I am using latest version of plugin for Eclipse (beta5). I was able to follow documentation and create hibernate.cfg.xml file and enter all nesessary information for Hibernate console generation.
Using reverse enginering, I was able to create classes and mapping file from my Oracle schema.
The problem is I do not see Hibernate Console configuration in a project tree view.
So there is no way for me to see Hibernate Console perspective - it simply not there.
when I try Run/Hibernate Code Generation/MyConfiguration - the following printed in .log file:

!ENTRY org.hibernate.eclipse 2 30000 2006-05-31 12:15:09.497
!MESSAGE WARN Worker-46 org.hibernate.tool.hbm2x.template - org.apache.velocity.
runtime.exception.ReferenceException: reference : template = doc/entities/entity
.vm [line 140,column 40] : $compoclass.getJavaTypeName($propertyIdentifier, $jdk
5 ) is not a valid reference.

Thanks

_________________
Eugene


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 1:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hibernate Console Configuraitons is not in the project tree view, it is in the Hibenrate Console Configuraitons view which is opened automatically if you go to the hibernate console Perspective....

and btw. you are *not* using the latest version since the latest version uses FreeMarker and your stacktrace is from Velocity.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 2:11 pm 
Newbie

Joined: Wed May 31, 2006 12:20 pm
Posts: 4
The problem is that Hibenrate Console Configuraitons view does not open automatically at all. I follow tools documentation where whey have examples with Eclipse, but can not get to Hibernate Console Perspective. It's simply not there.

_________________
Eugene


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 2:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
any chance you are using MyEclipse which bundles are crippled version of hibernate tools?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 3:02 pm 
Newbie

Joined: Wed May 31, 2006 12:20 pm
Posts: 4
I don't think so. I downloaded eclipse from their web site.
Eclipse SDK

Version: 3.1.2
Build id: M20060118-1600

I upgraded hibernate tools as well:
Hibernate Core plug-in 3.1.0beta5
Hibernate console 3.1.0.beta5

_________________
Eugene


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 3:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
And you do not have a the following ?

Main menu -> Window/Open Perspective/Other.../Hibernate Console Perspective

?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 5:14 pm 
Newbie

Joined: Wed May 31, 2006 12:20 pm
Posts: 4
Hi Max,
I was new to eclipse and could not locate this perspective windows. sorry for silly question. But when I open this item, I got another error:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
I think it is probably related to my local JDK configuration.



java.lang.NoSuchMethodError: java.lang.Boolean.parseBoolean(Ljava/lang/String;)Z
at org.hibernate.eclipse.console.model.impl.ExporterDefinition.createProperties(ExporterDefinition.java:70)
at org.hibernate.eclipse.console.model.impl.ExporterDefinition.<init>(ExporterDefinition.java:50)
at org.hibernate.eclipse.console.ExtensionManager.findExporterDefinitions(ExtensionManager.java:54)
at org.hibernate.eclipse.launch.ExporterSettings.createControl(ExporterSettings.java:80)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.showTabsFor(LaunchConfigurationTabGroupViewer.java:720)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.showInstanceTabsFor(LaunchConfigurationTabGroupViewer.java:639)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:519)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$5.run(LaunchConfigurationTabGroupViewer.java:471)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:488)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:452)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:789)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$3.selectionChanged(LaunchConfigurationsDialog.java:601)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:761)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1453)
at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:379)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.handleConfigurationAdded(LaunchConfigurationView.java:270)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationView.launchConfigurationAdded(LaunchConfigurationView.java:251)
at org.eclipse.debug.internal.core.LaunchManager$ConfigurationNotifier.run(LaunchManager.java:1581)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.debug.internal.core.LaunchManager$ConfigurationNotifier.notify(LaunchManager.java:1605)
at org.eclipse.debug.internal.core.LaunchManager.launchConfigurationAdded(LaunchManager.java:806)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.writeNewFile(LaunchConfigurationWorkingCopy.java:278)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave0(LaunchConfigurationWorkingCopy.java:233)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCopy.doSave(LaunchConfigurationWorkingCopy.java:174)
at org.eclipse.debug.internal.ui.launchConfigurations.CreateLaunchConfigurationAction.performAction(CreateLaunchConfigurationAction.java:75)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction$1.run(AbstractLaunchConfigurationAction.java:103)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.debug.internal.ui.launchConfigurations.AbstractLaunchConfigurationAction.run(AbstractLaunchConfigurationAction.java:106)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$ButtonActionNew.run(LaunchConfigurationsDialog.java:1461)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$1.widgetSelected(LaunchConfigurationsDialog.java:1430)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:439)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:356)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:360)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:302)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
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:324)
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)

_________________
Eugene


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 11:45 pm 
Newbie

Joined: Sun Jun 04, 2006 7:02 am
Posts: 7
Location: Hoboken
Eugene,

Did you ever get a resolution to this problem? If you see my post from today, you will see that I am getting the _exact_ same stack trace.

Regards,
Ed


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 11:20 am 
Newbie

Joined: Fri Jun 09, 2006 11:17 am
Posts: 1
me too is not able to make HibTools to work with latest eclipse. Console crashes with the errors.
And yes, previously I was never able to get Hibernate mapping editor to work. Not coz it does not work, but coz there is no any word written how to get it work in the first place. Which menu items activates the editor exactly. Coz each hbm.xml file is not associated with any specific editor.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 2:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
could it be that we don't need to explain how to double click on the file since we are simply enhancing the standard WTP xml editor ? :)

just open the file...

_________________
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.  [ 10 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.