ant « Development « JPA Q&A





1. Ant: How do I fix a WrappedRuntimeException when using task?    stackoverflow.com

I tried to use the xslt task in Ant to modify a Hibernate mapping file (*.hbm.xml) using XSLT. However I kept on getting an com.sun.org.apache.xml.internal.utils.WrappedRuntimeException. If I take out the !DOCTYPE declaration ...

2. Can't enhance kodo JPA classes    stackoverflow.com

I am just moving to Kodo JPA version 4.2 and it isn't going smoothly. when I run my any build script (in eclipse 3.4.1) I get

BUILD FAILED
D:\My Documents\eclipseWorkspaces\cnmp e341\blue ebig\ebig\src\java\build.xml:91: <openjpa-1.1.0-r422266:657916 ...

3. Can someone provide a bare bones Ant build script for Hibernate?    stackoverflow.com

Most Hibernate tutorials use Maven for handling the build, but I'm looking for a basic configuration using Ant instead. I've reviewed this some: https://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html However, it seems like it covers way ...

4. Beginning Hibernate 3.5 - Problems with ant task    stackoverflow.com

I'm trying to work through "Beginning Hibernate 3.5", and I've hit an initial snag. When I run ant exportDDL, I get the following error:

exportDDL:
   [htools] Executing Hibernate Tool with a ...

5. [platform-dev] OpenJPA Enhacer Ant Task for RCP. Need help.    forums.netbeans.org

Hi,all! OpenJPA persistence implementation requires Entity classes to be enhaced by ant task. (post compile) So I need one in my RCP. My entities are in module (NOT wrapped libriary) I 've tried http://rubenlaguna.com/wp/2009/09/16/openjpa-enhancer-ant-task-in-a-netbeans-java-class-library/ But this only suitable for plain Java project (not RCP modules) ... Anybody can help me to write custom ant task? P.S.: It could be great if ...

6. Hibernate & Ant    coderanch.com

I'm at my wits end with this particular problem. I'm running an ant build script to push the schema to the db server from my hibernate mappings and I'm getting this error: Schema text failed: net.sf.Hibernate.MappingException: persistent class com.*.*.* not found First, the mapping document is located quite correctly. I had this same problem yesterday, however upon changing my classpath around ...

7. hibernatetool ant task / jpaconfiguration gives ClassNotFoun    forum.hibernate.org

Author Message rmz Post subject: hibernatetool ant task / jpaconfiguration gives ClassNotFoun Posted: Fri Oct 23, 2009 7:47 am Newbie Joined: Thu Oct 15, 2009 8:04 am Posts: 6 Hi everyone, I have a set of persistent classes, defined by JPA annotations. My persistence XML from META-INF looks like Code:

8. Salto ANT Build?    forum.hibernate.org

I downloaded Salto-DB generator. It would be useful to me, as an ANT task, to read my DB tables and generate the hbm.xml files. It throws a null pointer exception in VelocityAbstractPlugin. I don't know velocity, so not sure what's going on. Has anyone gotten this to work? Or, can you suggest a different ANT task that actually does work? I ...

9. Sample code is not executing though Ant Script.    forum.hibernate.org

Author Message sharadk Post subject: Sample code is not executing though Ant Script. Posted: Tue Aug 24, 2010 7:42 am Newbie Joined: Tue Aug 24, 2010 5:43 am Posts: 3 Hello, I am new into the Hiberanate development and this is my 1st application with Hibenate/MySql/Ant. I am refrring the Hibernate manning book as a reference material. I developed ...





10. Difficulty working with Ant...    forum.hibernate.org

Author Message awebster Post subject: Difficulty working with Ant... Posted: Mon Feb 28, 2011 6:08 am Newbie Joined: Mon Feb 28, 2011 5:52 am Posts: 2 Hi, I'm new to Hibernate and I'm following APress' "Beginning Hibernate 2nd Ed" by Jeff Linwood and Dave Minter. I'm having trouble getting the examples running using Ant as described in the book. ...

11. Error when running ant script: "java.lang.NoSuchMethodError"    forum.hibernate.org

Hello folks I am beginning to use hibernate. I bought the book "Java Persistence with Hibernate" and am going through the examples in chapter 2. Now I am stuck trying to reverse-engeneer a table (MESSAGES) using an ant script. The important part of the ant script is this:

14. HELP! "ant junitreport" fails    forum.hibernate.org

I have ANT 1.6.1 installed with Hibernate 2.1. "ant junitreport" returns the following message. Does anyone have any ideas? ---- beginning of transaction ---- Buildfile: build.xml [taskdef] Could not load definitions from resource clovertasks. It could not b e found. splash: cleantestdb: init: [echo] Build Hibernate-2.1 (2004-03-02 05:30:10) compile: compiletest: junit: BUILD FAILED C:\Program Files\hibernate-2.1\build.xml:406: Could not create task or type ...

15. 'splash' ant task problem!!    forum.hibernate.org

16. doesn't work "ant eg",    forum.hibernate.org

i've dowloaded hibernate 2.1.4, extracted it, and then did the folowing: Demo: (1) copy your JDBC driver to the lib directory (2) edit src/hibernate.properties (3) run "ant eg" or "build eg" (4) browse the sourcecode in eg/org/hibernate/auction (1) dont copy anything, (i want to use jsqldb.jar) (2) don't edit src/hibernate.properties (3) run "ant eg" -------------> And got this: D:\or_mapping\hibernate\hibernate-2.1>build eg D:\or_mapping\hibernate\hibernate-2.1>set ...





