-->
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.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cannot get Eclipse plugin to work properly
PostPosted: Fri Mar 31, 2006 4:38 am 
Newbie

Joined: Thu Sep 08, 2005 2:43 am
Posts: 6
I cannot get the Hibernate Eclipse plugin to work properly. I have established contact with my database and I have successfully genereted my model classes and mapping files.

Though, I can't get the some things to work, like the Hibernate Relationals Model or the Hibernate Query result or the reveng.xml editor.
I have some warnings in my Error log, see below.

Hibernate version:
Plugin version 3.1.0.beta4

Mapping documents:
N/A

Code between sessionFactory.openSession() and session.close():
N/A

Full stack trace of any exception that occurs:
Warnings in Error Log:
WARN Worker-6 net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: bundleresource://242/ehcache-failsafe.xml

and

WARN Worker-6 org.hibernate.impl.SessionFactoryObjectFactory - Could not bind factory to JNDI

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getNameParser(Unknown Source)
at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:290)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:265)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:260)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:70)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

Name and version of the database you are using:
MySQL 4.0.12-nt

The generated SQL (show_sql=true):
N/A

Debug level Hibernate log excerpt:
N/A


Any ideas, please?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 31, 2006 6:12 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
they are just standard warnings from hibernate - nothing that hint it is not working.

What do you mean by not work properly ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 7:51 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
I have the same problem/warnings when using Hubernate Tools with Eclipse 3.2 M6. U using an Orcale 10 Database, and HIbernate 3.1 with Spring 1.2.7.

In Hibernate Configurations view i see Configuraration/Session Fatory/Database icons. But when I click on the Database icon I can't see my tables :-( Nothing happens...

Any help aprecciated!

Thanks
Angela


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 8:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
im pretty sure it is simply taking its time to read the whole db (yes, not intended but that is probably what happens)

OR

you have set default catalog/schema to something in lower case which will not match on oracle which is case sensitive.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:08 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
max wrote:
im pretty sure it is simply taking its time to read the whole db (yes, not intended but that is probably what happens)

OR

you have set default catalog/schema to something in lower case which will not match on oracle which is case sensitive.


I found the error, i had to remove the default schema and default catalog entry from the configuration file.

Everythings works fine now. I also suceeded to create my Mapping and Model Files. But no i would like to customize the code generation. I read in the documentation

http://www.hibernate.org/hib_docs/tools ... tml#d0e258

that there is a hibernate reverse engineering editor which should open when a .reveng.xml file is opened. But i don't succeed with that...the editor doesn't get opened :-/

Regards Angela


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
did you try and create the reveng.xml via the wizard ? it should create a reveng.xml that has the correct content for the editor to work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:36 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
max wrote:
did you try and create the reveng.xml via the wizard ? it should create a reveng.xml that has the correct content for the editor to work.


yes I created it with the wizard. It looks like that:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>
<table-filter match-schema="NAJSRE7_WEB" match-name="TBENUTZER"/>
<table-filter match-schema="NAJSRE7_WEB" match-name="TBENUTZER_STATUS"/>
<table-filter match-schema="NAJSRE7_WEB" match-name="TZUGANG"/>
</hibernate-reverse-engineering>

Do you have any ideas?

Regards Angela


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and when you right click on it what editor do you have in the "Open with" editor ?

...and when it opens does the outline contain (Hibernate Tools) ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:45 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
max wrote:
and when you right click on it what editor do you have in the "Open with" editor ?

Then i only see the Text and XML Editor.... :-/

max wrote:
a
...and when it opens does the outline contain (Hibernate Tools) ?

No it doesn't, its a normal XML outline.

I'm using the newest version of hibernate tool with eclipse 3.2 M6. Isn't it working correctly with this Eclipse version?

Thanks for helping
Angela


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
xml editor is the correct, but no 3.2M6 breaks WTP 1.0.x which we are based on.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 06, 2006 2:52 am 
Regular
Regular

Joined: Mon Mar 06, 2006 6:18 am
Posts: 95
Location: Bern, Switzerland
max wrote:
xml editor is the correct, but no 3.2M6 breaks WTP 1.0.x which we are based on.


yes! It's working with Eclipse 3.1.2...Thanks a lot for helping!

Angela


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 8:19 am 
Newbie

Joined: Wed May 10, 2006 8:12 am
Posts: 2
max wrote:
xml editor is the correct, but no 3.2M6 breaks WTP 1.0.x which we are based on.


is it possible to deactivate the content-type-mapping and use a manually added extension-mapping in the editor-preferences instead?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 8:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why would you want to deativate content-type-mapping ?

regarding extension-mapping then just do that as you would with any editor - just use the WTP XML Editor when you do the association and it will automatically start us if the content matches.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 9:12 am 
Newbie

Joined: Wed May 10, 2006 8:12 am
Posts: 2
max wrote:
why would you want to deativate content-type-mapping?


a couple of days ago, i read an old eclipse-bugreport about extension-mapping/content-type-mapping and somehow i thought, that the reason why the reveng-editor doesn't open is because of that bug.
At the time i wrote the previous post i wasn't aware of the fact that eclipse identified the content of the reveng-file correctly and that the problem must be another - maybe i was a little bit fast with that post...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 16, 2006 6:25 pm 
Newbie

Joined: Wed May 03, 2006 5:09 pm
Posts: 17
So is someone going to fix this or is it just not going to work with 3.2?

Drew


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next

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.