-->
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.  [ 11 posts ] 
Author Message
 Post subject: No “Code Generation Dialog” in Eclipse Run Menu
PostPosted: Mon May 19, 2008 11:55 pm 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Folks:

I'm unable to see the "Code Generation Dialog" in Eclipse. Here are the steps I've taken (trying to follow the instructions in http://docs.jboss.org/tools/2.1.0.Beta1 ... html#setup):

- Fresh Eclipse (v 3.2.2, Build M20080221-1800)
- Downloaded HibernateTools-3.2.0.GA
- Unzipped it
- Copied all files and folders from HibernateTools-3.2.0.GA\plugins into my Eclipse plugins folder
- Copied HibernateTools-3.2.0.GA\features\org.hibernate.eclipse.feature_3.2.0.GA into my Eclipse features folder
- Ran Eclipse –clean and was able to create and edit two files:
o hibernate.cfg.xml
o hibernate.reveng.xml
- However, I am unable to see the “Hibernate Code Generation Dialog” in the “Run” menu
- Tried downloading org.Hibernate.eclipse.feature_3.2.1.GA.jar and replacing the 3.2.0 older with it, but got the same results.
- Also tried (without avail):
o Rebooting
o Updating plugins from within Eclipse
o Copying org.jboss.ide.eclipse.feature_2.0.1.GA.jar in Eclipse "features" folder
o JBossTools-2.0.1.GA-ALL-win32.zip (copied contents of "features" and "plugins" into corresponding Eclipse folders)

Am I missing something obvious? Platform is Windows-XP Professional 2002 SP2.

Thanks In Advance for any help.

_________________
CK


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 9:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is in the Eclipse error log view ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 12:28 pm 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Hello Max-

Thanks for the tip. I looked at the error log view and found this:

!SESSION 2008-05-19 16:35:08.453 -----------------------------------------------
eclipse.buildId=M20080221-1800
java.version=1.6.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean

!ENTRY org.eclipse.core.resources 2 1 2008-05-19 16:35:42.625
!MESSAGE Skipping builder 'org.hibernate.eclipse.console.hibernateBuilder' for project 'AP_GWT'. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

This happened yesterday, and I am unable to get this warning again, even running with eclipse -clean, so I'm a little unclear why I got it once yesterday and don't see it again. There are some other errors but I cleaned them up. I can include the whole log if you want (there's about 20 errors over two days).

Am I supposed to be in some sort of Hibernate-style project to get this menu entry to show up?

Sincerely,
-CK

_________________
CK


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 3:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
please run eclipse with -debug and see what shows up.

for some reason the hibernate plugins are not loaded.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 20, 2008 4:59 pm 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Hello Max-

Thanks for your prompt response, as well as the Eclipse debugging tips. I know they will help me in the future.

Here is the contents of the error log with "eclipse -debug." I did also look in the console window that comes up with -debug but didn't see any errors or warnings.

!SESSION 2008-05-20 13:41:27.156 -----------------------------------------------
eclipse.buildId=M20080221-1800
java.version=1.6.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -clean -debug

!ENTRY org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.eclipse.swt.win32.win32.x86_3.2.0.v3232m.jar [334] was not resolved.
!SUBENTRY 2 org.eclipse.swt.win32.win32.x86 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.eclipse.swt.win32.win32.x86_3.3.3.v3349
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.eclipse.swt_3.2.2.v3236b.jar [336] was not resolved.
!SUBENTRY 2 org.eclipse.swt 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.eclipse.swt_3.3.2.v3349d
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.hibernate.eclipse.console_3.2.0.GA/ [449] was not resolved.
!SUBENTRY 2 org.hibernate.eclipse.console 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.hibernate.eclipse.console_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.hibernate.eclipse.help_3.2.0.GA/ [451] was not resolved.
!SUBENTRY 2 org.hibernate.eclipse.help 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.hibernate.eclipse.help_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.hibernate.eclipse.jdt.apt.ui_3.2.0.GA.jar [453] was not resolved.
!SUBENTRY 2 org.hibernate.eclipse.jdt.apt.ui 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.hibernate.eclipse.jdt.apt.ui_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.hibernate.eclipse.jdt.ui_3.2.0.GA.jar [455] was not resolved.
!SUBENTRY 2 org.hibernate.eclipse.jdt.ui 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.hibernate.eclipse.jdt.ui_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.hibernate.eclipse.mapper_3.2.0.GA/ [457] was not resolved.
!SUBENTRY 2 org.hibernate.eclipse.mapper 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.hibernate.eclipse.mapper_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.jboss.tools.hibernate.ui.veditor_3.2.0.GA/ [491] was not resolved.
!SUBENTRY 2 org.jboss.tools.hibernate.ui.veditor 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.jboss.tools.hibernate.ui.veditor_3.2.1.GA
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-05-20 13:41:34.453
!MESSAGE Bundle update@plugins/org.jboss.tools.hibernate.ui.view_3.2.0.GA/ [493] was not resolved.
!SUBENTRY 2 org.jboss.tools.hibernate.ui.view 2 0 2008-05-20 13:41:34.453
!MESSAGE Another singleton version selected: org.jboss.tools.hibernate.ui.view_3.2.1.GA

It looks like Eclipse resolved libraries to newer versions. Do you think there's a version mismatch problem somewhere?

Best regards,
-CK

_________________
CK


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 1:58 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well you obviously have two different versions in there.

But it seems they are all loaded ....not sure why you dont have a Code generation action.

Do you have the hibernate perspective at least ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 11:05 am 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Max-

I cleaned out the different versions and now get no warnings on startup, but still don't see the menu items. I also don't see the Hibernate Perspective.

Thanks for your help. I'm going to abandon the Eclipse approach and work with Ant scripts to see if I can make progress there.

Sincerely,
-CK

_________________
CK


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 21, 2008 11:32 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
tens of thousands of people have installed it without any problems ...soemthing must be different at your end ;)

eclipse -debug *must* list why the hibernate plugins does not get loaded.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 23, 2008 11:48 am 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Hello Max-

I'm back... I got things to build with Ant, and I want to see if I can figure out what's going wrong with Eclipse + Hibernate Tools (if you have the patience :).

>> tens of thousands of people have installed it without any problems

I must be special... :(

I started over on a new machine and have done the following:
- Installed Eclipse from eclipse-SDK-3.3.2-win32.zip by unzipping it and creating a shortcut to eclipse.exe.
- Installed Hibernate tools from HibernateTools-3.2.2.Beta1.zip by unzipping it and copying the contents of the "features" and "plugins" directories into the corresponding directories under eclipse.
- Added the -debug option to my Windows shortcut to Eclipse.

When I run Eclipse I do see the console window indicating that I am running in debug mode. I go to the "Plugin Development" Perspective (I assume that is the right place to find the Error Log). I do not see any errors or warnings in the Error Log. If I click on the "Open Perspective" icon near the upper right corner, and click on the "Other..." menu item, I get a list of perspectives. I don't see the "Hibernate Perspective" in that list (and I assume I should).

What is the best way to debug this? Post a list of the contents of my eclipse plugins and features directories? Anything else?

Thanks In Advance,
-CK

_________________
CK


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 26, 2008 1:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eclipse-sdk does not include webtools so it wont be able to load hibernate plugins successfully.

when you run with -debug that should definitly be visible in the error log.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 29, 2008 12:26 pm 
Newbie

Joined: Mon May 19, 2008 11:46 pm
Posts: 9
Location: San Francisco Bay Area
Max-

Thanks. I installed using eclipse-jee-europa-winter-win32.zip and I am able to see the Hibernate perspective.

-CK

_________________
CK


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 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.