-->
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: Error mapping .hbm.xml
PostPosted: Thu Nov 10, 2005 12:22 pm 
Newbie

Joined: Tue Nov 08, 2005 11:54 am
Posts: 19
javax.servlet.ServletException: javax.faces.FacesException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'org.aqua.jsf.bean.ServiceLocatorBean'.. class org.aqua.jsf.bean.ServiceLocatorBean : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/ApplicationContext-hibernate.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Could not parse mapping document in input stream
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.index_jsp._jspService(index_jsp.java:101)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)


USUARIOS.HBM.XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "/dtd/hibernate-mapping-3.0.dtd">

<hibernate-mapping schema="AA" package="org.com.jsf.Hibernate">
<class name="GUsuarios" lazy="false" table="G_USUARIOS" optimistic-lock="none">
<id name="idUsuario" type="long" unsaved-value="null">
<column name="ID_USUARIO" precision="18" scale="0" not-null="true"/>
<generator class="native"/>
</id>
<property name="idEmpresa" type="long">
<column name="ID_EMPRESA" precision="18" scale="0"/>
</property>
<property name="loginUsuario" type="string">
<column name="LOGIN_USUARIO" length="30" not-null="true"/>
</property>
<property name="usuario" type="string">
<column name="USUARIO" length="50"/>
</property>
<property name="telf" type="string">
<column name="TELF" length="50"/>
</property>
<property name="fax" type="string">
<column name="FAX" length="50"/>
</property>
<property name="eMail" type="string">
<column name="E_MAIL" length="150"/>
</property>
<property name="fAltaReg" type="date" column="F_ALTA_REG"/>
<property name="esSupervisor" type="boolean">
<column name="ES_SUPERVISOR" precision="1" scale="0"/>
</property>
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 12:25 pm 
Beginner
Beginner

Joined: Thu Oct 20, 2005 1:03 pm
Posts: 38
do you need the complete package name of the class you are tying to map?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 12:30 pm 
Newbie

Joined: Tue Nov 08, 2005 11:54 am
Posts: 19
sarahsmith_books wrote:
do you need the complete package name of the class you are tying to map?


I don't understand ?

this package is good


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 12:31 pm 
Beginner
Beginner

Joined: Tue Apr 05, 2005 4:27 pm
Posts: 40
Location: canada
i think it's something to do with not being able to find the dtd at the specified path...

Code:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "/dtd/hibernate-mapping-3.0.dtd">


mine looks like...

Code:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 12:35 pm 
Newbie

Joined: Tue Nov 08, 2005 11:54 am
Posts: 19
Thank for all I resolve it this problem.


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.