cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use Sharing Reference on a portal service DC with prefix

Former Member
0 Kudos

Hello,

I have created a portal service in a Portal application DC. When I created this DC the Name server wasn't active, so when created it I manually seted these parameters:

Vendor: my.org

DC name: mojserv

Since the Name server was not active the Namespace prefix combo box was disabled.

I then wanted to refer to this service from a Dynpro application and for that I created this Sharing Reference: PORTAL:my.org/mojserv.

Everything was working great.

At this point I deleted the Portal application DC and recreated the same one, this time when the Name Server service was active.

At this case, you reserve a Namespace prefix, and I reserved this one: my.org/serv.

When I created the Portal application DC this time I could choose my vendor from a Vendor combo box and again I named the DC: mojserv.

I tried both these Sharing References but with no success:

1. PORTAL:my.org/mojserv

2. PORTAL:my.org/srv/mojserv

3. PORTAL:justice.gov/srv~mojserv (This is how I see it at the Delopy service on the Admin tool).

4. justice.gov/srv~mojserv

This time when I wanted to refer from it from a Dynpro application I received ClassNotFound exception on alll of the above attempts, which means that my Runtime Sharing reference is not correct. This is the place to mention that the service was deployed correctly and it is running on the server and that it is the same as the working one, without the srv prefix.

Anyone has an idea how can I refer to this service?

Thank you in advance,

Roy

Message was edited by: Roy Cohen

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182372
Active Contributor
0 Kudos

Hi Roy,

Go to visual administrator, open service "ClassLoader viewer", select your service and you will see all dependencies (and name).

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hello Maksim,

I do not see my service at the place you've mentioned. I don't think it shouls appear there either.

I do see it running though under System Administration->System Configuration->Service Configuration.

Roy

Former Member
0 Kudos

Hello Roy,

Have you looked at ?

Bala

Former Member
0 Kudos

Yes I have, this guy simply had a spelling mistake, I have verified that I don't have. As I said, at the Deploy service I see it as: my.org/srv~mojserv

Roy

Former Member
0 Kudos

OK Roy.

Then check if the .wdProperties file of your project is getting updated with the value that you are declaring for the sharing reference. You'll find this file under <i><[path]>.dtc\LocalDevelopment\DCs\[vendor]\[DCName]\_comp\bin.</i>

If I remember correctly, it should contain something like this (<i>not exactly same</i>)


  <ProjectProperties.SharingReferences>
     <SharingReference referenceName="PORTAL:my.org/srv~mojserv">
     </SharingReference>
  </ProjectProperties.SharingReferences>

After declaring a sharing reference you may do a <b>Reload + Rebuild, DC Build</b> and <b>DC Deploy</b>.

Bala

Former Member
0 Kudos

Hello Bala,

Yes, it does getting updated, here is the file:

<?xml version="1.0" encoding="UTF-8"?>
<!-- MetaDataAPI generated on: Tuesday, May 24, 2005 1:51:43 PM CEST -->
<ProjectProperties xmlns="http://xml.sap.com/2002/10/metamodel/webdynpro" xmlns:IDX="urn:sap.com:WebDynpro.ProjectProperties:2.0" mmRelease="6.30" mmVersion="2.0" mmTimestamp="1116935503986" name="ProjectProperties" package="" masterLanguage="iw">
	<ProjectProperties.SharingReferences>
		<LibraryReference libraryName="PORTAL:my.org/srv~mojserv" name="0">
		</LibraryReference>
	</ProjectProperties.SharingReferences>
</ProjectProperties>

Message was edited by: Roy Cohen

Former Member
0 Kudos

Hey, now I see that even tough I put it under the SharingReference tab it is being updated under the LibraryReference tag at the xml. Any idea why...?

Or perhaps it is OK since it is sitting under the ProjectProperties.SharingReferences tag?

Message was edited by: Roy Cohen

Former Member
0 Kudos

Roy,

I think that should be OK. Just cross check if you've done the steps 1 and 2 mentioned in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/using%20ep%20services%20within%20webas%20applications.pdf">this</a> document correctly.

HTH

~ Bala

Former Member
0 Kudos

Hello Bala,

These steps were done.

If I wasn't doing step 1 the project wouldn't have compiled.

As I stated at the begining of the post, step 2 has been done as well.

Yet, the runtime exception remains...

Roy