[jBPM Users] - Re: JpdlProcessDefinition cannot be cast to java.util.List
by sebastian.s
This is the only error I see:
| INFO: exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@5ad89e02
| java.lang.ClassCastException: org.jbpm.jpdl.internal.model.JpdlProcessDefinition cannot be cast to java.util.List
| at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:64)
| at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
| at org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(RepositorySessionImpl.java:120)
| at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
| at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:65)
| at org.jbpm.pvm.internal.query.AbstractQuery.untypedUniqueResult(AbstractQuery.java:69)
| at org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.uniqueResult(ProcessDefinitionQueryImpl.java:145)
| at org.jbpm.pvm.internal.repository.RepositorySessionImpl.findProcessDefinitionByKey(RepositorySessionImpl.java:144)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:58)
| at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
| at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
| at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263933#4263933
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263933
16 years, 5 months
[JCA] - How to send jms messages from jboss to websphere
by mnenchev
Hi, i am using jboss 5.1.0. I need to send messages to other application deployed on websphere 6( or may higher).
Up to now no success with this. The people that develop the application using websphere gave me
queue.manager.name=...
queue.manager.host=...
queue.manager.port=...
queue.manager.channel=...
queuename=...
And told me to send messages there. How to do it no idea.
I found some tutorial that explains how to do it but i didn't get it to work.
I deployed wmq.jmsra.rar (from wsmq)
I tried this configuration wmq.jmsra.xml:
<?xml version="1.0" encoding="UTF-8"?>
|
| <connection-factories>
|
| <!-- connection factory definition -->
| <tx-connection-factory>
| <jndi-name>TESTCF</jndi-name>
| <xa-transaction />
| <rar-name>wmq.jmsra.rar</rar-name>
| <connection-definition>javax.jms.ConnectionFactory</connection-definition>
| <config-property name="channel" type="java.lang.String">TEST.CHANNEL</config-property>
| <config-property name="hostName" type="java.lang.String">192.168.2.100</config-property>
| <config-property name="port" type="java.lang.String">1414</config-property>
| <config-property name="queueManager" type="java.lang.String">TESTQM</config-property>
| <config-property name="transportType" type="java.lang.String">CLIENT</config-property>
| <security-domain-and-application>JmsXARealm</security-domain-and-application>
| </tx-connection-factory>
|
| <!-- admin object definition -->
| <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=testqueue">
| <attribute name="JNDIName">testqueue</attribute>
| <depends optional-attribute-name="RARName">
| jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
| </depends>
| <attribute name="Type">javax.jms.Queue</attribute>
| <attribute name="Properties">
| baseQueueManagerName=TESTQM
| baseQueueName=testqueue
| expiry=EXP_UNLIMITED
| </attribute>
| </mbean>
| </connection-factories>
|
It is deployed, but when i attempt to send message the QueueConnectionFactory lookup returns me ConnectionFactoryImpl
and so it throws classcastexception
Error:
java.lang.ClassCastException: com.ibm.mq.connector.outbound.ConnectionFactoryImpl cannot be cast to javax.jms.QueueConnectionFactory
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263919#4263919
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263919
16 years, 5 months
[JBoss Web Services Users] - Re: Problem of polymorphism of JBoss WebService
by xiangyingbing
18:05:26,151 INFO [STDOUT] ------------ArrayList<Animal> is got:
| 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Animal.1,age:1
| 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from
| stateless bean context, it should already have been injected
| 18:05:26,151 WARN [StatelessBeanContext] EJBTHREE-1337: do not get WebServiceContext property from
| stateless bean context, it should already have been injected
| 18:05:26,151 INFO [STDOUT] ------------ArrayList<Animal> is got:
| 18:05:26,151 INFO [STDOUT] One Animal is got:Animal-->name:Human.1,age:1
| ~~~~~~~~~~~I had expected here print
| [18:05:26,151 INFO [STDOUT] One Human is got:Animal-->name:Human.1,age:1]
|
|
|
| ------------returnedValue2:
| *** item:Animal-->name:Human.1,age:1
| *** item:Animal-->name:Human.2,age:2
| ~~~~~~~~Here i had expected print something like:
| *** item:Human-->name:Human.1,age:1, email:xxxx
|
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263904#4263904
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263904
16 years, 5 months