Always getting 'import cannot be resolved' for IPrivate* imports

Hi,
Everytime I import a Web Dynpro DC from our NWDI I see 'import cannot be resolved' errors when I open for example the Component Controller implementation. An Organize Imports does not fix this. If I rightclick inside the code and select 'Show in Package Explorer' it jumps to the .java file for the implementation (within the gen_wdp folder). In that same tree I can see the IPrivate*.java files as well.
I also tried Repairing and Rebuilding the project. All to no avail...
Why is this happening and how can I resolve it?
Kind regards,
Pascal Willemsen

If I open the generated Java files in gen_wdp I see loads of errors (all '...cannot be resolved...'), but the Tasks view contains no errors at all (answer to Armin).
A development component build runs and seems to succeed without problems.
It seems that the Web Dynpro's contain a circular dependency, which I think is the cause of the problem:
1. wdThis in the Component Controller is an IPrivateComponent instance.
2. IPrivateComponent extends IPublicComponent.
3. IPublicComponent has a gen_delegate member which is an InternalComponent instance.
4. InternalComponent implements IPrivateComponent.
I guess NWDS doesn't know where to start...?

Similar Messages

  • Import cannot be resolved for IPrivate* imports

    Hi All,
    I got the error "import cannot be resolved for IPrivate* imports'" when I import existing project. And then I close the project, copy files to gen_wdp folder again and open project according to the method in Thread
    Always getting 'import cannot be resolved' for IPrivate* imports.
    Then the problem resolved.
    After that I have done some modifications and rebuild it. However the same problem occurs again. I repeat close/open project again but it doesn't help. That's to say I cannot make any modifications to the project and build out any new EAR files.
    If anyone can help, I will appreciate it a lot.
    Xiao

    Hi Xiao,
    Is <b>ShineWay_ReClaimsView</b> a view in your component in this project ?
    If yes ensure that it doesn't have any errors. Then rebuild your project.
    If you in dc environment and this view is from other project (dc). Then ensure that the dc having this view is build (dc build) correctly.
    As abhilash said the gen_wdp files are generated and you shouldn't touch them. You will get more problems than solutions.
    Best Regards,
    <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/ashwaniKrSharma&">Ashwani Kr Sharma</a>

  • I'm trying to timestamp (RFC 3161) a pdf using my own timestamp server hardware but always get an error: "Certificate invalid for use" ...

    I'm trying to timestamp (RFC 3161) a pdf using my own timestamp server hardware but always get an error: "Certificate invalid for use" (Original text - pt_BR:O certificado não é válido para uso). How can I get more info on what I'm missing or whats wrong with the certificate?

    Which Acrobat version are you using? Do you use "Document Timestamp" command? If so, do you get this error during the signing process and the signature is not created or signature is created and you get this error when it is validated? If the latter you can open signature properties, click on the "Advanced Properties" and in the next dialog on timestamp's "Show Certificate". If you get this error during the signing process do you get an alert that shows some cryptic info with a number? If you do provide the content of this alert.
    Also which Acrobat version (including minor) are you using?

  • Import cannot be resolved

    Hi All,
        Our NWDS always shows that certain import which generated by meta data cannot be found or resolved.
    For instance "import com.xx.sc_os_sale.dc_ws_styleinfo.comp.wdp.IPrivateStyleInfoComp;"
    I can find the code file in my local path
    "D:\Documents\01 WORK\03 Programming\cobest\dtc\0\DCs\xx.com\DC_WS_StyleInfo\_comp\gen_wdp\packages\com\xx\sc_os_sale\dc_ws_styleinfo\comp\wdp"
    And the "D:\Documents\01 WORK\03 Programming\xx\dtc\0\DCs\xx.com\DC_WS_StyleInfo\_comp\gen_wdp\packages\" has been add to the project as the Java Build Path automatically when the project was created,
    But the error is still there.
    If I build the project, no error would show in task and err log page. Also the CBS can build this project successfully. I'm totally mazed about it.
    Anyone can help me?
    Thanks,
    YiNing
    Edited by: YiNing Mao on Mar 11, 2008 11:55 AM

    Thanks, all. After close and reopen my project, the "cannot be resolved" problem is gone, but there's a new one.
    One of my web dynpro component has been expose as public of its DC, and another component from an other DC uses it as a used component, I keep being infomed of following error:
    1. The project was not built since its classpath is incomplete. Cannot find the class file for com.xx.sc_os_sale.dc_wsv_customer.model.Response_SC_OS_SALE_CustomerInfoViDocument_getCustomerList. Fix the classpath then try rebuilding this project.
    2. This compilation unit indirectly references the missing type com.xx.sc_os_sale.dc_wsv_customer.model.Response_SC_OS_SALE_CustomerInfoViDocument_getCustomerList (typically some required class file is referencing a type outside the classpath)
    I've tried to delete local project and reimport from DTR, but it doesn't help at all.
    Hope you can help me.
    YiNing
    Edited by: YiNing Mao on Mar 11, 2008 7:25 PM

  • BO XI 3.1 SDK and Eclipse: import cannot be resolved

    I am preparing my Eclipse 3.4.1 installation to develop using the BO XI 3.1 SDK; I got some samples from the SAP Developer network, however, Eclipse always shows import errors like "The import com.crystaldecisions cannot be resolved"
    I added the paths "C:\Program Files\Business Objects\common\4.0\java\lib" and "C:\Program Files\Business Objects\common\4.0\java\lib\external" to my project (rigt click -> Properties -> Java Build Path -> Libraries -> "Add external class folder" button) but I am still getting these errors.
    I also tried Netbeans 6.5 but it shows similar errors: "package com.crystaldecisions.sdk does not exist".
    It's a BO XI 3.1 server installation.
    What am I doing wrong?
    Thanks!

    Hi Stefan,
    Instead of adding the "Add external class folder" try out to add to your Java Build Libraries "Add External JARs"
    When you click on this button you can select the path of all the jar files from your Business Objects installation directory.
    E.g. C:\Program Files\Business Objects\common\4.0\java\lib"
    and "C:\Program Files\Business Objects\common\4.0\java\lib\external"
    Regards,
    Anu

  • Import Manager Usage : Approaches for developing Import file structure and text validations

    Hi Experts,
    We are having 50+ import maps. We have provided option to users to drop the files for data import. Currently Import Manager(7.1 Sp08) does not have capability of pre-import validation of file data such as
    a. file structure - number of columns specific to import map
    b. file text validations - special characters, empty lines, empty cells
    c. Uniqueness of the records in the file
    For this, we are planning to build temporary folder(port specific) in which user drops in the file. We use the custom development to do above mentioned validations and then move the files to actual import ports.
    Please let us know if you have worked on similar requirements and how you have fulfilled such requirements.
    Regards,
    Ganga

    Hi Ganga,
    Assuming you have a well defined xsd and are getting valid xmls from source in the Inbound Port of MDM. Also,you have a Primary key in form of External ID (say).
    So just by making and defining a XSD you get most of what you want in your questions a and b.
    Now if you wish to use PI to drop files in the inbound port then you can build all the validations in PI itself and you would not need Staging table.
    Otherwise,you can have another table (preferably Main table) in the same repository or other dummy repository where records are created on import based on External ID.
    Here you can launch an MDM workflow on import of these records and run assignments to replace unwanted characters and Validations to give error for rejecting some records based on the data quality level desired.Once unwanted characters are removed and data is validated it can be syndicated using a syndication step in the Workflow.So records which fail are not sent and which pass are sent to a outbound port.
    From the outbound port PI or some other job can pick the file from this outbound folder and drop to Inbound folder of the same repository which imports to the required Primary Main table.Here again you have the option to leverage validations in PI and further check if data is fine.
    Once this activity is done you can delete the records from the staging table.
    Thanks,
    Ravi

  • Can't edit imported files; iPhoto asks for file import upon each launch

    Hi,
    My hard drive recently went bad and I lost all photos (didn't back up...I've learned my lesson). An authorized repair shop replaced the drive and installed 10.5.2.
    I just tried to import 150 new photos from my camera. After importing from the camera, iPhoto said all files were imported successfully. I was trying to create room on my memory card, so when asked if I wanted to delete the originals, I said yes. (I was planning on backing up the photos just as soon as I got them onto my drive).
    I see them as thumbnails, etc., but I get the grey/black exclamation graphic if I try to edit. Fullscreen gets me a black screen, that's it. Each time I launch iPhoto, it says that it detects 150 pictures not imported. Would I like to import? I choose yes, but the same problem persists.
    When I view each thumbnail, the reported sizes average about 2 mb, so it seems that the real photos are somewhere. I just don't know where. As a last resort, I guess I could try to do screen captures of the thumbnails, but that'll take forever, and I really want these originals back.
    Any ideas? Thanks in advance.

    ObamaFanRC
    Are you running a Managed Library or a Referenced Library?
    If you're running a Managed library, then it's the default setting, and iPhoto copies files into the iPhoto Library when Importing
    If you're running a Referenced Library, then you made a change at iPhoto -> Preferences -> Advanced and iPhoto is NOT copying the files into the iPhoto Library when importing.
    If you're running a managed library is sounds very like a damaged database file to me.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums back.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • 'Data for last import/Statistics' tab missing for Distributed imports in EMIGALL

    Hi experts,
    For some reason when I initiate Distributed loads using 'Distributed imports' in EMIGALL, I do not get the third and fourth tabs viz. 'Data for last import' and 'Statistics for import runs' after the loads are triggered. Is there a specific Note that needs to be applied. I checked Notes like 1179843, 780996 however they were relevant for previous releases and I am currently on release 605. Any insights to this problem?
    Thanks,
    Caroline.

    SharedObjects does the trick nicely!

  • Import cannot be resolved issue

    Hi
        I had installed a project package in my package manager. It has src.bnd bundle file which includes all my java classes. Eventhough i build the bundle (bundle is active in console also); the package in the bundle is not resolved. When i checked the referenced libraries in the project explorer; the bundle was not installed there automatically.
    Can any one say what is the issue ? How can i resolve it. Because each time i cannot manually add the JAR to the referenced libraries
    Thanks
    Veena

    Hi Veena,
    When any bundle deploys in felix console it resolves all its package import via taking reference of api shared through other bundles using export-package property set in bundle. Where as when you work on same bundle using any editor (for example CRXDE ) you will not get those export api support here and you have to manually add/configure to your application as we normally do for other java application (and if you are using any build tool like Maven then API dependencies should be resolved through adding those dependencies in pom.xml)
    I hope it clarifies your doubt. Let me know for more information.
    Thanks,
    Pawan

  • MSS - Import cannot be resolved

    Hello
    I am new to the NWDS in regards to the MSS package.
    I have loaded MSS in NWDI and I have created a project in NWDS for mss/cat/approval[sap.com]
    I am able to see the entire project structure. When I go into FcCatapprove component I get errors.
    I guess I need to add some jar files or a library but I have not been able to figure out which ones.
    These Imports it cannot find
    import com.sap.xss.hr.cat.approve.blc.wdp.IPrivateFcCatApprove;
    import com.sap.xss.hr.cat.approve.model.approval.CatsApproval;
    import com.sap.xss.hr.cat.approve.model.approval.Hrmss_Cat_Appr_Scenario;
    import com.sap.xss.hr.cat.approve.model.approval.Hrmss_Cat_Wd_Approval_Input;
    import com.sap.xss.hr.cat.approve.model.approval.Hrmss_Cat_Wd_Approval_Output;
    import com.sap.xss.hr.cat.approve.model.approval.Hrxss_Cat_Rfc_Cell_Value;
    I am using
    NWDS 7.0
    Portal NW 7.0 sp15
    java 1.4.2_19
    MSS 600
    Any Help in this area would be appreciated.
    Thank you,
    Sarah

    Hi,
    May be you forgot import the dependencies of the track.
    List of Dependencies:
    sap.com_SAP_JTECHS
    sap.com_SAP_BUILDT
    sap.com_SAP-JEE
    sap.com_SAPPCUI_GP
    Business packeage:
    sap.com_SAP_ESS
    sap.com_SAP_MSS
    you need to have all this packages in your track
    May be helpful for you.
    Cheers,
    Appu

  • Why do i keep getting a cannot find message when I import photos/videos from phone?

    It seems like iphoto won't copy pics/vids from my phone. Do i have to save them in a folder for it to save????

    Before anyone can help, they need information to work with. Basic stuff: What version of iPhoto. What version of the Operating System. Details. What were you doing when the problem arose? Did it ever work properly? Step-by-step descriptions of how you got to this issue. If something doesn't work, are there error messages? What are the error message? What happens when you try to do this thing? And what steps have you tried already to solve the issue. With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that a helper is simply guessing. With information, s/he may be able to get your issue resolved sooner.

  • Import of Private View cannot be resolved

    I have a web dynpro component I wrote a while ago.  I just pulled it down from NWDI.  Created the project.  Build works great.  Even made changes and checked in and activiated.  All things work.
    Here's the trouble.  When I look at the Implementation tab on my DetailView my private view's import cannot be resolved.
    import spiritaero.com.cats.emp.wdp.IPrivateDetailView;
    Message says "The import spiritaero.com.cats.emp.wdp cannot be resolved"
    How do I fix this?
    Diane

    Diane,
    Some times, all the class files may not ge generated when you import the project into your NWDS. Reload + Rebuild the project. If still errors are there, close the project and open again. Hopefully it will generate all the classes and your problem will be solved.
    Regards,
    Sridhar

  • Error "Cannot be resolved to a type" on OwnerPIN, APDU, ISO7816

    The error I'm reffering to might clearify the fact that I'm new at Java/javaCard-development.
    To learn how it all works I've downloaded an example and try to understand what happens.
    I opened the source in Eclipse and get errors "Cannot be resolved to a type" on OwnerPIN, ADPU and ISO7816 classes. I have an Import javacard.framework statement and expected these types to be part of this library.
    I guess I'm forgetting something somewhere but couldn't find the soluiton on internet.
    import javacard.framework.*; // import all neccessary packages for java card*
    import java.applet.;
    import java.lang.Object;
    public class classpgdata extends Applet {
    final static byte PROP_CLASS = (byte) 0x80; // Class of the proprietary APDU commands
    static {color:#ff0000}OwnerPIN{color} pin; // the PIN object
    public void process({color:#ff0000}APDU{color} apdu) {
    byte[] cmd_apdu = apdu.getBuffer();
    if (cmd_apdu[{color:#ff0000}ISO7816{color}.OFFSET_CLA] == {color:#ff0000}ISO7816{color}.CLA_ISO7816) {
    //----- it is the ISO/IEC 7816 class
    switch(cmd_apdu[{color:#ff0000}ISO7816{color}.OFFSET_INS]) { // check the instruction byte
    case INS_SELECT: // it is a SELECT FILE instruction
    ...

    Hi,
    What you need to do update your Java build path fr the project in your Eclipse project.
    Project -> Properties then find Java Build Path.
    In the Libraries tab add the {JCDK Home}/lib/javacardframework.jar by clicking the add external JARs button. You may also want to remove the standard Java Runtime (JRE) libraries as you do not build against these.
    If you want to use the JC 2.2.1 CAP file converter, you may also want to ensure that the Eclipse compiler is set to compile as Java 1.3 in the Java Compiler section of the project properties.
    KeesdeVink wrote:
    import javacard.framework.*; // import all neccessary packages for java card
    import java.applet.*;
    import java.lang.Object;
    It also looks like you have added two imports you don't actually want. You only need the javacard.framework.* import.
    Cheers,
    Shane
    Edited by: safarmer on 23/09/2009 08:00

  • Jsp error:  req cannot be resolved

    Hi
    I'm trying to run the following error page jsp
    <%@ page import="javax.servlet.http.*;" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <%= new java.util.Date().toString() %>
    <% String theMessage = (String)req.getAttribute("message"); %>
    </body>
    </html>
    BUT I keep getting
    req cannot be resolved. The rest of the page works fine if I take the String theMessage... line with out.
    Thanks in advance
    geekpie

    Thanks. For some reason I had been assuming you used the same variable name to access the request parameter in a jsp as you used when you sent it from the servlet (in my case "req").

  • HT201407 How can I activate my iPhone if both is not working in WIFI nor in iTunes? I always get the "Could not activate" message.

    I restored my old model of iPhone to factory settings successfully by following the restoration details in Apple website but soon as I press the next icon during configuration for the phone activation, I always get the "Cannot activate phone" message. Have I done anything wrong with the restoration causing this error?

    Generally this is a sign that the iPhone had previously been
    hacked/modified/jailbroken and the update relocked it to the
    original wireless carrier. If this is the case, only that wireless
    carrier can unlock your iPhone. You must contact them to see
    if they offer unlocking and if you qualify.
    What wireless carrier did you use before this problem?
    Does the app Cydia appear on your iPhone?
    What does it say when you look at Settings=>General=>About=>Carrier?
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743 
    If your iPhone has not been jailbroken, see the troubleshooting suggestions here:http://support.apple.com/kb/TS3424?viewlocale=en_US

Maybe you are looking for