-->
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.  [ 5 posts ] 
Author Message
 Post subject: strange error
PostPosted: Tue Jul 25, 2006 7:52 am 
Newbie

Joined: Tue Jul 25, 2006 7:46 am
Posts: 3
I need to use Hibernate (last version) on a host, but with my very simple application on my pc I don't have problem while I deploy it on web host I've this error:

2006-07-25 13:35:07,577 [ERROR] Dbhsql.HibernateUtil -

Could not parse configuration: /home/hostingjava.it/sviluppo/WEB-INF/classes/hibernate.cfg.xml

org.hibernate.HibernateException: Could not parse configuration: /home/hostingjava.it/sviluppo/WEB-INF/classes/hibernate.cfg.xml

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1376)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1344)

at Dbhsql.HibernateUtil.<clinit>(HibernateUtil.java:48)

at backoffice.utenti.Autenticazione.aggRoot(Autenticazione.java:75)

at backoffice.utenti.Autenticazione.<init>(Autenticazione.java:31)
.
.
.
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:595)

Caused by: org.dom4j.DocumentException: access denied (java.io.FilePermission /usr/local/tomcat/apache-tomcat-5.5.12/work/Catalina/localhost/-sviluppo/loader/META-INF write) Nested exception: access denied (java.io.FilePermission /usr/local/tomcat/apache-tomcat-5.5.12/work/Catalina/localhost/-sviluppo/loader/META-INF write)

at org.dom4j.io.SAXReader.read(SAXReader.java:484)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1366)

... 39 more

I use HibernateUtil, the same of the tutorial

Why ?

Thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 25, 2006 9:31 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
it appears that your web container doesn't have the proper permissions to use your files

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject: re:
PostPosted: Tue Jul 25, 2006 7:00 pm 
Newbie

Joined: Tue Jul 25, 2006 7:46 am
Posts: 3
No, I thinks it's a problem of jar in lib.
Why it can't parse the hibernate.cfg.xml? So it search a configuration file in META..


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 10:17 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
well. double check to make sure your hibernate.cfg.xml file is formatted correctly and/or fix that java.io.file permissions error

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 1:23 pm 
Beginner
Beginner

Joined: Wed Sep 21, 2005 11:52 am
Posts: 43
If you use an xml editor that supports validation (XMLBuddy for instance) you should be able to validate the configuration file against the DTD.


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