Need help with tomcat 5.5 and using java classes

hey there,
i am trying to set up tomcat 5.5 on my computer at home and have sucessfully done so. i have been trying to use Java classes inside my JSP files however tomcat thows an internal servlet error as follows:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 144 in the jsp file: /order.jsp
Generated servlet error:
ProductList cannot be resolved to a type
An error occurred at line: 144 in the jsp file: /order.jsp
Generated servlet error:
ProductList cannot be resolved to a type
An error occurred at line: 144 in the jsp file: /order.jsp
Generated servlet error:
Product cannot be resolved to a type
i have the classes located as the setup tutorial recommends (root/WEB-INF/classes/) and still nothing works. i would appreciate any help anyone can give.
thanks,

Which tutorial are you following?
As of java1.4, all classes must be in packages for them to work in Tomcat. This means your beans and servlets too.
Put your beans in a package, and then recompile them, and put them in the right place.
eg
package com.mypackage
public class MyClass ...
once compiled would go into WEB-INF/classes/com/mypackage/MyClass.class
Are you using Product and ProductList classes in scriptlet code?
Have you imported them with a page directive
<%@ page import="com.mypackage.Product, com.mypackage.ProductList" %> ?

Similar Messages

  • Need help with my iPhone 5 and my Macbook Pro.

    Need help with my iPhone 5 and my Macbook Pro.  I was purchased some music on itunes at my mac. Some reason I deleted those music from both on Mac and iPhone 5.  Today, I went to my iPhone iTunes store inside of iCloud to redownload my puchased. But those song won't able to sync back to my iTunes library on my Mac.  Can anyone help me with that ??....
    iPhone 5, iOS 6.0.1

    You've posted to the iTunes Match forum, which your question does not appear to be related to. You'll get better support responses by posting to either the iTunes for Mac or iTunes for Windows forum. Which ever is more appropriate for your situation.

  • Need help with clickbios ii terminolgy and values. Z77A-GD65 / 3770k

    Hello All 
    I recently purchased a Z77A-GD65 board and after searching I've found the differences in terminology between this and my previous Asus board but still have a couple of settings I cant find any info on.
    System Specs:
    motherboard: msi z77a-gd65
    cpu: intel 3770k
    ram: corsair vengeance 2133mhz 1.5v
    psu: corsair 850w
    First things first is I believe I am running in turbo oc mode. I've selected the oc genie tab on the center right of the bios screen and proceeded to change settings there. With cpu voltage on auto and vdroop set to 50% at 4.6ghz. (I'll try and get screenshots of bios settings soon)
    The following are the terms I need help with:
    In the my oc genie section;
     1. Long duration power limit
     2. Long duration maintained
     3. Short duration power limit
    In the main overclocking section;
     4. Digital Compensation level (not in owners manual, options auto/high)
     5. Cpu core ocp expander (enabled for overclock 4.5ghz+?)
    In the CPU Features section;
     6. long duration power limit w (does "w" stand for watts?)
     7. long duration maintained s   (does "s" stand for seconds?)
     8. short duration power limit
     9. primary plane current limit a  (does "a" stand for amps?)
    10. secondary plane current limit
    11. primary plane turbo power limit
    12. secondary plane turbo power
    I know those are a lot of settings, but would appreciate any simple definitions as to what they do and recommended values for mild overclocking (4.5-4.80)
    Also on my previous board (Asus P8P67 Pro) my 3770k was stable in prime95 for 18 hrs at 4.5ghz fixed 1.155v with only ram timings put in manually and LLC set to extreme.(or whatever max is called in asus bios) Voltage was fixed and everything else was defailts.

    Well I'm back.  Been digging around for a few days and found some answers to my questions.
    First things first s that for some reason I could not adjust voltage values with the + or - symbols. Clearing cmos did not help this. I had to reflash the bios to get this functionality back as well as clearing cmos before and after the flash.
    So I figured out the values in the oc genie section are the same as the normal section but only used when your using the oc genie. (numbers 1-3)
    Digital compensation level and ocp expander should be set to high and enabled respectively when going for higher overclocks. (4 and 5)
    Now for the rest of my questions ( 6 through 12) I have found suggested settings and some info after hours and hours of searching but still have a couple of questions about them.
    Long/short duration power limit, and primary/secondary plane turbo limit. I see suggestion settings of 250 or 255. I take it this is simply max supplied watts to the chip? If so why the 250/255 values? Is that the highest the board will give? Is plane turbo limit related to the enhanced turbo stated and how much wattage can be drawn there while the other limit is for any non turbo frequencies?
    Long duration maintained, I've seen 60 suggested a lot. Why is this?
    There's not an over abundance of info on these boards as compared to asus so it seems info is a little less documented and video tutorials explaining things are next to none.
    Any help would be appreciated. Thanks 

  • I need help with my text tone and I have ring tone. no text tone for the 4s.

    I need help with my text tone. I have ring tone no text tone. I have a 4s.

        Hi Sarar2333!  Let's get your text tones working again!
    Here's a link with instructions how to enable and change your alert sounds for your text/notification settings on your iPhone 4S: http://vz.to/1stiF8a.  You can ensure text tones are enabled by selecting a tone in the "Text Tone" setting.  Let me know how that works out for you.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • Need help with buying graphics card and ram for MSI 865PE NEO 2-V

    Hi,
    I want to buy 1GB of ram for motherboard MSI 865PE NEO 2-V I need help with finding correct parts.
    I also want to buy 512Mb or 1GB graphics card.
    as i said before i need help with finding correct ones so they match motherboard, I would appreciate if any one would post link to cheap and fitting parts.
    I found graphics card allready, i just need to know if it will fit.
    the card is
    NVIDIA GeForce 7600 GS (512 MB) AGP Graphics Card
    Thanks for help.

    here you can see test reports for your mobo:
    http://www.msi.com/product/mb/865PE-Neo2-V.html#?div=TestReport

  • HT4528 I need help with my I phone and I can get verizon to let me on there to talk and I will have to have my phone so that I can do what you tell me to do

    I need help with my phone it is not ringing and I cant figure where in here to make it so it will something has been pushed so I cant hear any calls or texts

    Not when you insist on being so impatient.
    These are user to user support forums.  No one here is paid to read or respond to messages.
    Try explaining the issue instead of the jumbled, rambling mess of a title and we will be happy to assist.

  • Need Help with Tomcat setup

    I downloaded tomcat 4.1 and extracted it to my harddrive, but when i try to start up the tomcat server i get the following error.
    C:\Program Files\apache-tomcat-4.1.34\bin>startup
    JAVA_HOME\bin\java.exe is missing
    The JAVA_HOME environment variable may not be defined correctly
    This environment variable is needed to run this program
    NB: JAVA_HOME should point to a JDK not a JRE
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_09;
    The system cannot find the file -Dsun.io.useCanonCaches=false.
    C:\Program Files\apache-tomcat-4.1.34\bin>
    What do I need to do to fix this?
    ClassPath: C:\Program Files\Java\jdk1.5.0_09\bin
    JAVA_HOME: C:\Program Files\Java\jdk1.5.0_09;
    Any ideas are greatly appreciated.

    Your JAVA_HOME variable does seem to be pointing to the right place.
    It shouldn't have that semicolon on the end of it though. Maybe get rid of that?
    The other question I would have about it is that there is a space in the variable, which might confuse matters.
    Maybe try using the "shortname" for Program Files.
    You can do a "dir /x c:\P*" to find out what it is.
    Try setting the JAVA_HOME to c:\progra~1\java\jdk1.5.0_09
    Also note that Tomcat4 is a couple of versions old now.
    I would recommend Tomcat5.5 with Java1.5
    Hope this helps,
    evnafets

  • Need Help with External Hard drives and too much music

    I am not terribly tech-savvy, and I need your help. I have a G5 PPC dual processor with an internal 250GB drive. I have two seagate firewire/USB2 external hard drives. One is 250GB and one is 350GB. I want to know how to use them to get my Mac to run faster and better.
    My original hard drive is 7GB shy of being full. Almost half of this is my itunes library which is over 100GB. The older (250GB) hard drive has about 150GB of photos/videos.
    My Mac is running slow as molasses and when I power up the external hard drives it slows down to what I recall my original Mac Plus ran like.
    I use the G5 primarily to work with photos, illustrations and creating the occasional DVD with video and photos. the apps I use most often are Photoshop, Illustrator and Painter. I always listen to music while work.
    I hope all of this information is helpful! Here is my question:
    What is the best way for me to set up and use these external hard drives to return my G5 to its original blazing (to me) fast speed?
    PPC G5 Mac OS X (10.4.9)

    I think you should look at adding two 500GB internal drives. I'd say Maxtor MaxLine Pro for cost, but they also run much warmer (43ºC even when nearly doing zilch) so I'd go with WD RE2 500GB for $40 ea. more.
    dump whatever you don't need, trash anything that is hogging space and is just temp file or useless cache. Web browsers can leave behind a ton of small files eating up tens of MBs.
    Use SuperDuper to backup/clone your drive.
    Disk Warrior 4 to repair (after it gets to 15% free, or just forget for now).
    A 250GB drive formats to 240GB and you have ~3% free it looks like.
    For every data drive plan to have two backup drives.
    Keep your boot drive to 40% used.
    And your data drive to 60%.
    Backups can go a little higher.
    Drives are cheap and inexpensive, especially for the space and performance. And they have improved SATA over the years it has been out.
    By doing a backup followed by erasing your drive, and then restoring it, using SuperDuper, which optimizes the organization, skips copying temp files that aren't needed, it also defragments your files. I would do backup daily to different sets that you "rotate." And before any OS update. And do the erase and restore probably every 2 months.
    Make sure you keep one drive partition somewhere that is just your disk utility emergency boot drive that is not a copy of working system, used for doing repairs like running Disk Warrior and Disk Utility.
    You may need to repair; backup; even erase and restore your external drives. Rather than spend on vendor made case, just pick up a good FireWire case either with drive, or bare (and add your own). I think it'd add 500GB FW drive though.
    Why?
    To begin backup of your current drive. To leave your other FW drives "as is" for now.
    Then install a new internal 500GB drive as well so you now have a good current backup, and you have moved your data off 250GB to 500GB. If anything happens, you have one off line FW backup.
    Then begin to clean up, organize, and get your FW drives working. It sure sounds like they have had some directory or file problems.
    You can find a lot of Firewire and SATA drive choices over at OWC:
    http://www.macsales.com/firewire/

  • Need help with ext. SWF and XML

    I'm trying to create an External SWF to load into my main
    site (photography).
    Home | Portfolio | Published Work | Bio | Contact
    The SWF I want to load externally is Portfolio because it has
    5 sections
    Those 5 sections are:
    -Editorial
    -Adventure
    -Fly Fishing
    -Multimedia
    -Weddings
    I'm looking to keep this dynamic as possible, but I'm one of
    those guys who doesn't write code from scratch, but knows AS well
    enough to modify a base or a generic template if ever given. It
    would be easier to use one subsection as an example, which could be
    applied to all others.
    e.g. "Fly Fishing" 1-Main container; 5-10 thumbnails (1
    dyanamic thumbnailcontainer)
    - I don't know XML (but can modify it). basically having an
    ID tag for each image, possibly dynamically generate a thumbnail
    too. Also have a spot for dynamic text to load in (captions with
    multiple text lines for images upon onRelease - maybe this could be
    it's own MC that loads on top of the main photo container)
    - on (release) on a thumbnail: there would be a little
    information icon that would appear. If you mouse over, it would
    overlay a layer over that specific ID photo, and the text appear.
    RollOut it would fade out the layer above that specific ID photo.
    - Transition: FadeOut/Blur/Exposure Blur, something
    interesting to that nature.
    - Thumbnails: is it just easier to create thumbnail images
    manually, and just create a separate container?
    - Image folders: I would imagine each section would have
    it's own watch folder. For example "Fly Fishing" would be a folder
    "/swfImg_flyFishing/", but perhaps having one XML file.
    - XML file details
    id
    location
    caption summary
    title
    As you can see, if I had one template to build off of, I
    could repeat it self for the others. I need help and if there is a
    flash component (free or purchase) that does at least 70% of what I
    need, please share information. thank you!Portfolio

    I know doing a pushback to the client requires Flex Data
    Services, but since I don't use FDS I can't tell you exactly how.
    But look in the documentation about "pushing" data to the client.
    Once you've figured out how to do that, you can trigger that push
    once you've finished editing the xml file. You may want to ask over
    in the FDS forum.

  • Need help with Xperia Ray Update and software

    Hello,
    I am here to ask about 2 main topics, I need a professional opinion about them,
    First, I was wondering why My ray doesn't have the 3d camera application although I saw it in other Ray phones from another countries - I am from Egypt - Is that an application that comes with the country?!!
    and why I can see a voice dialer application in settings/applications/manage applications, but when I try to find it and use it, I can't find it's shortcut anywhere?
    Second, I received the new ICS system update 4.0.2.A.0.62 but I haven't installed it yet on my mobile, because I'm afraid that it will affect on the speed and battery of my phone, so I really need your opinion about that, is that update going to slow down my phone or not ?
    and if it is going to slow down my phone, is there any other update that might be better.
    Thanks in advance and Merry Christmas to you all.

    it seems that ICS might not be available in your country and/or by your carrier if you want it
    How to manually update 2011 Xperias to android 4.0.4 build number 4.1.B.587 & others
    http://talk.sonymobile.com/thread/38251
    is Sony spying on users in this forum?
    http://talk.sonymobile.com/thread/60197
    Don't forget to mark the Correct Answers & Helpful Answers
    UNRELATED topic, if you have some time please check this thread
    http://talk.sonymobile.com/message/244522#244522
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • I need help with this program ( Calculating Pi using random numbers)

    hi
    please understand that I am not trying to ask anymore to do this hw for me. I am new to java and working on the assignment. below is the specification of this program:
    Calculate PI using Random Numbers
    In geometry the ratio of the circumference of a circle to its diameter is known as �. The value of � can be estimated from an infinite series of the form:
    � / 4 = 1 - (1/3) + (1/5) - (1/7) + (1/9) - (1/11) + ...
    There is another novel approach to calculate �. Imagine that you have a dart board that is 2 units square. It inscribes a circle of unit radius. The center of the circle coincides with the center of the square. Now imagine that you throw darts at that dart board randomly. Then the ratio of the number of darts that fall within the circle to the total number of darts thrown is the same as the ratio of the area of the circle to the area of the square dart board. The area of a circle with unit radius is just � square unit. The area of the dart board is 4 square units. The ratio of the area of the circle to the area of the square is � / 4.
    To simuluate the throwing of darts we will use a random number generator. The Math class has a random() method that can be used. This method returns random numbers between 0.0 (inclusive) to 1.0 (exclusive). There is an even better random number generator that is provided the Random class. We will first create a Random object called randomGen. This random number generator needs a seed to get started. We will read the time from the System clock and use that as our seed.
    Random randomGen = new Random ( System.currentTimeMillis() );
    Imagine that the square dart board has a coordinate system attached to it. The upper right corner has coordinates ( 1.0, 1.0) and the lower left corner has coordinates ( -1.0, -1.0 ). It has sides that are 2 units long and its center (as well as the center of the inscribed circle) is at the origin.
    A random point inside the dart board can be specified by its x and y coordinates. These values are generated using the random number generator. There is a method nextDouble() that will return a double between 0.0 (inclusive) and 1.0 (exclusive). But we need random numbers between -1.0 and +1.0. The way we achieve that is:
    double xPos = (randomGen.nextDouble()) * 2 - 1.0;
    double yPos = (randomGen.nextDouble()) * 2 - 1.0;
    To determine if a point is inside the circle its distance from the center of the circle must be less than the radius of the circle. The distance of a point with coordinates ( xPos, yPos ) from the center is Math.sqrt ( xPos * xPos + yPos * yPos ). The radius of the circle is 1 unit.
    The class that you will be writing will be called CalculatePI. It will have the following structure:
    import java.util.*;
    public class CalculatePI
    public static boolean isInside ( double xPos, double yPos )
    public static double computePI ( int numThrows )
    public static void main ( String[] args )
    In your method main() you want to experiment and see if the accuracy of PI increases with the number of throws on the dartboard. You will compare your result with the value given by Math.PI. The quantity Difference in the output is your calculated value of PI minus Math.PI. Use the following number of throws to run your experiment - 100, 1000, 10,000, and 100,000. You will call the method computePI() with these numbers as input parameters. Your output will be of the following form:
    Computation of PI using Random Numbers
    Number of throws = 100, Computed PI = ..., Difference = ...
    Number of throws = 1000, Computed PI = ..., Difference = ...
    Number of throws = 10000, Computed PI = ..., Difference = ...
    Number of throws = 100000, Computed PI = ..., Difference = ...
    * Difference = Computed PI - Math.PI
    In the method computePI() you will simulate the throw of a dart by generating random numbers for the x and y coordinates. You will call the method isInside() to determine if the point is inside the circle or not. This you will do as many times as specified by the number of throws. You will keep a count of the number of times a dart landed inside the circle. That figure divided by the total number of throws is the ratio � / 4. The method computePI() will return the computed value of PI.
    and below is what i have so far:
    import java.util.*;
    public class CalculatePI
      public static boolean isInside ( double xPos, double yPos )
         double distance = Math.sqrt( xPos * xPos + yPos * yPos );        
      public static double computePI ( int numThrows )
        Random randomGen = new Random ( System.currentTimeMillis() );
        double xPos = (randomGen.nextDouble()) * 2 - 1.0;
        double yPos = (randomGen.nextDouble()) * 2 - 1.0;
        int hits = 0;
        int darts = 0;
        int i = 0;
        int areaSquare = 4 ;
        while (i <= numThrows)
            if (distance< 1)
                hits = hits + 1;
            if (distance <= areaSquare)
                darts = darts + 1;
            double PI = 4 * ( hits / darts );       
            i = i+1;
      public static void main ( String[] args )
        Scanner sc = new Scanner (System.in);
        System.out.print ("Enter number of throws:");
        int numThrows = sc.nextInt();
        double Difference = PI - Math.PI;
        System.out.println ("Number of throws = " + numThrows + ", Computed PI = " + PI + ", Difference = " + difference );       
    }when I tried to compile it says "cannot find variable 'distance' " in the while loop. but i thought i already declare that variable in the above method. Please give me some ideas to solve this problem and please check my program to see if there is any other mistakes.
    Thanks a lot.

    You've declared a local variable, distance, in the method isInside(). The scope of this variable is limited to the method in which it is declared. There is no declaration for distance in computePI() and that is why the compiler gives you an error.
    I won't check your entire program but I did notice that isInside() is declared to be a boolean method but doesn't return anything, let alone a boolean value. In fact, it doesn't even compute a boolean value.

  • Need help with jre-1_5_0_04 windows i586 use windows 98 first edition HELP

    HI,
    this is my first post here so please bear with me while I try to explain the problems I seem to be having here . I hope that someone here can assist me with these issues as well???
    I am using the windows98 first edition, and I wanted to use the latest version of java which I think is this 1_5_0_04 version, but when I get it download it said it is recommended that I not use this version,
    but I work with Yahoo sitebuilder for my online websites and need this verision to get sitebuilder to work?
    Now I read somewhere just dont remember where forgive me, but it said in that artical that there is a workaround or something to that nature to make this version of Java to work with the windows 98 version I am using?
    I do seem to have other versions of java on this PC as well but dont no how to remove them all and where to look to remove the older versions of java if need be to get this latest version of java to work right for me?
    I did the test and it said I have the latest version of the java but like I said it now wont seem to work with this yahoo site builder and it was working before but just mega and I do mean mega sloww???
    can someone please further assist me with this and please, I will need detail step by step as to how to get this java to work with my PC and be workable with the Yahoo sitebuilder as well???
    thanks in advance and I eagerly await some useful steps to try out here .
    I think also that I might need to go in and change paths or classes or something of that nature as well to try to get it to work. the java??
    Now the download took I wanted to mention apart from the install part that said this might not be compatiable with the version of windows that I am useing but I am hopeing again that there is a work around to this issue??
    thanks
    LIBBY

    There is no work around, that Windows version is no longer compatible.
    You can find older versions of Java here:
    http://java.sun.com/products/archive/index.html
    You may want to find the latest version that is compatible with your Windows, and install that.
    I strongly recommend that you uninstall all existing Java versions first. Do that using Windows' Add/Remove Program function.

  • Need help with configuring web root and root url URL

    Hello Folks,
    I have been trying for a while to the flex 4 tutorial which asks you to connect to a mysql database. I have been able to configure the DB but cannot figure out what my web root and root url should be. Is there a web service that needs to be deployed or started. Would it be the IP address of the database that I created ( I tried that ) . I get the idea that an apache service must be started somehow on my flex environment and then I must find the root of the apache server. I dont see an apache directory anywhere. I am finding this difficult to know where to begin.

    Hi,
    First you need to be running a web server on your computer something like wamp/mamp is usually the better choice as most people have had the best success with this server setup(and it has all the current services like php and myssql)
    When you use the wizard the path to your webroot is usually whre you located the wamp/mamp install, for windows it maybe something like c:\wamp\www not 100% sure about macs but I think the 'www' folder on a mac is 'htdocs'.
    your url is either http://localhost or http://127.0.0.1.
    David.

  • Need help with Olympus E-M1 and ACR 8.3 Results

    Hi:
    1.  I'm fairly familiar with photoshop and ACR, but definitely not an expert.   I'm also very familiar with the Olympus RAW files since the E-5 (I've owned the E-5, E-M5 and several Pens);  I now recently purchased the E-M1 and I've been having problems getting decent images out of the RAW files (compared to the prior Olympus RAW files).
    2.  Problem:  it just "feels" that the overall tone curve is more abrupt, especially in the highlights.    With the prior Olympus RAW files, the transition from moving the exposure slider to the right and then getting blown out highlights was more gradual;   there just seems to be an overt decrease in "headroom" when dealing with highlights in the E-M1 RAW files.   I know this makes no sense in that the dynamic range is supposed to be greater with this camera compared to the prior ones.  
    3.  Problem:  In relation to the above issue, it also seems that the highlight slider is not as specific as it used to be in that when I move it to the left, more of the histogram seems to be affected as opposed to the bright / highlight region.   It now seems to  basically counteract any adjustments made to the exposure.   Again, this may be my imagination but it just feels this way.
    4.  Problem: In relation to the above issue, the other strange observation I've had is that although the histogram of the image shows no clipping, the image may have very bright areas with almost imperceptible detail;   when I click on it and view that data point within curves, it shows it to be well below 255.    In my lame flower shot example (it's not a good example but I couldn't find anything else right now), I would have guessed that in the brighest petal area, that it would be something like 250, but it's only 220.   But when I zoom in, there's really no texure or detail or data.  
    5.  The above issue in re: highlight rendering and control may or may not be related but it's the first time, I've been having issues and I've never had such problems with either ACR or prior Olympus cameras and thus I'm wondering if this is some issue with how ACR interprets the E-M1 file.  I did do some comparison with Capture One 7 and that does a definitely better job of highlight recovery in that it seems to more preferentially target just the highlights and definitely does a better job with color rendition.   I have Olympus Viewer 3, but it's so slow and lame, that I haven't done much testing with it.   Any thoughts and advice much much appreciated.

    Also, you might want to upload your raw file, a full-size JPG of what you posted, above, and an example from C1 to www.dropbox.com and post a public link, here, for others to experiment with.

  • Need help with Roland V-drums and MIDI

    Is it possible to record the Roland TD-3 internal drum sounds from the module via MIDI without using the Logic plug-ins (like Ultrabeat) etc.? I used the GM Device drums and in the environment window hooked up the multi instrument to the QuickTime Synth with success. I have also used Ultrabeat as an instrument with success. And audio cables out into audio tracks with success. So, the question is... Is it possible just to run MIDI out and use the TD-3s internal sounds?

    sorry I'm not getting a few things....
    1) how do I create a midi object?
    you create the midi object in the midi inst layer of your environment. at the top left under the menu that says "new" select the very 1st thing in the list, "instrument" (midi instrument)
    2) where do I assign the midi output?
    after you create the instrument the perameters box opens on the left. you assign the port and channel there
    5) where are the audio outs?
    to what? the roland? doesn't it have audio output?
    I've been reading the manual and have tried various
    forums.... been trying to get this since last
    night.... my brain. I know it's gotta be simple...
    not real simple but not real hard either

Maybe you are looking for