-->
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.  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Tools installation problems for Eclipse 3.2.0 b6
PostPosted: Wed Jul 12, 2006 7:59 pm 
Beginner
Beginner

Joined: Mon Dec 01, 2003 8:48 pm
Posts: 47
Location: Texas, United States
Hibernate version: HibernateTools-3.2.0.beta6

Eclipse version: Version: 3.1.2 Build id: M20060118-1600

This is what I found in the Product Configuration properties
Plug-in "org.eclipse.wst.validation.ui" version "1.0.0.v200605301759" referenced by this feature is missing.

Plug-in "org.eclipse.wst.common.frameworks.ui" version "1.0.100.v200605261351" referenced by this feature is missing.


I unzipped the hibernate tools install into c:\eclipse(my root dir).

Also when I try to install it using the Help --> Software Updates --> Find and Install --> Search for new features to install . I checked the tools.hibernate.org site and clicked finish and got this error

Network connection problems encountered during search.
Unable to access "http://tools.hibernate.org".
Error parsing site stream. [The XML stream is not a valid default "site.xml" file. The root tag is not site.]
Error parsing site stream. [The XML stream is not a valid default "site.xml" file. The root tag is not site.]

Any help would be appreciated! Thanks all!
Nathan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 12, 2006 8:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
See http://www.hibernate.org/255.html
Try it using eclipse 3.2.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 2:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and tools.hibernate.org is definitly not the updatesite.

Check tools.hibernate.org for the link.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 15, 2006 3:51 pm 
Newbie

Joined: Sun Jun 04, 2006 8:46 am
Posts: 13
The same message here. I use a fresh Eclipse 3.2 install.

_________________
--- cogens


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 16, 2006 5:51 am 
Newbie

Joined: Sun Jun 04, 2006 8:46 am
Posts: 13
By manually editing feature.xml errors are gone.

But when I try the seam example from jboss I got errors in the generated source files that "javax.persistence.*" can not be resolved.

I thought hibernatetools has got every dependency included?

_________________
--- cogens


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 16, 2006 12:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the code generation does not (yet) manipulate your project lib dependencies.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 16, 2006 3:26 pm 
Newbie

Joined: Sun Jun 04, 2006 8:46 am
Posts: 13
Making some progress:

Adding the needed libs to the project/lib directory like shown in the jboss seam movie tutorial won't do anything. Adding them via the Build-Path option in the project-properties dialog will do it.

So I finally deployed to JBoss AS 4.0.4.GA and am now stuck at the following issue:

Code:
20:52:40,515 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
javax.faces.el.EvaluationException: Cannot get value for expression '#{roleSelector.pageTitle}'
   at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:397)
   at javax.faces.component.UIOutput.getValue(UIOutput.java:75)
   at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225)
   at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:65)
   at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:53)
   at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
   at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
   at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)
   at org.apache.jsp.findRole_jsp._jspx_meth_h_outputText_0(findRole_jsp.java:215)
   at org.apache.jsp.findRole_jsp._jspx_meth_f_view_0(findRole_jsp.java:150)
   at org.apache.jsp.findRole_jsp._jspService(findRole_jsp.java:110)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)


Another thing that strikes me odd is the property "hibernate.dialect" that has the value "org.hibernate.dialect.HSQLDialect" in project/resources/META-INF/persistence.xml and the value "org.hibernate.dialect.MySQLDialect" in hibernate.cfg.xml.

_________________
--- cogens


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 16, 2006 4:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Check the server logs for a possible more concrete error message.


the persistence.xml is not templatized yet (contributions welcome)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Problems with Beta6 installation
PostPosted: Mon Jul 17, 2006 12:14 pm 
Newbie

Joined: Fri Jun 30, 2006 5:02 pm
Posts: 7
Location: Vista, CA
cogens wrote:
By manually editing feature.xml errors are gone.


I got this error too. Started with a clean install of Eclipse 3.2. Also, I'm getting the following:

Plug-in "org.eclipse.wst.common.frameworks.ui" version "1.0.100.v200605261351" referenced by this feature is missing.


Just wondering... What did you change in feature.xml to fix the problem?

Is this a known issue with the hibernate tools team? Can we get 'Official' instructions to fix?

Thanks in advance,
Thunder


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 12:38 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
they are fixed in latest svn and in upcoming release.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 12:41 pm 
Newbie

Joined: Fri Jun 30, 2006 5:02 pm
Posts: 7
Location: Vista, CA
Got it working after installing latest nightly build, and launching Eclipse with java 1.5.0_07 vm. Per the thread:

http://forum.hibernate.org/viewtopic.php?t=961692

Thanks Max,
Thunder


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 11:55 am 
Newbie

Joined: Sun Jun 04, 2006 8:46 am
Posts: 13
It seems as if the ResourcBundle cannot be injected in a generated Selector class and therefor is not a Hibernate Tools issue.

The probable root cause:

Code:
Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: roleSelector.resourceBundle

_________________
--- cogens


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 12:10 pm 
Newbie

Joined: Sun Jun 04, 2006 8:46 am
Posts: 13
It is actually a CRUD generator bug.

The generated line in a Selector class:

Code:
      @In
      private transient ResourceBundle resourceBundle;


should be

Code:
      @In(create = true)
      private transient ResourceBundle resourceBundle;


See also this thread http://jboss.com/index.html?module=bb&op=viewtopic&t=86064

_________________
--- cogens


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 18, 2006 9:21 am 
Beginner
Beginner

Joined: Mon Dec 01, 2003 8:48 pm
Posts: 47
Location: Texas, United States
David and cogens,

Thanks for the tip. I installed a fresh Eclipse 3.2 and ran it with eclipse -clean, and all of the Hibernate tools are now appearing. I would advise anyone who is having problems with the Hibernate tools appearing in Eclipse to use a fresh install.

Thanks to everyone who posted to this thread! :-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 17, 2006 1:09 pm 
Newbie

Joined: Thu Jul 20, 2006 12:00 pm
Posts: 10
cogens wrote:
By manually editing feature.xml errors are gone.

But when I try the seam example from jboss I got errors in the generated source files that "javax.persistence.*" can not be resolved.

I thought hibernatetools has got every dependency included?


I'm having the same problem. I'm using eclipse 3.1.1
What exactly should be changed in feature.xml to make this work?
I tried replacing any occurne of tools.hibernate.org with http://www.hibernate.org/255.html
and failed.
I tried replacing it with
http://downloads.jboss.com/jbosside/upd ... velopment/
and failed.

How do I get the hibernate tools to be installed??


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