Caveat emptor: version caveatemptor.HiA-SE-3.1alpha5.zip
I downloaded the example set, changed the database files (3). I am trying to run the webappliction on my Local Tomcat 5.5.
So I ran the below ant webapp.test.deply and it worked well. It deployed the webapp into tomcat, but the app will not start because of this error from Tomcat catalina log. For some reason it cannot read the User.hbm.xml file.
But when I extract the caveatemptor.jar, the hibernate.configuration.xml file has it.?????
Thanks,
Scott
TOMCAT LOG
Apr 11, 2006 1:22:15 PM org.hibernate.ce.auction.persistence.HibernateUtil <clinit>
SEVERE: Building SessionFactory failed.
org.hibernate.MappingException: Could not read mappings from resource: org/hibernate/ce/auction/model/User.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:483)
at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:364)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1389)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1370)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1346)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1266)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1252)
at org.hibernate.ce.auction.persistence.HibernateUtil.<clinit>(Unknown Source)
at org.hibernate.ce.auction.web.listener.HibernateListener.contextInitialized(Unknown Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4162)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:429)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:480)
... 30 more
Caused by: org.dom4j.DocumentException: Error on line 6 of document : Error opening external DTD '/org/hibernate/ce/auction/persist
Nested exception: Error opening external DTD '/org/hibernate/ce/auction/persistence/globals.dtd'.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:420)
... 31 more
Apr 11, 2006 1:22:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Apr 11, 2006 1:22:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/caveatemptor-test] startup failed due to previous errors
Apr 11, 2006 1:22:15 PM org.hibernate.ce.auction.web.listener.HibernateListener contextDestroyed
INFO: Shutting down Hibernate persistence service...
C:\work\caveatemptor\caveatemptor.HiA-SE>ant webapp.test.deploy
Buildfile: build.xml
Trying to override old definition of datatype junit
webapp.test.compile:
[mkdir] Created dir: C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\classes
[javac] Compiling 90 source files to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
webapp.test.copymetadata:
[copy] Copying 13 files to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\classes
[copy] Copying 2 files to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\classes
webapp.test.war:
[copy] Copying 1 file to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\caveatemptor
[copy] Copying 1 file to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\caveatemptor\WEB-INF
[mkdir] Created dir: C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\caveatemptor\WEB-INF\lib
[jar] Building jar: C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\caveatemptor\WEB-INF\lib\caveatemptor.jar
[copy] Copying 13 files to C:\work\caveatemptor\caveatemptor.HiA-SE\build\webapp.test\caveatemptor\WEB-INF\lib
webapp.test.deploy:
[echo] Don't forget to set the path to your Tomcat install as $webapp.tomcat.home!
[copy] Copying 16 files to C:\Tomcat\webapps\caveatemptor-test
[echo] Application deployed at
http://localhost:8080/caveatemptor-test/