Trouble creating a portal service

Hi,
We are trying to create a portal service with the DeveloperStudio (7.1) and are having lots of problems. We are creating the project with the "Portal Application Project" and then creating the service via "Portal Application Object".  This worked well in the old 7.0 environment.
We can find the services via nwa and it says there that they are running but we have no indication that they have really started, because the functionality isn't be used. The logger is not being fired either.
Checking the traces we are finding strange warnings like "Web Model Builder: WEB-INF/web.xml is not Java EE 5 compatible, because of this annotations will not be processed." or "BcaClassFinder.addResources Can not open zip fileD:\usr\sap\CE1\J00\j2ee\cluster\server0\temp\deploy\work\deploying\TestServices.ear1215787665722\META-INF\sda-dd.xml it is not a valid zip archive"
We created another service without any code from us and we are still getting strange errors.
We also changed the permissions for the service to "Everyone" and this still didn't help.
Our functionality can be packed in some other sort of service - it doesn't have to a portal service. The main requirement is that the service is restarted after a server restart.
Does anyone have a clue what the problem might be or what sort of a service might be more appropriate?
Thanks.
Dick

add the user & password at the end of ur URL
refer the following thread.
external service configration+adding webservice with basic authentication

Similar Messages

  • Error while creating a Portal Service

    Hi All,
    I have created a portal service as illustrated in the following link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0b57e590-0201-0010-a29f-abd37a436f54
    I get the following error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : SnowServiceAccess.SnowComponent
    Component Name : SnowServiceAccess.SnowComponent
    com.sap.portal.tutorial.service.ISnowService.getAllStationPictures()Ljava/util/Hashtable;.
    Exception id: 06:51_10/05/06_0001_604684950
    See the details for the exception ID in the log file
    Any idea ???
    Thanks,
    Shiraz

    Shiraz,
    can you let me know what is the exact exception, that is logged in the log file ?
    May be you might have missed out some jar files.
    kiran

  • How to create the Portal Service in Portal 7.3,

    Dear Experts,
    how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
    Thanks,
    Sagar Pande

    Hi Sagar,
    Procedure
      1.  Open the SAP NetWeaver Administrator by either of the following methods:
           a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
           b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
      2  Go to   Operations Management   Systems   and click the Start & Stop link.
        The Start & Stop: Java EE Instances window opens.
      3  Click the Java EE Application bar and select the relevant application in the Application List.
        The Portal Services pane displays the services associated with the selected application.
      4  Use the buttons Start Service or Stop Service.
    Refer to Portal 7.3 help
    http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
    Br,
    Venky

  • Which BW variable is used for date(range) when creating a portal service

    Hi,
    Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
    Thanks
    Abhai

    Hi Arun,
    its just a portal service which would be called when  searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I  and for single value variable we VAR_VALUE_EXT_I
    in the similar manner i want BW variable to be used for range of values.
    Thanks
    Abhai

  • How to Create Portal Service in Portal 7.3

    Dear Experts,
    how to create the Portal Service in Portal 7.3, as we create in Portal 7.0 by creating the Portal Project in that we create Portal Service and we can start and stop in Portal Service configuration in System Administration
    Thanks,
    Sagar Pande

    Hi Sagar,
    Procedure
      1.  Open the SAP NetWeaver Administrator by either of the following methods:
           a. Use the URL to your AS Java (hostname:port) to access the AS Java home page and use the link to SAP NetWeaver Administrator.
           b. Alternatively, add nwa to the AS Java URL to access SAP NetWeaver Administrator directly. (hostname:port/nwa).
      2  Go to   Operations Management   Systems   and click the Start & Stop link.
        The Start & Stop: Java EE Instances window opens.
      3  Click the Java EE Application bar and select the relevant application in the Application List.
        The Portal Services pane displays the services associated with the selected application.
      4  Use the buttons Start Service or Stop Service.
    Refer to Portal 7.3 help
    http://help.sap.com/saphelp_nw73/helpdata/en/f6/ac978061ac4b24a87a1f821313c4fe/frameset.htm
    Br,
    Venky

  • How to log exceptions and imp logging info in Portal Service via ILogger?

    Hi Experts,
    I m trying to use ILogger for my application.
    Information about my application:
    I have created a Portal Service and exposed it as a Web Service which is deployed as a PAR file on to the SAP J2EE Engine.
    I need to use the Logging facility of ILogger in this Portal Service.
    I have written the following code in the Init() function of the Portal Service
    public void init(IServiceContext serviceContext)
           mm_logger = serviceContext.getLogger("com.persistent.pankaj");
    I have put the logger.xml in the logger folder of PORTAL-INF
    my logger.xml is as follows:
    <Server>
    <Logger name="testLog" loggerInterface="com.sapportals.portal.prt.logger.ILogger" locationName="com.sap.portal.testLog" pattern="%d # %20t %15s %m #" isActive="true">
    <LoggerClass className="com.sapportals.portal.prt.logger.SimpleFileLogger" level="INFO">
    <param filename="logs/com.persistent.pankaj.log" append="true">
    </param>
    </LoggerClass>
    </Logger>
    </Server>
    On deploying my portal service as a web service
    I m unable to get the logs.
    I even dont know where will i get the log file, means wat is the exact location where i can check my log results
    I m a newbie for this
    Please help me out
    Help will be rewarded n appreciated
    -pankaj

    Hi Pankaj,
    In your init method try this code to create the logger:
    ILogger logger = PortalRuntime.getLogger("testLog");
    In your logger.xml the logger name was testLog and not com.persistent.pankaj so while creating logger you should use testLog in the above code.
    By default all the logs are written to defaultTrace.log files, to check them read this:
    Portal Runtime Logs
    If you want to log in a seperate logfile then you should set a seperate log destination, which is not recommended on productive systems due to performance problems.
    Also read these to know how to set seperate log destinations:
    Netweaver Portal Log Configuration & Viewing (Part 3)
    Netweaver Portal Log Configuration & Viewing (Part 1)
    Netweaver Portal Log Configuration & Viewing (Part 2)
    Regards,
    Praveen Gudapati

  • Invoking the Portal Service DC from Webdynpro Java DC

    Hi experts,
    I am trying to Call a dc Portal Service from within a Web Dynpro DC
    following the steps I did,
    1. Created a DC "Portal Application Standalone" project by the name "portappstd".
    2. Created a portal service inside "portappstd" dc by the name "DemoPortalService".
    3. Exposed ITestService.class in the public part.
    4 Build and deployed the DC on server!!
    Now..
    5. Created anoter DC of type WebDynPro named "demoportaldc".
    6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime
    7. Added IDemoPortalService.class from the public part of portal Service as Used DC
    8. Tried to reference the service using the following code..
         IDemoPortalService service=(IDemoPortalService)WDPortalUtils.getServiceReference(IDemoPortalService.KEY);
    9. Build and deployed the DC.
    10. When I run the application I am getting the following error
    Processing HTTP request to servlet dispatcher finished with error.
    The error is:
    application [webdynpro/dispatcher] Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.services.sal.core.DispatcherException: Failed to start deployable object com.arteriatech/demoportaldc.
    so, please do the needfull ASAP,..
    Thanks & Regards,
      GAANEE

    Hi...
    Check the following link..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/ba641aa6-0c01-0010-57ac-c21a4ca7b542
    Regards,
    Alamelu

  • Exposing Portal Services as Web Services

    Hello Portal experts,
    I a newby in Portal development and I'm currently trying to write a service portal wich I want to expose as a Web Service.
    I found a [documentation|http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/content.htm] wich enabled me to create a portal service and a web service (it simply contains a ping method) into a development component as indicated.
    But when I'm trying to build the Project, no SDA file is generated and no error messages are displayed !?
    Does someone have any clue?
    Thank you
    Dominique

    HIIII...
    Use this link ..
    it will be usefull 4 u.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm]
    thanks..
    Regards
    Mayank Saxena

  • Making portal services as web services

    hi,
          i have created a portal service. i want to publish this as web service . anyone know how to do this ...
    padma

    hi padma,
             in your project folder follow the path new->other->portal application -> portal application object ->
    portal web services -> portal web services from portal services and select ur portal service.
    to view ur wsdl file go to System administration->support->portal runtime -> soap admin -> web services
    Regards,
    jeyasingh Samuel

  • RFC Call to Portal Service

    Hi
    I am trying to call a Portal Service from the SAP R/3 through RFC.
    I have done the following.
    1. Created RFC in the SAP R/3.
    2. Created RFC Destination in SAP R/3 and WAS 640
    3. Created a Portal Service and deployed in the Portal.
    The problem is when I execute the RFC in ABAP it is giving me this error.
    com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in method processFunction
    As anyone faced similar problems, please let me know.
    Regards
    Senthil

    Hi Senthil,
    If you haven't already done so, I think you should try this question in the 'ABAP Programming' forum.
    Yoav.

  • Current Portal User in a Portal service

    Hi,
    I have created a Portal service which is exposed as a web service, serving to fetch current logged-in user in Portal.
    This web service has been called from a BSP program that which is exposed on Portal as an iView.
    The requirement is, when the user runs this BSP program from Portal, the program should call the Web Service and get the user who is currently using the page. This works fine except the Portal service always returns un:Guest user. I used below menthod to get the current logged in user:
    public String getLoggedinUser()
                IUser sapUser = UMFactory.getAuthenticator().getLoggedInUser();
                String uID = sapUser.getUniqueID();
                String[] users = uID.split("\\.");
                return users[users.length - 1];
    I checked for existing solutions in the forum but they work for a Portal component. How can I achieve the desired result using a Portal Service or otherwise ? Please help.
    Thanks,
    Aditya.

    Hi Aditya,
    Try below code -
    String _pmfKey = null;
    IPortalComponentRequest componentRequest =(IPortalComponentRequest) getRequest();
    IUserFactory userFactory = UMFactory.getUserFactory();
    IUser myUser =userFactory.getUser(componentRequest.getUser().getUniqueID());
    _pmfKey = myUser.getName();
    Regards,
    Sen

  • Which SharingReference I need to add at a portal service for these packages

    Hello,
    I have written a portal service, not at the Dynpro, environment which uses these imports:
    com.sap.tc.webdynpro.progmodel.api.IWDNode;
    com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    com.sap.tc.webdynpro.services.sal.url.api.IWDCachedWebResource;
    com.sap.tc.webdynpro.services.sal.url.api.WDURLException;
    com.sap.tc.webdynpro.services.sal.url.api.WDWebResource;
    com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType;
    Which SharingReference do I need to add in order for this to be recognized from the service?

    Hello Valery and Maksim,
    I am familiar with this post yet I have two problems that it doesn't solve:
    1. The reason we are not migrating from Local Dynpro projects to DCs is because of language issues currently handled by SAP. Our GUI is written in Hebrew and at the migration process all the text appearing on the GUI simply vanishes. So, at the moment let's assume we are working with Local Dynpro projects and not DCs.
    2. The second problem we are facing involves from the first one: Since we are not working with DCs yet and since SAP doesn't support local Dynpro projects at the DTR, CBS, CMS even if I will develop such DC it will stay locally and I will be able to use it only from projects at my workspace, other developers won't be able to share it.
    So, at the moment, even if creating a portal service is not the best solution it is the only temporary solution I see right now, unless you have other suggestions...

  • Question regarding implementation of Portal Service

    Hello,
    I want to create a portal service that calls our R/3 system and comes back with customer master data. For that I have to hand over the userid to the portal service.
    The Interface looks like that:
    import com.sapportals.portal.prt.service.IService;
    import com.lgs.model.CustomerDataBean;
    public interface IR3CustDataService extends IService
        public static final String KEY = "R3CustDataService";
        // returns an object with all customer master data from R/3
         public CustomerDataBean getCustomerData(String userid);
    The implementation of the method in the corresponding class is:
    CustomerDataBean cdb = new CustomerDataBean();
    public CustomerDataBean getCustomerData(String userid) {
              return cdb;
    Now I would implement the program logic (accessing R/3 and fill the CustomerDataBean) in the init method of the portal service class.
    public void init(IServiceContext serviceContext) {
                    mm_serviceContext = serviceContext;
                    implementation of program logic, usage of userid necessary
    My question is now how I can use the String userid in the init method? How can I hand over the userid to the init method so that I can use it?
    Any hint is really appreciated!
    Thanks a lot.
    Arno

    hi
    MY level of understandind u r problem is
       by application  u r sending the username and password to the portal and getting the required data by beans
    if so
    check this it may be usefull foru
    Integrating External Application Services without Web service
    bvr

  • Access Portal Services within Web Dynpro

    Hi,
    I created a portal service and would like that some values of the same have to be set by a Web Dynpro application, but i have a problem to access this
    service. Always that a i try to get a reference of this service the object isn't instantiated and i get a null instantiated.
    What i`m trying to do is the broadcast message described in [/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1 |/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1]with a variation that need of some
    more Attributes and that the same will be pass by the Web Dynpro, like the broadcast message i`ll just use the alert concept and don't the publication.
    Follow below the describe of executed actions.
    1 - I did all the process as the [Weblog|/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1].
    2 - I generated the Jar and insert the same in a DC.
    3 - I generated the Web Dynpro application, in the used DCs and added the DC with the Jar, and i inserted the reference in a Sharing References. 
    4 - Did the deploy and insert the Web Dynpro in a Portal Iview.
    But always that i execute, i can't capture the reference of the service.
    Note: The reference in Sharing References was executed for several diferents forms of test, like for exemple:
    PORTAL:<vendor>/com.teste.broadcast
    PORTAL:com.teste.broadcast
    PORTAL:<vendor>/com.teste.broadcast.alertreceiver
    PORTAL:com.teste.broadcast.alertreceiver
    But always adding one at a time.
    Until put the saller like sap.com i already try.
    The creation of the service as described in the weblog can be accessed for a Web Dynpro? What the problem to access the Service??
    The codes follow Bellow.
    portalapp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.runtime.system.notification"/>
        <property name="ServicesReference" value="com.teste.broadcast"/>
      </application-config>
      <services>
        <service name="alertreceiver">
          <service-config>
            <property name="className" value="com.teste.broadcast.alertreceiver"/>
          </service-config>
        </service>
      </services>
    </application>
         BroadcastAppView.java
    import com.sap.security.api.IUser;
    import com.sap.tc.webdynpro.clientserver.portal.WDPortalUtils;
    import com.sap.tc.webdynpro.clientserver.portal.sf.WDPortalServiceType;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sapportals.portal.prt.service.notification.INotificationService;
    import com.sapportals.portal.prt.service.notification.NotificationStringBufferPool;
    import com.sapportals.portal.prt.service.notification.StreamData;
    import com.sapportals.portal.prt.service.notification.TopicData;
    import com.sapportals.portal.prt.service.notification.TopicDataContainer;
    import com.teste.broadcast.Ialertreceiver;
    public void onActionSendMessage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSendMessage(ServerEvent)
            IWDMessageManager msgManager = wdComponentAPI.getMessageManager();
            INotificationService notService = null;
            try {
                    notService =    (INotificationService)
                            WDPortalUtils.getServiceReference("com.teste.broadcast");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference("com.teste.broadcast.alertreceiver");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference(IAlertreceiver.KEY);
            } catch (Exception ex) {
                    msgManager.reportWarning("2-" + ex.getMessage());
            TopicDataContainer container = new TopicDataContainer(TOPIC_NAME);
            StreamData  messageStream = new StreamData(new ByteArrayInputStream(textMessage.getBytes()));
            TopicData durationdata =
                    new TopicData(TopicDataContainer.STRING, "60");
            TopicData userdata =
                    new TopicData(TopicDataContainer.STRING, user.getUniqueName());
            container.addTopicData("message", messageStream);
            container.addTopicData("duration", durationdata);
            container.addTopicData("user", userdata);
            container.addTopicData("group", "GROUP_ACCESS");
            //notService.publish(TOPIC_NAME, container);
            msgManager.reportWarning("-" + notService);
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private final static String SERVICE_NOTIFICATION = "com.sap.portal.runtime.system.notification.notification";
      private final static String TOPIC_NAME = "USTBroadCastAlerts";
      //@@end
    Thank.
    Luciano Feletti Aponte

    Hi Luciano,
    Take a look at for your answer:
    /thread/833576
    Regards,
    Rogério

  • Calling a Portal Service from within a Web Dynpro DC

    Hello,
    I am trying to call a Portal Service from within a Web Dynpro development component without sucess.
    Can anyone give me some hints on the necessary steps in order to accomplish this task?
    Thanks
    Diz

    Hi Diz,
    I tried doing the same thing by following the steps as mentioned by you. Just to re iterate,
    1. Created a DC "Portal Application Standalone" project by the name myservice.
    2. Created a portal service inside myservice by the ame AmitsService.
    3. Exposed IAmitsService.class in the public part.
    4 Build and deployed the DC on server and tested it through an abstract portal component and it worked FINE !!
    Now..
    5. Created anoter DC of type WebDynPro
    6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime
    7. Specified the sharing reference in the properties as PORTAL:sap.com/myservice
    8. Tried to reference the service using the following code..
    IAmitsService portalservice=(IAmitsService)WDPortalUtils.getServiceReference(IAmitsService.KEY);
    9.Build and deployed the DC.
    10. When I run the application I am getting the following error
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.engine.frame.core.load.SAPNoClassDefFoundError: com/sapportals/portal/prt/service/IService
    Exception id: [000D6008418B005C0000002C00000D200004163CE6719E1D]
    PLEASE ADVISE

Maybe you are looking for

  • Keyboard and trackpad unresponsive when woken from sleep

    I have a Retina MBP running OS X 10.8 Mountain Lion. The last couple days when I wake my computer from sleep the trackpad and keyboard do not respond, but my external mouse works. I have to power down my computer, restart and then everything works. A

  • Warning: Z3c doesn't seem to work with many common bluetooth devices. No fix immenent?

    Hello. I just bought the Z3c as a replacement for the far-too-large Samsung Galaxy S5.  However, unlike the Samsung phone, the Sony fails to detect almost all bluetooth devices I've tried. In particular it fails to connect with my Jaybird Bluebuds X

  • How can i make the internet windows cover the whole screen?

    My new macbook brings up a small internet window, and it's not the easiest to see, although the type and quality is good. I have tried changing the display under system preferences, but that makes the quality less. Does anyone have any suggestions? I

  • Work Item to be disappeared from user1 inbox when escalated to user2

    Hi,    I created a customising workflow for Credit Memo Request with 2 escalations  for approval. I have used Fork operation to get this functionality with Requested start option in 2nd and 3rd branch to escalate after 3 and 6 days respectively if no

  • Migration iTunes Music from Windows to Mac

    Hello, I currently have a PC on Windows Xp, I usually use iTunes for Windows to manage and buy my music for my iPod and iPhone. I would like to buy a Mac mini to replace my Windows XP computer. I currently stored my music managed by iTunes for Window