Using Room API inside Web DynPro

Hello,
I've developed a Web DynPro Application which uses the Room API of the KMC.
Unfortunately I can not set the Service Reference variable "com.sap.netweaver.coll.shared" as mentioned in the guide.
A Deploy Exception will be thrown ("Missing Arguments...")
If i do not set this variable the following Exception will be thrown:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.xy.demo.kmc.room.RoomManagerView. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
     at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.<init>(DelegatingView.java:41)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:487)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:524)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
     at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
     at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
     at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
     at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
     at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
     at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
     at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
     at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
     ... 31 more
Caused by: java.lang.NoClassDefFoundError: com/sap/ip/collaboration/room/api/IRooms
     at com.xy.demo.kmc.room.wdp.InternalRoomManagerView.<init>(InternalRoomManagerView.java:97)
     ... 36 more
Greetings
Florian

Hi Valery,
thanks for the reply.
I have feared that you say exactly this.
First I have to mention that I of course added the reference variable at the right place (the entry has successfully added to the portalapp.xml)
I looked to the services and do NOT find anything about "com.sap.netweaver.coll.shared" so my next question is:
Where to get it and how to deploy it?

Similar Messages

  • Problems in using EP API in web dynpro

    Hi all,
    I am using of the UME API of EP in my web dynpro application. I have inlcuded the 'com.sap.security.jar' file in my build path and did a local build and deployed the application on my development system, it works well. But while moving the same to the quality system, while activating it is throwing syntax errors saying the classes that i have used are undefined. The same erros come even when i do a DC level build.
    I have tried including the jar file in the 'lib' folder of the DC, even then, i dont get any errors when i build it locally, where as there are errors while doing a DC level build.
    Please tell me if there is any way of including this jar file some where so that it does not throw any erros in DC level build and also while activating.
    Regards,
    Narahari

    Hi Ravi,
    Sorry for the late reply.
    I inlcuded the security.jar file. but still i get the following errors,Please advice :-+
            Enumeration enum = store.aliases();
                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:392: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    (try -source 1.5 to use 'enum' as a keyword)
            while(enum.hasMoreElements()) {
                  ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:393: warning: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
    (try -source 1.5 to use 'enum' as a keyword)
                alias = (String)enum.nextElement();
                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:31: cannot find symbol
    symbol  : class HttpServletRequest
    location: interface com.sap.security.api.IAuthentication
         public IUser forceLoggedInUser(HttpServletRequest req, HttpServletResponse resp);
                                           ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:31: cannot find symbol
    symbol  : class HttpServletResponse
    location: interface com.sap.security.api.IAuthentication
         public IUser forceLoggedInUser(HttpServletRequest req, HttpServletResponse resp);
                                                                   ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:42: cannot find symbol
    symbol  : class HttpServletRequest
    location: interface com.sap.security.api.IAuthentication
         public IUser getLoggedInUser(HttpServletRequest req, HttpServletResponse resp);
                                         ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:42: cannot find symbol
    symbol  : class HttpServletResponse
    location: interface com.sap.security.api.IAuthentication
         public IUser getLoggedInUser(HttpServletRequest req, HttpServletResponse resp);
                                                                 ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:51: cannot find symbol
    symbol  : class HttpServletRequest
    location: interface com.sap.security.api.IAuthentication
         public void logout(HttpServletRequest req,HttpServletResponse resp);
                               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:51: cannot find symbol
    symbol  : class HttpServletResponse
    location: interface com.sap.security.api.IAuthentication
         public void logout(HttpServletRequest req,HttpServletResponse resp);
                                                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:68: cannot find symbol
    symbol  : class HttpServletRequest
    location: interface com.sap.security.api.IAuthentication
         public void forceLogoffUser(HttpServletRequest req, HttpServletResponse resp, String url);
                                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\IAuthentication.java:68: cannot find symbol
    symbol  : class HttpServletResponse
    location: interface com.sap.security.api.IAuthentication
         public void forceLogoffUser(HttpServletRequest req, HttpServletResponse resp, String url);
                                                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSEObject.java:3: package iaik.asn1 does not exist
    import iaik.asn1.ASN1Object;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSEObject.java:8: cannot find symbol
    symbol  : class ASN1Object
    location: interface com.sap.security.api.keystore.secudePSEObject
        public ASN1Object getObject   ();
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\PKList.java:3: package iaik.x509 does not exist
    import iaik.x509.X509Certificate;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\PKList.java:4: package iaik.asn1.structures does not exist
    import iaik.asn1.structures.Name;
                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\PKList.java:16: cannot find symbol
    symbol  : class Name
    location: interface com.sap.security.api.keystore.PKList
        public void     removeCertificate (Name subject);
                                           ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\PKList.java:21: cannot find symbol
    symbol  : class X509Certificate
    location: interface com.sap.security.api.keystore.PKList
        public void     addCertificate (X509Certificate cert);
                                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:10: package iaik.asn1 does not exist
    import iaik.asn1.SEQUENCE;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:11: package iaik.asn1 does not exist
    import iaik.asn1.ASN1Object;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:12: package iaik.asn1 does not exist
    import iaik.asn1.DerCoder;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:13: package iaik.asn1 does not exist
    import iaik.asn1.SET;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:14: package iaik.asn1 does not exist
    import iaik.asn1.INTEGER;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:15: package iaik.asn1 does not exist
    import iaik.asn1.OCTET_STRING;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:16: package iaik.asn1 does not exist
    import iaik.asn1.ObjectID;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:17: package iaik.asn1 does not exist
    import iaik.asn1.PrintableString;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:18: package iaik.asn1 does not exist
    import iaik.asn1.UTCTime;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:19: package iaik.x509 does not exist
    import iaik.x509.X509Certificate;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:20: package iaik.asn1.structures does not exist
    import iaik.asn1.structures.Name;
                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:42: cannot find symbol
    symbol  : class INTEGER
    location: class com.sap.security.api.keystore.secudePSE
        static INTEGER  integer       = new INTEGER (2);
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:43: cannot find symbol
    symbol  : class ObjectID
    location: class com.sap.security.api.keystore.secudePSE
        static ObjectID oid           = new ObjectID ("1.2.840.113549.3.7", "", "");
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:44: cannot find symbol
    symbol  : class OCTET_STRING
    location: class com.sap.security.api.keystore.secudePSE
        static OCTET_STRING os        = new OCTET_STRING (new byte [] { 0x00, 0x00,
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:48: cannot find symbol
    symbol  : class PrintableString
    location: class com.sap.security.api.keystore.secudePSE
        static PrintableString user   = new PrintableString ("SYSTEM");
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:49: cannot find symbol
    symbol  : class INTEGER
    location: class com.sap.security.api.keystore.secudePSE
        static INTEGER  integer2      = new INTEGER (1);
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:50: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
        static SEQUENCE oidseq        = new SEQUENCE ();
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:198: cannot find symbol
    symbol  : class ObjectID
    location: class com.sap.security.api.keystore.PKListImpl
        private static ObjectID pkloid  = new ObjectID ("1.3.36.2.6.1", "", "");
                       ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:201: cannot find symbol
    symbol  : class ASN1Object
    location: class com.sap.security.api.keystore.PKListImpl
        private ASN1Object  asn   = null;
                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:213: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.keystore.PKListImpl
        public void     addCertificate (X509Certificate cert)
                                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:223: cannot find symbol
    symbol  : class ASN1Object
    location: class com.sap.security.api.keystore.PKListImpl
        public synchronized ASN1Object getObject   ()
                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:261: cannot find symbol
    symbol  : class Name
    location: class com.sap.security.api.keystore.PKListImpl
        public void removeCertificate (Name subject)
                                       ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:261: removeCertificate(java.lang.String) is already defined in com.sap.security.api.keystore.PKListImpl
        public void removeCertificate (Name subject)
                    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\ILogonAuthentication.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\ILogonAuthentication.java:44: cannot find symbol
    symbol  : class HttpServletRequest
    location: interface com.sap.security.api.logon.ILogonAuthentication
        public javax.security.auth.Subject logon (HttpServletRequest req, HttpServletResponse resp, String authscheme)
                                                  ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\ILogonAuthentication.java:44: cannot find symbol
    symbol  : class HttpServletResponse
    location: interface com.sap.security.api.logon.ILogonAuthentication
        public javax.security.auth.Subject logon (HttpServletRequest req, HttpServletResponse resp, String authscheme)
                                                                          ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:8: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletRequest;
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:9: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletResponse;
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:20: cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.sap.security.api.logon.WebCallback
        private HttpServletRequest  request;
                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:21: cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.sap.security.api.logon.WebCallback
        private HttpServletResponse response;
                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:45: cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.sap.security.api.logon.WebCallback
        public void setRequest(HttpServletRequest request) {
                               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:54: cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.sap.security.api.logon.WebCallback
        public HttpServletRequest getRequest() {
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:90: cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.sap.security.api.logon.WebCallback
        public HttpServletResponse getResponse() {
               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\logon\WebCallback.java:99: cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.sap.security.api.logon.WebCallback
        public void setResponse(HttpServletResponse response) {
                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\permissions\ValuePermission.java:6: package com.sap.engine.lib.logging does not exist
    import com.sap.engine.lib.logging.LoggingHelper;
                                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\ISSOSession.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\ISSOSession.java:24: cannot find symbol
    symbol: class HttpSession
    public interface ISSOSession extends HttpSession
                                         ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\SessionFactory.java:6: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletRequest;
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\SessionFactory.java:7: package javax.servlet.http does not exist
    import javax.servlet.http.HttpServletResponse;
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\SessionFactory.java:68: cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.sap.security.api.session.SessionFactory
        public        abstract ISSOSession      getSSOSession (HttpServletRequest req,
                                                               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\session\SessionFactory.java:69: cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.sap.security.api.session.SessionFactory
                                                                HttpServletResponse resp);
                                                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:29: package iaik.x509 does not exist
    import iaik.x509.X509Certificate;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:30: package iaik.asn1.structures does not exist
    import iaik.asn1.structures.Name;
                                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:31: package iaik.asn1 does not exist
    import iaik.asn1.ObjectID;
                     ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:32: package iaik.pkcs does not exist
    import iaik.pkcs.*;
    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:376: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.ticket.TicketVerifier
        public abstract X509Certificate getSignerCertificate()
                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:453: cannot find symbol
    symbol  : class PKCSParsingException
    location: class com.sap.security.api.ticket.TicketVerifier
                   PKCSParsingException,
                   ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:478: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.ticket.TicketVerifier
        public static X509Certificate findCert(X509Certificate[] certs, Name issuer, BigInteger serial)
                                               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:478: cannot find symbol
    symbol  : class Name
    location: class com.sap.security.api.ticket.TicketVerifier
        public static X509Certificate findCert(X509Certificate[] certs, Name issuer, BigInteger serial)
                                                                        ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:478: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.ticket.TicketVerifier
        public static X509Certificate findCert(X509Certificate[] certs, Name issuer, BigInteger serial)
                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:510: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.ticket.TicketVerifier
        public static boolean verifyCertificate (X509Certificate[] certs, X509Certificate test, boolean verifyChain)
                                                 ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:510: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.ticket.TicketVerifier
        public static boolean verifyCertificate (X509Certificate[] certs, X509Certificate test, boolean verifyChain)
                                                                          ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\ticket\TicketVerifier.java:570: cannot find symbol
    symbol  : class Name
    location: class com.sap.security.api.ticket.TicketVerifier
        public static Name newName(String country, String loc, String org, String orgUnit, String commonName) {
                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\umap\IUserMappingData.java:8: package javax.xml.soap does not exist
    import javax.xml.soap.SOAPMessage;
                          ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\umap\IUserMappingData.java:82: cannot find symbol
    symbol  : class SOAPMessage
    location: interface com.sap.security.api.umap.IUserMappingData
        public void enrich (SOAPMessage msg)
                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\umap\IUserMappingData.java:82: enrich(java.util.Properties) is already defined in com.sap.security.api.umap.IUserMappingData
        public void enrich (SOAPMessage msg)
                    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\UMFactory.java:26: package com.sap.engine.lib.logging does not exist
    import com.sap.engine.lib.logging.LoggingHelper;
                                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:42: cannot find symbol
    symbol  : class INTEGER
    location: class com.sap.security.api.keystore.secudePSE
        static INTEGER  integer       = new INTEGER (2);
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:43: cannot find symbol
    symbol  : class ObjectID
    location: class com.sap.security.api.keystore.secudePSE
        static ObjectID oid           = new ObjectID ("1.2.840.113549.3.7", "", "");
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:44: cannot find symbol
    symbol  : class OCTET_STRING
    location: class com.sap.security.api.keystore.secudePSE
        static OCTET_STRING os        = new OCTET_STRING (new byte [] { 0x00, 0x00,
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:48: cannot find symbol
    symbol  : class PrintableString
    location: class com.sap.security.api.keystore.secudePSE
        static PrintableString user   = new PrintableString ("SYSTEM");
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:49: cannot find symbol
    symbol  : class INTEGER
    location: class com.sap.security.api.keystore.secudePSE
        static INTEGER  integer2      = new INTEGER (1);
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:50: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
        static SEQUENCE oidseq        = new SEQUENCE ();
                                            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:88: cannot find symbol
    symbol  : class SET
    location: class com.sap.security.api.keystore.secudePSE
            SET      set= new SET ();
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:88: cannot find symbol
    symbol  : class SET
    location: class com.sap.security.api.keystore.secudePSE
            SET      set= new SET ();
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:89: cannot find symbol
    symbol  : class UTCTime
    location: class com.sap.security.api.keystore.secudePSE
            UTCTime  utc= new UTCTime ("020101000000Z");
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:89: cannot find symbol
    symbol  : class UTCTime
    location: class com.sap.security.api.keystore.secudePSE
            UTCTime  utc= new UTCTime ("020101000000Z");
                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:90: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
            SEQUENCE outerSequence = new SEQUENCE ();
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:90: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
            SEQUENCE outerSequence = new SEQUENCE ();
                                         ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:91: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
            SEQUENCE otherSequence = new SEQUENCE ();
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:91: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.secudePSE
            SEQUENCE otherSequence = new SEQUENCE ();
                                         ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:111: cannot find symbol
    symbol  : variable DerCoder
    location: class com.sap.security.api.keystore.secudePSE
            DerCoder.encodeTo (outerSequence, os);
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:171: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.keystore.secudePSE
                    pklist.addCertificate (new X509Certificate (new FileInputStream (args[1])));
                                               ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:198: cannot find symbol
    symbol  : class ObjectID
    location: class com.sap.security.api.keystore.PKListImpl
        private static ObjectID pkloid  = new ObjectID ("1.3.36.2.6.1", "", "");
                                              ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:230: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.PKListImpl
            SEQUENCE s = new SEQUENCE ();
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:230: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.PKListImpl
            SEQUENCE s = new SEQUENCE ();
                             ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:231: cannot find symbol
    symbol  : class PrintableString
    location: class com.sap.security.api.keystore.PKListImpl
            PrintableString str = new PrintableString (name);
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:231: cannot find symbol
    symbol  : class PrintableString
    location: class com.sap.security.api.keystore.PKListImpl
            PrintableString str = new PrintableString (name);
                                      ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:232: cannot find symbol
    symbol  : class SET
    location: class com.sap.security.api.keystore.PKListImpl
            SET     ss = new SET ();
            ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:232: cannot find symbol
    symbol  : class SET
    location: class com.sap.security.api.keystore.PKListImpl
            SET     ss = new SET ();
                             ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:240: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.PKListImpl
                SEQUENCE cert = (SEQUENCE)
                ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:240: cannot find symbol
    symbol  : class SEQUENCE
    location: class com.sap.security.api.keystore.PKListImpl
                SEQUENCE cert = (SEQUENCE)
                                 ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:241: cannot find symbol
    symbol  : class X509Certificate
    location: class com.sap.security.api.keystore.PKListImpl
                                  ((X509Certificate)certs.get (keys.nextElement())).toASN1Object();
                                    ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\keystore\secudePSE.java:258: cannot find symbol
    symbol  : variable DerCoder
    location: class com.sap.security.api.keystore.PKListImpl
            return DerCoder.encode (asn);
                   ^
    C:\Documents and Settings\Narahari_Vedula\.dtc\1\DCs\bp.com\securityAPI\_comp\src\packages\com\sap\security\api\permissions\ValuePermission.java:28: cannot find symbol
    symbol  : variable LoggingHelper
    location: class com.sap.security.api.permissions.ValuePermission
         private static Category cat = Category.getCategory(LoggingHelper.SYS_SECURITY, "Usermanagement");
                                                               ^
    Note: * uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Regards,
    Narahari

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • Specific SC Dependency for using KM API in Web Dynpro DC

    Hi,
    I want to use KM API in my Web Dynpro DC.
    Currently, I have created it as Local DC and I am using External Lib DC to make use of JARs required for KM APIs.
    So my question->
    While doing it in NWDI track, is there any special KM specific SC dependency I should include in my track?
    Or just standard dependecies (SAP-JEE, SAP_BUILDT, SAP_JTECHS) would be sufficient?
    Thanks and regards,
    Amey Mogare

    Hi Amey,
    Since you have created an external library DC for the jars, Just add all this jars to public part and use this public part in the required DC.
    You have to add the following sharing referece to ur project (which is used at runtime).
    Go to webdynpro refernces>sharing references in properties of webdynpro project
    Add   PORTAL:sap.com/com.sap.km.application
    No need to add any SC dependency, the standard dependecies would be sufficient
    For more information pls go through this blog
    /people/rohit.radhakrishnan/blog/2005/05/27/uploading-files-to-km-repository-using-webdynpro-apis
    Hope this helps you..
    Regards,
    Saleem

  • Generating PDF file using FOP API in Web Dynpro

    Hi experts,
    I would like to generate PDF files from a WebDynpro application without using Adobe Interactive forms.
    I think that I can export context data to XML stream and then apply XSLT transformation to produce XSLFO format and then pass it to xlfo processor i.e FOP to generate the PDF file.
    Has someone already try this way of generating PDF files?
    Is it a good way of processing ?
    Thanks in advance.
    Thomas.

    hi Thomas,
    You can make use of the iText API to create pdf documents through webdynpro.
    For this you'll have to download  the Itext api jar file.
    Right click your webdynpro project include this jar file using the 'add external jar files'.Now you'll be able to make use of this api in your webdynpro project.
    http://javaboutique.internet.com/tutorials/iText/ .
    The above link will help you in using iText API.
    hope this one helps you.
    Regards,
    Rahul.

  • Using External java within web dynpro DC

    Hi
    I'm new in web dynpro and I'm facing a problem.
    I'm doing a web dynpro DC application and I want to use some external java classes I have created into my DC. But I don't really know how to do it, I tried EJB but I don't exactly how it works.
    by the way, I was using a stand along web dynpro before and this worked fine, I just needed to create a package within my web dynpro project with all my class architecture to have them directly. but now with the DC stuff, it's not the same at all. so please help
    thanks

    Hi
    Better you create a Java Development component and add all your java classes to that DC and build it.
    Create a webdynpro DC to develop front end and add the java DC in used DC's of your Webdynpro DC.
    This is the way you can use the java classes effectively with out redundancy.
    If you create a package inside a normal webdynpro project, then you can not reuse them later in other webdynpro proj
    Go with SAP component model by creating 2 development components one for java and other for webdynpro and define the reusability (Used DC's) in DC Metadata.
    Regards
    Kalyan

  • How to use a CAS in web dynpro with NWDS 7.0

    Hi, all.
            I implemented a cas project (some entity services and application services). Now I want to use it in a web dynpro project.
    I know how to do that with NWDS 7.1, but it seems  something differernt with NWDS 7.0.
    Can  anyone give me a hand?  Thanks.

    hi
    CAF Core project comes with a sub-project WebDynpro.
    You can implement business logic using CAF Core Service ,integrate it in WebDynpro UI.
    1)Select your CAF project root , right click on it and select u201CCreate Web Dynpro Modelu201D from the context menu.
    2) Switch to the Web Dynpro Perspective
    3)You can find  the CAF Core services have been generated and are available to the WebDynpro component.
        you can find caf services under modelclasses of webdypro project .
    4)Then you proceed with creating component etc..
    Regards
    sowmya.

  • Using .properties file in web dynpro

    Hi,
    I am having a requirement. I have to create a .properties file and I have to use it in my web dynpro application. How can I do that? Any help...
    Thanks & Regards,
    Raj

    Hi,
    Go to the navigator view...select src\Components\<ComponentName> and create create a .properties file.
    You can read the  configuration file in your webdynpro app as follows
    IWDConfiguration configuration =
          WDConfiguration.getConfigurationByName(
            wdComponentAPI.getDeployableObjectPart(),
            "<<>>");
    http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • Using FREE-SELECTIONS_DIALOG in Web Dynpro

    Hi Experts,
    I want to transfer a report whicht uses the FREE_SELECTION_DIALOG Function into Web Dynpro.
    Is it possible to use this function with Web Dynpro?
    The aim is to generate a list on the left side of the screen with different attributes from a dictionary table.
    By clicking on an attribute it should open the select-options for this field. The inputs should be saved.
    In the End I want to select data from a list that fit to all of the inputs.
    Thanks for any ideas!
    Martin

    any help..

  • Using macromedia flex in web dynpro

    how can i use flash object in web dynpro for displaying charts instead of using the webdynpro default charts .
    i want to use from NWSD not through the portal ..

    Hi Valery,
    I didn't say that it is the only solution. But this could be one of the solutions. Now, it depends on the requirement whether need to use it or not.
    Hi Yashpal,
    No need to use WDURLGenerator service. You can directly give flash object name which you have imported in mimes->components-><package>.
    Regards,
    Bhavik

  • Room creation error using Room API

    Hi Experts.
    We're triying to create a collaboration room through Room API
    As a previous step a standard template copy was created (SAP_Information_Site_2)  to be used in the room creation through API.
    In this template we defined one parameter (FolderPath) which sets the KM navigation path  of a specific folder and then we made the mappings of this parameter into the views used by template to show documents.
    When Room is created using "Room creation wizard" we set name, description, category, template (SAP_Information_Site_2), FolderPath, etc. this way everything is OK.
    The problem is triying to create it when generating the room througn a Webdynpro using Room API, afeter we set all same parameters the room is created with no errors. but despite having put all the parameters like those we place using creation wizard the Room API created Room shows the default folderpath and not we have set through API.
    We are able to compare both rooms and they shows same properties except the folderpath.
    Here the used code:
          private  void createRoom(){
                String strTemplateName = "Techint_Template";
                String strRoleName = "Admin";
                String strCategory = "Default_Category";
                //Get the Rooms 6.0 API Portal Service
                IRooms roomsAPI = (IRooms)PortalRuntime.getRuntimeResources().
                                              getService(IRooms.PORTAL_SERVICE_ID);
                //Get Template Related Infos
                ITemplate template = null;
                IRoomRole role1 = null;
                IRoomCategoryFactory cf = roomsAPI.getRoomCategoryFactory();
                try {
                      template = roomsAPI.getRoomTemplate(strTemplateName);
                      role1 = template.getRoomRole(strRoleName);
                      //Get an empty RoomInfo object
                      IRoomInfo roomInfo = roomsAPI.getRoomCreationInfo();
                      //Fill RoomInfo object with values
                      roomInfo.setName(wdContext.currentFormDataElement().getProjectCode().trim()+" - "
                                  +wdContext.currentFormDataElement().getRevisionNumber());
                      String strDescription = wdContext.currentFormDataElement().getTechintDocument();
                      if (strDescription!=null && strDescription.length()>0)
                            roomInfo.setDescription(wdContext.currentFormDataElement().getTechintDocument());
                      else
                            roomInfo.setDescription(wdContext.currentFormDataElement().getProjectCode().trim()+" - "
                                  +wdContext.currentFormDataElement().getRevisionNumber());
                      roomInfo.setTemplateName(strTemplateName);
                      roomInfo.addRoomParameter("FolderPath", "FolderPath",strRevisionFoldePath, false);
                      //asign the room category
                      IRoomCategory objRoomCategory = cf.getDefaultRoomCategory();
                      IRoomCategory objRCA[] = {objRoomCategory};
                      roomInfo.setCategories(objRCA);
                      //Set User Role Assignments
                      com.sap.security.api.IUser owner = UMFactory.getUserFactory().getUserByLogonID("km_user");
                      roomInfo.setOwnerId(owner.getUniqueID());
                      roomInfo.addUserToRole(owner.getUniqueID(), role1);
                      //Finally Create the Room
                      IRoomDataElement objRoomDE =  wdContext.createRoomDataElement();
                      if(roomInfo.validate()){
                            IRoom newRoom = roomsAPI.createRoom(roomInfo, true);
                            objRoomDE.setRoomLink(newRoom.getRoomAccessURLExternal());
                      }else{
                            RoomCreationValidationErrors[] errors = roomInfo.getValidationErrors();
                            for (int i=0; errors.length>i;i++){
                                  logWebDynproMessages(IS_LOG_ENABLED,
                                        //ILoggingConstants.INFO,
                                        4,wdComponentAPI.getMessageManager(),
                                        "ErrorRoom: "+errors<i>.getShortText(), false);
                            objRoomDE.setRoomLink("ERROR");
                      wdContext.nodeRoomData().addElement(objRoomDE);
                      logWebDynproMessages(IS_LOG_ENABLED,
                            //ILoggingConstants.INFO,
                            1,wdComponentAPI.getMessageManager(),
                            "Se creo el room asociado al proceso/revision:"+strRevisionFoldePath, false);
                } catch (TemplateInstantiationException e) {
                      printException(wdComponentAPI.getMessageManager(), e);
                      e.printStackTrace();
                } catch (NoSuchRoleException e1) {
                      printException(wdComponentAPI.getMessageManager(), e1);
                      e1.printStackTrace();
                } catch (UMException ex){
                      printException(wdComponentAPI.getMessageManager(), ex);
                      ex.printStackTrace();
                } catch (RoomCreationException ex){
                      printException(wdComponentAPI.getMessageManager(), ex);
                      ex.printStackTrace();
                } catch (NoSuchRoomCategoryException ex){
                      printException(wdComponentAPI.getMessageManager(), ex);
                      ex.printStackTrace();
                } catch (Exception ex){
                      printException(wdComponentAPI.getMessageManager(), ex);
                      ex.printStackTrace();
    This code was created using the following directions
    http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.
    Any help will be really appreciated and accordingly rewarded
    Thaks in advance,
    Ramien.-

    Hi Venkat,
    did you check the Initial Configuration Tasks ? especially the portal permisions...
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604f005fd11d7b84200047582c9f7/content.htm
    and there is a SAP Note which references a How To Guide for configuring permissions. The Note number is 766765 and the document it references is "How To... Configure Permissions for Initial Content in SAP Enterprise Portal 6.0 SP9 & Higher."
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Creating Room Instance from Web Dynpro Development Component

    Hi Experts,
    I would like to instantiate a Room Instance based on a pre-created Room Template from within a Web Dynpro Development Component. I had a look at the <i>Collaboration Rooms API Cookbook</i>, which provides all the code examples I need, but which asks that I import the following classes:
    import com.sap.ip.collaboration.room.api.IRooms;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    Problem is I don't have and can't find those libraries. I am developing in a track on the DTR and all solutions that I have found to the problems thus far require me to import a local jar file. Surely I should rather import a Software Component with the required library into my project? Does anyone know what the name of this Software Component is or what the correct way is to do this?
    Also, a somewhat related problem. If I want to create a Room Instance from an Application Service, how would I go about doing this. Unlike with a Web Dynpro project, I can't setup the build path or Used DCs, so how will I gain access to that library?
    Thank you,
    JP

    Beevin, thanks for the reply.
    I am aware that adding the jars manually to the build path is a possibility, but isn't this a local only solution? What I mean is, lets say I do this and check the code into the DTR - surely the code won't compile on my co-workers' machines as the paths to the jar files are different for them? Unless you mean to somehow add the jar file from the server, in which case could you please elaborate on how to do this?
    This still doesn't solve the application service problem, does it? How can I access those library from the CAF DC?
    Thanks

  • Attach to Mail using FileUpload UI in Web dynpro Java

    Hi,
    I need to send a file from my system as attachment with a mail in a web dynpro java application.
    I am trying to implement it by uploading the file to server using FileUpload UI and then sending the file as attachment
    using java mail api which is not working at the moment.
    Can anyone please suggest possible solution for this. Is there anyother approach to implement this?
    -- Arnab

    I am using the following code to upload the file. Its not showing any error only the mail is sent without the attachment.
        IPrivateFormView.IFileUploadElement element = wdContext.currentFileUploadElement();
        InputStream text = null;
        int temp=0;
        try{
             File file = new File(element.getFilename().getResourceName());
             FileOutputStream out = new FileOutputStream(file);
             if(element.getFilename()!= null){
                  text = element.getFilename().read(false);
                  while((temp = text.read()) != -1){
                       out.write(temp);
             out.flush();
             out.close();
             String filePath = file.getAbsolutePath();
             wdContext.currentContextElement().setAttachFileExtension(filePath);
              msg.reportSuccess("File:" + filePath);
        }catch(Exception e){
    And the following code to attach the file to mail
              MimeBodyPart bodyPart = null;
              Multipart mp =  new MimeMultipart();
              try {
                   bodyPart = new MimeBodyPart();
                   bodyPart.setContent("Attached Mail","text/plain");
                   mp.addBodyPart(bodyPart);
                   //FileDataSource fds = new FileDataSource("http://dcwwdvsaprt02:50000/irj/go/km/docs");
                   MimeBodyPart attachmentBodyPart = new MimeBodyPart();
                   //attachmentBodyPart.setDataHandler(new DataHandler(fds));
                   URL URLattachedFileName = new URL(wdContext.currentContextElement().getAttachFileExtension());
                   attachmentBodyPart.setDataHandler(new DataHandler(URLattachedFileName));
                   attachmentBodyPart.setFileName("Attachment");
                   mp.addBodyPart(attachmentBodyPart);
              } catch (Exception e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

  • Use KM-Content for Web Dynpro

    Hi,
    is there a way to access KM-Content data from Web Dynpro Applications?
    Thanks in advance
    Karsten

    Hi Karsten
    There are km apis for this.Using this you can access the contents of the KM folders. This following link is very helpful.
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Select project no 26 (Using Knowledge Management API) from the above link.
    Regards
    Geogi

  • Can we use MDM 7.1 Web Dynpro UI with MDM 5.5 ?

    Dear Experts,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    Any thoughts on this?
    Regards,
    Shailesh.

    Hi Shailesh,
    Is there any possibility to use new MDM Web Dynpro UI (which has got released with MDM 7.1 SP04).
    with MDM 5.5 SP6 as a backend.
    As per my knowledge is concern for MDM7.1 will support .NET API,ABAP API.......
    I wonder, if we deploy MDM 5.5 Java API with MDM 7.1 Web Dynpro components,
    then it should work with MDM 5.5 setup also!
    I dont think so....
    Thanks
    Yugandhar

Maybe you are looking for

  • Web Analysis Spreadsheet object problem

    Hi All, I am facing an issue in WA where a report connected to an Essbase cube, has 2 spread sheet objects in it. Each spread sheet object uses 4 dimensions in them of which 3 dimensions are used as columns for both spread sheets sheets and the row d

  • Creating ear file from ADF project

    Hi All, I have an ADF project which can be built and deployed using jdeveloper. And I have few ant tasks which I can use to deploy not create. Now I want to create an ear file for this project , are there any ant tasks available, if not , what should

  • How to enter an iTunes gift car

    How do you enter an iTunes gift card when it says error.It told me to come to this website ?

  • Does FCP 4.5 have audio channel bug, and can only do 2 audio channels?

    I transferred my digibeta project with 4 audio channels (2 are Music & Effects) to an uncompressed QT at a dubbing facility. I can play the QT with all 4 channels heard on my G-5 Powermac, but when I import the QT file into FCP 4.5 (to do some re-cut

  • Using Airport Extreme 802.11n to update automatic IP for Dynamic DNS ???

    Hello, does anybody now if it is possible to use Airport to forward the recent IP address to DynDNS.com ? As most routers are able to forward the IP to a provider like DynDns eachtime when IP address is renewed . I have found at the Airport Configrua