Activiti REST API with postgresql
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2016 11:33 AM
Hello i need help with the connection
I work with jboss, postgresql and java and i want to connect activiti with my db in postgres, the problem is that i must deploy the war archive in jboss but when i modify the content (add the postgresql driver jar) doesn't work
Error message
HTTP Status 404 - /activiti-rest/service/repository/deployments
What is the problem? I have the archive context.xml with my configuration and in the jboss log doesn't appear any kind of error message
only says: "Register web context: /activiti-rest"
Please Help me
my configuration in context.xml is
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/activiti-rest2">
<Resource auth="Container"
name="jdbc/activitiDB"
type="javax.sql.DataSource"
scope="Shareable"
description="JDBC DataSource"
url="jdbc
ostgresql://localhost:5432/test"
driverClassName="org.postgresql.Driver"
username="postgres"
password="d4rk7h3r10n"
defaultAutoCommit="false"
initialSize="5"
maxWait="5000"
maxActive="120"
maxIdle="5"/>
</Context>
I work with jboss, postgresql and java and i want to connect activiti with my db in postgres, the problem is that i must deploy the war archive in jboss but when i modify the content (add the postgresql driver jar) doesn't work
Error message
HTTP Status 404 - /activiti-rest/service/repository/deployments
What is the problem? I have the archive context.xml with my configuration and in the jboss log doesn't appear any kind of error message
only says: "Register web context: /activiti-rest"
Please Help me
my configuration in context.xml is
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/activiti-rest2">
<Resource auth="Container"
name="jdbc/activitiDB"
type="javax.sql.DataSource"
scope="Shareable"
description="JDBC DataSource"
url="jdbc

driverClassName="org.postgresql.Driver"
username="postgres"
password="d4rk7h3r10n"
defaultAutoCommit="false"
initialSize="5"
maxWait="5000"
maxActive="120"
maxIdle="5"/>
</Context>
Labels:
- Labels:
-
Archive
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2016 02:27 AM
Hi, I have also the same problem but I'm using Activiti. I want also to deploy my .bpmn file after I created deployment artifacts. I want to test it on my local server before I deploy it on my web server. Please help. I need to deploy new .bpmn file since I updated its content. My new process definitions are unreadable and I suspect it was the missing redeployment.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2016 07:44 AM
I'm really not following both posts here … what are you trying to do? Redeploy a process definition? What are you using Explorer, Activiti engine, Activiti enterprise, etc …
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2016 11:14 AM
mmm well i add the postgresql driver into the WEBINF/lib and change my db.propiertes, i do it with WinRar … but now i have a question how i can use activiti REST API standalone?
I need to create the engine and configuration classes? how i can start the process? … and it's necesary use servlets? … sorry if my questions are silly but im new with activiti and the development
Sorry i don't speak english, only spanish, is very hard to me understand, im from Bolivia
I need to create the engine and configuration classes? how i can start the process? … and it's necesary use servlets? … sorry if my questions are silly but im new with activiti and the development
Sorry i don't speak english, only spanish, is very hard to me understand, im from Bolivia
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2016 08:24 AM
"I need to create the engine and configuration classes?"
You only need to configure the database at minimum if you don't use the default one. No need to create the engine, that's already done for you by the rest webapp.
"how i can start the process?"
By calling the REST API for starting a process instance (i would guess it's something with POST to the process instances url)
"and it's necesary use servlets? "
No
You only need to configure the database at minimum if you don't use the default one. No need to create the engine, that's already done for you by the rest webapp.
"how i can start the process?"
By calling the REST API for starting a process instance (i would guess it's something with POST to the process instances url)
"and it's necesary use servlets? "
No
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2016 12:15 PM
thanks i try to deploy the book's examples but i have an error
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" =>
{"jboss.web.deployment.default-host./book-rest-app" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./book-rest-app: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}}}
i dont understand what is wrong?
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" =>
{"jboss.web.deployment.default-host./book-rest-app" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./book-rest-app: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context
Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS018040: Failed to start context"}}}}
i dont understand what is wrong?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2016 06:25 AM
Me neither, from that error. There is nothing more? A stacktrace leading to the actual problem?
