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

Similar Messages

  • The import javax.ejb cannot be resolved

    Hi all,
    I have a bean working fine when deployed as jar on weblogic but it gives the above error when deployed as ear. Deployment goes ok but when I try to use it I get the error.
    Anybody has any idea of what the problem could be?
    Thanks,
    A.

    I figured out that if I include j2ee.jar in the ear file and the entry j2ee.jar in the Class-Path of the manifest file inside the jar then everything works, but I can't understand why...do I ALWAYS need to include j2ee.jar for every aplication that I deploy?
    A.

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

  • Import javax.ejb cannot be resolved

    Hi,
    There are some libraries missing in the following code.
    package era.budget;
    import javax.ejb.*;
    import era.budget.BudgetVO;
    public class BudgetItemVO implements java.io.Serializable
         private Integer itemId;
         private BudgetVO budget;
         private int type;
         private String itemDetails;
         private int amount;
    // -------------- BEGIN GET/SET METHODS --------------
    public BudgetItemVO(Integer id)
              this.itemId = id;
         public BudgetItemVO()
         public Integer getItemId()
              return itemId;
    public BudgetVO getBudget()
              return budget;
         public void setBudget(BudgetVO budget)
              this.budget=budget;
    public int getType()
              return type;
         public void setType(int id)
         this.type=id;
    public String getItemDetails()
              return this.itemDetails;
    public void setItemDetails(String details)
              this.itemDetails=details;
    public int getAmount()
              return this.amount;
    public void setAmount(int amount)
    this.amount=amount;
    As aresult of these missing libraries there are some compilation errors..Some of the errors are as follows
         1)The import javax.ejb cannot be resolved     
         2)EntityBean cannot be resolved to a type     
    3)EntityContext cannot be resolved to a type     
    4)EJBLocalObject cannot be resolved to a type     
    Thanx & Regards
    Maria.

    try: in your project properties choose 'Java Build Path' and add javaee.jar (from J2EE_HOME\lib) as external jar

  • When i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP

    when i burn a disk in Disk Utility, the burn completes but the verification process does not complete and my disk pops out. The error message i get is something like this "burn failed because disk cannot be verified," PLEASE HELP.
    Also when i take the disk out it seems fine nd everything seems to be burned onto the disk. I am buring mac os x lion onto a disk.
    The disk i am using is nextech and i am burning at the slowest speed (4x).
    Also this is my 3rd time trying to do this and the verifying process keeps failing.... what do i do?

    see there
    http://www.techmixer.com/best-free-mac-burning-software-for-mac-osx/
    what you like most
    try different brand of CD/DVD

  • Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of g

    Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of great help..thanks .

    I think in your situation it would be worth trying the things listed under the event. It does have to do with FRS and it's easy to do. I've used it to fix journal errors after a server unexpectedly restarts and sysvol stops replicating.  I
    could see where it could fix your issue, and if it doesn't, you're out 5 minutes. :)
    The listed registry key does not exist
    Expand HKEY_LOCAL_MACHINE. 
    Click down the key path: 
       "System\CurrentControlSet\Services\NtFrs\Parameters" 
    Double click on the value name 
       "Enable Journal Wrap Automatic Restore" 
     

  • HT1491 how can i buy gem in clash of clans?it give me error like this"the buying is not complited"

    how can i buy gem in clash of clans?it give me error like this"the buying is not complited"

    If you are also getting a message to contact iTunes Support then you can do so via this link and ask them for help (on these forums we won't know why the message is appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I have just purchased 2 songs and I went to sync my Iphone 3G and I get an error 13019.. the iphone "my name" cannot be synced. I have tried.. removing voice memos (I have none) remove all music.. syncs fine.. if I choose to sync music I get the error

    I have just purchased 2 songs and I went to sync my Iphone 3G and I get an error 13019.. the iphone "my name" cannot be synced. I have tried.. removing voice memos (I have none) remove all music.. syncs fine.. if I choose to sync music I get the error help..
    I have tried everything and now I dont have one song in my Iphone since it doesnt want to sync music because I get this error...
    by the way I have tried this
    http://support.apple.com/kb/TS2830
    and I have tried restoring the iphone...

    I translated..
    El problema -> El itunes me dijo que habían como 12 canciones que tenían mejor calidad. yo decidí intercambiar las canciones que tienen mejor fidelidad en itunes.
    Itunes me pregunto si quería que ponga las canciones que iva a remplazar en “desk top” a lo cual yo respondí que si. El itunes hizo algo.. no puso las canciones viejas en el desk top pero cuando fui a sincronizar recibí el error 13019.
    La solución para los usuarios de Windows.. busca todas las canciones *.m4a que se han modificado en tu compu durante el día del incidente.. toma nota de los nombres de las canciones.
    En itunes busca estas canciones y deselecciona las canciones.. (con suerte veras que las canciones están seleccionadas dos veces.. deselecciona todas las canciones que fueron modificadas en ese día. Al final asegurase que tienes seleccionado la opción de solo sincronizar las canciones que están seleccionadas en tu lista.) y trata de sincronizar con itunes..

  • 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 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 org.apache cannot be resolved and I am not sure why?

    Alright, so I decided to build myself the simplest of simplest ftp client so that I could understand how this works:
    Ok, I have parts built but I am trying to include the following things:
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPFile;The error I am getting from eclipse (which is the editor that I am using) is:
    The import org.apache cannot be resolvedThe same thing happens when I try to do:
    import com.jscape.inet.ftp.*;I have an idea what is going on with this but I am not entirely sure. I think I need a package that I must download from apache or somewhere that might give me access to libraries?
    I would be grateful to any help...
    Thanks,
    Adam Scott

    Yes you need to have the classes that you want to import. If you have them then you need to add them to your project's classpath.

  • Javax.servlet cannot be resolved - HELP

    I am using Eclipse to develop a Servlet application but Eclipse cannot resolve the javax.servelet package. Is there a special j2ee package I am suppose to download or do all the j2ee packages come with the JDK? I am running J2SE 1.5. I did not download the JDK seperately because I assumed in came with Eclipse.
    What do I have to do so that Eclipse can resolve the javax.servlet package and all j2ee packages?

    Do you mean that I have to define a new Environment
    variable in WinXP that point to the location of
    servlet.jar?no
    >
    I don't have a servelet.jar file BTW.servlet.jar is a part of the j2ee download so if you
    just have j2se it may not be there.
    it is bundled with tomcat also and should be in the
    <tomcat home>common/lib directory.
    it is also bundled with netbeans in the directory
    <netbeans home>/tomcat/common/lib
    you can download it from sun and add it in the java home lib directory

  • Constly get sync error message this sync failed to start cannot up date or change music or apps

    I have iphone 4, cannot syn in itunes for windows ver 11.1.3.8; get error message the iphone could not be synced because the sync session failed to start, I have uninstalled and reinstalled itunes,  the ios is 7.0.4 is current on phone HELP please ???

    Hi, Josemne
    Yes, if you can restore the system through Rescue & Recovery, then you will still have WIndows on your machine, but all your files will be deleted from the hard drive. Luckily, you have already saved those files elsewhere. I would recommend trying to restore the system and see if that works.
    Best,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Import javax.persistence cannot be resolved

    I am running Weblogic Workshop 9.2.0 and Eclipse-Helios v3.6.2, and am running both jdk1.6 and jdk1.5. Going through the Java 5 Tutorial on Web Tier technologies, I am experiencing the above error.
    On investigating the jdk, I am unable to find the jar file that contains the above package. Can someone point me in the correct direction to resolve this issue?
    Thank you.
    Stevenson

    The class is not in the JDK, it is part of the JEE5/JEE6 platform and thus provided by weblogic itself. Generally you have a few options;
    - figure out which libraries of weblogic you have to add (the documentation should tell you this)
    - if using an IDE, you can generally setup a server runtime in your project; in doing so the correct libraries are automatically added
    - IDEs generally give access to a generic 'stub' implementation of the JEE classes that you can compile against. You don't need to deploy anything because as said the server already provides the libraries during runtime.

  • Can't import javax.servlet.*

    I have installed the jdk 1.3.1 standard edition. I downloaded this from the sun web site. I can import javax.swing ... but get an error when trying to import javax.servlet.*; The error I get says 'package javax.servlet does not exist'.
    Where do I get the package?
    How can I check to see if I have the package?
    Thank You

    That's because javax.servlet is not part of Java 2 SDK SE. It's part of Java 2 SDK EE -- you need to download and install the Enterprise Edition in addition to the Standard Edition.

Maybe you are looking for