[JBoss jBPM] - Re: deploy a procesee to jboss server using java code
by Grid.Qian
Thanks. I know I should used /jbpm-console/upload, but if use /jbpm-console/upload, I got another error:
Exception in thread "main" couldn't deploy process archives : null
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:179)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
Caused by: java.lang.NullPointerException
at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
... 3 more
--- Nested Exception ---
java.lang.NullPointerException
at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
"salaboy21" wrote : My first impresion is that your code have a wrong path to the upload server.. I do not know the SOA platform but i think the correct path is
|
|
|
| | /jbpm-console/upload
| |
|
| so try to change this line in your code:
|
|
| | deployTask.setServerDeployer("/jbpm-console/app/upload");
| |
| to
|
| | deployTask.setServerDeployer("/jbpm-console/upload");
| |
|
| if this is not the problem please let me know and we try to solve it together.
| Greetings!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186925#4186925
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186925
17 years, 5 months
[JBoss jBPM] - Re: Problem with JBPM running on Oracle
by janvandeklok
Since the jboss seam console (jbpm-enterprise.ear) does not contain a hibernate.cfg.xml file, it is my assumption that seam/hibernate takes the dialect from the <type-mapping> in the jbpm-ds.xml which contains in my case :
<type-mapping>Oracle9i</type-mapping>
I can see in the log file that the oracle 10G dialect is used for datasource java:/JbpmDS :
2008-11-05 08:18:58,128 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2008-11-05 08:18:58,128 INFO [org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:/JbpmDS
2008-11-05 08:18:58,331 INFO [org.hibernate.cfg.SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
2008-11-05 08:18:58,331 INFO [org.hibernate.cfg.SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.2.0.4.0
2008-11-05 08:18:58,347 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect
2008-11-05 08:18:58,347 INFO [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
)
BUT ... then further in the log I see this:
2008-11-05 08:20:16,184 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] building hibernate session factory
2008-11-05 08:20:16,184 DEBUG [org.jbpm.db.hibernate.HibernateHelper] creating hibernate configuration resource 'hibernate.cfg.xml'
2008-11-05 08:20:16,184 INFO [org.hibernate.cfg.Configuration] configuring from resource: hibernate.cfg.xml
2008-11-05 08:20:16,184 INFO [org.hibernate.cfg.Configuration] Configuration resource: hibernate.cfg.xml
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
2008-11-05 08:20:16,184 DEBUG [org.hibernate.util.DTDEntityResolver] located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.dialect=org.hibernate.dialect.HSQLDialect2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
2008-11-05 08:20:16,184 DEBUG [org.hibernate.cfg.Configuration] hibernate.connection.datasource=java:comp/env/jdbc/JbpmDataSource
Which raises my question:
Is defining the jbpm datasource xml not enough for the jbpm-console to specify the database to use??? What more do we need to change / add???
(We do have deployed an application build with seam in the same app.server that does contain a hibernate.cfg.xml but that one is pointing to a DB2 database (with a DB2Dialect))
Any help would be appriciated!
Jan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186920#4186920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186920
17 years, 5 months
[JBoss jBPM] - seam global event - need direction or suggestions
by coralfe
Hi,
I asked this on the seam forum but got no reply. Maybe someone here can help.
http://seamframework.org/Community/GlobalEvent
I am not sure how to design this and its seems slightly outside of the standard examples so I'm not finding clarity in the documentation.
The above thread suggested JBPM as a solution but I can't quite wrap my head about how to go about it. I don't even know if this is possible and I don't know if I'm asking the right questions.
Basically multiple users can edit the same information and I need a way to notify multiple users when data has changed.
What I would like to do is have an a4j:push component event fired.
This appears to require multiple users receiving an event.
The receiving component is conversation scoped and I'm not sure how to
get the information where it needs to be.
What I have so far is a seam component that creates the process and starts a notification task. But there I get stuck. I have assigned the next task to "assignment pooled-actors" but am having conceptual problems with what happens next. idealy I would like an observer in the conversation scoped component to handle some kind of event and I am outjecting into Business process scope a variable that gets injected for processing at this point.
If I have an event at the start of a task and it is received by a business process scoped component, how do I then get that info to each users bean?
The documentation is not helping me put this together. Please help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186732#4186732
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186732
17 years, 5 months