[Beginner's Corner] - JBoss : persistence and EntityManager injection
by zecas zecas
zecas zecas [http://community.jboss.org/people/zecas] created the discussion
"JBoss : persistence and EntityManager injection"
To view the discussion, visit: http://community.jboss.org/message/566354#566354
--------------------------------------------------------------
Hi,
I'm starting a small testing project from scratch, but I'm getting some trouble configuring JPA persistence ... I'll post some code fragments and hope someone can enlight me on the issue.
I have an EAR, my-ear, and inside there is a single WAR, my-war. All definitions should be placed correctly, since I can make it to pick all settings, even those defined in "persistence.xml".
my-war structure
C:.
| index.jsp
|
+---META-INF
| MANIFEST.MF
|
\---WEB-INF
| faces-config.xml
| jboss-web.xml
| web.xml
|
+---classes
| +---com
| | \---my
| | \---package
| | SimpleMessage.class
| |
| \---META-INF
| persistence.xml
|
\---lib
web.xml
<web-app ...>
...
<resource-ref>
<description>Datasource Connection</description>
<res-ref-name>jdbc/MyDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
jboss-web.xml
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/MyDB</res-ref-name>
<jndi-name>java:/ds/MyDB</jndi-name>
</resource-ref>
</jboss-web>
persistence.xml
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<persistence-unit name="punit">
<jta-data-source>java:jdbc/MyDB</jta-data-source>
</persistence-unit>
</persistence>
My Java code has the following class:
SimpleMessage.java
package com.my.package;
import javax.persistence.PersistenceContext;
public class SimpleMessage {
@PersistenceContext
private EntityManager em;
@PersistenceUnit(name="punit")
private EntityManagerFactory emf;
public void something() {
if( em!=null ) {
System.out.println("EntityManager Available!");
} else {
System.out.println("EntityManager is NULL!");
}
if( emf!=null ) {
System.out.println("EntityManagerFactory Available!");
} else {
System.out.println("EntityManagerFactory is NULL!");
}
}
}
I intend to test just this ... a simple basic class where I inject the manager instance. The class is not an EJB class, just an basic injected class.
When deploying, I get the following result:
2010-10-13 14:09:55,197 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/my-war
2010-10-13 14:09:55,213 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) ENC setup failed
java.lang.NullPointerException
at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
However, if in "persistence.xml" I instead define the datasource reference as "java:ds/MyDB" (datasource name definition on JBoss), I obtain the following result:
2010-10-13 14:15:20,552 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] (HDScanner) Starting persistence unit persistence.unit:unitName=my-ear-1.0.0.ear/my-war-1.0.0.war#punit
2010-10-13 14:15:20,552 INFO [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Processing PersistenceUnitInfo [
name: punit
...]
2010-10-13 14:15:20,552 WARN [org.hibernate.ejb.Ejb3Configuration] (HDScanner) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] (HDScanner) Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
2010-10-13 14:15:20,568 INFO [org.hibernate.connection.ConnectionProviderFactory] (HDScanner) Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
2010-10-13 14:15:20,568 INFO [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] (HDScanner) Using provided datasource
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) RDBMS: MySQL, version: 5.1.41-3ubuntu12.6
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.10 ( Revision: ${svn.Revision} )
2010-10-13 14:15:20,568 INFO [org.hibernate.dialect.Dialect] (HDScanner) Using dialect: org.hibernate.dialect.MySQLDialect
2010-10-13 14:15:20,568 INFO [org.hibernate.transaction.TransactionFactoryFactory] (HDScanner) Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
2010-10-13 14:15:20,568 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] (HDScanner) instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
2010-10-13 14:15:20,568 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] (HDScanner) instantiated TransactionManagerLookup
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Automatic flush during beforeCompletion(): disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Automatic session close at end of transaction: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC batch size: 15
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC batch updates for versioned data: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Scrollable result sets: enabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JDBC3 getGeneratedKeys(): enabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Connection release mode: auto
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Maximum outer join fetch depth: 2
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Default batch fetch size: 1
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Generate SQL with comments: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Order SQL updates by primary key: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Order SQL inserts for batching: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2010-10-13 14:15:20,568 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] (HDScanner) Using ASTQueryTranslatorFactory
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Query language substitutions: {}
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) JPA-QL strict compliance: enabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Second-level cache: enabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Query cache: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
2010-10-13 14:15:20,568 INFO [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] (HDScanner) Cache provider: org.hibernate.cache.HashtableCacheProvider
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Optimize cache for minimal puts: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Cache region prefix: persistence.unit:unitName=my-ear-1.0.0.ear/my-war-1.0.0.war#punit
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Structured second-level cache entries: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Statistics: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Deleted entity synthetic identifier rollback: disabled
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Default entity-mode: pojo
2010-10-13 14:15:20,568 INFO [org.hibernate.cfg.SettingsFactory] (HDScanner) Named query checking : enabled
2010-10-13 14:15:20,568 INFO [org.hibernate.impl.SessionFactoryImpl] (HDScanner) building session factory
2010-10-13 14:15:20,568 INFO [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) Factory name: persistence.unit:unitName=my-ear-1.0.0.ear/my-war-1.0.0.war#punit
2010-10-13 14:15:20,568 INFO [org.hibernate.util.NamingHelper] (HDScanner) JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2010-10-13 14:15:20,584 INFO [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) Bound factory to JNDI name: persistence.unit:unitName=my-ear-1.0.0.ear/my-war-1.0.0.war#punit
2010-10-13 14:15:20,584 WARN [org.hibernate.impl.SessionFactoryObjectFactory] (HDScanner) InitialContext did not implement EventContext
2010-10-13 14:15:20,584 INFO [org.hibernate.util.NamingHelper] (HDScanner) JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2010-10-13 14:15:20,724 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/my-war
2010-10-13 14:15:20,755 INFO [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Initializing Mojarra (1.2_12-b01-FCS) for context '/my-war'
2010-10-13 14:15:20,896 ERROR [STDERR] (HDScanner) SLF4J: Class path contains multiple SLF4J bindings.
2010-10-13 14:15:20,896 ERROR [STDERR] (HDScanner) SLF4J: Found binding in [vfszip:/C:/Program Files/Java/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
2010-10-13 14:15:20,896 ERROR [STDERR] (HDScanner) SLF4J: Found binding in [vfszip:/C:/Program Files/Java/jboss-5.1.0.GA/server/default/deploy/my-ear-1.0.0.ear/logback-classic-0.9.20.jar/org/slf4j/impl/StaticLoggerBinder.class]
2010-10-13 14:15:20,912 ERROR [STDERR] (HDScanner) SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
So my questions are:
*1#* After invoking "SimpleMessage.something();" (using the second option "java:ds/MyDB" in "persistence.xml") I receive the following output:
EntityManager is NULL!
EntityManagerFactory is NULL!
So no injection happened ... shouldn't it occur? what happened?
*2#* I was assuming that "web.xml" defines the JNDI to be used inside my webapp, then "jboss-web.xml" would map that name into the internall JNDI defined in JBoss.
In this case for JBoss usage, if changing to IBM WebSphere I would use another mapping config file.
BUT ... I was also assuming that "persistence.xml" would define the JNDI that is defined in "web.xml" ... and not the one defined in application server level ... so I would get an abstraction from whichever server I'll deploy my project into.
Shouldn't this be working like that? What am I doing wrong?
Any help would be appreciated ... I really need to understand and put this to work ...
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566354#566354]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[O'Reilly JBoss 3.0/4.0 Workbook] - Re: Alternative class for the LocalTxConnectionManager in Jboss
by Cigarettes Online
Cigarettes Online [http://community.jboss.org/people/discountcigarettes] created the discussion
"Re: Alternative class for the LocalTxConnectionManager in Jboss"
To view the discussion, visit: http://community.jboss.org/message/566252#566252
--------------------------------------------------------------
You will find here the famous types of http://www.discountcigarettesmall.com/ cigarettes, such as: http://www.discountcigarettesmall.com/marlboro-cigarettes/ Marlboro, http://www.discountcigarettesmall.com/camel-cigarettes/ Camel, http://www.discountcigarettesmall.com/winston-cigarettes/ Winston, http://www.discountcigarettesmall.com/vogue-cigarettes/ Vogue, and other http://www.cigarettes-shop.us/ cheap cigarettes
brands. We offer high quality http://www.discountcigarettesbox.com/ discount cigarettes, fast delivery, excellent online support service, best prices and confidentiality of dealership. We don't give any information about our customers to anybody and problems with taxes are absolutely excluded.
Marlboro mark - the most known cigarette mark world wide. In the beginning it was showed in 1847 at the market of London but shortly moved in the USA. 1924, Philip Morris launched Marlboro brand as a lady’s http://www.cigarettesbox.com/ cigarettes online with the slogan: "Mild as May". Philip Morris (PM) focused on female public a number of advertisements in 1926. They featured fashionable women, who posed in velveteen settings. During the Second World War, the mark faltered and had to be removed from the cigarette market. After this failure Philip Morris focused its advertisement campaign to male.
http://www.cigarettes-shop.us/camel-cigarettes/ Camel | http://www.cigarettes-shop.us/marlboro-cigarettes/ Marlboro | http://www.cigarettes-shop.us/lucky-strike-cigarettes/ Lucky Strike | http://www.cigarettes-shop.us/winston-cigarettes/ Winston | http://www.cigarettes-shop.us/kent-cigarettes/ Kent | http://www.cigarettes-shop.us/davidoff-cigarettes/ Davidoff
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566252#566252]
Start a new discussion in O'Reilly JBoss 3.0/4.0 Workbook at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[EJB 3.0] - Issues with EJB 3 CMP while migrating to jboss-eap-5.0.1
by Praveen Ramisetty
Praveen Ramisetty [http://community.jboss.org/people/praveen_ramisetty] created the discussion
"Issues with EJB 3 CMP while migrating to jboss-eap-5.0.1"
To view the discussion, visit: http://community.jboss.org/message/566241#566241
--------------------------------------------------------------
we observed some issue in our Application while migrating Jboss 4.0.4 to Jboss-EAP-5.0.1. We are using Containter-Managed Persistence in my project and causing issues when performing Asynchronous transactions (JMS).
Before sending message to JMS Queue, my application making an entry in the database. After persisting the record, It sends the Primary Key along with the JMS message.
In message Driven bean we trying to find the same record using the primary key that we received throught the jms message and failing intermittently. As we are making bulk operation we are able to find the record for some transactions and for some tasks the operation is getting failed.
Jboss CMP not persisting the data before sending the message to queue and causing the issue. The code works fine with jboss 4.0.4 but failing with jboss-eap-5.0.1. please give ur suggestions or do i need to do any changes more. Thanks in Advance.
@Stateless
@Remote({MySession.class})
public class MySessionBean implements MySession{
@PersistenceContext (unitName="MyApplication")
private EntityManager manager;
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public long doSwitchBackhaul(<parameters>){
ArrayList<Task> taskIdList = createTaskObject();
scheduleTaskViaJMS(taskIdLIst);
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public ArrayList<Task> createTaskObject(<parameters>){
Batch batch = createBatchObject();
for each listof tasks{
<Code to create Task object>
<pass the batch id to Task>
manager.persist(Task)
manager.flush();
}
return ArrayList<Task> object;
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Batch createBatchObject(<parameters>){
<Code to create Batch Object>
manager.persist(Batch);
manager.flush();
return Batch;
}
public void scheduleTaskViaJMS(jbolist){
<code to send the message along with task id to queue>
}
}
@MessageDriven (
activationConfig=
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/ProvGuiJobs1")
}
)
public class MDB1 implements MessageListener{
@PersistenceContext (unitName="MYApplication")
private EntityManager manager;
public void onMessage(Message message) {
Task task = manager.find(Task.class, list.getTaskId()); //Issue is here.. I m not getting all task for few transactions
<do changes to task object>
manager.persist(task);
manager.flush();
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566241#566241]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[jBPM] - Questions on JBPM 4.4.
by Abdelilah Essiari
Abdelilah Essiari [http://community.jboss.org/people/AESSIARI] created the discussion
"Questions on JBPM 4.4."
To view the discussion, visit: http://community.jboss.org/message/566219#566219
--------------------------------------------------------------
I am evaluating JBPM 4.4 (JPDL) for my project and I have ran into a couple of issues:
One is that a mix of exclusive continuations are asynchronous continuations does not quite work.
Upon a close look at AcquireJobsCmd.java, it becomes aparrent:
a) more than one exclusive job can execute in different transactions.
b) an exclusive job concurrently with an asynchrouns job is running.
This defeats my understanding of what exclusive means. I have tentatively modified AcquireJobsCmd.java by ensuring
that a and b do not happen. This important in my case as I have an assign statement that needs to update a process
variable inside a forEach with asynchronous java continuations as shown below. This only works after I made my changes.
<variable history="false" name="GlobalMap" type="serializable">
<map>
</map>
</variable>
<foreach g="160,261,48,48" in="#{dataSources}" name="foreach" var="dataSource">
<transition to="do lookup"/>
</foreach>
<java continue="async" class="test.JavaService" g="327,259,98,50" method="lookup" name="do lookup" var="returnVar">
<arg>
<object expr="#{dataSource}"/>
</arg>
<arg>
<string value="kw"/>
</arg>
<transition continue="exclusive" to="copy" />
java>
<assign from-expr="#{returnVar}" name="copy" to-expr="#{GlobalMap[dataSource]}">
<transition to="join"/>
</assign>
<join g="567,259,80,40" multiplicity="2" name="join">
<transition to="do materialize"/>
</join>
...
The other question is that +returnVar+ is actually mapped to the parent execution. It should map to the forked execution as is the variable +dataSource+. Shouldn't it?
In any case the tentative fix for this was easy. Just changed a one line in JavaActivity.java.
if (variableName!=null) {
// execution.setVariable(variableName, returnValue);
execution.createVariable(variableName, returnValue);
}
Hope to hear from someone. Thanks in advance.
aes.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566219#566219]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[jBPM] - Hibernate LazyInitializationException during swimlane creation
by Anup Nair
Anup Nair [http://community.jboss.org/people/wrecked] created the discussion
"Hibernate LazyInitializationException during swimlane creation"
To view the discussion, visit: http://community.jboss.org/message/566066#566066
--------------------------------------------------------------
Hi All,
I am a new bie to this site. I am currently using jBPM 4 with Oracle as db.
I have created a sample workflow and using the JBPM API to create instances and moving instance from one activity to another.
However when i am trying to create a swimlane programatically i am getting *org.hibernate.LazyInitializationException*
*I am not getting an idea how the hibernate session gets closed.
*
Following is the code snippet for swimlane creation:
public void testAddParticipants() throws Exception{
ProcessInstance processInstance = executionService.findProcessInstanceById("ServiceCenter.1");
EnvironmentImpl environment =(EnvironmentImpl)((EnvironmentFactory)processService).openEnvironment();
try{
Collection<? extends Execution> executionMap = processInstance.getExecutions();
for (Execution execution : executionMap) {
System.out.println(execution.getClass());
if(execution instanceof ExecutionImpl){
final ExecutionImpl exec = (ExecutionImpl) execution;
SwimlaneImpl role = exec.createSwimlane("approver");
System.out.println("Approver role added:"+role);
}
}
}finally{
environment.close();
}
}
The exception trace is:
### EXCEPTION ###########################################
[*LazyInitializationException] failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.swimlanes, no session or session was closed
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.swimlanes, no session or session was closed*
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:380)
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:372)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:365)
at org.hibernate.collection.PersistentMap.put(PersistentMap.java:184)
at org.jbpm.pvm.internal.model.ExecutionImpl.createSwimlane(ExecutionImpl.java:874)
at com.jpmc.servicecenter.ServiceCenter.testAddParticipants(ServiceCenter.java:304)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
The jbpm.cfg.xml has the following configuration:
*<?xml version="1.0" encoding="UTF-8"?>*
**
*<jbpm-configuration>*
**
* <import resource="jbpm.default.cfg.xml" />
<import resource="jbpm.businesscalendar.cfg.xml" />
<import resource="jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.task.hbm.xml" />*
**
* <!-- Job executor is excluded for running the example test cases. -->
<!-- To enable timers and messages in production use, this should be included. -->
<!--
<import resource="jbpm.jobexecutor.cfg.xml" />
-->*
**
*</jbpm-configuration>*
I am stuck with this error from the past 1 week.
please help me out.
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566066#566066]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month