-->
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.  [ 3 posts ] 
Author Message
 Post subject: Classpath configuration for JBoss5 in Developer Studio
PostPosted: Sun Jan 18, 2009 7:52 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
I'm using JBDS 2.0.0.Beta1 to update some Seam demos for JBoss AS 5.
I'm building EARs, using the wizard to create the "4 projects" structure.
I've noticed that org.hibernate.annotations is on my classpath, as expected, but org.hibernate.validator is not.

The project creation wizard is adding the "JBoss 5.0 Runtime" to the project's classpath, and this is containing my {JBOSS_HOME}/client and {JBOSS_HOME}/lib and some other paths, like web, JSF, EJB3, AOP libraries, but {JBOSS_HOME}/common/lib is missing.

This /common/lib is were I've found hibernate-validator.jar. Also you can see the [hibernate-annotations.jar] being included in both paths /client and /common/lib (which is strange IMHO as I had understood the new lib structure was meant to avoid having multiple copies of jars).

Which one should be correct? should I have a copy of hibernate-validator in both classpaths or should I remove one of the hibernate-annotations; in the removal case I think the JBDS should add the other path to project's classpaths?
Not only validator, but also the "hibernate core" libs are not available at compile time, so it looks like the tool is making it mandatory to use JPA instead of "classic" hibernate.

Should I open an issue? to which project ??

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2009 5:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Use latest builds to get something that work with AS 5 (AS 5 GA changed their lib layout after Beta1 was out) - that being said your issue might still be relevant but that should be raised in jbds/jboss tools forums.

This forum is for hibernate tools which is meant to be ignorant of how AS is setup in your ide

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 19, 2009 7:43 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Max,
thanks for the directions;
Usually I use vanilla Ganymede+nightly builds but this time I wanted the splashscreen and icons as I'm going to show it at JavaDay Roma.
I'll replace the beta1 JBDS plugins with nightly builds too, or move the splashscreen to Ganymede.

thanks and sorry for the wrong forum.

_________________
Sanne
http://in.relation.to/


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