Hi,
i'm using hibernate3 in my webapp.
With Tomcat it goes good, but when i try to work with Macromedia JRun4 i have this error:
2005-05-04 09:16:19,859 [web-0] INFO org.hibernate.cfg.Configuration - configur
e - configuring from resource: /hibernate.cfg.xml
2005-05-04 09:16:19,859 [web-0] INFO org.hibernate.cfg.Configuration - getConfi
gurationInputStream - Configuration resource: /hibernate.cfg.xml
2005-05-04 09:16:19,937 [web-0] ERROR org.hibernate.util.XMLHelper - error
- Error parsing XML: /hibernate.cfg.xml(3) LURI relativo "{0}"; non pu‗ essere r
isolto senza una base URI.
2005-05-04 09:16:19,937 [web-0] ERROR org.hibernate.cfg.Configuration - doConfig
ure - problem parsing configuration/hibernate.cfg.xml
org.dom4j.DocumentException: Error on line 3 of document : LURI relativo "{0}";
non pu‗ essere risolto senza una base URI. Nested exception: LURI relativo "{0}
"; non pu‗ essere risolto senza una base URI.
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1161)
at com.lynxit.xweb.HibernateSessionFactory.currentSession(HibernateSessi
onFactory.java)
at com.lynxit.xweb.entities.User.initGroups(User.java)
at com.lynxit.xweb.entities.User.load(User.java)
at com.lynxit.xweb.auth.XwebAuthenticator.authenticate(XwebAuthenticator
.java)
at com.lynxit.xweb.auth.XwebSecurityCheck.doPost(XwebSecurityCheck.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFil
ter.java:70)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Nested exception:
org.xml.sax.SAXParseException: LURI relativo "{0}"; non pu‗ essere risolto senza
una base URI.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3370)
at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2952)
a%%%% Error Creating SessionFactory %%%%
org.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xm
l
at org.hibernate.cfg.Configuration.doConfit org.apache.crimson.parser.Pa
rser2.maybeExternalID(Parser2.java:2924)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Pgure(Configuratio
n.java:1222)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1161)
at com.lynxit.xweb.Hiberarser2.java:1309)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:656)
at org.apache.crimson.parser.Parser2.nateSessionFactory.currentSession(H
ibernateSessionFactory.java)
at com.lynxit.xweb.entities.User.initGroups(User.java)
at coparse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.dom4j.io.SAXReader.rm.lynxit.xweb.entities.User.load(User.java)
at com.lynxit.xweb.auth.XwebAuthenticator.authenticate(XwebAuthenticator
.java)
aead(SAXReader.java:339)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1161)
at com.lynxit.xweb.HibernateSessionFactory.currentSession(HibernateSessi
onFactory.jat com.lynxit.xweb.auth.XwebSecurityCheck.doPost(XwebSecurityCheck.ja
va)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.FilterChain.doFilter(FilterChain.jva)
at com.lynxit.xweb.entities.User.initGroups(User.java)
at com.lynxit.xweb.entities.User.load(User.java)
at com.lynxit.ava:86)
at jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFil
ter.java:70)
at jrun.servlet.FilterChain.doFxweb.auth.XwebAuthenticator.authenticate(
XwebAuthenticator.java)
at com.lynxit.xweb.auth.XwebSecurityCheck.doPost(XwebSecurityilter(Filte
rChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(SCheck.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpSeervletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDisprvlet.java:853)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.JSecurityCheckFilter.doFilter(JSecurityCheckFil
ter.java:70)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.seratcher.invoke(JRunRequestDispatcher.java:
252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnablevice(FilterCh
ain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.in(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Caused by: org.dom4j.DocumentException: ErrorvokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.jav on line 3
of document : LURI relativo "{0}"; non pu‗ essere risolto senza una base URI. N
ested exception: LURI relativo "{0}"; non pu‗ essere risolto senza una base URI.
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
at org.hibernate.cfg.Configura:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.WorkerThread.run(ation.doConfigure(Configuration.java
:1217)
... 19 more
WorkerThread.java:66)
Anyone may help me? thank's a lot
_________________ Stefano
|