Plz help why its not compiling ,

hello all i am trying to make the tutorial http://developers.sun.com/mobility/midp/articles/tutorial2/
i have made all the steps once i try to compile it it shows the folowing error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class HitServlet or a class it depends on
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:836)
     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
etc.....
i believe the error has something to do with my classpath thats why its not compiling the HitServlet.java
if anybody can show me plz how to make this following step :
Compiling the Servlet
Compiling servlet code is pretty much the same as for other Java development, except for an important twist. Because the servlet API is not a core part of the Java SE platform, you'll need to add it to your CLASSPATH before you can compile servlets.
The servlet API is contained in common/lib/servlet.jar under the Tomcat root directory. Simply add this file to your CLASSPATH and you will be able to compile HitServlet.java using javac. You can edit the CLASSPATH in the system properties or do it on the command line, as this Windows example demonstrates:
C:\>set CLASSPATH=\jakarta-tomcat-4.1.31\common\lib\servlet.jar
C:\>javac HitServlet.java
i have installed the tomcat and its working fine but i dont understand how to set the classpath , i tried to make it in control panel / system / envirement and put the classpath but its still doesnt work
please help on what i should make in my classpath and how to set it to work if not please notify me where am i making mistake thank you
appreciate a lot help

hello all i am trying to make the tutorial http://developers.sun.com/mobility/midp/articles/tutorial2/
i have made all the steps once i try to compile it it shows the folowing error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class HitServlet or a class it depends on
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:836)
     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
etc.....
i believe the error has something to do with my classpath thats why its not compiling the HitServlet.java
if anybody can show me plz how to make this following step :
Compiling the Servlet
Compiling servlet code is pretty much the same as for other Java development, except for an important twist. Because the servlet API is not a core part of the Java SE platform, you'll need to add it to your CLASSPATH before you can compile servlets.
The servlet API is contained in common/lib/servlet.jar under the Tomcat root directory. Simply add this file to your CLASSPATH and you will be able to compile HitServlet.java using javac. You can edit the CLASSPATH in the system properties or do it on the command line, as this Windows example demonstrates:
C:\>set CLASSPATH=\jakarta-tomcat-4.1.31\common\lib\servlet.jar
C:\>javac HitServlet.java
i have installed the tomcat and its working fine but i dont understand how to set the classpath , i tried to make it in control panel / system / envirement and put the classpath but its still doesnt work
please help on what i should make in my classpath and how to set it to work if not please notify me where am i making mistake thank you
appreciate a lot help

