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>

Similar Messages

  • 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...?

  • WdComponentAPI cannot be resolved or is not a field in a WebDynpro DC proj

    Hi All,
    We have a WebDynpro DC project containing some UI screens.
    We have added external JAR file 'com.sap.security.api' through creating a External JAR file type DC project and creating public parts for the same, and have added the same to this Webdynpro project.
    But still we are facing errors as below:
    a)  The import com.sap cannot be resolved for the lines below: -
         import com.sap.security.api.IUserAccount;
         import com.sap.security.api.IUserAccountFactory;
         import com.sap.security.api.IUserFactory;
         import com.sap.security.api.IUserMain;
         import com.sap.security.api.UMException;
         import com.sap.security.api.UMFactory;
         import com.sap.security.api.util.IUMParameters;
    b) Multiple markers at this line :
    - The method wdGetAPI () is undefined for the Type IPrivateCreateUserView.
    - wdComponentAPI cannot be resolved or is not a field
        this.wdControllerAPI = wdThis. wdGetAPI ();
    We have tried the option of using 'Organize Imports' as well and also repairing and reloading the project several times. But still the error persists.
    ANy inputs are welcome.
    Regards,
    Shailesh

    Hi Shailesh,
    Check this thread for more information
    Adding external jar to Web Dynpro project
    Regards,
    Ganesh N

  • 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

  • Getting an error like this The import javax.servlet cannot be resolved

    HI
    i am getting an error like this "The import javax.servlet cannot be resolved".wht i ahve done in eclipse right click->open->servlet->packge name->servlet name->next->nexyt>finish.hereinterfaces is javax.servlet.Servlet.
    do i need add jar for it.can any one tell me why i got error like this.
    vijay

    Please don't doublepost. Answer is given here: http://forum.java.sun.com/thread.jspa?threadID=5220686

  • 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.

  • The import oracle cannot be resolved

    I am new to ODI. I wrote a code for an Open Tool. But it throwing The import oracle cannot be resolved exception. Even I have imported ojdbc14.jar file. Can anybody tell me how to resolve it or the right way to import this file again. I am using eclipse for the same.

    hi,
    thnx for reply...my problem is above exception throws while creating jar file for open tool. Before few days it was not comming. May be its because as I add some new features to it or because of ojdbc14.jar file is not imported correctly in package. I am new to java as well as to ODI.

  • The import org.apache cannot be resolved

    Hi All,
    I am a Java\Eclipse newbie. I am trying to import the org.apache.xerces package, and the import is failing with this error:The import org.apache cannot be resolved
    I am not using Maven\Ant for building the project. I know I need to download some class files\jar files to get this to work, but I am not sure where to download these packages from. Could someone please help me out here?
    import org.w3c.dom.Node;
    import org.apache.xerces.parsers.DOMParser;
    import org.apache.xerces.dom.traversal.TreeWalkerImpl;
    import org.apache.xerces.domx.traversal.NodeFilter;
    import org.apache.xerces.dom.DocumentImpl;
    THanks a lot!

    Well, if you are in fact looking to download the JARs for the Apache Xerces project, you should be able to find them at the Apache Xerces project page.
    If you already have the JARs downloaded, you need to make sure that they appear on your CLASSPATH, otherwise your application will never find them. Since you are using an IDE, this should be as easy as adding the JARs to your project.

  • The import org.apache.struts.action.ActionError cannot be resolved

    Hai anyone,. I' a newbie to struts and want to learn more. I download the example code, and run it. Hey, it work. But when I try to create it by myself by following the tutorial, I got stuck with my all java file when i want to try to compile it with eclipse.It say:
    The import org.apache.struts.action.ActionError cannot be resolved
    What' wrong?
    this is one of the example code, i bolded the error line:
    package dummies.struts.music;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.validator.DynaValidatorForm;
    * @author Mike Robinson
    public class LoginAction extends Action
         * Handles request from user
         * @param mapping
         * @param form
         * @param request
         * @param response
         * @throws Exception
         public ActionForward execute(      ActionMapping mapping,
                                                 ActionForm form,
                                                 HttpServletRequest request,
                                                 HttpServletResponse response)
                                                 throws Exception
              // did the user click the Join button?
              Boolean bCancel = (Boolean)request.getAttribute("org.apache.struts.action.CANCEL");
              if(bCancel != null)
                   if(bCancel.booleanValue())
                        return (mapping.findForward("join"));
              // create a new LoginBean passing the datasource
              LoginBean lb = new LoginBean(getDataSource(request, "musiccollection"));
              // check to see if this user/password combination are valid
              // will return a non-null UserDTO if valid
              UserDTO user = lb.validateUser((String)((DynaValidatorForm)form).get("email"),
                                                 (String)((DynaValidatorForm)form).get("password"));
              if(user != null)
                   // save UserDTO in session
                   request.getSession().setAttribute("user",user);
                   return (mapping.findForward("success"));
              else     // username/password not validated
                   // create ActionError and save in the request
                   ActionErrors errors = new ActionErrors();
                   ActionError error = new ActionError("error.login.invalid");
                   errors.add("login",error);
                   saveErrors(request,errors);
                   return (mapping.findForward("failure"));
    }

    Hi i try to build a dynamic web project in eclipse europa version.so i have opned my eclipse editor then right click selected the dynamic web project.onceit is done i wated to add the servelt so i have selcted the sevlet pressed ok then given name for it,next create servlet here iam getting the error lke this
    "An error occured when create servlet is finished" and in deatils it displyainf like thi
    "java.lang.Error: Unresolved compilation problems:
         The import org.eclipse.jst.j2ee.internal cannot be resolved
         CreateServletTemplateModel cannot be resolved to a type
         CreateServletTemplateModel cannot be resolved to a type
         at org.eclipse.jst.j2ee.web.ServletTemplate.<init>(ServletTemplate.java:3)"
    can any one help me here i have been stuck from morning doing nothing try to solve this problem
    thank u in advance
    vijay

  • The import com.crystaldecisions cannot be resolved

    Hi,
    I installed Eclipse Java EE IDE for Web Developers (Version: Helios Service Release 1) and the Crystal Reports SDK via Eclipse "Install New Software" feature described at http://www.sdn.sap.com/irj/sdn/crystalreports-java
    I have a sample code now and get in one of the JSP-files in Eclipse the error message:
    Multiple annotations found at this line:
         - The import com.crystaldecisions cannot be
          resolved
         - The import com.crystaldecisions cannot be
          resolved
    I got the Crystal Reports for Eclipse Developer Guide and configured my project in Eclipse: menu Project -> Properties and added the CR library to the Java Build Path and activated CR at "Project Facets". I still get the error message... what's missing?
    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

  • The import com.adobe.service.ConnectionFactory cannot be resolved

    I am trying to step through the Reader Extensions samples for extended my form via servlets.
    I imported in the datamanager-client.jar and PDFManipulation.jar files found in my Adobe\LiveCycle\ReaderExtensions\sdk folder.
    However, I am getting the error that "The import com.adobe.service.ConnectionFactory cannot be resolved" I believe this should be part of the datamanager-client.jar.
    Any insight? I also tried the datamanager-client.jar found in this folder: Adobe\LiveCycle\components\csa\common\lib\adobe, but no luck there either.
    Thank you,
    Jennifer

    Hello -
    ok, wrong file. I needed the DocumentServicesLibrary.jar (used the one found here: Adobe\LiveCycle\ReaderExtensions\lib) file. That's what I get for trying to run through this too quickly...
    Thanks...
    Jennifer

  • Getting error in POI like ""The import org.apache.poi cannot be resolved""

    Hi
    i am getting error like this."""The import org.apache.poi cannot be resolved"" so what i need do here. i think i have to get the jars for it .any one who worked with the concept of poi can help me here. i have been using eclipse ide here.i have down loded pio.3.0-final ,then i have added jar files to eclipse. still i am getting this error here

    HI
    i have checked that in build path it is saying it is there os it can't add them,here i have taken as a class proj not as web proj.
    i have started this topic today only.so idon't know much abt this.i have got this code from poi downloads.here is the code for
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFCell;
    import java.io.FileInputStream;
    * This is a sample to Read an Excel Sheet using
    * Jakarta POI API
    * @author Elango Sundaram
    * @version 1.0
    public class ReadXl {
    /** Location where the Excel has to be read from. Note the forward Slash */
    public static String fileToBeRead="D:/JTest/JPOI/Read.xls";
    public static void main(String argv[]){      
    try{
                        // Create a work book reference
                        HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(fileToBeRead));
                        // Refer to the sheet. Put the Name of the sheet to be referred from
                        // Alternative you can also refer the sheet by index using getSheetAt(int index)
                        HSSFSheet sheet = workbook.getSheet("Sheet1");
                        //Reading the TOP LEFT CELL
                        HSSFRow row = sheet.getRow(0);
                        // Create a cell ate index zero ( Top Left)
                        HSSFCell cell = row.getCell((short)0);
                        // Type the content
                        System.out.println("THE TOP LEFT CELL--> " + cell.getStringCellValue());
    }catch(Exception e) {
    System.out.println("!! Bang !! xlRead() : " + e );
    }

  • The import org.fin.app cannot be resolved

    Hii..
    i have added a new project to the exixting fine working project and added new java files. But i cant access some packages of old projects from within these new java files as i get the error "The import org.fin.app cannot be resolved". I have set class path correctly..
    Please tell me the possible causes of this problem.
    Waiting for your reply..

    Are the libraries included in the compile path?
    The error it sounds, is that the compiler cannot locate the JAR/class files for classes within the org.fin.app namespace.

  • Import org.apache.avalon cannot be resolved

    Hi, I am new to Eclipse and J2EE in general and I have tried to import a project in Eclipse 3.0.1. However, I am getting several compile errors having to do with the following imports:
    import org.apache.avalon.framework.activity.Initializable;
    import org.apache.avalon.framework.activity.Startable;
    import org.apache.avalon.framework.configuration.Configurable;
    import org.apache.avalon.framework.configuration.Configuration;
    import org.apache.avalon.framework.configuration.ConfigurationException;
    import org.apache.avalon.framework.logger.AbstractLogEnabled;
    import dragon.common.services.cache.janitor.ICacheJanitorService;
    import dragon.common.services.cache.store.IExpiringStoreComponent;
    import dragon.common.services.cache.store.IStoreComponent;
    stating that
    "The import..." [import package name] "...cannot be resolved"
    Can anyone help with what I should do? Thanx

    I am trying to compile code but keep getting an error stating that the import of a class is not working? I wondered if I am having the same problem. I am running eclipse 3.0. The applet is called joole and it is importing CBoolFkt but it is evidently not working. Appreciate any ideas.
    The applet is not initiating and the error messages is as follows:
    java.lang.Error: Unresolved compilation problems:
         The import CBoolFkt cannot be resolved
         The import ShowCopyright cannot be resolved
         at Joole.<init>(Joole.java:8)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

  • Import javax.jms cannot be resolved

    This is error i am getting The import javax.jms cannot be resolved even though
    my class path contains mail.jar and activation.jar.
    please suggest me, to resolve above error
    Thanks in advance

    sir
    These below import packages are not resloved by class path
    import javax.jms.ObjectMessage;
    import javax.jms.Session;
    import javax.jms.Topic;
    import javax.jms.TopicConnection;
    import javax.jms.TopicConnectionFactory;
    import javax.jms.TopicPublisher;
    import javax.jms.TopicSession;
    and below packages are resolved
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;

Maybe you are looking for