# External Configuration File for \*.aar service archive Is Ignored

**URL:** <https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [July 1, 2014, 11:36am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179 "2014-07-01T11:36:02Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 1, 2014, 11:36am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/1 "2014-07-01T11:36:02Z")

</div>

Hi,

I am following the user guide to set an external configuration file for the service .aar file we have. This is because we have multiple environments and we only want to use one .aar file and have one configuration file for each environment that will override the broker node and service name detail set inside .aar file.

I have added the below parameter in axis2.xml in the parameter section:

This is the content to my entirex-config.xml (I’ve changed the service name and broker detail just for this post):

\<?xml version="1.0" encoding="utf-8" ?\> BROKER:5552 RPC/SERV1/CALLNAT BROKER:5552 RPC/SERV1/CALLNAT true 

But it seems it is still using the broker and service name inside the .aar file.  
Have I missed something? Do I need to change anything in the web.xml that comes from the wsstack code?  
Any help you can provide is much appreciated.

Thanks,  
Irene

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 9:33am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/2 "2014-07-02T09:33:47Z")

</div>

Hi Irene,

I can’t see anything which looks wrong. Did you restart Tomcat after you changed the axis2.xml file?

You should run a supported version and have the latest fixes applied.

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 9:37am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/3 "2014-07-02T09:37:05Z")

</div>

Thanks Rolfe.

I did restart Tomcat, a few times.  
We are currently running wsstack obtained from version 8.2.2.57.101.

Is there anything I need to change in the web.xml (original version from the package)?

I am at a lost as to why this is not working.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 9:52am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/4 "2014-07-02T09:52:59Z")

</div>

I can only guess: is the location in the parameter section correct?

Brian also had some problems with this, but he got it working. Maybe he can comment on this.  
[url][http://tech.forums.softwareag.com/techjforum/posts/list/52237.page[/url]](http://tech.forums.softwareag.com/techjforum/posts/list/52237.page%5B/url%5D)

If this doesn’t help I suggest contacting support.

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 10:17am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/5 "2014-07-02T10:17:15Z")

</div>

I think so… I placed the entirex required parameter on this location within …/WEB-INF/conf/axis2.xml

 true true false false

```
<!-- External Configuration File for Web Services overriding the config in web service archive file -->
<parameter name="EntireX-XML-Listener">
    <parameter name="services" location="/v/global/user/proj/entirex_wsstack/config/DEV-ws-entirex-config.xml" />
</parameter>
<parameter name="exx-trace-propertiesfile">/v/global/user/proj/entirex_wsstack/config/entirex.trace.properties</param

```

eter\>  
…  
…

I did check the other post you mentioned. But alas I’m still none the wiser as to why this is not working for me.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 10:53am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/6 "2014-07-02T10:53:00Z")

</div>

> [@Irene Lesmana](#):
>
> I think so… I placed the entirex required parameter on this location within …/WEB-INF/conf/axis2.xml

Check the Web Service Stack (or Axis2) documentation about the location of the axis2.xml file.  
If you use the Common Tomcat the docu says:

This file is located in the Software AG\_directory/profiles/CTP/workspace/wsstack/repository/conf directory

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 11:28am UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/7 "2014-07-02T11:28:04Z")

</div>

I deployed it as an exploded war file.  
I cannot find directory structure that resembles  
/profiles/CTP/workspace/wsstack/repository/conf directory

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 12:06pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/8 "2014-07-02T12:06:54Z")

</div>

What application server are you using? The Common Tomcat which gets installed by the Software AG installer, a stand-alone Tomcat, or something else?

Anyway, somewhere you should have a WS-Stack\repository\conf directory.

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 12:12pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/9 "2014-07-02T12:12:03Z")

</div>

I am using a corporate hosted server with virtual servers utilisation allocation (built on top of Apache Tomcat server).  
The way I deploy it is by pointing it to the exploded war file location of ws-stack.

So the axis2.xml I’ve changed is in /WEB-INF/conf/axis2.xml

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 12:46pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/10 "2014-07-02T12:46:59Z")

</div>

You’re right, if you have a standalone Tomcat /WEB-INF/conf/axis2.xml is the correct place of the axis2.xml file.  
I see that you have specified the exx-trace-propertiesfile parameter. If that works then the location of the axis2 file is okay.

You can try to use a file url for the services parameter:

What version of the entirex.jar are you using in the Tomcat?  
Just run java -jar entirex.jar.

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 3:11pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/11 "2014-07-02T15:11:37Z")

</div>

It looks like I’m using entirex.jar version 8.1.2.36b.  
Let me try to use the same version of entirex.jar as the ws-stack version and restart Tomcat.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 3:15pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/12 "2014-07-02T15:15:16Z")

</div>

The latest fix on Empower is 8.2.2.59. You should use this one.

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 3:34pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/13 "2014-07-02T15:34:27Z")

</div>

Thanks Rolf. I’ll give it a go.  
Do you happen to have the download url for that entirex.jar from empower website?

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 2, 2014, 3:43pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/14 "2014-07-02T15:43:30Z")

</div>

Try this one: [https://empower.softwareag.com/sl24sec/SecuredServices/KCFullTextASP/viewing/view.asp?key=519473-17011618&DST=UPDATE](https://empower.softwareag.com/sl24sec/SecuredServices/KCFullTextASP/viewing/view.asp?key=519473-17011618&DST=UPDATE)

---

<div class="post-metadata">

**Author:** ![Irene\_Lesmana1](https://avatars.discourse-cdn.com/v4/letter/i/6f9a4e/32.png) [@Irene\_Lesmana1](https://techcommunity.softwareag.com/u/Irene_Lesmana1)\
**Post date:** [July 2, 2014, 5:05pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/15 "2014-07-02T17:05:06Z")

</div>

Updating the entirex.jar to the latest version worked!!!  
Awesome.

Thanks a million for your help Rolf! You’re ace!!

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [July 3, 2014, 5:31pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/16 "2014-07-03T17:31:15Z")

</div>

Hi Irene,

Sorry I didn’t check the forums to see your post when you needed help, but I am glad you were able to resolve the issue. My issue had to do with poorly coded XML tags, but once that was fixed it worked like a charm. We were already using a version of WSStack that had the fix to your issue.

I had other issues when I first started that were resolved by applying the latest fix. I think as a general rule this is a good thing to do with this product - consistently apply the latest fixes for WSStack and Designer.

Regds,

Brian

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:31pm UTC](https://techcommunity.softwareag.com/t/external-configuration-file-for-aar-service-archive-is-ignored/177179/17 "2021-04-02T15:31:26Z")

</div>


