on 10-15-2006 5:53 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.