Avneesh Sisodia [
https://community.jboss.org/people/avneesh] created the discussion
"Re: Error creating bean with name 'taskResourceFactory' defined in class
path resource [META-INF/spring/applicationContext.xml]"
To view the discussion, visit:
https://community.jboss.org/message/761826#761826
--------------------------------------------------------------
Thanks krisv,
When I did changes as you told in previuos post. I am facing following exception
continously .
13:02:14,375 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed
to start service
jboss.persistenceunit."jbpm-spring-quickstart.war#org.jbpm.persistence.jpa.local":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."jbpm-spring-quickstart.war#org.jbpm.persistence.jpa.local":
Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa.local] class or package not found
at
org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1344)
at
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1127)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1006)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:682)
at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
at
org.jboss.as.jpa.service.PersistenceUnitService.createContainerEntityManagerFactory(PersistenceUnitService.java:170)
at
org.jboss.as.jpa.service.PersistenceUnitService.start(PersistenceUnitService.java:80)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
... 4 more
Caused by: java.lang.ClassNotFoundException: org.drools.persistence.info.SessionInfo from
[Module "org.hibernate:main" from local module loader @15fc40c
(roots: D:\Development\jboss-as-web-7.0.0.Final\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
at java.lang.Class.forName0(Native Method) [:1.6.0_25]
at java.lang.Class.forName(Class.java:247) [:1.6.0_25]
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:169)
at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1261)
at
org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1333)
... 11 more
in spring-config file code is:
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName"
value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<property name="url"
value="jdbc:sqlserver://IITC-SRV-DB01:1433=RI" />
<property name="username" value="***" />
<property name="password" value="******" />
</bean>
<bean id="jbpmEMF"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="persistenceUnitName"
value="org.jbpm.persistence.jpa.local" />
</bean>
and in persistence.xml code is like:
<persistence-unit name="org.jbpm.persistence.jpa.local"
transaction-type="RESOURCE_LOCAL">
<non-jta-data-source>java:jboss/datasources/RI</non-jta-data-source>
<mapping-file>classpath:JBPMorm-JPA2.xml</mapping-file>
<mapping-file>classpath:Taskorm.xml</mapping-file>
anything else I am missing to be change to get out from this exception krisv,
Please suggest me.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/761826#761826]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]