cancel
Showing results for 
Search instead for 
Did you mean: 

J2EE server component - library DC has no server/provider.xml file

former_member190457
Contributor
0 Kudos

Hi developers,

In my library, a jar is included where my java plain classes access UME classes.

So, I need to runtime reference UME classes from my library.

From [this tutorial|http://help.sap.com/saphelp_nw70/helpdata/en/bf/93d84072378031e10000000a1550b0/frameset.htm] I can see that there should be a file called server/provider.xml where runtime dependencies should be configured.

However I am using a DC library, and such file cannot be found.

Should I create it manually?

I need to access typical UME classes such as IGroup, IUser, factories and so on.

Which DC should I runtime reference?

Thanks in advance

Vincenzo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It will be automatically generated when the project is built. It creates references from the Used dcs list.

former_member190457
Contributor
0 Kudos

Hello unfortunately it is not generated on NWDS SP16 or SP18 (I don't know which one exactly because there is an IDE error which prevents the about box to be displayed).

If I understand correctly I should follow the same logic I used in plain projects also in DC project, is that right?

Thanks,

regards

Former Member
0 Kudos

Hi VICENZO.

In version 7.1, this classes are in ENGINEAPI SC. I don't have sure, but is think the DC is com.sap.security.api.sda.

Try this.

Regards

Marcos

Former Member
0 Kudos

Yes, it is very similar. When the project is built provider.xml will created and will be packed in sda file. It wont generate it in your project.

Alternatively you can create server folder under _comp and create provider.xml in it.

former_member190457
Contributor
0 Kudos

Hi, thanks for replying.

If I generate the provider.xml file should I also select the jars to be included?

Will my provider.xml be overridden by the auto-generated provider.xml?

Thanks

regards

Vincenzo

Former Member
0 Kudos

1. IF you provide your own provider.xml that takes priority. Build is NOT going to generate automatically.

2. You need to put entries in this xml file manually. That means your DC dependecies does not get added to the xml automatically. You hav to manually do it. DTD for this xml is avaiabale in SAP help portal.

Answers (0)