[jBPM] - what's the reason that the processinstance can't continue after the JPA&JTA are used?
by 星兰 蒋
星兰 蒋 [https://community.jboss.org/people/jiang_hoo] created the discussion
"what's the reason that the processinstance can't continue after the JPA&JTA are used?"
To view the discussion, visit: https://community.jboss.org/message/780307#780307
--------------------------------------------------------------
Hi JBPM,
In my case,it's a approve process used JBPM5.3! Several days ago,i build a example no using JPA&JTA.And i could pass a result (just "agree" and "reject") value to a human task node while a want to complete this task by the following code.
SyncWSHumanTaskHandler s = new SyncWSHumanTaskHandler();
Map map = new HashMap();
data.put("result", "agree");
ContentData contentData = ContentMarshallerHelper.marshal(data,s.getMarshallerContext(), null);
sTaskService.complete(taskId, userId, contentData);
and this human task's next node is a diverge gateway, it will used the mvel (like return result == "reject") to decide which sub switch way to go!Several days ago it could go easily without using JPA&JTA.
Today ,i add the JPA&JTA in my case.But a WorkflowRuntimeException was caught!
anyone can help me?
org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sogou.ka.contract:1 - Gateway:4] -- XOR split could not find at least one valid outgoing connection for split Gateway
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:301)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:277)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:326)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:121)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
at org.jbpm.task.service.hornetq.CommandBasedHornetQWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedHornetQWSHumanTaskHandler.java:308)
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:120)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split Gateway
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:98)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
... 21 more
48 06/12 16:40:48,122[Thread-14] ERROR service.hornetq.HornetQTaskClientConnector.run - [com.sogou.ka.contract:1 - Gateway:4] -- XOR split could not find at least one valid outgoing connection for split Gateway
Thanks and Best Regards!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780307#780307]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[Beginner's Corner] - Re: javax.naming.NameNotFoundException: jdbc not bound
by Smitha K
Smitha K [https://community.jboss.org/people/smithakutty] created the discussion
"Re: javax.naming.NameNotFoundException: jdbc not bound"
To view the discussion, visit: https://community.jboss.org/message/780287#780287
--------------------------------------------------------------
I have the following deployment details:-( I am trying to connect to the database,but getting error)
1)ejb-jar.xml:-
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
" http://java.sun.com/dtd/ejb-jar_2_0.dtd http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<description>A simple session bean</description>
<display-name>Simple Message EJB</display-name>
<enterprise-beans>
<session>
<ejb-name>FirstEJBBean</ejb-name>
<home>FirstEJBHome</home>
<remote>FirstEJBObject</remote>
<local-home>FirstLocalEJBHome</local-home>
<local>FirstLocalEJBObject</local>
<ejb-class>FirstEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<description> Maximum percentage discount for a customer </description>
<env-entry-name> maxCustomerDiscount </env-entry-name>
<env-entry-type> java.lang.Double </env-entry-type>
<env-entry-value> 50 </env-entry-value>
</env-entry>
<ejb-ref>
<ejb-ref-name>ejb/FirstEJBBeanRemoteTest</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>FirstEJBHome</home>
<remote>FirstEJBObject</remote>
<ejb-link>FirstEJBBean</ejb-link>
</ejb-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/FirstEJBBeanTest</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>FirstLocalEJBHome</local-home>
<local>FirstLocalEJBObject</local>
<ejb-link>FirstEJBBean</ejb-link>
</ejb-local-ref>
<resource-ref>
<res-ref-name>jdbc/nbuDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
</enterprise-beans>
</ejb-jar>
2)jboss-xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>FirstEJBBean</ejb-name>
<resource-ref>
<res-ref-name>jdbc/nbuDS</res-ref-name>
<jndi-name>jbossDS</jndi-name>
</resource-ref>
<jndi-name>ejb/FirstEJBBeanRemote</jndi-name>
</session>
</enterprise-beans>
</jboss>
My Local bean code is:-
ejbCtx = (Context) context.lookup("java:comp/env");
dsrc = (DataSource)ejbCtx.lookup("jdbc/nbuDS");
I have jboss-ds file in the default/deply folder configured as follows:-
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jbossDS</jndi-name>
<connection-url>jdbc:sqlserver://172.16.84.66:1433;sendStringParametersAsUnicode=false;databaseName=NBU</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<min-pool-size>5</min-pool-size>
<max-pool-size>30</max-pool-size>
<track-statements>true</track-statements>
<prepared-statement-cache-size>10</prepared-statement-cache-size>
<query-timeout>60</query-timeout>
<user-name>sa</user-name>
<password>M8$tek12</password>
</local-tx-datasource>
</datasources>
But i am still unable to connect to database.
Please provide me inputs for the same.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780287#780287]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[jBPM] - Counld not commit/rollback transaction?
by 星兰 蒋
星兰 蒋 [https://community.jboss.org/people/jiang_hoo] created the discussion
"Counld not commit/rollback transaction?"
To view the discussion, visit: https://community.jboss.org/message/780267#780267
--------------------------------------------------------------
Hi JBPM,
i meet these Exception while i try to get a Session:
EntityManagerFactory emf = jbpmEMF;
KnowledgeBase kbase = this.getKnowledgeBuilder().newKnowledgeBase();
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
env.set( EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager() );
env.set( EnvironmentName.GLOBALS, new MapGlobalResolver() );
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
473995 06/12 10:22:06,021[http-8080-1] ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction - Could not commit session
java.lang.NullPointerException
at org.drools.persistence.jta.JtaTransactionManager.getStatus(JtaTransactionManager.java:205)
at org.drools.persistence.jta.JtaTransactionManager.begin(JtaTransactionManager.java:163)
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:148)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
at com.sogou.ka.jbpm.impl.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:72)
at com.sogou.ka.jbpm.impl.CommandDelegate.getSession(CommandDelegate.java:132)
at com.sogou.ka.jbpm.impl.CommandDelegate.getProcess(CommandDelegate.java:150)
at com.sogou.ka.jbpm.impl.ProcessManagementImpl.getProcessDefinition(ProcessManagementImpl.java:46)
at com.sogou.ka.service.impl.ContractServiceImpl.newContractService(ContractServiceImpl.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
474011 06/12 10:22:06,037[http-8080-1] ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction - Could not rollback
java.lang.RuntimeException: Unable to rollback transaction
at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:197)
at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:397)
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:157)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129)
at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
at com.sogou.ka.jbpm.impl.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:72)
at com.sogou.ka.jbpm.impl.CommandDelegate.getSession(CommandDelegate.java:132)
at com.sogou.ka.jbpm.impl.CommandDelegate.getProcess(CommandDelegate.java:150)
at com.sogou.ka.jbpm.impl.ProcessManagementImpl.getProcessDefinition(ProcessManagementImpl.java:46)
at com.sogou.ka.service.impl.ContractServiceImpl.newContractService(ContractServiceImpl.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:193)
... 39 more
All help will be appriciate!
Thanks and Best Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/780267#780267]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[JBoss Web Services] - Can't access JAX-WS WSDL except via "localhost" URL
by Roger Huang
Roger Huang [https://community.jboss.org/people/ro2000] created the discussion
"Can't access JAX-WS WSDL except via "localhost" URL"
To view the discussion, visit: https://community.jboss.org/message/775671#775671
--------------------------------------------------------------
Hi,
I created a JAX-WS web service starting from a WSDL (contract-first), using
wsconsume -k JimmySoaTest.wsdl
It seems to publish ok on JBoss AS 7.1.3, on Windows Enterprise 7.
Server log:
17:19:30,812 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA
S015876: Starting deployment of "JimmySoaTest2.war"
17:19:30,959 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC servi
ce thread 1-9) Add Service
id=SoaTestImpl
address= http://localhost:8080/JimmySoaTest2 http://localhost:8080/JimmySoaTest2
implementor=com.paypal.svcs.services.SoaTestImpl
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={ http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaTest
portName={ http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaTestSOAP11port_http
wsdlLocation=null
mtomEnabled=false
17:19:30,976 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean]
(MSC service thread 1-9) Creating Service { http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaT
est from WSDL: WEB-INF/wsdl/JimmySoaTest.wsdl
17:19:31,041 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointIn
fo] (MSC service thread 1-9) Setting new service endpoint address in wsdl: http:
//10.249.152.143:8080/SoaTest
17:19:31,085 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-9)
Setting the server's publish address to be http://localhost:8080/JimmySoaTest2 http://localhost:8080/JimmySoaTest2
17:19:31,102 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC s
ervice thread 1-9) WSDL published to: file:/C:/jboss-as-dist-7.1.3.Final/jboss-a
s-7.1.3.Final/standalone/data/wsdl/JimmySoaTest2.war/JimmySoaTest.wsdl
17:19:31,105 INFO [org.jboss.as.osgi] (MSC service thread 1-14) JBAS011907: Reg
ister module: Module "deployment.JimmySoaTest2.war:main" from Service Module Loa
der
17:19:31,106 INFO [org.jboss.as.webservices] (MSC service thread 1-13) JBAS0155
39: Starting service jboss.ws.endpoint."JimmySoaTest2.war".SoaTestImpl
17:19:31,108 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC
service thread 1-13) register: jboss.ws:context=JimmySoaTest2,endpoint=SoaTestI
mpl
17:19:31,119 INFO [org.jboss.web] (MSC service thread 1-12) JBAS018210: Registe
ring web context: /JimmySoaTest2
17:19:31,146 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018
559: Deployed "JimmySoaTest2.war"
>From IE 8, I enter this URL http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl and see the WSDL:
[snip]
# - <wsdl:service name="*SoaTest*">
# - <wsdl:port binding="*ns0:SoaTestSOAP11Binding*" name="*SoaTestSOAP11port_http*">
<soap:address location=" *http://10.250.153.144:8080/SoaTest http://10.250.153.144:8080/SoaTest*" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
However when I enter http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl
I don't see the WSDL. Instead I get this error:
| h1. Internet Explorer cannot display the webpage
|
|
|
This problem can be caused by a variety of issues, including:
* Internet connectivity has been lost.
* The website is temporarily unavailable.
* The Domain Name Server (DNS) is not reachable.
* The Domain Name Server (DNS) does not have a listing for the website's domain.
* There might be a typing error in the address.
* If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
*
Environment: JBoss AS 7.1.3 on Windows Enterprise 7.
Note in standalone.xml, I set <modify-wsdl-address> to false:
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
<modify-wsdl-address>false</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem>
Any ideas why I can't see my published WSDL when I enter either my IP address or DNS name?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775671#775671]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months
[jBPM] - JBPM5 in a Web Application
by Sadiroveski S
Sadiroveski S [https://community.jboss.org/people/sadiroveski] created the discussion
"JBPM5 in a Web Application"
To view the discussion, visit: https://community.jboss.org/message/779808#779808
--------------------------------------------------------------
Dear Helpers,
We are trying to use jbpm5 in our web application. But when i tried to deploy this web application on jboss servers it fails to deploy. I have tried to give attached persistance.xml files in the class path.
Error is same for both file one is for jpa 1.0 and second is one jpa 2.0.
When I tried to deploy on jboss jboss-as-7.1.1.Final or jboss-as-7.0.0.Final. After coping war file in deployments directory when I start application server its thorough given below error.
*org.jboss.msc.service.DuplicateServiceException: Service jboss.persistenceunit."bpm-test.war#org.jbpm.persistence.jpa" is already registered*
When I deploy on jboss 5 or jboss 6. I also need to copy jBPM-ds.xml file in the path.
but after deployment it throws exception as given below.
*DEPLOYMENTS IN ERROR:
Deployment "persistence.unit:unitName=#org.jbpm.persistence.jpa" is in error due to the following reason(s): java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1002)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:948)
*
Please help us in this regard. Error is same for both files. For your reference sample code is attached. libraries are not included. which are same copied from jbpm 5.3 runtime\lib.
Your help is highly appreciated,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779808#779808]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 9 months