Starting tomcat problem, please help urgent

I installed jwsdp on windowsXP . The log file gives this following error when i try to start tomcat:
java.util.zip.ZipException: Access is denied
     at java.util.zip.ZipFile.open(Native Method)
     at java.util.zip.ZipFile.<init>(ZipFile.java:127)
     at java.util.jar.JarFile.<init>(JarFile.java:138)
     at java.util.jar.JarFile.<init>(JarFile.java:80)
     at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1081)
     at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
     at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:141)
     at java.lang.reflect.Method.invoke(Native Method)
     at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: Access is denied
     at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1109)
     at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:200)
     at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:202)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:141)
     at java.lang.reflect.Method.invoke(Native Method)
     at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
PLEASE HELP ,URGENTLY NEEDED TO SHOW SOME WORK ON THIS.
THANKS
jim

Hi,
I have a similar problem, i try to deploy a JAR file built on AIX 5.2 platform (jvm 14.1) into Tomcat 5.5.7 running on Windows platform when i try start Tomcat it's fail with the fellowing message
SEVERE: Error deploying web application directory usi
java.lang.IllegalArgumentException
     at java.util.zip.ZipInputStream.getUTF8String(ZipInputStream.java:299)
     at java.util.zip.ZipInputStream.readLOC(ZipInputStream.java:238)
     at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:73)
     at java.util.jar.JarInputStream.<init>(JarInputStream.java:58)
     at java.util.jar.JarInputStream.<init>(JarInputStream.java:43)
     at org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:368)
     at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:187)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3942)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
     at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
     at org.apache.catalina.core.StandardService.start(StandardService.java:450)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

