Hey guys, quick question and that is when deploying a JAR file containing the hibernate configuration file (hibernate.cfg.xml) does this need to be archived under a folder named configuration, within the archive? Error seems to indicate this, although I don't recall reading anywhere in the documentation about this. As long as it is on the classpath I thought.
At bottom of exception list is an parser error. The XML validates in XML Spy easy enough though.
I am getting this exception when deploying on Weblogic:
org.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1291)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1230)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1216)
at com.blah.dataservice.utils.HibernateUtils.getSession(HibernateUtils.java:24)
at com.blah.dataservice.category.extraction.CategoryExtractorImpl.findAll(CategoryExtractorImpl.jav
a:38)
at com.blah.dataservice.utils.ExtractorStartup.doStuff(ExtractorStartup.java:31)
at com.blah.dataservice.utils.ExtractorStartup.main(ExtractorStartup.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
Caused by: org.dom4j.DocumentException: Error on line 3 of document : White spaces are required between publicId and systemI
d. Nested exception: White spaces are required between publicId and systemId.
at org.dom4j.io.SAXReader.read(SAXReader.java:350)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1286)
... 22 more
_________________ Cheers,
MikeR
|