hi Konstantin

thanks again for your time

>>Current version under development ( and in maven
>>repository ) is 1.0.4-SNAPSHOT. This is not yet
>>realease because I lack a time and knowlege to fix
>>maven 2 build. ( help is welcome ) 
sadly  i must to say, i dont know nothing of maven :-(
and my boss have a gun, and now i have this problem with xdoclet2/ant


well after read the information, like
http://www.hibernate.org/284.html, i try do use the example configuration
and well
i used to work only with ant, and i have the
xdoclet-plugins-1.0.3.tar.gz, the last version since 2005

here my build.xml


<project name="manoloTest" basedir="." default="hibernate" >
   <property name="xdoclet2.lib.dir" value="${basedir}/MyLib/xdoclet2/lib"/>
       <target name="xdoclet2">
           <mkdir dir="${basedir}/target/xdoclet2/persistence"/>
           <path id="xdoclet2.task.classpath">
              <!-- Add the xdoclet2 plugins jar here -->
               <pathelement
location="${xdoclet2.lib.dir}/../plugins/xdoclet-plugin-hibernate-1.0.jar"/>
              <!--    <pathelement location="${xdoclet2.lib.dir}/"/>           
-->
              <pathelement
location="${xdoclet2.lib.dir}/xdoclet-2.0.4.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/generama-1.2.1.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/nanocontainer-ant-1.0-beta-3.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/nanocontainer-1.0-beta-3.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/picocontainer-1.0.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/qdox-20051211.114207.jar"/>              
              <pathelement location="${xdoclet2.lib.dir}/velocity-1.4.jar"/>    
          
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-20050813.225330.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-define-1.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-jsl-1.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-xml-20050823.222913.jar"/>
              
              <pathelement
location="${xdoclet2.lib.dir}/commons-beanutils-1.7.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-collections-3.1.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jexl-1.0.jar"/>
                <pathelement
location="${xdoclet2.lib.dir}/commons-logging-1.0.4.jar"/>
              
            <pathelement location="${xdoclet2.lib.dir}/dom4j-1.6.jar"/>
            <pathelement
location="${xdoclet2.lib.dir}/jaxen-1.1-beta-4.jar"/>
           <pathelement location="${xdoclet2.lib.dir}/saxpath-1.0-FCS.jar"/>
              <pathelement location="${xdoclet2.lib.dir}/xerces-2.4.0.jar"/>
              
           </path>

           <taskdef  name="xdoclet2" 
classname="org.xdoclet.ant.XDocletTask"
                    classpathref="xdoclet2.task.classpath"  />
       </target>
       <target name="hibernate" depends="xdoclet2">
           <xdoclet2>
               <!-- defines the file handled by xdoclet2 -->
               <fileset dir="${basedir}/src">
                   <include name="**/*.java"/>
               </fileset>

               <!-- defines the processing of a plugin -->
               <component
                  
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
                   destdir="${basedir}/src"
                   version="3.0"
                   />
           </xdoclet2>
       </target>   
</project>


if i excute ant hibernate , i recieve this error


/WEB-INF/build.xml:37: Class Not Found: Classloader URLs (classpath):

well the line is <xdoclet2>

what is wrong?? , i have references to the all 19 jar files of the lib
distribution and the plugin for hibernate


thanks so much for advanced


Konstantin Priblouda wrote:
> 
> 
> --- dr_pompeii <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Hi Konstantin
>> 
>> thanks for your reply and time
>> 
>> >>I hope you are speaking about recent hibernate
>> 3.x? 
>> this appear in the Maniftest in tha hibernate .jar
>> Implementation-Version: 3.2.1.ga
>> Implementation-Vendor: hibernate.org
>> Hibernate-Version: 3.2.1.ga
> That's pretty recent. 
> 
>> >>If you would use xdoclet-2 with recent plugin
>> >>( 1.0.4-SNAPSHOT ) this is going to work 
>> here http://xdoclet.codehaus.org/
>> in the download section the max version is 1.0.3
>> where have you seen the 1.0.4??
> 
> Current version under development ( and in maven
> repository ) is 1.0.4-SNAPSHOT. This is not yet
> realease because I lack a time and knowlege to fix
> maven 2 build. ( help is welcome ) 
> 
> 
>> i suppose that xdoclet2 is another jar, it can live
>> with the jar of the
>> xdoclet1 without problems??? , the syntaxis of
>> xdoclet 1 still unchanged if
>> i use the xdoclet2???
> 
> Well, not exactly one jar as there are dependencies.
> Tehcnically  XD2 is not related to XD1, it is complete
> rewrite with fully new architecture. Syntax is also 
> different (but not that different) , because it
> develped independently since 2003. 
> 
> See tag docs under:
> http://xdoclet.codehaus.org/HibernateTags
> 
> Preferred way to use XD2 is maven2 plugin ( easiest
> setup and you do not have to hunt for dependencies in
> the repositories. )
> 
> regards,
> 
> ----[ Konstantin Pribluda http://www.pribluda.de ]----------------
> Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
> check it out: http://xdoclet.codehaus.org
> 
> 
>  
> ____________________________________________________________________________________
> No need to miss a message. Get email on-the-go 
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> xdoclet-user mailing list
> xdoclet-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem%3A-xdolcet-hibernate-defining-relations-FK-tf3390609.html#a9452984
Sent from the xdoclet-user mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to