-->
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: Problem with a DYNAMIC WEB PROJECT
PostPosted: Tue Aug 17, 2010 3:27 pm 
Newbie

Joined: Tue Aug 17, 2010 3:16 pm
Posts: 8
I've use hibernate with regular java projects, but when I'm trying to use it with a dynamic web project I have this problem

java.lang.ClassNotFoundException: org.hibernate.cfg.Configuration

I have the same jars in my built path than in the others projects, I've been wondering if I need another jar or is there another problem?

Please help me, and my apologies for my English!


Top
 Profile  
 
 Post subject: Re: Problem with a DYNAMIC WEB PROJECT
PostPosted: Tue Aug 17, 2010 9:34 pm 
Regular
Regular

Joined: Sun Feb 14, 2010 3:29 pm
Posts: 58
Location: USA
Ensure your hibernate jars are in your webapp/WEB-INF/lib.

_________________
Zemian Deng
------------
Need a Java Scheduler? Try
http://bitbucket.org/timemachine/scheduler


Top
 Profile  
 
 Post subject: Re: Problem with a DYNAMIC WEB PROJECT
PostPosted: Thu Aug 26, 2010 11:19 am 
Newbie

Joined: Tue Aug 17, 2010 3:16 pm
Posts: 8
Thanks that solve the problem!!! ;)

Know I'm having a problem mapping...

Server Exception. ID: e61a35_12aaef34c43_4
org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: modelos.MtecForm.tecnicoRef in modelos.Mtecnico.tecnicoFormularioList

here is what I usually do
In the Many to one class

.......
private Mtecnico tecnicoRef;
.......
@ManyToOne
public Mtecnico getTenicoRef() {
return tecnicoRef;
}
.......

and in the one to many class


.......
@OneToMany(mappedBy = "tecnicoRef")
@LazyCollection(LazyCollectionOption.FALSE)
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public List<MtecForm> getTecnicoFormularioList() {
return tecnicoFormularioList;
}
.....

Please help me if you see the problem!


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.