17. can run 'ant eg'    forum.hibernate.org

The community need more details! When debugging a problem, we can't make assumptions about your environment!!! In your case at least the log output will help out. When asking questions, give at least: # the Hibernate version # your mapping documents # the Java code between sessionFactory.openSession() and session.close() # the full stack trace of any exception that occurs # the ...

18.  ANT task for C3P0?    forum.hibernate.org

Just wondering if there is a way to make the ant task create the config file with C3P0 statements, instead of the default hibernate connection pool? Currently I have this ANT task: Code:

19. Ant build script error    forum.hibernate.org

I have a folder called practice2 that is in the hibernate-2.1 folder. In the folder I havea Collection.java class, a Collection.hbm.xml file, among other .java files. I believe the files work because if I manually create the tables, I can like store info into the tables. My problem is trying to create a table using the scema export tool. It seems ...

20. need help for build.xml [Ant newbie]    forum.hibernate.org

I have read pretty much all the posts on the Mapping Exception Error: No persistent class found. Everyone keeps on saying classpath, but I believe my classpath is correct. Do I need to include something in my environment variable classpath? Here is my build.xml file:

21. Ant + Hibernate = Confusion + Grief    forum.hibernate.org

22. Ant+ Hibernate = Confusion + Grief    forum.hibernate.org

23. ant eg error    forum.hibernate.org

I downloaded hibernate 2.1.7c and unzipped it as described. I'm using whitebox linux with firebird 1.5. The jaybird driver is stored in the lib directory and I modified the hibernate.properties as described in the readme.txt. The command 'ant eg' ends with an error: Buildfile: build.xml [taskdef] Could not load definitions from resource clovertasks. It could not be found. eg: [echo] Remember ...

24. "ant eg" - failed :(    forum.hibernate.org

Hibernate version: 2.1 Name and version of the DB: Apache Tomcat 5.5 I'm a first time user of hibernate... Ant works fine, but when I fire the command "ant eg"; It fails - marked in red below :( - As a first time user, I searched the web a few hours, but it seems that step 2 ->edit etc/hibernate.properties, specifying values ...

25. Ant hibernatecfg task with inner class    forum.hibernate.org

Hibernate version: 2.1.7 Hello, i have a problem with the generated hibernate config and an inner class. i use this ant task to generate the hibernate.cfg.xml file: it generates this: net.sf.hibernate.dialect.MySQLDialect true false myself secret com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/mydb

26. ant junitreport has 7 Errors    forum.hibernate.org

I would like to know how significant these errors are, but I've spent several hours on Google and looking at the Hibernate forums without throwing much light. Before I start to use Hibernate seriously, I would like to know how much I can rely on it. Possibly these errors will not affect my planned use, but I do not know how ...

27. errors reported from running "ant junitreport"    forum.hibernate.org

I would appreciate it if anyone can help me understand the significance of the 7 Errors reported by running the "ant junitreport" - as documented in the hibernate-3.0.5/readme.txt. [N.B. I submitted a prior post on this, but had provided results that were not so well summarised, and a bit garbled - hopefully this attempt will be more successful!] I am quite ...

28. perf ant task    forum.hibernate.org

I am trying to run the performance tests which come with hibernate. These tests exist under the perf ant task. Is this task still usable? I noticed the task is trying to invoke tests under the org.hibernate.test package but it seems these tests have moved to org.hibernate.test.legacy. When I correct this in the build.xml, I am still getting hibernate exceptions stating ...

29. Easy Tutorials, FAQs, or eg build files for H(3) & Ant (    forum.hibernate.org

Hallo -- I am having an absolute nightmare trying to get Hibernate 3 tools for Ant (v3) working, and was wondering if anybody knew of any tutorials or FAQs or articles or ANYTHING that could help. I have the HIA book and the Developer's Notebook, but these are not for this version of Hibernate, and there have been substantial changes. I ...

30. hibernate without ant    forum.hibernate.org

well thanx a lot . well atleast i knew that much. But what the problem is , if i run my application through ant, it works fine but if i run it through my IDE it gives error. And the error is, it cant find hbm.xml files. So m i missing any link? or some setting?? I hope u get my ...

32. [A beginner] problem building the example with ant 1.6.5    forum.hibernate.org

Hi all I am new to Hibernate and I was following the steps in the road map I downloaded the latest version of ant 1.6.5 and when I typed > ant eg I had the following error Buildfile: build.xml BUILD FAILED /home/mdeyab/Desktop/hibernate-3.0/build.xml:106: taskdef A class needed by class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask cannot be found: junit/framework/Test Total time: 1 second I really need help ...

33. Having problem in Hibernate config without using Ant    forum.hibernate.org

org.hibernate.HibernateException: database product name cannot be null at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:374) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004) at customer.Main.main(Main.java:80) Exception in thread "main" This is my error while i make run this program. my hibernate.cfg.xml is as below. com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource

34. Without using Ant method, how can i make habernate work    forum.hibernate.org

Hi, I have done by ant. Project works ok. but how can i do same without ant. I m using JBuilder and Sybase database. My hibernate.cfg.xml is as below. com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource jdbc:sybase:Tds:sipl48:5000/Test jpanchal jpanchal