# Development in Eclipse

**URL:** <https://talk.openelis-global.org/t/development-in-eclipse/128>\
**Category:** Uncategorized\
**Created:** [March 28, 2023, 1:11pm UTC](https://talk.openelis-global.org/t/development-in-eclipse/128 "2023-03-28T13:11:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sthaiya](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sthaiya](https://talk.openelis-global.org/u/sthaiya)\
**Post date:** [March 28, 2023, 1:11pm UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/1 "2023-03-28T13:11:25Z")

</div>

I have tried unsuccessfully to set up my development environment. I have eclipse 2023-03 and tomcat v9. Every attempt has left with me 404 error:

```auto
**Type** Status Report
**Message** The requested resource [/OpenELIS-Global-2] is not available
**Description** The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

```

Not sure what I am doing wrong. Iam using the steps available here [Dev Environment Setup Instructions - OpenELIS Global Documentation](https://docs.openelisci.org/en/latest/dev_setup/)

Running oe from docker runs fine.

---

<div class="post-metadata">

**Author:** ![calebslane](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/calebslane/32/330_2.png) [@calebslane](https://talk.openelis-global.org/u/calebslane)\
**Post date:** [March 29, 2023, 1:11am UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/2 "2023-03-29T01:11:46Z")

</div>

Hi @sthaiya,

I am confirming that the steps in the documentation are up to date. In the meantime, I have a few questions that will help me ascertain why this is happening for you:

1. Click on the `OpenELIS-Global-2` project that should be in the leftmost pane under the `Project Explorer` tab. While the project is highlighted, navigate to `Project` on the top menu bar, and ensure `Build Automatically` is checked off. Once again navigate to `Project` on the top menu bar and click `Clean...` in the dropdown. Ensure `Clean all projects` is checked and click `Clean`. At the bottom right of Eclipse there should be a message that briefly says `Cleaning all projects...` followed by `Building`. Do those messages appear for you?

2. When you start the tomcat server in Eclipse, do you see anything in the Eclipse console tab that indicates that it is detecting the project? for example `Initializing Spring root WebApplicationContext` or `Initializing Spring DispatcherServlet 'dispatcher'`.

3. Does the console tab display any error messages? They should be in the format of `28 Mar. 2023 18:00:24 -- ERROR -- Context initialization failed` , but the message is likely different

---

<div class="post-metadata">

**Author:** ![sthaiya](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sthaiya](https://talk.openelis-global.org/u/sthaiya)\
**Post date:** [March 29, 2023, 7:03am UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/3 "2023-03-29T07:03:09Z")

</div>

@calebslane  
I have done steps1 and it completes successfully displayig the messages. Step 2 also passes but throws error in accessing hapi fhir.  
` Caused by: ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException: Failed to parse response from server when performing GET to URL https://fhir.openelis.org:8443/hapi-fhir-jpaserver/fhir/metadata - org.apache.http.conn.HttpHostConnectException: Connect to fhir.openelis.org:8443 [fhir.openelis.org/172.17.0.1] failed: Connection refused`

The docker container for fhir is running.  
Here is the full log [Pastie](http://pastie.org/p/2X4elzG3yiQ54LyuxYNdqe)

---

<div class="post-metadata">

**Author:** ![calebslane](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/calebslane/32/330_2.png) [@calebslane](https://talk.openelis-global.org/u/calebslane)\
**Post date:** [March 31, 2023, 5:43pm UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/4 "2023-03-31T17:43:19Z")

</div>

@sthaiya,

Thank you for the additional information. I believe I know what is causing the issue. The address `https://fhir.openelis.org:8443/hapi-fhir-jpaserver/fhir/` uses the docker service name to find the co-resident FHIR server. When running OpenELIS-Global outside of the docker network, it can no longer reach it at that address.

The most effective solution that will allow you to change between eclipse development and docker development is to add a local DNS entry that maps `fhir.openelis.org` to `127.0.0.1`. In Ubuntu, this is done by adding an entry in the `/etc/hosts` file like `127.0.0.1 fhir.openelis.org`.

Another issue that may affect you is that the co-resident FHIR server we use changed the path from `/hapi-fhir-jpaserver/fhir/` to `/fhir/`, but if it was working in docker, then I suspect you may not need to change that address.

Let me know if the above works for you.

---

<div class="post-metadata">

**Author:** ![sthaiya](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@sthaiya](https://talk.openelis-global.org/u/sthaiya)\
**Post date:** [April 3, 2023, 8:09pm UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/5 "2023-04-03T20:09:17Z")

</div>

Thanks alot @calebslane.

This fixed it. changed path to `/fhir/` and mapped my docker based fhir server in my hosts file.  
Really appreciated.

---

<div class="post-metadata">

**Author:** ![basrem](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/basrem/32/95_2.png) [@basrem](https://talk.openelis-global.org/u/basrem)\
**Post date:** [November 13, 2023, 12:38pm UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/6 "2023-11-13T12:38:24Z")

</div>

I haven’t started on the installations yet but why is Eclipse the only one of all IDEs chosen for this purpose?  
Are IntelliJ and VS Code problematic in setting up OPENELIS?  
I am asking for clarity

---

<div class="post-metadata">

**Author:** ![Moses\_Mutesasira](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/moses_mutesasira/32/72_2.png) [@Moses\_Mutesasira](https://talk.openelis-global.org/u/Moses_Mutesasira)\
**Post date:** [November 15, 2023, 9:33am UTC](https://talk.openelis-global.org/t/development-in-eclipse/128/7 "2023-11-15T09:33:16Z")

</div>

I personally use VS Code .  
Any IDE can work. The only challenge would be installing a Jasper reports pluggin for other IDEs.  
I haven’t found any other Jasper reports plugins for other IDEs apart from eclipse.

So you can use VS-Code for all other developments apart from creating reports
