liferay 7.3-org.hibernate.mappingexception:未找到实体类

lyfkaqu1  于 2021-08-25  发布在  Java
关注(0)|答案(0)|浏览(224)

我对liferay development很陌生。我正在将一个项目从6.2迁移到7.3。
我正在使用的插件具有我在教程中看到的-api/-service/-portlet结构。
当我尝试将服务jar部署到服务器时,出现以下错误:
2021-07-07 10:30:11.759错误[pipe start 1356][liferayserviceextender:88]org.hibernate.mappingexception:未找到实体类:phishrodlab.db.model.impl.customer_PreferenceSiml org.hibernate.mappingexception:未找到实体类:phishrodlab.db.model.impl.customer_PreferenceSiml atorg.hibernate.tuple.propertyfactory.getGetGetter(propertyfactory.java:191)org.hibernate.tuple.propertyfactory.buildidentifierproperty(propertyfactory.java:67)org.hibernate.tuple.entity.entitymetamodel.(entitymetamodel.java:135)org.hibernate.tuple.propertyfactory.mapping.persistentclass.getmappedclass(persis.java:125)位于org.hibernate.persister.entity.abstractentitypersister.java:485)位于org.hibernate.persister.entity.singletableentitypersister.java:133)位于org.hibernate.persister.persisterfactory.createclasspersister(persisterfactory.java:84)位于org.hibernate.impl.sessionfactoryimpl.(sessionfactoryimpl.java:286)在org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1872)在org.springframework.orm.hibernate3.localsessionfactorybean.newsessionfactory(localsessionfactorybean.java:795)在com.liferay.portal.spring.hibernate.portalhibernateconformation.newsessionfactory(portalhibernateconformation.java:298)位于org.springframework.orm.hibernate3.localsessionfactorybean.buildsessionfactory(localsessionfactorybean.java:717)位于com.liferay.portal.spring.hibernate.portalhibernateconformation.buildsessionfactory(portalhibernateconformation.java:99)位于com.liferay.portal.spring.extender.internal.liferayserviceextender$liferayserviceextension.start(liferayserviceextender.java:148)位于com.liferay.portal.spring.extender.internal.liferayserviceextender.addingbundle(liferayserviceextender.java:83)在com.liferay.portal.spring.spring.extender.internal.liferayserviceextender.addingbundle(liferayserviceextender.java:61)在org.osgi.util.tracker.bundletracker$tracker.customizeradding(bundletracker.java:475)在org.osgi.util.tracker.bundletracker$tracked.customizeradding(bundletracker.java:1)位于org.osgi.util.tracker.AbstractTracker.trackadding(AbstractTracker.java:256)位于org.osgi.util.tracker.bundletracker$tracked.bundletchanged(bundletracker.java:450)位于org.eclipse.osgi.internal.framework.bundlecontextimpl.dispatchevent(bundlecontextimpl.java:908)位于org.eclipse.osgi.framework.eventmgr.eventmanager.dispatchevent(eventmanager.java:230)位于org.eclipse.osgi.framework.eventmgr.listenerqueue.dispatcheventsynchronous(listenerqueue.java:148)位于org.eclipse.osgi.internal.framework.equinoxeventpublisher.publishbundleeventprivileged(equinoxeventpublisher.java:230)位于org.eclipse.osgi.internal.framework.equinoxeventpublisher.publishbundleevent(equinoxeventpublisher.java:137)位于org.eclipse.osgi.internal.framework.equinoxcontaineradaptor.publishmoduleevent(equinoxcontaineradaptor.java:191)在org.eclipse.osgi.container.module.publishevent(module.java:476)在org.eclipse.osgi.container.module.dostart(module.java:578)在org.eclipse.osgi.internal.framework.equinoxbundle.start(equinoxbundle.java:428)位于位于org.apache.felix.gogo.runtime.reflective.invoke(reflective.java:139)的java.lang.reflect.method.invoke(method.java:498)的sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)的sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)org.apache.felix.gogo.runtime.commandproxy.execute(commandproxy.java:91)在org.apache.felix.gogo.runtime.closure.executecmd(closure.java:599)在org.apache.felix.gogo.runtime.closure.execute(closure.java:415)在org.apache.felix.gogo.runtime.pipe.docall(pipe.java:416)在org.apache.felix.gogo.runtime.pipe.call(pipe.java:229)在java.util.concurrent.futuretask.run(futuretask.java:266)在java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)在java.lang.thread.run(thread.java:748)由以下原因引起:java.lang.classnotfoundexception:phishrodlab.db.model.impl.customer_PreferenceSiml位于org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1365)位于org.apache.catalina.loader.webappclassloaderbase.loader(webappclassloaderbase.java:1188)java.lang.class.forname0(本机方法)位于org.hibernate.util.reflecthelper.classforname(reflecthelper.java:200)的java.lang.class.forname(class.java:264)的org.hibernate.mapping.persistentclass.getmappedclass(persistentclass.java:122)。。。49多

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题