-->
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.  [ 1 post ] 
Author Message
 Post subject: MappingException unreasonable
PostPosted: Fri May 20, 2011 9:09 am 
Beginner
Beginner

Joined: Mon Apr 18, 2011 10:01 am
Posts: 20
Dear users, I'm developing a project using Jdeveloper 10.1.2 and deploying on local oc4j instance ( running at port localhost:9700 ) and usually I deploy using ant target, and everything works fine.

But when I try to Run my project directly trought the Jdeveloper "run" button , I get the following exception :

org.hibernate.MappingException: Resource: previtc/model/task/PcTask.hbm.xml not found

at org.hibernate.cfg.Configuration.addResource(Configuration.java:478)

at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1443)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1411)

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

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

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

at previtc.Resources.init(Resources.java:127)

at previtc.controller.InitServlet.init(InitServlet.java:34)

at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)

at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)

at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)

at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)

at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)

at com.evermind.server.Application.getHttpApplication(Application.java:890)

at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)

at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:438)

at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:455)

at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)

at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)

at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)

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

11/05/20 15:08:25 InitServlet - 11/05/20 15:08:29 C:\Header.jsp:172: error #300: method isAdmin not found in class previtc.model.utente.Utente

11/05/20 15:08:29 1 error


Anybody knows why the mapping doesn't work in the second scenario ?

Thank you very much...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.