-->
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: hibernatedoclet doesn't generate any *hbm.xml files
PostPosted: Sun Mar 20, 2005 8:32 am 
Newbie

Joined: Fri Mar 04, 2005 3:00 pm
Posts: 14
Hello,

I've tryed to solve this problem by myself by gathering all the information i could find.... but it seems I failed.
I read the docs and the many entries on the forum having the same subject but i couldn't find a solution.
I hope someone can see what am i doing wrong.

My problem seems simple : no mapping files generated by hibernatedoclet.
My only output is the following :

*******************************************************
Buildfile: D:\radu\WORK\CLims\newLimsWebClient\build.xml
generate-hbm:
[hibernatedoclet] Mar 20, 2005 3:48:53 AM xdoclet.XDocletMain start
[hibernatedoclet] INFO: Running <hibernate/>
[hibernatedoclet] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
[hibernatedoclet] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
[hibernatedoclet] The referring classes do not import any fully qualified classes matching these classes.
[hibernatedoclet] However, since no packages are imported, xjavadoc has assumed that the referred classes
[hibernatedoclet] belong to the same package as the referring class. The classes are:
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\HibernateWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientContactInfo.java --> IWebClient qualified to ro.citrusmedia.lims.web.webclients.IWebClient
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientInfo.java --> IWebClient qualified to ro.citrusmedia.lims.web.webclients.IWebClient
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\HibernateWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientContactInfo.java --> IWebClient qualified to ro.citrusmedia.lims.web.webclients.IWebClient
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientInfo.java --> IWebClient qualified to ro.citrusmedia.lims.web.webclients.IWebClient
[hibernatedoclet] WARNING: Some classes refer to other classes that were not found among the sources or on the classpath.
[hibernatedoclet] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
[hibernatedoclet] The referring classes do not import any fully qualified classes matching these classes.
[hibernatedoclet] Since at least one package is imported, it is impossible for xjavadoc to figure out
[hibernatedoclet] what package the referred classes belong to. The classes are:
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\InMemoryWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\JPOXWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientsFacadeEJB.java --> SessionBean qualified to ro.citrusmedia.lims.web.webclients.SessionBean
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\InMemoryWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\JPOXWebClientsDAO.java --> IWebClientsDAO qualified to ro.citrusmedia.lims.web.webclients.IWebClientsDAO
[hibernatedoclet] D:\radu\WORK\CLims\newLimsWebClient\source\java\ro\citrusmedia\lims\web\webclients\WebClientsFacadeEJB.java --> SessionBean qualified to ro.citrusmedia.lims.web.webclients.SessionBean
BUILD SUCCESSFUL
Total time: 9 seconds
***********************************************************

i've seen this kind of output to other guys, but could not see the solution they applied.

Where is the problem? since my java classes are located/identified ok, and I believe they have hibernate tags corectly put.

Thanks in advance.
Radu


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 9:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Its indicating a class path issue. Hard for us to see where obviously.
Have you had a look at the JAOO Tools workshop?
It incudes a number of tools examples including XDoclet. Its getting alittle old now but as an example its a great source.

Hmmm... could not find it. Must have been removed. In anycase, looking at the external tutorials there are a few examples around including this one.

http://www.warfrog.com/hibernatetutorial/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 5:57 pm 
Newbie

Joined: Fri Mar 04, 2005 3:00 pm
Posts: 14
i finaly figured it out .... anyway I believe it was a weird error.
In the hibernatdoclet I had

<fileset dir="source/java/ro/lims/web/webclients">
<include name="**/*.java"/>
</fileset>

an when i changed it to

<fileset dir="source/java">
<include name="**/*.java"/>
</fileset>
everything worked.

Realy i don't know why it doesn't work when i give it the whole path... and works only when i give the path to the base of the root package; i'll try to take it as it is.
Thanks for the link.


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.