Com.sapportals.pct import issue

hi,
One of my programs uses the flollowing libraries.
import com.sapportals.pct.util.pdv.IDataViewer;
import com.sapportals.pct.util.pdv.PDVDynPage;
import com.sapportals.pct.util.pdv.source.ISource;
but it complaints that it cannot find com.sapportals.pct
can anybody direct me where I can import this from.
thanks a lot.

Hi,
For future reference use this very helpful tool called class locator.
Once configured, it will automatically locate the jar you need for you.
You can download it from <a href="http://sourceforge.net/project/showfiles.php?group_id=69863">here</a>
Hope it helps,
Roy

Similar Messages

  • Com.sapportals.pct

    hi,
    one of my programs is comlaining that it cannot find the above mentioned library.
    import com.sapportals.pct.util.pdv.IDataViewer;
    import com.sapportals.pct.util.pdv.PDVDynPage;
    import com.sapportals.pct.util.pdv.source.ISource;
    can you please let me know where I can download it from. 
    thanks

    Hi,
    For future reference use this very helpful tool called class locator.
    Once configured, it will automatically locate the jar you need for you.
    You can download it from <a href="http://sourceforge.net/project/showfiles.php?group_id=69863">here</a>
    Hope it helps,
    Roy

  • I cant import com.sapportals.htmlb.*

    Hi!
    I just installed netweaver and started out by making a new portal application project. After that I made a new portal application object but when I compile my java-file I get errors regarding the following imports.
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    Error: The import com.sapportals.htmlb cannot be resolved.
    I know that the error might be about me missing af reference to some jar-file which contains the packages. Am I wrong?
    Regards Anders

    Hi Anders,
    Have you downloaded the PDK plugin for EP6?  If so, assign yourself the Java Developer role, and download the required jar files.  Login to the portal Java Development>Development>Downloads.  Download and unpack the Portal Archive Wizards into your eclipse\plugins directory.  Then create classpath references to the required jar files in your par file .classpath file.  For example, htmlb.jar
    <classpathentry kind="lib" path="C:/portal/eclipse/plugins/com.sap.developmentTools.libs_1.2.0/htmlb.jar"/>
    Hope this helps,
    Marty
    PS.
    If you dont have the pdk plugin, here is a workaround (assuming you have a portal installed). You can copy the jar files to your local directory in order to successfully compile a par project.  For example the following three jar files to your eclipse\plugins directory on your local machine.  Then in your classpath, create entries for the ones you require (in your case, htmlb.jar). So something like:
    <classpathentry kind="lib" path="C:/portal/eclipse/plugins/com.sap.developmentTools.libs_1.2.0/htmlb.jar"/>
    Under your portal, C:\usr\sap\<instance>\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.htmlb\lib contains an htmlb.jar and an htmlbbridge.jar
    C:\usr\sap\<instance>\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\system\lib contains a prtcore.jar file

  • The import com.sapportals.htmlb cannot be resolved

    Hi,
    I am working on EP7 and trying to create a sample application for DynPage Portal Component.
    After I create a new DynPage in NWDS, i get the following error:
    The import com.sapportals.htmlb cannot be resolved
    I found a link similar to this problem but not clear abt how to solve it:
    Re: I cant import com.sapportals.htmlb.*
    How do I resolve this error? Are there some set of files that need to be import before I can develop this application.
    Thanks in advance,
    CD

    Hi CD,
    1. Regarding the availability of the KIT, checkout the link:
    Link: [Role for a Java developer;
    2. Regarding the Path for the mentioned libraries:
            **Program FilesSAPJDTeclipseplugins
    **must be in your C:
    If you do not find the specified jar file there, you can use the JAR File Locator. Checkout the link:
    Link: [Re: EP7 PDK;
    Regards,
    Chander Kararia
    #If problem solved, close the thread after rewarding points.

  • Import com.sapportals.portal.security.usermanagement.IUser;  is deprecated

    import com.sapportals.portal.security.usermanagement.IUser;  is deprecated
    Is there any alternative???

    Hi,
    could please tell me, what kind of jar-file I have to add to the project to use
    com.sapportals.portal.security.usermanagement.IUser ?
    Thank you in advance.
    Kind regards, Patrick.

  • PDK 6.0 SP3 deployment failed on com.sap.pct.pdk.pct.epa

    Hello,
    I am trying to deploy Portal Development Kit 6.0 SP3 on WAS 6.40 (J2EE
    6.30) with EP 6.0 SP3 and it is failing on the last package with the
    error below. It is HP-Unix 11i system and the same PDK file
    (20040506.sca) was used with no issues on Windows based WAS and EP same
    releases.
    Please, advise.
    Vladimir
    04/08/06 17:51:47 - Start updating archive file...
    04/08/06 17:51:47 - Archive file updated successfully for 102ms.
    04/08/06 17:51:47 - Start deploying ...
    04/08/06 17:51:48 - Archive file uploaded to server for 327ms.
    04/08/06 17:52:02 - ERROR: Not deployed. Deploy Service returned
    ERROR:
    java.rmi.RemoteException: Cannot deploy
    application sap.com/com.sap.pct.pdk.pct.epa..
    Reason: <--Localization failed:
    ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle',
    ID='Exception while deploying:
    com.sap.portal.transport.deploy.IncompleteDeploymentException: The
    archive ./temp/deploy/work/deploying/com.sap.pct.pdk.pct.epa.epa could
    not be deployed completely. Import failed for 2 of 13 objects.
    [Unexpected exception during import.
    [com.sapportals.portal.transport.EptFile]<init>:
    transport file not
    found: /usr/sap/HP1/JC00/j2ee/temp/pcd/transport/IMPORT-
    0806_175148_720_97add7f324f87b25/EPT/com.sap.pct.pdk.personalizationexam
    ple.ept, Unexpected exception during import.
    [com.sapportals.portal.transport.EptFile]<init>:
    transport file not
    found: /usr/sap/HP1/JC00/j2ee/temp/pcd/transport/IMPORT-
    0806_175148_720_97add7f324f87b25/EPT/com.sap.pct.pdk.WebDynpro.ept, ]',
    Arguments: []--> : Can't find resource for bundle
    java.util.PropertyResourceBundle, key Exception while deploying:
    com.sap.portal.transport.deploy.IncompleteDeploymentException: The
    archive ./temp/deploy/work/deploying/com.sap.pct.pdk.pct.epa.epa could
    not be deployed completely. Import failed for 2 of 13 objects.
    [Unexpected exception during import.
    [com.sapportals.portal.transport.EptFile]<init>:
    transport file not
    found: /usr/sap/HP1/JC00/j2ee/temp/pcd/transport/IMPORT-
    0806_175148_720_97add7f324f87b25/EPT/com.sap.pct.pdk.personalizationexam
    ple.ept, Unexpected exception during import.
    [com.sapportals.portal.transport.EptFile]<init>:

    Apparently, there is a bug in the .sca file that prevents it from deployment on UNIX servers.
    SAP is working on the patch, but meantime we can use the following workaround:
    unzip the .sca file
    unzip the com.sap.pct.pdk.pct.epa.epa from the .sca
    Copy all .ept files contained into the WebAS folder <(>
    <<)>WASROOT>/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/deployment/pcdcontent
    restart the server.
    Regards,
    Vladimir

  • EP6: com.sap.pct.crm.generics.ValueHelp not found

    Hi at all,
    We are tring to setup crm default scenario in EP6.
    To do this we have imported the relative business package from iviewstudio.com (Business Package for SAP CRM 4.0 50.2)
    The Bsp part of the application seems to work fine but we get an error following the link that should open a pop-up to help the user selecting values
    The error is described here:
    <i>Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: /global/services/service-iviews/local/com.sap.pct.crm.generics.ValueHelp.</i>
    This Iview was imported correctly from the business package (I've checke the import logs).  
    I've looked on the server and I've found the related classes/jar (generics.jar).
    I've looked also log (using the logviewer application) files but there nothing releted to this.
    Does anyone have an idea to solve the problem? or something else to check?
    Thanks in advance,
    Bye
    Fabio

    Hi Giovanni,
    It looks like a permissions issue, you might want to refer to the permissions of
    1. The role that you are creating, see to it that you have everyone group assigned to it and enduser checked.
    2. As you are connecting to CRM system, you might be have created a system using which you are accessing the CRM system, check for the permissions of that as well.
    Hope this helps.
    Cheers,
    Sandeep Tudumu

  • Pcd object "com.sap.pct.crm.core.valuehelp" cannot be accessed

    Hi dear gurus,
    We need your help.
    We are a company working with CRM 5.0 Sp 15 on EP 7.0.
    We have this problem:
    One of the BP's tabs shows the Marketing Attributes in the standard way: first of all you have to decide the attribute set ("Add"), then you have to choose the attribute ("Add" in the attribute section) and at last you can choose the value for the attribute.
    This works well in dev and qas, both through the portal and through the PCUI web pages launched by a link in the sapgui.
    This also works in the production environment, but ONLY if launched through the SAP GUI's web app (without the portal's intervention)
    The problem is that, in the production environment, when we click on the value list of the attribute set IN THE PORTAL, we receive an exception of this kind:
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Access is denied: pcd:portal_content/com.sap.pct/specialist/com.sap.pct.crm/com.sap.pct.crm.roles/com.sap.pct.crm.core.defaultservices/com.sap.pct.crm.core.valuehelp - user: TEAMDEVEL, TEAMDEVEL
    We have re-created the role copying it from the QAS environment, we have linked a new user to it but we still have the problem.
    Is the user lacking a portal authorization in the production system? What would it be? Shouldn't it have been fixed by the recreation of the role and of the user? Any ideas?
    Thank you very much for your precious help...

    Hi Giovanni,
    It looks like a permissions issue, you might want to refer to the permissions of
    1. The role that you are creating, see to it that you have everyone group assigned to it and enduser checked.
    2. As you are connecting to CRM system, you might be have created a system using which you are accessing the CRM system, check for the permissions of that as well.
    Hope this helps.
    Cheers,
    Sandeep Tudumu

  • Strange import issue .. no longer works in 2.6 or Beta 3

    Strange import issue.
    I use LR-2.6 everyday but have only played around with the LR-3 for a limited amount of time so the other day I decided check it out and tried to import a handful of RAW(canon) files on a SDxc-8g card via a USB card reader. I set it up to copy and convert to DNG, apply a few keywords and Metadata but when I tried it acted like it imported the first image and then froze. Card reader lights stopped blinking and just stayed on, program task bar doesn’t show any progress, not even for the first image. I then went to the folder that I was going to have the images copies to and it contained a file of the first image, but there is no indication that LR-3 even created it and it doesn’t show up in the catalog. When I tried to close out LR-3 is popped up the “in the middle of a task warning” so I just closed the program and tried it a couple more times to no avail.
    So I though o well I will just open up LR-2.6 and import them from there, guess what now LR-2.6 does the exact same thing!!
    I thought maybe my card reader was a POS but I was able to drag all the files to a new folder on my desktop and import them from there, nope. Tried rebooting a couple times, even opened a new catalog to test with, in both LR-2.6 and LR-3 and neither will work..
    I am stumped any ideas?

    Thank you for everyone's assistance
    I actually figured out what the problem was, like most issues it comes back to operator error, it seem I had inadvertently chose a "rename file on import" template that I had set up to name the files based on a custom fill-in field in the Meta Data, I normally only used that template when I was exporting images that had been completely edited, so being these images were new imports that field was blank, hence it would import the first image and then do to " don't import subjected duplicates" being checked it would just stop the import process.

  • Com.sapportals.htmlb.FileUpload;

    Hi Experts,
    I am building this file upload utility.
    Following is my code"
    package com.xyz.ws.di;
    import java.io.Serializable;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.rendering.IPageContext;
    import com.sapportals.htmlb.rendering.PageContextFactory;
    import com.sapportals.htmlb.FileUpload;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.wcm.repository.AccessDeniedException;
    import com.sapportals.wcm.repository.Content;
    import com.sapportals.wcm.repository.ICollection;
    import com.sapportals.wcm.repository.IResource;
    import com.sapportals.wcm.repository.NotSupportedException;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceException;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.portal.security.usermanagement.IUser;
    public class FileUpload implements Serializable{
             protected IPortalComponentRequest request;
              protected IPortalComponentResponse response;
              protected IPortalComponentSession session;
              protected IPortalComponentContext context;
              protected IPortalComponentProfile profile;
              protected String userId;
              protected String fileName;
              private DAO DAO = null;
              private final static int INITIAL_STATE = 0;   
              private final static int ERROR_STATE = 1; 
              private int state = INITIAL_STATE;
              public void uploadUtility(IPortalComponentRequest request, IPortalComponentResponse response)
                   String mimetype;
                   String resourceName;
                   String repository;
                   FileInputStream sourceFileInput = null;
                   session = request.getComponentSession();
                   DAO = new DAO();
                   DAO = (DAO)session.getValue("DAO");
                   IUser epUser=DAO.getEpUser();
                   System.err.println("berry + Getting Iuser from inside UploadUtility SAI  " + epUser);
              /*     IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   IUser user = wdUser.wdUser.getSAPUser(); */
              //     IUser epUser=(IUser)request.getUser().getUser();
                   System.err.println("epUser - " + epUser);
                   ResourceContext ctx = new ResourceContext(epUser);
                   repository = "/Folder1/new";
                   RID rid=RID.getRID(repository);
                   System.err.println("getting RID :- " + rid);
                   IPageContext context = PageContextFactory.createPageContext(request,response);
              //     PageContext context = PageContextFactory.createPageContext(request, response);
                   Event event=context.getCurrentEvent();
                   if(null!=event)
                        String event_name=event.getAction();
                        if(null!=event_name && event_name.trim().equalsIgnoreCase("upload_file"))
                              FileUpload fileUpload = (FileUpload)context.getComponentForId("fileupload");
                                  if(null !=fileUpload && null!=fileUpload.getFile())
                                            mimetype = fileUpload.getFile().getContentType();
                                            resourceName = fileUpload.getFile().getFileName();
                                            System.err.println("resourceName inside fileUploadUtility :- " + resourceName);
                                            //sourceFileInput = new FileInputStream(fileUpload.getFile().getFile().getAbsolutePath());
                                            fileName = resourceName;
                                            System.err.println("filename :- " + fileName);
                                            try {
                                                 sourceFileInput = new FileInputStream(fileUpload.getFile().getFile().getAbsolutePath());
                                            } catch (FileNotFoundException fnf) {
                                                 state = ERROR_STATE;
                                                 System.err.print("FileNotFoundException Occured " + fnf.toString());
                                            Content content = new Content(sourceFileInput, mimetype, -1L);
                                            IResource resource = null;
                                            try {
                                                 resource =(IResource) (ResourceFactory.getInstance().getResource(rid, ctx));
                                            } catch (ResourceException resexp) {
                                                 state = ERROR_STATE;
                                                 System.err.print("Resource Exception Occured for IResource" + resexp.toString());      
                                            ICollection aCollection=(ICollection)resource;
                                            //IResource newResource = aCollection.createResource(resourceName, null, content);
                                            try {
                                                 IResource newResource = (IResource) aCollection.createResource(resourceName, null, content);
                                            } catch (NotSupportedException e2) {
                                                 state = ERROR_STATE;
                                                 System.err.print("Not Supported Exception Occured" + e2.toString());
                                            } catch (AccessDeniedException e2) {
                                                 state = ERROR_STATE;
                                                 System.err.print("Access Denied Exception Occured" + e2.toString());
                                            } catch (ResourceException e2) {
                                                 state = ERROR_STATE;
                                                 System.err.print("Resource Exception Occured for ICollection" + e2.toString());      
                                            }//end of catch
                             }//end of innermost if
                   }//end of 2nd if
              }//end of 1st If
              DAO.setFileName(fileName);
              DAO.setState(state);
              session.putValue("DAO", DAO);
           }// end of uploadUtil
    I am getting a complie error in my NWDS at the following line:
    FileUpload fileUpload = (FileUpload)context.getComponentForId("fileupload");
    The error is : Cannot cast from component to FileUpload.
    Also, I am getting an error on the following Import statement:
    import com.sapportals.htmlb.FileUpload;
    The error is : The import import com.sapportals.htmlb.FileUpload conflicts with a type defined in the same file.
    Any Idea why this would be happening?
    Thanks
    S.B

    import com.sapportals.htmlb.FileUpload;
    is conflicting with the class name. Both are same.
    Change the class name.
    Thread closed.

  • Error with pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/

    Hi!
    I am facing with either authorization or some other problem within interaction between BEx Analyzer and Portal.
    When try to check the functionality of the object
    pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bexanalyzer
    via "Preview"
    I get the following error:
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template
    Can some one help me to solve my problem?
    What are the steps to integrate BEX Integration into SAP EP?
    I am on SAP EP 7.0 SPS 17.
    Thank you very much!
    regards

    Hi Holger,
    As you aptly said its the authorization problem. The role which we are assigning to the user must have permissions set. Please make 'Everyone' user with end user permissions and for the everyone group also. After this restart your server. Also pls chk for the full Domain name URL thru which we are accessiong portal
    Please check SAP Note 890314 .
    This will surely help you.
    hope this was useful.
    Regards
    Shaila

  • Jar File for com.sapportals.connector

    Can some one please tell which jar file I have to add to my project to be able import, I have tried all Jar Files possible still not able to find the right any help would really be great:
    import com.sapportals.connector.ConnectorException;
    Best Wishes,
    John Bray.
    Message was edited by: John Bray

    Hello Patrick,
    Thanks a lot, got the required class files.
    Best Wishes,
    John.
    PS: I have rewarded the points.

  • How to make use of package "com.sapportals.wcm.repository"

    Dear all,
    I am trying to make use the package "com.sapportals.wcm.repository" in my SDK development. But when I entered "import com.sapportals.wcm.repository.*;" in my class, a error given out "The import com.sapportals.wcm cannot be resolved.". What should I do?
    Thanks
    Sam

    Hi Armin,
    Sorry that I still got problem on importing and make use of the class for knowledgemanagement. I can found the cooresponding .jar file in folder "jakarta-tomcat-3.3.2\webapps\irj\WEB-INF\plugins\portal\services\knowledgemanagement\lib". And added the services reference as "ServicesReference=htmlb, knowledgemanagement". However, I still can't use the class for KM.
    I have read those code sample from KM in SDN, but they are mentioning the programming part and not the setting. Can you suggest the detail steps and code on adding the KM class into my customize class?
    I am using Eclipse as my development tools.
    Thanks & Regards
    Sam
    Message was edited by: Sam Choy

  • Com.sapportals.wcm.repository.service.statemanagement.IResourceTransition

    Hi all,
    I am trying to import com.sapportals.wcm.repository.service.statemanagement.IResourceTransition;
    But i am getting class cannot be resolved error.....can anybody tell me where can i find the missing plugin for the above class.??...
    i used class finder to search in my existing plugins folder but it didnt find .....
    any help would be greatly appreciated....
    thanks in advance..!!
    Sandesh

    Hi,
    I have found it on my portal filesystem here:
    \usr\sap\XXX\JXXX\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.km.cm.repository.service.base\lib\km.shared.repository.service.statemanagement_api.jar
    Romano

  • Com.sapportals.portal.htmlb.page.PageProcessorComponent is not allowing

    Hi all
    when i import the following one in the portal component then it is not allowing to me giving error seems in red color.but i added all jar files to the java build path.
    <b>import com.sapportals.portal.htmlb.page.PageProcessorComponent</b> (error)
    <b>public class testapp extends PageProcessorComponent</b>
    can u tell me what r the things required to add to allow the above 2 lines.
    Regards
    Sunil

    Hi,
    Just use the Class Locator.
    Checkout this blog:
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051">https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051</a>
    or download from here: http://classlocator.sourceforge.net/
    Best Regards,
    Avishai Zamir

Maybe you are looking for

  • VGA Adapter not working with a projector at work

    Hello, I've been preparing some presentations (the first one in less than 2 hours!!!) using my Mackbookpro, then transfer them onto my ipad, where I retouched them so they would look better. I tested the VGA adaptor at work with my LCD TV.. it worked

  • Load balancing and bean-to-bean method calls

    Hello!           Let's assume the following scenario: a clustered environment, and a           stateless session bean A accessible by clients. The session bean A then           makes further calls to other session/entity bean B. Does WebLogic 5.10 do

  • Disabling Sandbox

    Hi i am doing a project for my univ. i am writing an applet that reads info from a database and change the names in checkboxes. there isnt much security threat since only 2 of the computers are going to use this program. School doesnt want the applet

  • Tnslsnr binary in CRS_HOME and ORACLE_HOME

    DB version:11.2.0.2 (2 node RAC) I can see that listener binary tnslsnr is present in GRID_HOME and ORACLE_HOME. Which one should I be using?

  • Customer replication from CRM to R/3

    Hi Experts, we are using CRM 4.0 and we would like to replicate Business Partners from CRM to R/3. On CRM side we have created some new fields with EEWB. I already know that in this case I have to write an FM in CRM and set in CRMC_BUT_CALL_FU as CRM