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...
|