# \[Solved\]Configuring camunda with sql server

**URL:** <https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [April 25, 2017, 12:25pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452 "2017-04-25T12:25:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 25, 2017, 12:25pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/1 "2017-04-25T12:25:06Z")

</div>

I am trying to configure sql server as my camunda database.  
I am using apache tomcat prepackaged .zip file and starting application using start\_camunda.bat

I have successfully created the database with the name Camunda using the sql scripts now I have all the tables.

and I have just update my server.xml file like this

```
<Resource name="jdbc/ProcessEngine"
              auth="Container"
              type="javax.sql.DataSource" 
              factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
              uniqueResourceName="Camunda"
              driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" 
              url="jdbc:sqlserver://localhost:1433/Camunda"
              defaultTransactionIsolation="READ_COMMITTED"
              username="sa"  
              password="mypassword"
              maxActive="20"
              minIdle="5" />

```

but it is not working

---

<div class="post-metadata">

**Author:** ![Matthijs\_Burke](https://forum.camunda.io/user_avatar/forum.camunda.io/matthijs_burke/32/111_2.png) [@Matthijs\_Burke](https://forum.camunda.io/u/Matthijs_Burke)\
**Post date:** [April 25, 2017, 12:56pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/2 "2017-04-25T12:56:50Z")

</div>

Hi @leo_9223,

have you added the JDBC driver (`sqljdbc4.jar`) to the folder `$DISTRIBUTION_PATH\server\apache-tomcat-8.0.24\lib`?

If that doesn’t help, maybe try setting the url to  
`url="jdbc:sqlserver://127.0.0.1:1433;DatabaseName=Camunda"`

Hope this is useful to you.

Cheers,  
Mat

---

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 25, 2017, 4:34pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/3 "2017-04-25T16:34:06Z")

</div>

Thank you for your reply.

Actually, I am using VMWare windows server 2012  
I have configured ldap for user authentication previously which is working fine. I want ldap for user authentication and sql server for process data.

The steps you have stated I have performed but still not working ☹

camunda opens the welcome page but when I go to login page browser says unable to reach.

and there are no logs ☹

---

<div class="post-metadata">

**Author:** ![Matthijs\_Burke](https://forum.camunda.io/user_avatar/forum.camunda.io/matthijs_burke/32/111_2.png) [@Matthijs\_Burke](https://forum.camunda.io/u/Matthijs_Burke)\
**Post date:** [April 26, 2017, 7:37am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/4 "2017-04-26T07:37:57Z")

</div>

Hi @leo_9223,

can you check that the process engine name in the URL of the login page is the same as the process engine name that you have configured in your `bpm-platform.xml`?

If that doesn’t help, please open your browser development tools (typically with F12) and check the Network tab when opening the login page.

Cheers,  
Mat

---

<div class="post-metadata">

**Author:** ![hawky4s](https://forum.camunda.io/user_avatar/forum.camunda.io/hawky4s/32/25_2.png) [@hawky4s](https://forum.camunda.io/u/hawky4s)\
**Post date:** [April 26, 2017, 8:51am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/5 "2017-04-26T08:51:32Z")

</div>

Hi @leo_9223,

Could you please check for the logs at `$DISTRIBUTION_PATH\server\apache-tomcat-8.0.xx\logs\catalina.out` or `$DISTRIBUTION_PATH\server\apache-tomcat-8.0.xx\logs\localhost.log` and post the error message (stacktrace) here.

Cheers,  
Christian

---

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 26, 2017, 12:09pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/6 "2017-04-26T12:09:44Z")

</div>

I am using all the instructions in this page [https://docs.camunda.org/manual/7.6/installation/full/tomcat/manual/](https://docs.camunda.org/manual/7.6/installation/full/tomcat/manual/)

when I run start-camunda.bat it opens welcome page in browser but when I go to cockpit or admin instead of going to login page browser says ERR\_CONNECTION\_REFUSED ☹

very important it is not creating any logs ☹ logs folder is empty

---

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 26, 2017, 12:25pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/7 "2017-04-26T12:25:09Z")

</div>

2nd option:  
On the other hand I have deployed standalone web app .war file on my apache tomcat and then configured ldap and sql server using instructions on this page [https://docs.camunda.org/manual/7.6/installation/standalone-webapplication/](https://docs.camunda.org/manual/7.6/installation/standalone-webapplication/)  
and it is configured but its only web application I have to use rest api of camunda for this I have deployed rest api .war file to my tomcat using instructions here [https://docs.camunda.org/manual/7.6/installation/full/tomcat/manual/#rest-api](https://docs.camunda.org/manual/7.6/installation/full/tomcat/manual/#rest-api) and when I access using the url localhost:8080/engine-rest/engine it gives 404 error.

Now I need to configure sql server using prepackaged .zip file  
or  
I need to run rest api using .war file considering second option

any help would be highly appreciable.

---

<div class="post-metadata">

**Author:** ![aakhmerov](https://forum.camunda.io/user_avatar/forum.camunda.io/aakhmerov/32/413_2.png) [@aakhmerov](https://forum.camunda.io/u/aakhmerov)\
**Post date:** [April 27, 2017, 7:55am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/8 "2017-04-27T07:55:51Z")

</div>

Hi @leo_9223,

could you please attach tomcat logs?  
If there are no log files, you should make sure that all java processes are dead before starting as well as any process which can block port 8080, such as skype for instance.

Cheers,  
Askar

---

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 27, 2017, 9:51am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/9 "2017-04-27T09:51:57Z")

</div>

when I used to execute engine script in sql server it executes successfully but throw this error

**"Warning! The maximum key length is 900 bytes. The index ‘ACT\_IDX\_JOB\_HANDLER’ has maximum length of 8510 bytes. For some combination of large values, the insert/update operation will fail."**

---

<div class="post-metadata">

**Author:** ![Matthijs\_Burke](https://forum.camunda.io/user_avatar/forum.camunda.io/matthijs_burke/32/111_2.png) [@Matthijs\_Burke](https://forum.camunda.io/u/Matthijs_Burke)\
**Post date:** [April 27, 2017, 10:01am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/10 "2017-04-27T10:01:00Z")

</div>

Hi @leo_9223,

this is a known issue (see [CAM-7442](https://app.camunda.com/jira/browse/CAM-7442) ) and has been fixed with the upcoming 7.7.0 release. Until then, we recommend to not create the index.

Does this help you?

Cheers,  
Mat

---

<div class="post-metadata">

**Author:** ![leo\_9223](https://forum.camunda.io/user_avatar/forum.camunda.io/leo_9223/32/2880_2.png) [@leo\_9223](https://forum.camunda.io/u/leo_9223)\
**Post date:** [April 27, 2017, 10:28am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/11 "2017-04-27T10:28:54Z")

</div>

Thank you so much guys. I really appreciate your replies.

**Problem Solved**

Problem was not in the configuration at all  
I have just used configuration details on this page, configured and runt it successfully LDAP + Sql Server 2014  
[docs.camunda.org/manual/7.6/installation/full/tomcat/manual/](http://docs.camunda.org/manual/7.6/installation/full/tomcat/manual/)

**What was the problem then?**  
my JRE\_HOME environment variable was pointing to the wrong directory sigh !!! took my two days it happens it happens

---

<div class="post-metadata">

**Author:** ![hamid376](https://forum.camunda.io/letter_avatar_proxy/v4/letter/h/b2d939/32.png) [@hamid376](https://forum.camunda.io/u/hamid376)\
**Post date:** [September 3, 2019, 8:07am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/12 "2019-09-03T08:07:19Z")

</div>

which version of sqljdbc.jar did you use for connecting to Sql Server 2014 ?

---

<div class="post-metadata">

**Author:** ![erikasegatto](https://forum.camunda.io/user_avatar/forum.camunda.io/erikasegatto/32/7039_2.png) [@erikasegatto](https://forum.camunda.io/u/erikasegatto)\
**Post date:** [September 19, 2019, 3:54pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/13 "2019-09-19T15:54:49Z")

</div>

I used sqljdbc4-2.0.jar and it worked.

---

<div class="post-metadata">

**Author:** ![Elham\_Hamidi](https://forum.camunda.io/user_avatar/forum.camunda.io/elham_hamidi/32/11868_2.png) [@Elham\_Hamidi](https://forum.camunda.io/u/Elham_Hamidi)\
**Post date:** [October 19, 2020, 5:43pm UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/14 "2020-10-19T17:43:28Z")

</div>

Hi, Could you help me?  
I have got same your problem. I start camunda-bpm-tomcat-7.14.0 and I see [http://localhost:8080/camunda-welcome/index.html](http://localhost:8080/camunda-welcome/index.html) then Tomcat is closed and When I click on Tasklist or Cockpit or Admin or … I see error “ **localhost** refused to connect.”  
I will be grateful If you help me.

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 10:51am UTC](https://forum.camunda.io/t/solved-configuring-camunda-with-sql-server/3452/15 "2024-01-30T10:51:17Z")

</div>

Closed on January 30, 2024, 10:51am UTC


