Import statements cannot be resolved

I couldnt able to import the following statements,
import javax.ejb.EntityBean;
import javax.ejb.CreateException;
import weblogic.ejb.GenericEntityBean;
import weblogic.ejbgen.;*
Do we need to set any properties..
I have set the classpath,path .. but still weblogic,javax.ejb is not resolving in import statement
Do we need to make anything in weblogic settings
Thanks well in advance

Guess you are getting some errors related to class not found..
Did you set weblogic.jar in the classpath ?

Similar Messages

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

  • Cannot resolve import statements

    I recently decided to start messing around with some Java3d. I tried to get an example program to try to dissect but I can't even get past compilation. The main problem is the fact that the import statements cannot be resolved. I thought maybe I was using an outdated example program but upon further inspection of Oracle's own Java3d tutorials I saw the same import statements. I downloaded java3d 1.5.1 because I thought perhaps it wasn't included in the java core classes. This did not help me at all. So maybe it is a problem with the IDE (eclipse) not recognizing them. However, I have had no such success with Google thus far. I realize that this is more than likely a horribly simple mistake that anyone over a novice understanding of Java would be able to spot. But if anyone could help me figure out why I can't compile it would be much appreciated.
    Regards,
    Corey
    Import statements that would not resolve
    import com.sun.j3d.utils.geometry.GeometryInfo;
    import com.sun.j3d.utils.geometry.NormalGenerator;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import javax.vecmath.*;Full program
    import java.awt.Color;
    import com.sun.j3d.utils.geometry.GeometryInfo;
    import com.sun.j3d.utils.geometry.NormalGenerator;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    // An Egyptian pyramid
    // Base divided into two triangles
    public class PyramidExample {
         public static void main(String[] args) {
              SimpleUniverse universe = new SimpleUniverse();
              BranchGroup group = new BranchGroup();
              Point3f e = new Point3f(1.0f, 0.0f, 0.0f); // east
              Point3f s = new Point3f(0.0f, 0.0f, 1.0f); // south
              Point3f w = new Point3f(-1.0f, 0.0f, 0.0f); // west
              Point3f n = new Point3f(0.0f, 0.0f, -1.0f); // north
              Point3f t = new Point3f(0.0f, 0.721f, 0.0f); // top
              TriangleArray pyramidGeometry = new TriangleArray(18,
                        TriangleArray.COORDINATES);
              pyramidGeometry.setCoordinate(0, e);
              pyramidGeometry.setCoordinate(1, t);
              pyramidGeometry.setCoordinate(2, s);
              pyramidGeometry.setCoordinate(3, s);
              pyramidGeometry.setCoordinate(4, t);
              pyramidGeometry.setCoordinate(5, w);
              pyramidGeometry.setCoordinate(6, w);
              pyramidGeometry.setCoordinate(7, t);
              pyramidGeometry.setCoordinate(8, n);
              pyramidGeometry.setCoordinate(9, n);
              pyramidGeometry.setCoordinate(10, t);
              pyramidGeometry.setCoordinate(11, e);
              pyramidGeometry.setCoordinate(12, e);
              pyramidGeometry.setCoordinate(13, s);
              pyramidGeometry.setCoordinate(14, w);
              pyramidGeometry.setCoordinate(15, w);
              pyramidGeometry.setCoordinate(16, n);
              pyramidGeometry.setCoordinate(17, e);
              GeometryInfo geometryInfo = new GeometryInfo(pyramidGeometry);
              NormalGenerator ng = new NormalGenerator();
              ng.generateNormals(geometryInfo);
              GeometryArray result = geometryInfo.getGeometryArray();
              // yellow appearance
              Appearance appearance = new Appearance();
              Color3f color = new Color3f(Color.yellow);
              Color3f black = new Color3f(0.0f, 0.0f, 0.0f);
              Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
              Texture texture = new Texture2D();
              TextureAttributes texAttr = new TextureAttributes();
              texAttr.setTextureMode(TextureAttributes.MODULATE);
              texture.setBoundaryModeS(Texture.WRAP);
              texture.setBoundaryModeT(Texture.WRAP);
              texture.setBoundaryColor(new Color4f(0.0f, 1.0f, 0.0f, 0.0f));
              Material mat = new Material(color, black, color, white, 70f);
              appearance.setTextureAttributes(texAttr);
              appearance.setMaterial(mat);
              appearance.setTexture(texture);
              Shape3D shape = new Shape3D(result, appearance);
              group.addChild(shape);
              // above pyramid
              Vector3f viewTranslation = new Vector3f();
              viewTranslation.z = 3;
              viewTranslation.x = 0f;
              viewTranslation.y = .3f;
              Transform3D viewTransform = new Transform3D();
              viewTransform.setTranslation(viewTranslation);
              Transform3D rotation = new Transform3D();
              rotation.rotX(-Math.PI / 12.0d);
              rotation.mul(viewTransform);
              universe.getViewingPlatform().getViewPlatformTransform().setTransform(
                        rotation);
              universe.getViewingPlatform().getViewPlatformTransform().getTransform(
                        viewTransform);
              // lights
              BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),
                        1000.0);
              Color3f light1Color = new Color3f(.7f, .7f, .7f);
              Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);
              DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);
              light1.setInfluencingBounds(bounds);
              group.addChild(light1);
              Color3f ambientColor = new Color3f(.4f, .4f, .4f);
              AmbientLight ambientLightNode = new AmbientLight(ambientColor);
              ambientLightNode.setInfluencingBounds(bounds);
              group.addChild(ambientLightNode);
              universe.addBranchGraph(group);
    }

    Hi,
    - The latest Java 3D release is *1.5.2*. Uninstall older versions.
    - Java 3D home: http://java3d.java.net/
    - Java 3D project: http://java.net/projects/java3d
    - Java 3D downloads: http://java3d.java.net/binary-builds.html
    - Start with one of the Java 3D examples from "j3d-examples-1_5_2-src.zip"
    - Use eclipse *3.6.2*, it should recognize Java 3D's jars if they are installed in '..\jre\lib\ext\'. See also Java3D + Newer Eclipse Version -> Access Restriction (solution + question)
    August

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

  • DataBean cannot be resolved to a type

    Hi,
    I am using java beans and pasted the class files of beans in rott's classes folder and in main root folder the jsp pages which uses that bean but when I run the jsp page tomcat gives an error
    "Generated servlet error: import dataBean cannot be resolved"

    Maybe it's "DataBean", with a capital D? Maybe the package isn't correct?

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

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

  • 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 weblogic.utils.collections.MultiMap cannot be resolved

    Hi,
    I imported a project from weblogic to eclipse. I'm getting the below mentioned error
    "The import weblogic.utils.collections.MultiMap cannot be resolved "
    Added the necessary weblogic jar files to the project in eclipse.
    Kindly help me.
    Thanks in advance.

    Please Close this thread and reopen it in
    Oracle Discussion Forums » Application Server » WebLogic Server - General

  • 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

  • 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

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