Similar Messages

  • I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT

    If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699

  • Triggers problem - please help - urgent !!

    To all experts, please help me with this problem - need answer
    urgently. Thanks in advance.
    Using Oracle 8 Rel 8.0.6
    I have 2 tables (table Y, table Z).
    In the 'after insert upd del on each row trigger' (lets call it
    AIUD trigger)on table Y, based on certain criteria, I insert a
    record in table Z.
    New requirement is that whenever a record is inserted in table Z
    (fyi, inserting any record in table Z is possible only when
    records are inserted in table Y as mentioned earlier thro the
    AIUD trigger - i.e. there is no frontend way to insert records
    in table Z), if certain (new) criteria is satisfied, I should
    insert 1 record in both, table Y and table Z.
    I tried to create meet the new requirement by adding code to
    existing AIUD trigger but ran into mutating tables error. So I
    dropped this idea.
    I have now created 'after insert on each row trigger' (lets call
    it NEW_TRIGGER) on table Z to meet the new requirement but have
    these 2 problems :
    1) the trigger always compiles with errors
    2) if I still go ahead and insert a record in table Y, I get the
    foll error msgs :
    ORA 4098 - NEW_TRIGGER is inv
    ORA 6512 at line xxx on AIUD
    ORA 4088 error during execution of trigger AIUD
    What is the best way to work on this requirement or what am I
    doing wrong ?
    Thanks again,
    AG.

    Your restatement of the problem merely confirms what the previous
    posting said. You cannot write a trigger on table Y that inserts
    a record into table Y: that's the mutating trigger problem
    (there's oodles of postings on the subject, not to mention
    online Oracle docs). You could write a trigger on table Z that
    inserts into table Y - but you need to be able to see the value
    I3 which (presumeable) you can't.
    One solution is to use code the trigger on table Y to submit a
    call to DBMS_JOB which initiates a procedure that inserts a
    record into table Y.
    You must remember that the new record in table Y must never
    include the value I3, otherwise you'll end up w/ an infinite
    loop.
    rgds, APC

  • Hp not starting serval problems please help

    Hello, when i try to turn on my computer it says the following error :
    Windows has encountered a problem communicating with a device connected to your computer This error can be caused by unplugging a removable storage device such as an external usb drive while the device is in use, or by faulty hardware such as a hard drive or cd-rom drive that is failing. Make sure any removable storage is properly conected and then restart your computer. If you continue to receive this error message, contact the hardware manufacturer.
    Status: 0xc00000e9
    Info : an unexpected I/O error has occured
    My laptop is a pavilion dv6
    Please help me because i paid alot for this laptop
    This question was solved.
    View Solution.

    Replace your hard drive. A retail hdd can be used, just be sure to get one with at least as large a capacity as original in order to use HP Recovery Discs to install Windows. For instance if you have a 320gb a 500gb could be used but not a 250gb.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Mac OS x/ finder/ hard drive/ start up.... problems PLEASE HELP URGENT!!

    Right
    firstly my finder icon on the dock the little triangle to show it on disapers. meaning all the icons on the desktop disapear! Then i restart to get them back but it loads the grey screen then goes to blue and nothing else. So i restart but hold down the ALT key to see drives and i calls my HD EMI drive or something so i boot from Backup cd 1 and have to reload Mac OS x Again for the second time today! what is going on and how can i fix it?

    Michael,
    First,Back up all important files.Then...
    Run Apple Hardware Test from OS X Install Disk #1.
    If it reports any problems,believe it and call AppleCare to have MacBook repaired.
    If AHT reports "No problems found",I'd recommend an Erase and Install of OS X.
    Let us know the outcome either way.
    Jim
    PowerBook G3 500 Mhz "Pismo"/ 2.0Ghz BlackBook 2GB OWC RAM   Mac OS X (10.4.8)  

  • Tomcat problem please help

    hello,
    i'm using tomcat 3.1 and i have a problem to run my servlet.
    I have a jsp called MyPage.jsp
    in this jsp page i have the following line of code:
    <FORM METHOD="post" ACTION="servlet/package1.MyServlet1">
    in tomcat this is my Structure:
    jakarta-tomcat
    webapps
    MyWebApp (in this folder i have put MyPage.jsp)
    web-inf
    classes
    package1 (in this folder i have put MyServlet1.class)
    there is no problem to display my jsp page but i submit my page
    Myservlet1 is not found
    can someone help me? please
    thank you.

    Hello,
    try this:
    <FORM METHOD="post" ACTION="package1.MyServlet1">
    ciao
    Ric

  • IBook G3(Dual usb) Start up problem (Please Help asap....)

    Like I have Write it on the title i have problem with my old ibook g3
    It was working cool... so after one day when i try to turn it on.. It doesn't work... It make ''The startup sound'' after that only black screen .. sometimes it show a ''question mark'' on apple face and a apple icon
    I have try different methodes but it doesn't work..
    I have reset with PMU but still not work..
    Please Tell me what do i have to do to fix it ..
    Thnx Apple ..

    You don't remember what version of the OS is installed on it?
    If it has Mac OS X 10.2 or later, you could try starting up in Safe Mode. If this works, it will take quite awhile longer than a normal startup because it does a file check and repair of the hard disk.
    Note: If the OS is earlier than Mac OS X 10.2, a Safe Boot is not an option. That is why I asked which version of the OS is installed.
    If a Safe Boot into Safe Mode works you will see your normal desktop. Once completely started up in Safe Mode, try to restart normally, and go to Applications > Utilities > Disk Utility. Click on the top hard drive icon in the left sidebar and note the S.M.A.R.T. status at the bottom right of the pane. What does it say?
    Select the named boot volume in the left sidebar, ("Macintosh HD" unless you've renamed it). What is the hard drive capacity and how much space remains available on it? Repair permissions on it.
    See if you are able to do a little hard drive maintenance to help things out.
    Do you have access to another Mac with FireWire? If so, you could try starting up In _FireWire Target Disk Mode_ with the iBook as the target disk. If this works, it will act like an external hard drive to the other (host) computer and will enable you to retrieve data from the iBook and save it to the hard drive of the other (host) computer.
    Without the system discs or knowing what version of the OS is installed, we are a bit stymied in helping you out. If a Safe Boot and/or resetting the PMU doesn't help, then you are going to have to take it in for repairs. (Please note: paying for repairs may cost more than the iBook is worth.)
    Good luck.

  • MSI GE70 2OE-029CZ Start-up problems, please help

    Hello guys. My name is Mike and I need some help from you. Half year back I bought notebook MSI GE70 2OE-029CZ from Czech Republic and it wont boot up now. I used this notebook normally without problems until now. Four days back I finished my work and turned notebook off. Next day, after I came back home, I turned notebook on and suddenly it turned off after 4 seconds. It showed only MSI logo, I did not get in to bootloader. Then I turned it on again and same thing happened again. Except it was running only 1-2 seconds. After this notebook did not start up again. I have checked power supply with voltmeter and got suitable voltage. I did let the battery to discharge little over night and in the morning I tried to put it on charger. The battery diode lighted up. But still could not start it up. I already filled out MSI Service webform yesterday, but still did not get any response. Im just posting it here if someone of you has some idea i could try. Also does anyone got any idea why are mine audio jacks not golden? They are just black. I supposed they had to be golden plated. Sorry for my bad grammar, I am not born English speaker . Thank you for you help and time.

    Hello,
    I am sorry you experience this problem and probably I would be frustrated if such a thing would happen to me.
    Sorry if I dis-read something, but have you tried turning the laptop ON without the battery just with charger? And other way around (with FULL battery but no charger)?
    About HDD: you can take it out, but would be BEST if you make backup somewhere once you take it out and send it TOGETHER with the laptop, as the problem might be somewhere with the wires.

  • Logic start up problems please help

    Recently every time for no apparent reason at all when Logic 7.1.1 launches I seem to always get a Error code saying 'Error Code 1 was returned by Coreaudio.
    I have downloaded the latest RME drivers for my Multiface version 1 but still i get the same problem.
    I must say that once I click on the error continue button Logic opens as normal and I can proceed to have a good session with out any crashes.
    I have also reinstalled logic a few times and trashed my prefs and caches but it still doesn't seem to matter.
    if anyone can help please as I find it as very annoying

    Hi,
    Maybe you installed a new plug-in recently? I've gotten this message before when a plug-in is not quite compatible.
    Cheers

  • Frozen on Start Up Screen - Please Help (Urgent)

    I've had my mac Mini for a little over a year now and have not once had a problem with it. When I came home from work yesterday there had been a powercut and naturally my mac mini had switched off. When i tried to turn it back on it made the chime and went into the start up screen (with the mac logo and the little spinning thing) i was waiting half an hour for it to get off this screen but it did not. When i restarteed the computer i had the same problem, i left it on over night to see if it was just going to take time to load but by this morning nothing had changed (same loading screen on moniter).
    I Have tried to reset the PMU (or whatever its called) and i still have the same probelm.
    Help desperatly needed as the computer has two years worth of school work and writing on it not to mention music and movies than ive made for my uni course!
    Many thanks in advance
    Henry

    OK, so it looks like when the mini crashed, it ended up corrupting the drive directory structure - possibly it was in the middle of a write operation when the power failed.
    The good news is that rarely does this cause a hardware fault, so there is like as not, nothing wrong with the system that can't be fixed.
    However, the bad news is that without a disk recovery utility, such as DiskWarrior or Tech Tools Pro, neither of which are absolutely certain to work) the only way to get the system back under normal control is to reformat the drive, since this will rewrite the directory structure. And of course reformatting will loose your data. In this situation, simply trying to reinstall MacOS won't work since the system has errors on the drive that will prevent data being safely written. Also, any and all disk write activity risks overwriting your data since the faults generally will indicate that MacOS won't know for sure where your data is, thus make it possible to write over the top of it.
    Since iTunes won't allow you to download again, and it appears you don't have any backups, I think you have few options to consider:
    1 - buy a copy of DiskWarrior or Tech Tools Pro and try and recover the drive that way. The disadvantages are that this will cost you some money, and there's no certainty it will work, but if it does, the advantage is that you could restore your drive (and thus system) to full operational status with little effort.
    2 - get hold of (meaning buy or borrow from someone else) an external firewire drive onto which you can install a copy of MacOS with which to boot your system. Once booted, then use the drive to copy off your files, then once backed up, do an Erase and Install using your original install disk to reformat the hard drive and put back a working copy of MacOS. Once done, you can then copy your files back from the external hard drive.
    3 - if you have another Mac available to you, connect your mini to it with a firewire cable and start it up holding the T key to put it into firewire target disk mode. It should then appear on the other Mac's desktop as an external drive and thus allow you to access your files and back them up.
    Beware however that if the directory structure on the mini's hard drive is messed up, there is no certainty that you can recover all your data since the data may not be entirely intact, or indeed, in the locations the directory structure tells the system it is in. As a result, the best option from the 3 above is the first - to try and repair the directory using one of those two utilities.

  • D:\oracle\product\10.2.0-Console access problem-please help urgent.

    I have installed D:\oracle\product\10.2.0, each times i create a db on it the console work fine, but when I close my computer then restarts it I can get in to the console again.
    some people said that one shouldn't be on net while installing it, so I wasn't on net.
    Then I tried to start the service as windows service it can not start.
    where can I look in the oracle config ? to deal with the problem ?
    Thanks.

    Is your computer configured with DHCP? If so, did you configure the loopback adapter?
    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14316/reqs.htm#BABGCEAI
    Logs are written to ORACLE_HOME/<machine_name>.<dbsid>/sysman/log

  • Error starting application server -Please help (Urgent)

    Hi
    Please suggest how to get over the below error while running opmnctl startall command
    [root@navisdb bin]# ./opmnctl startall
    opmnctl: starting opmn and all managed processes...
    ================================================================================
    opmn id=navisdb.igglobal.com:6200
    0 of 1 processes started.
    ias-instance id=express.navisdb.igglobal.com
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    OC4J/home/default_island
    Error
    --> Process (pid=27083)
    time out while waiting for a managed process to start
    Log:
    /oracle/u01/app/OraHome_1/opmn/logs/OC4J~home~default_island~1
    On Checking server.log at location /oracle/u01/app/OraHome_1/opmn/logs/OC4J~home~default_island~1 getting following error.
    isdb.igglobal.com#12601
    10/05/11 11:33:17 10.1.2.0.2 Started
    10/05/11 11:33:18 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    10/05/11 11:33:18 Recovery completed, 0 connections committed and 0 rolled back...
    10/05/11 11:33:18 10.1.2.0.2 Started
    10/05/11 11:33:24 Published an event: C_192.168.4.161.121f1d.12871b0a9da.-8000#express.navisdb.igglobal.com#1724121101#D#home#default_island&navisdb.igglobal.com&HTTP:navisdb.igglobal.com#12501&RMI:navisdb.igglobal.com#12401&JMS:navisdb.igglobal.com#12601
    Enviornmnet: Oracle application server 10g on Red hat linux

    On checking the status i am getting following.How to make OC4J and dcm-daemon process Alive
    $ ./opmnctl status
    Processes in Instance: express.navisdb.igglobal.com
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    DSA | DSA | N/A | Down
    LogLoader | logloaderd | N/A | Down
    HTTP_Server | HTTP_Server | 8085 | Alive
    dcm-daemon | dcm-daemon | N/A | Down
    WebCache | WebCache | 8092 | Alive
    WebCache | WebCacheAdmin | 8086 | Alive
    OC4J | home | N/A | Down

  • Installation problem, please help, urgent needs,

    I have install the FCP 7 into my MBP, and updated, but in the "add behavior" tap i don't have those new behavior like "text-basic" "text-continuous" "text-energetic" etc..... how can i add it back?
    urgent needs, please help

    fixed

  • ZIP problem - Please help -URGENT

    Below there is a program which updates an OpenOffice file, in fact a zip file.
    It works fine on window but on Netware I receive an exception
    java.util.zip.ZipException: invalid entry CRC-32
    (expected oxffffffffc0f3d518 but got 0xc0f3d518)
    Any ideas is great appreciated. Thanks!
    ================
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import java.util.jar.*;
    class test {
    public static void main(String []args){
         test ob=new test();
         ob.updateZipEntry("data://test.sxw","content.xml","data:");
    void updateZipEntry(String jarName, String fileName, String location){
         try {
         File jarFile = new File(jarName);
         File tempJarFile = new File(jarName + ".tmp");
         JarFile jar = new JarFile(jarFile);
         boolean jarUpdated = false;
         try {
         Manifest jarManifest = jar.getManifest();
         JarOutputStream tempJar = new JarOutputStream(new FileOutputStream(tempJarFile));
         byte[] buffer = new byte[1024];
         int bytesRead;
         try {
         FileInputStream file = new FileInputStream(location+"//"+fileName);
         try {
         JarEntry entry = new JarEntry(fileName);
         tempJar.putNextEntry(entry);
         while ((bytesRead = file.read(buffer)) != -1) {
         tempJar.write(buffer, 0, bytesRead);
         finally { file.close(); }
         for (Enumeration entries = jar.entries(); entries.hasMoreElements(); ) {
         JarEntry entry = (JarEntry) entries.nextElement();
         if (! entry.getName().equals(fileName)) {
         InputStream entryStream = jar.getInputStream(entry);
         tempJar.putNextEntry(entry);
         while ((bytesRead = entryStream.read(buffer)) != -1) {
         tempJar.write(buffer, 0, bytesRead);
         jarUpdated = true;
         catch (Exception ex) {
         System.out.println(ex);
         tempJar.putNextEntry(new JarEntry("stub"));
         finally { tempJar.close(); }
         finally {
         jar.close();
         if (! jarUpdated) { tempJarFile.delete(); }
         if (jarUpdated) {
         jarFile.delete();
         tempJarFile.renameTo(jarFile);
    } catch(IOException e) {}
    } // end updateZipEntry
    }

    It's Netware for sure.
    That's the only error message I get:
    java.util.zip.ZipException: invalid entry CRC-32
    (expected oxffffffffc0f3d518 but got 0xc0f3d518)
    Why does it run on w2k?
    Thanks!
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import java.util.jar.*;
    class test {
    public static void main(String []args){
         test ob=new test();
         ob.updateZipEntry("data://test.sxw","content.xml","data:");
    void updateZipEntry(String jarName, String fileName, String location){
              try {
               File jarFile = new File(jarName);
               File tempJarFile = new File(jarName + ".tmp");
               JarFile jar = new JarFile(jarFile);
               boolean jarUpdated = false;
               try {
                  Manifest jarManifest = jar.getManifest();
                  JarOutputStream tempJar = new JarOutputStream(new FileOutputStream(tempJarFile));
                  byte[] buffer = new byte[1024];
                  int bytesRead;
                  try {
                     FileInputStream file = new FileInputStream(location+"//"+fileName);
                     try {
                        JarEntry entry = new JarEntry(fileName);
                        tempJar.putNextEntry(entry);
                        while ((bytesRead = file.read(buffer)) != -1) {
                           tempJar.write(buffer, 0, bytesRead);
                     finally { file.close(); }
                     for (Enumeration entries = jar.entries(); entries.hasMoreElements(); ) {
                        JarEntry entry = (JarEntry) entries.nextElement();
                        if (! entry.getName().equals(fileName)) {
                           InputStream entryStream = jar.getInputStream(entry);
                           tempJar.putNextEntry(entry);
                           while ((bytesRead = entryStream.read(buffer)) != -1) {
                              tempJar.write(buffer, 0, bytesRead);
                     jarUpdated = true;
                  catch (Exception ex) {
                     System.out.println(ex);
                     tempJar.putNextEntry(new JarEntry("stub"));
                  finally { tempJar.close(); }
               finally {
                  jar.close();
                  if (! jarUpdated) { tempJarFile.delete(); }
               if (jarUpdated) {
                  jarFile.delete();
                  tempJarFile.renameTo(jarFile);
         } catch(IOException e) {}
    } // end updateZipEntry
    }

  • Showing total of PRICE using 3 tables PROBLEM, please help URGENT??

    Hi i am trying to calculate the order total in my database for a given order number.
    I need to use 3 tables for this:
    customer table:
    CREATE TABLE customer
         (custid NUMBER(5),
         last VARCHAR2(30) CONSTRAINT customer_last_nn NOT NULL,
         first VARCHAR2(30),
         mid_initial CHAR(1),
         cadd VARCHAR2(30),
         town VARCHAR2(30),
         city VARCHAR2(30),
         postcode VARCHAR2(10),
         dphone VARCHAR2(10),
         ephone VARCHAR2(10),
         CONSTRAINT customer_custid_pk PRIMARY KEY (custid));
    orders table:
    CREATE TABLE orders
         (orderid NUMBER(8),
         orderdate DATE CONSTRAINT orders_orderdate_nn NOT NULL,
         methpmt VARCHAR2(10) CONSTRAINT orders_methpmt_nn NOT NULL,
         custid NUMBER(5),
         ordersource VARCHAR2(20),
         CONSTRAINT orders_orderid_pk PRIMARY KEY (orderid),
         CONSTRAINT orders_custid_fk FOREIGN KEY (custid) REFERENCES customer(custid),
         CONSTRAINT orders_ordersource_fk FOREIGN KEY (ordersource) REFERENCES           ordersource(ordersource));
    And finally orderline table:
    CREATE TABLE orderline
         (orderid NUMBER(8) CONSTRAINT orderline_orderid_nn NOT NULL,
         invid NUMBER(10) CONSTRAINT orderline_invid_nn NOT NULL,
         order_price NUMBER(6,2) CONSTRAINT orderline_order_price_nn NOT NULL,
         quantity NUMBER(4) CONSTRAINT orderline_quantity_nn NOT NULL,
         CONSTRAINT orderline_pk PRIMARY KEY (orderid, invid),
         CONSTRAINT orderline_orderid_fk FOREIGN KEY (orderid) REFERENCES orders(orderid),
         CONSTRAINT orderline_invid_fk FOREIGN KEY (invid) REFERENCES inventory(invid));
    INSERT INTO CUSTOMER VALUES (107, 'HARRIS', 'PAULA', 'E', '1156 WATER STREET', 'KENSINGTON','LONDON', 'SW1 6DS', 02071555589, 02071555590);
    INSERT INTO ORDERs VALUES (1057, TO_Date('05/29/2001 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'), 'CC', 107, '152');
    INSERT INTO ORDERLINE VALUES (1058, 11824, 15.99, 1);
    Here is my code:
    SET SERVEROUTPUT ON;
    DECLARE
    v_odNum NUMBER(8):= &sv_orderNum;
    v_price NUMBER(7,2);
    v_quantity NUMBER(5);
    v_fname VARCHAR2(30);
    v_lname VARCHAR2(30);
    v_add VARCHAR2(30);
    BEGIN
    SELECT first, last, cadd, order_price, quantity, SUM(order_price * quantity) AS TOTAL
    INTO v_fname, v_lname, v_add, v_price, v_quantity
    FROM customer c, orders o, orderline ordl
    WHERE c.custid = o.custid AND o.orderid = ordl.orderid
    AND v_odNum = o.orderid
    DBMS_OUTPUT.PUT_LINE('The total order for' ||v_odNum|| ' '|| 'is' || TOTAL);
    END;
    Is there anyway of using the SUM function so that i can store the result in a variable and display it similar to the ouput code??
    P.S sorry for the length coding, but there is no code tage in the thread that i can see to make it more managable.

    A procedure with an OUT parameter which returns the total order cost should work.

Maybe you are looking for

  • While executing DTP in DSO getting Error?

    Hi, I am extracting the data from a flat file..I am loading the data to DSO. While executing DTP i am getting this error "Dump: ABAP/4 processor: SAPSQL_AMBIGUOUS_FIELDNAME" My fields are SID,SNAME,SADD,SMOB. I did twice but again i am getting same e

  • Windows 8.1 Pro Final (6.3.9600)

    Have a clean installation of Windows 8.1 Pro final (volume) since released date. Meanwhile until now it still cannot activated via KMS server perhaps not injected yet, online activation also not work. Current license status is "notification". Is this

  • Can I still purchase an earlier version of InDesign/Photoshop?

    I have CS6 on my desktop computer and need to purchase InDesign and Photoshop for my laptop as well. I don't want to purchase the CC version, because it's very frustrating having to save things as idml all the time. Can I still purchase CS6? If not,

  • I can't sync one specific song to my ipad.

    Really strange, because I can add it to play lists and play in on my PC, and on my iTouch, but can't send it to my iPad.  Any ideas?

  • How to call VB program from PL/SQL ?

    hi, i use oracle8i and i would like to call program VB from Stored procedur or PL/SQL program. Is it possible and how? thanks