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.  [ 4 posts ] 
Author Message
 Post subject: Prloblem with DAO code generation
PostPosted: Thu Jul 31, 2008 7:52 am 
Beginner
Beginner

Joined: Mon Mar 17, 2008 11:25 am
Posts: 42
hi , Ihave fallowing problem, I need to generate Code (Hibernate tools) and recive fallowing error :


Quote:
org.hibernate.MappingException: invalid configuration
invalid configuration
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
Document is invalid: no grammar found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
Document is invalid: no grammar found.




with document is invalid???


thanks for help


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 10:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
The configuration file, normally named hibernate.cfg.xml.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 11:58 am 
Beginner
Beginner

Joined: Mon Mar 17, 2008 11:25 am
Posts: 42
max here' my hibernateconfig it seems to be ok ???
Code:
<hibernate-configuration>
   <session-factory>
      <property name="hibernate.connection.driver_class">
         com.mysql.jdbc.Driver
      </property>
      <property name="hibernate.connection.password">patryk1</property>
      <property name="hibernate.connection.url">
         jdbc:mysql://localhost:3306/handwerk
      </property>
      <property name="hibernate.connection.username">root</property>
      <property name="hibernate.dialect">
         org.hibernate.dialect.MySQLDialect
      </property>
      <mapping resource="model/Adressen.hbm.xml" />
      <mapping resource="model/Artikel.hbm.xml" />
      <mapping resource="model/Artikellieferanten.hbm.xml" />
      <mapping resource="model/Beleg.hbm.xml" />
      <mapping resource="model/Belegpos.hbm.xml" />
      
   </session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 12:30 pm 
Beginner
Beginner

Joined: Mon Mar 17, 2008 11:25 am
Posts: 42
I found mistake it was xml deklaration, but now I recive fallowing error :
[code]<?xml version="1.0" encoding="utf-8"?>
org.hibernate.console.HibernateConsoleRuntimeException: Output directory 'DAO' in DAO code (.java) does not exist.
Output directory 'DAO' in DAO code (.java) does not exist.
<No message>
code][/quote]


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