Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I set the context root in the Doors API using .xml files?

Hello everyone,

I am trying to deploy a number of API extensions on the same Websphere webserver as Doors NG (As per this question, https://jazz.net/forum/questions/176825/how-to-deploy-doors-next-gen-api-extensions-onto-websphere)

We have worked through most of the issues but I need to set the context root to "/extensions" without doing it manually during installation. I will upload a copy of my web.xml and ibm-web-ext.xml any tips on how to do this would be great.

Regards,
Andrew

web.xml
<?xml version='1.0' encoding='ISO-8859-1'?>
<web-app
    xmlns='http://java.sun.com/xml/ns/j2ee'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd'
    version='2.4'>

    <display-name>Doors Next Gen Extensions</display-name>

</web-app>

imb-web-ext.xml

<?xml version='1.0' encoding='ISO-8859-1'?>
<web-ext
    xmlns="http://websphere.ibm.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
    version="1.0">
 
 <context-root uri="/extensions"/>
 
</web-ext>

0 votes



One answer

Permanent link
If I remember correctly, you cannot force a context root when deploying a .war file to WAS (the context root is default to the .war file name?). The only way is to deploy an .ear file. Or you can use some script to change the context root after the deployment.
http://stackoverflow.com/questions/24472790/websphere-8-5-context-root-change-not-applying-to-war-file

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Mar 23 '15, 12:45 a.m.

Question was seen: 4,433 times

Last updated: Mar 24 '15, 2:34 a.m.

Confirmation Cancel Confirm