Why do I get these errors?

C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpSessionListener;
^
C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:7: package javax.servlet.http does not exist
import javax.servlet.http.HttpSessionEvent;
^
C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:9: cannot resolve symbol
symbol : class HttpSessionListener
location: class com.stardeveloper.web.listener.SessionCounter
public class SessionCounter implements HttpSessionListener {
^
C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:13: cannot resolve symbol
symbol : class HttpSessionEvent
location: class com.stardeveloper.web.listener.SessionCounter
     public void sessionCreated(HttpSessionEvent se) {
^
C:\jakarta-tomcat-4.1.29\webapps\projecttest\WEB-INF\classes\com\stardeveloper\web\listener\SessionCounter.java:17: cannot resolve symbol
symbol : class HttpSessionEvent
location: class com.stardeveloper.web.listener.SessionCounter
     public void sessionDestroyed(HttpSessionEvent se) {
Can anyone help?

I'm just compiling the following java file ..
     SessionCounter.java
package com.stardeveloper.web.listener;
import javax.servlet.http.HttpSessionListener;
import javax.servlet.http.HttpSessionEvent;
public class SessionCounter implements HttpSessionListener {
     private static int activeSessions = 0;
     public void sessionCreated(HttpSessionEvent se) {
          activeSessions++;
     public void sessionDestroyed(HttpSessionEvent se) {
          if(activeSessions > 0)
               activeSessions--;
     public static int getActiveSessions() {
          return activeSessions;
Whether I use jedit or command line it still gives the same errors

Similar Messages

  • Why do I get these error messages saying that "HWNetMgr" and "HWPortDetect" are insecure start up items?

    I have a brand new MacBook Pro, and two days ago I tried to install a Mobile Broadband named Tele2 Mobile partner, in cooperation with Huawei. The installation couldn't finish, so I removed the components that I could see had already been installed. But ever since I tried to install it, I get two error messages every time I start up safari, saying that I have two insecure start up items named "HWNetMgr" and "HWPortDetect". I have checked my start up items, and the only one I had was Spotify. I removed Spotify as a start object and restarted the computer, but I still got those two error messages. I have now searched through my computer several times and I just can't find these two things.
    Does anyone know what this is about? What can I do to make these error messages go away? I am open to try any suggestions possible! This is a huge investment to me and I just don't want to have ruined it the first week! Please help me!

    MatildaMac wrote:
    As I said, there are no items with those names in the start up folder.
    Yes, there are. Read
    <https://discussions.apple.com/thread/2145902?start=0&tstart=0>

  • Why doesn't my Dynamic link work and or why am I getting these error msgs?

    Im using CS6 of Encore while using Pr CC 2014.....I dont have access to the Dynamic link option either....Can I get some assistance with my issue...?

    Dynamic link only woks between like versions. So PR CS6 to EN CS6. There is no dynamic link from PR CC to EN CS6.
    For issues and a link to a workflow see:
    http://helpx.adobe.com/encore/kb/encore-cs6-installed-cc.html

  • Why am I getting these error messages?

    Photoshop Camera Raw 8.4(CS6)
    Installation failed. Error Code: U44M1P7
    Extension Manager 6.0.8 Update
    Installation failed. Error Code: U44M1P7
    Adobe Photoshop 13.0.6
    Installation failed. Error Code: U44M1P7

    Installation failed. Error U44M1P7 | Updates

  • Plse help: view on PC: Why am I getting these errors?

    Text is continually covered by pics when viewing on a PC. What can I do to fix, someone suggested adding page breaks- can I do that and how?
    http://web.mac.com/alyciawright1/iWeb/The%20Power%20of%20One/Posts/744029D1-4CF1 -4EDA-AF76-2037866D5F08.html
    Thanks,
    Alycia

    The biggest problem with PCs is that most of them use Internet Explorer and, if Java Script is not enabled, it will screw up your site particularly if it has photos and graphics. I usually add a page to my websites like...
    This may be true, but that's not the problem here.
    I am using FF for Mac and I see the overlapping too. The OP has a text wrap issue, not a PC/IE issue.
    Message was edited by: varkgirl because I made a dumb copy/paste mistake :P

  • TS3694 I keep getting the errors 12001 and 11222. Anyone out there know why I get these errors trying to connect to the iTunes store?

    I keep getting the errors 12001 and 11222. Anyone out there know why I get these errors trying to connect to the iTunes store?

    http://manuals.info.apple.com/en_US/NewtonProgrammerRef20.PDFError12001
    Error 11222
    http://support.apple.com/kb/TS3297

  • Why am i getting this error? they are not the same?

    1021: Duplicate function definition.
    1021: Duplicate function definition.
    stop();
    import flash.events.MouseEvent;
    // home button definition \\
    // Portfolio button definition \\
    Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
    function pClick(event:MouseEvent):void{
        gotoAndStop("getPortfolio");
    // Contact Me button defintion \\
    Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
    function cClick(event:MouseEvent):void{
        gotoAndPlay("contactme");
    why am i getting this error the functions have different names... idk what to do they are for two different buttons I am using action script 3.0

    i did what u said and it said these two lines were the same
    // Portfolio button definition \\
    Portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
    function pClick(event:MouseEvent):void{                                                         <--------this one
        gotoAndStop("getPortfolio");
    // Contact Me button defintion \\
    Contact_btn.addEventListener(MouseEvent.CLICK, cClick);
    function cClick(event:MouseEvent):void{                                                           <--------and this one
        gotoAndPlay("contactme");
    it gave me the same error but they are not the same

  • HT2731 why do i get an error message when entering my credit card information?

    why do i get an error message when entering accurate credit card information?

    If you would like help from these forums then saying what the error message is would be useful.
    The card is registered to exactly the same name and address as you have on your iTunes account ? And it was issued by a bank in the country where you and your iTunes account are ?

  • Why do I get this error with hashtables

    This is the first time I am using hashtables. I tried to make a simple example using these lines
         Hashtable dates = new Hashtable ();
         dates.put("christmas", "25 Dec");but I end up getting these errors:
    RLearner.java:9: <identifier> expected
         dates.put("christmas", "25 Dec");
                     ^
    RLearner.java:9: package dates does not exist
         dates.put("christmas", "25 Dec");
                 ^can you please tell me why I get these errors, I think I've included all the packages, but again, Im not sure
    Thanx

    import java.util.Hashtable;
    public class test {
      public static void main(String[] args) {
        Hashtable test = new Hashtable();
        test.put("christmas","25 Dec");
    }

  • Why do I get an error message in safari 5.1 telling me to restart in 32 bit mode in order to "view the movie" when I first start safari on opening page?

    why do I get an error message when I start safari 5.1 telling me I need to open browser in 32 bit mode in order to "view movie" ? This occurs when I start safari on the opening page (the page with all the boxes for most viewed web sites). This had never occurred with safari up until the latest updates to safari & OSX [Version 5.1 (6534.50)] and OSX 10.6.8.
    also, I'm not trying to view a movie - this occurs for the page previews that load when safari opens.
    thanks.

    go here:
    http://get.adobe.com/shockwave/otherversions/
    choose "different version">full 64 bit and download - seems to have solved probem...let you know if it happens again

  • Why am I getting an error message when trying to use a template?

    Why am I getting an error message when trying to use a Pages template?

    You are getting an error message because there is an error.
    Knowing wht version of Pages you are using, what template you are attempting to open, and what error message Pages is sending you might help determine why you are getting that specific rror message. Without those, the first sentence above i pretty much all that can be said with any assurance.
    Regards,
    Barry

  • Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv file?

    I went through the forums and made sure that any blocks or copywrites weren't triggered by the file, it's clean and can be opened using a media player and other video editing software like windows MovieMaker. I keep getting "The importer reported a generic error" message and have no idea how to proceed. Can someone please help?

    Re: Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv  file?
    This ARTICLE starts with a checklist on setting up a computer to run PrE best, then goes into a series of links for tuning up one's computer and OS, and then links on troubleshooting.
    There is also a link on posting all necessary info, to help others help you.
    Without knowing much more about your system, it is impossible to say much beyond that WMV's are tough assests to work with, requiring a lot of CPU horsepower.
    Good luck,
    Hunt

  • Why am i getting an error message that says "an unknown error has occured" when i try to update my apps in the app store

    Can someone please offer some suggestions why I am getting an error message that says "an unknown error has occured" when I try to download or update my apps in the app store?
    Thanks!
    disregard! i noticed someone else's post about signing out of the app store and signing in again and it worked.....

    Hi ...
    Try here > Mac App Store: "An unknown error occurred (100)" when purchasing
    If that doesn't help, drag the App Store icon straight up off your Dock so it goes, "poof".
    Now drag the App Store icon from your Applications folder to the Dock. Try updating your apps.

  • Why do I get an error message when I try to sync my IPAD with ITunes? Message reads Cannot be used because Apple Mobile Device Service has not been started.

    Why do I get an error message when I try to sync my IPAD with ITunes? Message reads Cannot be used because Apple Mobile Device Service has not been started.

    AMDS for Windows
    http://support.apple.com/kb/TS1567

  • I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    In relation to my previous inquiry regarding inability to view a pdf file using Safari...
    Is it possible that I can view other online bills from other website but not this particular bill from one specific website?
    Sorry if I missed any important point in this article -->Apple Safari 5.1 and Adobe Reader/Acrobat Advisory
    Thanks again!

Maybe you are looking for

  • ERP6.0 EHP7 Upgrade error in phase PARCONV_TRANS

    Hello, If you have any idea or information , I hope your help!! I'm upgrading ERP6.0 to ERP6.0 EHP7. I have encountered the error in MAIN_TRANSEXEC/PARCONV_TRANS. The error mesaages is like this: Detected the following errors: # Y:\SUM\SUM\abap\log\N

  • IPhone doesn't play Quicktime Web-Export for iPhone (not cell!)

    Hello guys, I play around with the html5 video tag and the possibilities to get implemented videos working on the iPhone. I exported the video via the standard function in Quicktime (Encoding Video for Wi-Fi, 3G, and EDGE) which is installed on 10.6.

  • Hi how to create jbutton, jcombobox with same size

    hi i m just new in gui and i added some of buttons and comboboxes but i want their width to be equally sized regardless of their character length.. but.. how to do

  • Business Objects Dashboard External HTML/JAVA Script Link - User Authentication Depolyment Q

    <p>Hello,</p><p>I have a rather unstructured problem here and am relatively new to Business Objects Enterprise. </p><p>We have users who are authenticated through Business Objects. The login sets their access levels and permissions. In addition to th

  • Javascript pop-up in servlets question

    I have a problem when i call a pop-up script it actually opens a blank screen upon clicking. I would like to know how do i make sure that when i click that it doesent direct to me a new page. I just want to stay in the same page. I tried using return