Radu D. [
http://community.jboss.org/people/rd210275] created the discussion
"jbpm 4.4 + Spring 3: can't deploy a jpdl"
To view the discussion, visit:
http://community.jboss.org/message/607777#607777
--------------------------------------------------------------
I am getting the warning
"60421 [http-8443-1] WARN org.jbpm.pvm.internal.repository.DeployerManager -
WARNING: no objects were deployed! Check if you have configured a correct deployer in your
jbpm.cfg.xml file for the type of deployment you want to do." And I can't
retrieve the process definition anymore.
The code is:
NewDeployment newDeployment = repositoryService.createDeployment();
newDeployment.addResourceFromFile(deploymentFile); // a jpdl.xml file
String id = newDeployment.deploy();
LOG.info("Deployed: '" + id + "'"); // gives the id in
DB, somthing like '40001'
ProcessDefinitionQuery pdq = repositoryService.createProcessDefinitionQuery();
List<ProcessDefinition> processDefinitions =
pdq.processDefinitionKey(id).list();
for (ProcessDefinition pd : processDefinitions) { // empty collection
LOG.info(pd.getId());
}
Where should I look for?
The jbpm.cfg.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration xmlns="
http://jbpm.org/xsd/cfg
http://jbpm.org/xsd/cfg">
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor />
</command-service>
<command-service name="txRequiredCommandService">
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService">
<ref object="txRequiredCommandService" />
</field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer"
init="eager">
</object>
<deployer-manager>
<jpdl-deployer />
</deployer-manager>
<!-- Added spring as read-context -->
<script-manager default-expression-language="juel"
default-script-language="juel"
read-contexts="execution, environment, process-engine, spring"
write-context="">
<script-language name="juel"
factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
</script-manager>
<authentication />
<id-generator />
<types resource="jbpm.variable.types.xml" />
<address-resolver />
</process-engine-context>
<transaction-context>
<repository-session />
<db-session />
<message-session />
<timer-session />
<history-session />
<transaction type="spring" />
<!-- Need to set explicitly that we don't want jbpm to create sessions -->
<hibernate-session current="true" close="false" />
</transaction-context>
</jbpm-configuration>
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/607777#607777]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]