cancel
Showing results for 
Search instead for 
Did you mean: 

Setting web.xml environment entries at deploy time?

Former Member
0 Kudos

Hello,

In previous releases of Netweaver, the deploy tool allowed for modification of environment entries in the web.xml (<env-entry>). I cannot seem to find a way to modify these parameters when using the deploy tool in the developer studio.

Does any know how to modify the environment variables at deploy time?

Thanks...

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Chris,

Development, build, and deployment of Java EE applications are now more tightly integrated in the NWDS. The publish functionality of WTP allows you to build and deploy your developed projects with a single mouse click. You edit the XML deployment descriptors directly in the NWDS editors before publishing.

The Deploy View is suitable for deployment of already packaged application archives.

For more info please refer to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/882f621d-0e01-0010-99b7-c5bc4f1a4b6b">this</a> paper.

Hope it helps!

-Vladimir

Former Member
0 Kudos

H Vladimir,

Thank you for the information. This confirms what I was afraid of. We use an externally created web application that includes configuration information in the web.xml and expects the application server to have a mechanism to modify this at deployment time. Our experience with other app servers (NW 6.4, Tomcat, JBoss, Oc4j, WebLogic, and Websphere) have all had a mechanism to either modify the variables during deployment or through an administration view after deployment.

It sounds like this version on NW has removed that capability.

In the paper that you cited, there is mention of using the config view to setup substitution variables. Do you know if this would work against the web environment variables? Also, any idea on how variables would be scoped so that 2 applications don't use the same variable?

I have also noticed that editing the web.xml file from the expanded ear file after deployment does not change the information. Does the app server read the web.xml from another location?

Thanks for you insights into this...

-Chris

Vlado
Advisor
Advisor
0 Kudos

Hi Chris,

> In the paper that you cited, there is mention of

> using the config view to setup substitution

> variables. Do you know if this would work against

> the web environment variables?

No, subst variables would not be replaced in the web.xml.

> I have also noticed that editing the web.xml file

> from the expanded ear file after deployment does not

> change the information.

Sorry, I am not sure I got this... Do you mean editing the web.xml in the original file that had been added in the Deploy View? This file is used only for the deployment process, it reads the data inside and then leaves the file.

> had a mechanism to either modify the variables during deployment

> or through an administration view after deployment.

> It sounds like this version on NW has removed that capability.

We are aware of the importance of this and also appreciate your feedback. Adding such functionality is already considered in the design discussions for the next releases of SAP NetWeaver.

Greetings,

Vladimir

Former Member
0 Kudos

Hi Vladimir,

Thanks for the responses. This answers my questions.

I look forward to the next release that enables this configuration

Thanks...

-Chris

Answers (0)