[JBoss jBPM] - Re: where to set the database properties while installing jb
by santoshkumarsamala
there was only file mysql-ds.xml I have removed even that, now i am getting following error
| 12:41:11,381 INFO [DatasourceConnectionProvider] Using datasource: java:JbpmDS
| 12:41:11,381 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:144)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
|
|
my jbpm-mysql-ds.xml contains
<xa-datasource>
| <jndi-name>JbpmDS</jndi-name>
|
| <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
| <xa-datasource-property name="URL">${jdbc.mysql.url}</xa-datasource-property>
| <user-name>${jdbc.mysql.username}</user-name>
| <password>${jdbc.mysql.password}</password>
|
| <!-- reduce isolation from the default level (repeatable read) -->
| <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
| <!-- separate connections used with and without JTA transaction -->
| <no-tx-separate-pools />
| <!-- disable transaction interleaving -->
| <track-connection-by-tx />
|
| ................................
|
|
My question is do i need to declare mysql-ds.xml in deploy folder with datasource called JbpmDS or I need to overwrite the url ,username and passsword of jbpm-mysql-ds.xml with my own values?
I have tried to override the values of url etc if jbpm-mysql-ds.xml then there is no error but database tables are not generated automatically..
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211589#4211589
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211589
16 years
[JBoss jBPM] - Re: Blocking call from Java to jBPM workflow
by hkapoor@ciber.com
I understand that processInstance.signal(); is a blocking call till first wait state, I apologize for incomplete post. I am looking for a call that blocks until the workflow is over. Use case is as follows:
BusinessProcess that I am implementing includes webservice orchestration (done through BPEL) and human intervention activities (done through jPDL). The need is to crisply segregate Webservice orchestration from workflow management, so that workflow engine can be changed without affecting orchestration and vice versa. For this the workflow has been wrapped as a SOAP service and is being used in orchestration. The requirement is such that business process does not finish until workflow is completed, that is why I am looking for a call that blocks until workflow ends, is there one ?.
Or can I implement this by creating a java class that sends out signal to start workflow and at the same time register a call back handler for end event. This call back handler when invoked sends response back to the invoker.
-Harshit
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211582#4211582
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211582
16 years
[JBoss jBPM] - where to set the database properties while installing jbpm-i
by santoshkumarsamala
when I execute jbpm-installer-3.3.1GA, the wizard will run and I give the location of jboss and also in one of the screen i say that iam using mysql , then the wizard executes completely creating jbpm folder in jboss4.2.2./server/default/deploy/
when i open that newly created jbpm folder i am able to see a file called jbpm-mysql-ds.xml, it has three lines
| <xa-datasource-property name="URL">${jdbc.mysql.url}</xa-datasource-property>
| <user-name>${jdbc.mysql.username}</user-name>
| <password>${jdbc.mysql.password}</password>
|
>From where these three values will be configured, i couldnt find any file where i can configure these values, i have declared my self a file called mysql-ds.xml in deploy folder with following values
<datasources>
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
| <!-- The driver class -->
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <!-- The login and password -->
| <user-name>root</user-name>
| <password>welcome</password>
| </local-tx-datasource>
| </datasources>
but it gives me an error
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@ee96070 { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/mysql-ds.xml }
| deployer: org.jboss.deployment.XSLSubDeployer@18f127c
| status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.jca:service=DataSourceBinding,name=JbpmDS
| state: FAILED
| watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/mysql-ds.xml
| altDD: null
| lastDeployed: 1235063072861
| lastModified: 1235063072845
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:service=EjbModule,module=jbpm-enterprise.jar
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.lang.NullPointerException); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)))
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.j2ee:service=EjbModule,module=jbpm-enterprise.jar
| State: FAILED
| Reason: org.jboss.deployment.DeploymentException: Error while fixing table name; - nested throwable: (org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.lang.NullPointerException); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)))
|
|
please help me to resolve this, iam breaking the head for the past 2 days
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211574#4211574
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211574
16 years
[JBoss jBPM] - Re: getting error when JBPM installer -3.2.4.GA has executed
by santoshkumarsamala
my jbpm-mysql-ds contains the following entry, I have 5.0.51b mysql
<?xml version="1.0" encoding="UTF-8"?>
|
| <!-- The Hypersonic embedded database JCA connection factory config -->
|
| <!-- $Id: hsqldb-ds.xml 63175 2007-05-21 16:26:06Z rrajesh $ -->
|
| <datasources>
| <local-tx-datasource>
| <jndi-name>JbpmDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/jbpm</connection-url>
| <!-- The driver class -->
| <driver-class>com.mysql.jdbc.Driver</driver-class>
| <!-- The login and password -->
| <user-name>root</user-name>
| <password>welcome</password>
| </local-tx-datasource>
| <metadata>
| <type-mapping>MySQL</type-mapping>
| </metadata>
| </datasources>
Iam getting this error now
org.jboss.deployment.DeploymentException: type-mapping is not initialized: java:/JbpmDS was not deployed or type-mapping was not configured.
| at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.getTypeMapping(JDBCEntityMetaData.java:1103)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:427)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211549#4211549
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211549
16 years
Installation error
by Peter Brooks
I'm getting this error:
2009/02/19 3:12:41 PM [0x0-0x244244].com.apple.JarLauncher[28435]
Caused by: /opt/alfresco/jbpm-3.2.5.GA/Uninstaller/download-helper.xml:17:
Error while expanding
/opt/alfresco/jbpm-3.2.5.GA/Uninstaller/jboss-5.0.0.GA.zip
As you can see, I'm installing it an a mac. There's over 4Gb on the
drive, so it can't be a space problem. The install script re-tries
this a number of times as I've multiple copies of the error.
Any suggestions?
16 years