jpa - Unable to Load Entities in Jboss Fuse ESB -
my meta-inf/persistence xml follows
<persistence-unit name="jpapoc" transaction-type="resource_local"> <class>com.xxx.jpa.personentity</class> <provider>org.hibernate.ejb.hibernatepersistence</provider> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.oracle10gdialect" /> <property name="hibernate.hbm2ddl.auto" value="create" /> </properties> </persistence-unit>
my meta-inf/spring/beans.xml follows
<cxf:cxfendpoint address="/services/sm" id="sm" serviceclass="com.xxx.jpa.mywebservice"> <cxf:properties> <entry key="dataformat" value="pojo" /> <entry key="setdefaultbus" value="true" /> </cxf:properties> </cxf:cxfendpoint> <bean id="myprocessor" class="com.xxx.jpa.personprocessor"> <property name="entitymanagerfactory" ref="entitymanagerfactory"/> </bean> <bean id="entitymanagerfactory" class="org.springframework.orm.jpa.localcontainerentitymanagerfactorybean"> <property name="persistenceunitname" value="jpapoc" /> <property name="jpavendoradapter"> <bean class="org.springframework.orm.jpa.vendor.hibernatejpavendoradapter"> <property name="databaseplatform" value="org.hibernate.dialect.oracle10gdialect" /> </bean> </property> <property name="datasource" ref="datasource" /> </bean> <bean id="datasource" class="com.mchange.v2.c3p0.combopooleddatasource" destroy-method="close"> <property name="driverclass" value="oracle.jdbc.driver.oracledriver" /> <property name="jdbcurl" value="jdbc:oracle:thin:@localhost:1523:xx" /> <property name="user" value="test" /> <property name="password" value="test" /> </bean> <camel:camelcontext> <camel:route> <camel:from uri="cxf:bean:sm?synchronous=true" /> <camel:process ref="myprocessor" /> </camel:route> </camel:camelcontext>
when try deploy application in jboss fuse esb getting caused by: java.lang.classnotfoundexception: com.xxx.jpa.personentity not found org.hibernate.entitymanager
i have used @entity in person entity classes , gave dymanic import in pom.xml still not working
its hard point out issue without having code.however can check bundled jar file if contains com.xxx.jpa.personentity
class.also try adding meta-persistence=meta-inf/persistence.xml
instruction pom
file.
Comments
Post a Comment