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.  [ 2 posts ] 
Author Message
 Post subject: Unknown entity: com.liferay.portal.model.impl.ReleaseImpl
PostPosted: Fri Dec 21, 2007 4:24 am 
Newbie

Joined: Thu Dec 13, 2007 8:53 am
Posts: 7
Hi ,
I get this error when starting my tomcat server . Pls help .My tables_hbm.xml looks like this :

tables_hbm.xml


<class name="com.liferay.portal.model.impl.ReleaseImpl" table="Release_">
<cache usage="read-write" />
<id name="releaseId" type="java.lang.String">
<generator class="assigned" />
</id>
<property name="createDate" />
<property name="modifiedDate" />
<property name="buildNumber" type="com.liferay.util.dao.hibernate.IntegerType" />
<property name="buildDate" />
</class>


and we have the same data types in java also .

Pls help


ERROR :

Caught HibernateException. Unknown entity: com.liferay.portal.model.impl.ReleaseImpl
08:20:11,591 ERROR [MainServlet:145] com.liferay.portal.struts.ActionException: com.liferay.portal.struts.ActionException: com.liferay.portal.SystemEx
ception: org.hibernate.MappingException: Unknown entity: com.liferay.portal.model.impl.ReleaseImpl
at com.liferay.portal.events.EventsProcessor._process(EventsProcessor.java:155)
at com.liferay.portal.events.EventsProcessor.process(EventsProcessor.java:76)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:138)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:608)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: com.liferay.portal.struts.ActionException: com.liferay.portal.SystemException: org.hibernate.MappingException: Unknown entity: com.liferay.
portal.model.impl.ReleaseImpl
at com.liferay.portal.events.StartupAction.run(StartupAction.java:155)
at com.liferay.portal.events.EventsProcessor._process(EventsProcessor.java:152)
... 29 more

Chandra .


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2007 6:43 am 
Newbie

Joined: Wed Dec 19, 2007 7:28 am
Posts: 9
You have to specify the column names of your table with each <property> tag just like:

<property name="createDate">
<column name="col_name"/>
</property>

Also you have to specify column name with <id> tag:

<id name="releaseId" column="col_name" >
.
.
</id>

And I guess you have corresponding java class having these properties.
Please try this.


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