cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti REST API with postgresql

arag
Confirmed Champ
Confirmed Champ
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="jdbcSmiley Tongueostgresql://localhost:5432/test"
              driverClassName="org.postgresql.Driver"
              username="postgres"
              password="d4rk7h3r10n"
              defaultAutoCommit="false"
              initialSize="5"
              maxWait="5000"
              maxActive="120"
              maxIdle="5"/>
</Context>
6 REPLIES 6

mauwarrior
Champ in-the-making
Champ in-the-making
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.

jbarrez
Star Contributor
Star Contributor
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 …

arag
Confirmed Champ
Confirmed Champ
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

jbarrez
Star Contributor
Star Contributor
"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

arag
Confirmed Champ
Confirmed Champ
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?

jbarrez
Star Contributor
Star Contributor
Me neither, from that error. There is nothing more? A stacktrace leading to the actual problem?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.