-->
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: hbm2ddl and log4j error. Whats wrong?
PostPosted: Wed Jul 09, 2008 2:33 am 
Newbie

Joined: Wed Jul 09, 2008 2:26 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
ejb3-persistence-3.3.0.jar
hibernate-3.2.2.jar
hibernate-3.2.3.jar
hibernate-3.2.4.sp1-patch.jar
hibernate-3.2.5-patched-weaved-by-jnet-log-1.2.8.jar
hibernate-3.2.5-patched.jar
hibernate-3.2.6.jar
hibernate-annotations-3.3.0.jar
hibernate-annotations-3.3.1.jar
hibernate-annotations-src-3.3.0.zip
hibernate-annotations-src-3.3.1.zip
hibernate-commons-annotations-3.3.0.jar
hibernate-entitymanager-3.3.0.jar
hibernate-entitymanager-3.3.2.jar
hibernate-entitymanager-src-3.3.0.zip
hibernate-entitymanager-src-3.3.2.zip
hibernate-src-3.2.2.zip
hibernate-src-3.2.3.zip
hibernate-src-3.2.4.sp1-patch.zip
hibernate-src-3.2.5-patched.zip
hibernate-src-3.2.6.zip
hibernate-tools-3.2.0.b10.jar
hibernate-weaved-by-aspectj-3.2.2.jar
jboss-archive-browsing-3.3.0.jar



Full stack trace of any exception that occurs:

[exec] doBuild:
[exec] Warning: Reference build.path has not been set at runtime, but was found during
[exec] build file parsing, attempting to resolve. Future versions of Ant may support
[exec] referencing ids defined in non-executed targets.
[exec] [hibernatetool] Executing Hibernate Tool with a JPA Configuration
[exec] [hibernatetool] 1. task: hbm2ddl (Generates database schema)
[exec] [hibernatetool] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
[exec] [hibernatetool] log4j:WARN Please initialize the log4j system properly.
[exec] [hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema)
[exec] [hibernatetool] To get the full stack trace run ant with -verbose
[exec] [hibernatetool] Persistence unit not found: 'BanPen'.

[exec] BUILD FAILED
[exec] C:\Java\Workspaces\test\BanPen\build.xml:16: The following error occurred while executin
g this line:
[exec] C:\Java\Workspaces\test\BuildUtils\scripts\build_include.xml:281: The following error occurred while ex
ecuting this line:
[exec] C:\Java\Workspaces\test\BuildUtils\scripts\build_include.xml:243: The following error occurred while ex
ecuting this line:
[exec] C:\Java\Workspaces\test\temp_\BanPen_build.xml:1: The following error occurred while exe
cuting this line:
[exec] C:\Java\Workspaces\test\BuildUtils\scripts\build_include.xml:118: The following error occurred while ex
ecuting this line:
[exec] C:\Java\Workspaces\test\temp_\BanPen_build.xml:1: The following error occurred while exe
cuting this line:
[exec] C:\Java\Workspaces\test\BanPen\build.xml:16: The following error occurred while executing t
his line:
[exec] C:\Java\Workspaces\test\BuildUtils\scripts\build_include.xml:281: The following error occurred while ex
ecuting this line:
[exec] C:\Java\Workspaces\test\BuildUtils\scripts\build_include.xml:243: The following error occurred while ex
ecuting this line:
[exec] C:\Java\Workspaces\test\temp_\BanPen_build.xml:1: The following error occurred while execut
ing this line:
[exec] C:\Java\Workspaces\test\BanPen\build.xml:23: Persistence unit not found: 'BanPen'.

[exec] Total time: 1 minute 20 seconds
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks




Could anyone tell me what to start looking for?

Thx
M


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 5:27 pm 
Senior
Senior

Joined: Mon Jul 07, 2008 4:35 pm
Posts: 141
Location: Berlin
Hi mickeys,

Quote:
...
[exec] [hibernatetool] Persistence unit not found: 'BanPen'.
...


Quote:
...
[exec] C:\Java\Workspaces\test\BanPen\build.xml:23: Persistence unit not found: 'BanPen'.
...


Search the internet for "Persistence Unit" (That's a Java 5 EE Anotation Type, see its API Doc). When viewing results always have a look at the version and/or date of the page since there is much old stuff around out there. ("Persistence Context" might be a back up option for the search)

Another hint is
Quote:
...
[exec] [hibernatetool] To get the full stack trace run ant with -verbose
...

try running ant the same with the -verbose flag to get more detailed information.

CU
Froestel

_________________
Have you tried turning it off and on again? [Roy]


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 12, 2008 8:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
looks like you don't have an META-INF/persistence.xml with a BanPan persistence unit defined.

_________________
Max
Don't forget to rate


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.