Maybe you are looking for

  • T440p turn on keyboard backlight at startup automatically

    Hi Is there a way to do this at Windows 7 / 8??? I know that it's not possible from the BIOS but there must be an utility there which turns on the keyboard backlight at every windows startup and keep it on regardless of what. Also I would like it to

  • Need help asap, project due monday!

    Hey everyone, I'm a college student and I have a final project due on monday. I'm running into a MAJOR issue which I've never had before.  I know this is probably a noobie issue but any help would be fantastic. I have text on it's own layer, typed it

  • MPEG2-DVD export from PremPro CS5 crash

    Hi there. Got a new problem and can't seem to find the answer on any of the old threads.  I am working on: HP z800 12 GB RAM Windows 7 Xeon 2.8Ghz x 2 When trying to export an MEPG2-DVD file, or any MPEG2 for that matter, out of Premiere, then comput

  • Write multiple devices data into columns

    Hi, I have a problem in writing data from 2 devices that i currently have (for pressure and temperature). I wanted it to be written in 2 coloums, one for temperature and one for pressure for each data produced. What i currently have is that the data

  • How best to address WEBI query buffer issue

    Hello folks, I understand that upon executing the WEBI query from the hyperlink, the data is displayed from the buffer with variable values derived from the last saved version of this query.  Can this be overridden so the data is fetched from the dat