Similar Messages

  • I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    1)  Apple ID: All about Apple ID security questions
    Torrifromny wrote:
    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file ?
    2)  See Here.  Apple ID: Contacting Apple for help with Apple ID account security
    Ask to speak with the Account Security Team...
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • Hello, I restored my Iphone, and I made sure that all of my stuff was backed up into the Cloud. but now when i plug it into Itunes its like a brand iPhone PLZ help! Its an Iphone 4

    Hello, I restored my Iphone, and I made sure that all of my stuff was backed up into the Cloud. but now when i plug it into Itunes its like a brand iPhone PLZ help! Its an Iphone 4. I look ed on the account info and everything is right plz help!

    Thank you again for all of your help!! I really appreciate it!
    I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
    Thank you for letting me know about my contacts! How do I know if I have the contacts app?
    Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
    How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
    Sync Contacts:
    Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
    Sync Calendars:
    Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone

  • Last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    Charge the battery.
    If necessary, restore the iPod >  iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • Can i change apple id to update a game? if its possible how i can change it? if its not possible why in this generation why its not possible?

    can i change apple id to update a game? if its possible how i can change it? if its not possible why in this generation why its not possible?

    You can't. All apps, and any other content from the store, are tied to the account that downloaded them, and they will remain tied to that account - so only the account that bought/downloaded an app can download updates to an app. Are you having problems downloading an app update via the app's own account ?

  • I want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent, i want to delete my data from iphone while i doesnot have the access but i know my apple id so plz help me its urgent

    Welcome to the Apple Community.
    You can only wipe your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Plz help me its urgent i have iphone i dnt want my deleted texts my phone was jailbroken if i do restore widout backup should i jailbreak again ,should i unlock again,will the data of texts premantly erased plz answr me

    Jailbroken phones cannot be discussed in an Apple forum. If you synced your phone with your computer the texts will be in the backup, so if you restore the backup you may get them back, but with a jailbroken phone it's anybody's guess what will happen.

  • PLz help 7key is not working suddenli in my N-73

    PLz help 7key is not working suddenli in my N-73 and the 7 is simply displaying on the screen help plz....
    Birla

    Ok.
    It sounds as if something is keeping the key pressed, and that can be down to 2 reasons.
    The phone has got wet and the internal key is corroded and fused, making a constant connection
    or
    Dust or dirt in under that key and are having the same affect
    Either one of these reasons will need to be fixed at a Nokia Care Point as it will involve taking the phone apart.
    You can find the nearest NCP to you at the Store Locator
    Use the drop down list on the right to find your country.
    If it is either of these faults, the NCP will probably charge you as it wont be a warranty fault, but a customer created fault.
    Hope this helps.
    My posts are my opinion and in no way the direct views of Nokia.
    If my posts are helpful, please give me some KUDOS using the green star on the left.

  • When m posting something on facebook why its not showing via iphone

    Hello!this is hakana m having a problem when m posting something on faceook why its not showing via iphone....

    You'd really have to ask FaceBook that.

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • Plz help me (sata not seen)

    first i would like to say this is my first build and i am pretty new at this but i had everything running for a while then i went to install Doom3 (which i think had nothing to do with it) and my comp went to BSOD.  i restarted and then my primary Sata hdd on sata1 no longer was recognized.  i then restarted again thinking it was a psu issue and my other drive was no longer recognized.  now the system sits at the logo screen and nothing happens.  changed bios to fail safe and changed sata1and2 to sata3-4 still no change.  PLZ HELP ME!
    k8n Neo2 Platinum nforce 3 ultra
    amd 64 3500+
    1 gig pc 3200
    2x 120 gd sata (1xmaxtor, 1x seagate)
    bfg 6800 256 GT OC \
    SB audigy zs2
    500 PSU
    windows?? LOL

    Snakexor
    are your drives shown in STD CMOS FEATURES (IN BIOS)
    if yes then check the following in Bios
    1) ADVANCED BIOS FEATURES
        HARD DISK BOOT PRIORITY
          Your HDs should appear here ensure the disk u want to boot from is at the    top if not use keys to move it to top
    Note: Following a crash or freezeup this order can get reset & is the 1st place to look if not booting.
    2) ONBOARD DEVICES
        SATA1/2
        SATA3/4
       Enable or disable as u require
       Disable any pair not in use will save resources
       Use SATA3/4 if U want to OC
    3) INTEGRATED PERIPHERALS
        IDE Function Setup
        Enable DMA as reqd Disable to save resource
    The following resource may also help:-
    MSI K8N Neo Platinum FAQ its a long thread scroll down almost to bottom & look at MSI K8N Neo Platinum NVIDIA RAID/SATA Drives Installation FAQ!
    Version 1 post by Wonanoby d12/07/04
    xmlviking : I dont understand ure problem ive had 3 SATA drives on this mobo without hitches 2 were using PATA/SATA adaptors on 133 ATA Drives both of which performed better on SATA Than PATA.
    Easiest way to setup was to plug in only OS Drive install windows , then plug in rest of drives. This also makes sense with a new build to verify system with minimal components

  • HT201263 i've a problem with the passcode unsure why its not recognised it and the pad recovery mode is not working, really worried that unable to get back into the ipad what can be done

    Hi can any one help, I've done any update and put a passcode and its not recongising it on the ipad and know its disabled.  I've followed the recover mode a number of time and it keeps saying ipad  could not be resorted, An  unknow error occured (3194). been trying for hours please help

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
    ~~~~~~~~~~~
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Update and restore alert messages on iPhone, iPad, and iPod touch
    http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
    iTunes: Specific update-and-restore error messages and advanced troubleshooting
    http://support.apple.com/kb/TS3694
     Cheers, Tom

  • Problem posted for the third time! PLZ HELP! Mic not working! :)

    Hey all!
    My Microphone isn't working. Im useing the onboard Live 24-Bit. To this I have at 7.1 Creative Inspire TD7700 with the external decoder, connected. Im useing the Optical cable, if that have anything to do with this.
    When I connect my micrphone, I cant use it at the same time that I play sounds. The difference is when I use the "Digital Output Only" function in the mixer. Here is what it does:
    When DOO is on: I can play and hear all sounds, but my microphone is not working at all.
    When DOO is off: I can record with the micrphone, no problem. I can create and record pretty good wave-files. But I can't hear anything.
    A thin I could do is to turn DOO off, record af wave, turn DOO on, and play the file. -But how cool is that?
    Besides, the primary reason that I got the mic, is that I play alot of World of Warcraft. And I want to use TeamTalk.
    Therefore, isn't there a way to get both things at once, just like "in the good old days"?      Plz help!

    Thana, the mods/admins are on strike...just bump this question if they stop their strike...

  • ToString method why its not called implicitly for objects

    class Building { }
    public class Example
    public static void main()
    Building b = new Building();
    String s = (String)b;
    in the 5th Line it shows error that cannot cast building type to string..
    but all classes have the toString method which is called whenever we give the object arguement in System.out.println();
    the following code compiles
    class Building { }
    class Example
    public static void main()
    Building b = new Building();
    System.out.println(b);
    can anyone explain this?

    I get your point about casting.
    but in the println statement when u pass the building object it calls the toString method and generates a new string object
    why does not it do the same in the below code.
    String s = b;// b is a building object
    is the tostring method implicitly called only in println where it expects a string?

  • IPhone 4 not turning back on????? PLZ HELP or its going into the bin and no more apple

    My iphone 4 wont turn on. I used my phone with no prob this morning but then it decided it was turning off and not turning back on again.... I plug it into the wall to charge it tells me to connect to iTunes but as soon as I unplug my phone it turns off. I connect it to computer for iTunes and it restarts after the apple symbol comes up. ???????
    I had my phone connected to the computer at work all afternoon and watched it show the apple symbol then switch off and do it again and again. I don't see how it would be the battery as I felt it should have plenty of charge by now plus I have tried all different cables and its still the same.
    Please help me. I do like my iPhone but I only seem to have problems.

    Those are features of faulty battery. Make Genius reservation and take to Apple Store for evaluation. Or try battery replacement as first step.

Maybe you are looking for