[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: JBoss 4.0.2 wiyth Hibernate3 exception org.hibernate.Map

2005-12-28 Thread tyrone.yimin
i solved the problem, it's seemed that domain classes deployed to *.har can not 
be deployed to the war again. classloader issue.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914534#3914534

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914534


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: JBoss 4.0.2 wiyth Hibernate3 exception org.hibernate.Map

2005-12-28 Thread tyrone.yimin
The *.har be deployed ok.
use a test.jsp such as:
<%@ page import="javax.naming.*" %>
  | <%@ page import="net.sf.hibernate.*" %>
  | 
  | <%
  | InitialContext ctx  = new InitialContext();
  | SessionFactory factory  = (SessionFactory)
  |   ctx.lookup("java:/hibernate/CmmsSF");
  | Sessionhsession = factory.openSession();
  | try {
  | Query query = hsession.createQuery("from 
com.ymsun.entapps.cmms.model.User");
  | System.out.println(query.list().get(0));
  | 
  | } finally {
  | hsession.close();
  | }
  | %>
  | 
  | 
  | 
it's ok.
But when i use the spring in my web application such as:

  | 
  | java:/hibernate/CmmsSF
  | 
  | 
  | 
  | 
  | 
  |..
  | 
then report:

  | org.springframework.orm.hibernate.HibernateSystemException: Unknown entity 
class
  | : com.ymsun.entapps.cmms.model.User; nested exception is 
net.sf.hibernate.Mappin
  | gException: Unknown entity class: com.ymsun.entapps.cmms.model.User
  | net.sf.hibernate.MappingException: Unknown entity class: 
com.ymsun.entapps.cmms.
  | model.User
  | at 
net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryI
  | mpl.java:347)
  | at 
net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:
  | 2718)
  | at 
net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1998
  | )
  | at net.sf.hibernate.impl.SessionImpl.get(SessionImpl.java:1937)
  | at 
org.springframework.orm.hibernate.HibernateTemplate$1.doInHibernate(H
  | ibernateTemplate.java:448)
  | at 
org.springframework.orm.hibernate.HibernateTemplate.execute(Hibernate
  | Template.java:363)
  | at 
org.springframework.orm.hibernate.HibernateTemplate.get(HibernateTemp
  | late.java:442)
  | at 
org.springframework.orm.hibernate.HibernateTemplate.get(HibernateTemp
  | late.java:436)
  | at 
com.ymsun.entapps.cmms.dao.hibernate.UserDAOHibernate.getUser(UserDAO
  | Hibernate.java:26)
  | at 
com.ymsun.entapps.cmms.service.impl.UserManagerImpl.getUser(UserManag
  | erImpl.java:40)
  | ..
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914531#3914531

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914531


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: JBoss 4.0.2 wiyth Hibernate3 exception org.hibernate.Map

2005-12-28 Thread tyrone.yimin
I have the same problem.
I Use JBoss AS 4.0.3 SP1 + JBossHibernate2.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914530#3914530

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914530


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user