[Almost] Typical ClassNotFoundException

I have the typical newbie problem with the ClassNotFoundException... only it's not quite that simple.
First, I made the unfortunate choice to use Windows but I have been compiling and running programs from a Java 6 HowTo book successfully. One of the later chapters called for using the XOM library so I installed the package. When I tried to run the samples I got "could not find the main class: xom-samples.jar:xom-1.1.jar" but this is not about xom (I think).
After trying unsuccessfully to fix the problem I decided to go ahead with the example in my book which worked but when I went to the next example I got this:
Exception in thread "main" java.lang.NoClassDefFoundError: nu/xom/ParsingExcepti
on
Caused by: java.lang.ClassNotFoundException: nu.xom.ParsingException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: DomainWriter. Program will exit.
DomainWriter is the example application which is in the same location as all the other programs I've run successfully. I tried putting it in my classpath along with the xom jars but to no avail.
I also saw something somewhere that led me to believe that putting the required jars in \jre\lib\ext which I also tried.
Could it be that I just needed to reboot the system, not just the command window for these changes to take effect? If so, which were the necessary ones?
TIA,
Bruce

Try running the XOM sample from the same directory where you have extracted the XOM distribution. Here's an example (on UNIX though) which worked:
bss@tomato:~/work/XOM$ ls
apidocs    classes15  fatsrc    lib          overview.html  README.txt  src15     Todo.txt     xom.graffle
build.xml  data       lgpl.txt  LICENSE.txt  project.xml    src         test.xml  xom-1.1.jar  xom-samples.jar
bss@tomato:~/work/XOM$
bss@tomato:~/work/XOM$ java -classpath xom-samples.jar:xom-1.1.jar nu.xom.samples.PrettyPrinter test.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<root xml:base="file:///home/bss/work/XOM/test.xml">
    <ch1 a="44">This is test</ch1>
    <ch1 a="55">Second one</ch1>
</root>
bss@tomato:~/work/XOM$

Similar Messages

  • Changes not displaying properly in the Develop Module

    When I make a change in the Develop Module, the changes are not displayed correctly in the main window, and the navigator window turns grey. When I return to the Library Module, the changed image is correctly displayed. Then when I return to the Develop Module, the changes are correctly displayed. I followed the troubleshooting steps and at one point Adobe says the user permissions might not be right. I created a new user, and in the new user profile, LR works as it should. I am using Windows 7. What do I need to change in the old user's 'permissions' to match the new user's 'permissions'? I would prefer to delete the new user, rather than re-create my computing environment all over again.

    If you see grey windows in Develop it is almost typically a bad monitor profile in Windows. Unfortunately quite common. You should recalibrate the monitor. If you don't own a calibrator, try going into your monitor's properties pane. Go to the Color management tab and delete any profile associated with the monitor.

  • I have an iMac 5.1 with Mac OSX 10.6.8 and 2 GB memory and an L2 cache of 4 GB.   lately I have been receiving error messages of " start up disk almost full; please delete files." is the start up disk the same thing as the hard drive?

    I have an iMac 5.1 with Mac OSX 10.6.8 and 2 GB memory and an L2 cache of 4 GB.   lately I have been receiving error messages of " start up disk almost full; please delete files." is the start up disk the same thing as the hard drive?  I opened the hard drive and from the column on the left of the menu I've selected "search for" and under that " all images" then "all documents"  I've deleted a few files from each. Are documents and images that I have deleted from here also deleted from the folders on my desktop?

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Delete any other mail in your Junk folders. Also, look through your Sent Mail to see if there is anything that can be deleted.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • "DPC_watchdog_violation" happens almost everyday, tried re-installing, is this a hardware problem?

    Hello, I'm from Hong Kong. You guys must be wondering why I'd post in a foreign forum instead of local one - I cant find any support from my local forum. I cant even find this model form my local Website.
    First of all, I brought this laptop (Envy 14) in 2013 from my so called "University Notebook Scheme". But once I got my first Envy, problem arised - my screen keeps flashing. I went back to the store and replaced it with a new one. Yet, this "new one" keeps having "DPC_watchdog_violation" almost everyday, no matter what Im doing - browsing the Net, using iTunes, even when Im using Microsoft Office for my assignments. 
    I've tried many solutions suggested: updating software & drivers, and reinstalling the windows; nothing works. Instead, more problem arised throughout these 2 years: my screen starts to flash, sometimes I cant even turn my computer on (power button on with a black, turned on, screen). I cant update my windows - "Failure configuring Windows updates, Reverting changes" and got stuck in the update loop.
    I'm scared to do anything with this laptop now, even typing this "problem discription". I stored every files into the Dropbox for safety purposes. I save my Word documents every minutes, try to run as less programme as I could.
    I've been wondering if this is a hardware problem, a serious one. Some of my classmates also got this Laptop from the University Scheme as well, most of them reported with the same issue (especially for the screen/display issue). With the notorious HP's repair and warranty service,  I'm discouraged to sent my Laptop to them. I've even heard that I'll be charged even I'm still under warranty.
    P.S. sorry if I have made any grammatical mistakes.

    Additional Information for my Laptop (from WhoCrased):
    System Information (local)
    windows version: Windows 8 , 6.2, build: 9200
    windows dir: C:\Windows
    Hardware: HP ENVY 14 Sleekbook, Hewlett-Packard, 198C
    CPU: GenuineIntel Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz Intel586, level: 6
    4 logical processors, active mask: 15
    RAM: 8351010816 total
    Crash Dump Analysis
    Crash dump directory: C:\Windows\Minidump
    Crash dumps are enabled on your computer.
    On Fri 27/02/15 7:02:39 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\022715-19390-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Fri 27/02/15 7:02:39 AM GMT your computer crashed
    crash dump file: C:\Windows\memory.dmp
    This was probably caused by the following module: iastora.sys (iaStorA+0x770DB)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\drivers\iastora.sys
    product: Intel Rapid Storage Technology driver
    company: Intel Corporation
    description: Intel Rapid Storage Technology driver - x64
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    A third party driver was identified as the probable root cause of this system error. It is suggested you look for an update for the following driver: iastora.sys (Intel Rapid Storage Technology driver - x64, Intel Corporation).
    Google query: Intel Corporation DPC_WATCHDOG_VIOLATION
    On Fri 27/02/15 3:22:12 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\022715-15015-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Thu 26/02/15 7:39:23 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\022615-33093-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Mon 16/02/15 9:27:12 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\021615-23328-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Sat 14/02/15 9:37:59 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\021415-28265-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Wed 28/01/15 3:01:05 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\012815-19171-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Tue 27/01/15 2:44:44 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\012715-33937-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Fri 23/01/15 3:33:59 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\012315-63484-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time.
    On Tue 20/01/15 5:31:56 AM GMT your computer crashed
    crash dump file: C:\Windows\Minidump\012015-18734-01.dmp
    This was probably caused by the following module: ntoskrnl.exe (nt+0x5A540)
    Bugcheck code: 0x133 (0x0, 0x501, 0x500, 0x0)
    Error: DPC_WATCHDOG_VIOLATION
    file path: C:\Windows\system32\ntoskrnl.exe
    product: MicrosoftR WindowsR Operating System
    company: Microsoft Corporation
    description: NT Kernel & System
    Bug check description: The DPC watchdog detected a prolonged run time at an IRQL of DISPATCH_LEVEL or above.
    This appears to be a typical software driver bug and is not likely to be caused by a hardware problem. This problem might be caused by a thermal issue.
    The crash took place in the Windows kernel. Possibly this problem is caused by another driver that cannot be identified at this time. 

  • My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    My MacBook Pro hard drive is almost full and I wish to store my Aperture Library on an external drive, how do I do this and is the use of USB2 suitable or do I need to use a Firewire external hard drive?

    You'll get better performance if you use a Firewire hard drive (especially if you buy a 7200 RPM drive). Firewire's IO speed is significantly faster than USB 2.  USB 2 has a theoretical max speed of 480 Mbps except that it has extremely high over-head.   The fastest speeds you can typically get are about 300 Mbps.   Firewire, on the other hand, has very little overhead.  The fastest speeds you can get are very nearly 800 Mbps.  You will typically be constrained by the maximum read/write speed of the drive, not the speed of the I/O on the Firewire bus.  Now if you had one of those nice shiny new Macs with the Thunderbolt I/O and a Thunderbolt drive (Light Peak) ... I think they alter space and time so that your data arrives before you know you want it. 
    Also... unless you want to buy a solid state drive (very expensive), try to keep your hard drives from becoming much more than about 60% full if you want great performance.  A nearly "full" hard drive is, on average, only about half as fast as the same hard drive when nearly empty.
    USB 2 will work perfectly fine... just not as fast.
    Also... it's much safer to move the entire Aperture library than to "relocate masters".  Your images must be managed.  You can Aperture manage them, or you can manage them.  But someone has to manage them.  If you "relocate" them so that they are no longer stored inside the Aperture library then you'll need to work out a system of how you decide to organize things and it's critically important that you don't start moving files around or deleting things without Aperture's knowledge.  If you do, you'll break the links to your masters and start having problems with missing masters.  If you have Aperture manage the library then you don't need to worry about any of that stuff.... it's safer.
    Do make backups (use the Aperture Vault or use some other backup program, but make sure you back up your work if you care about it.)  There are only two kinds of hard drives in the world:  (1) those that have failed and (2) those that are going to fail.  There are no exceptions to this rule.  Hard drives are cheap.  Backup software is built into Aperture and into your Mac.

  • I just reset my i phone 6, it take so long, almost 1 hour , only 10 per cent completed, is it normal. if not what can i do

    i just reset my i phone 6, it take so long, almost 1 hour , only 10 per cent completed, is it normal. if not what can i do

    PolishAngel756 wrote:
    Some friends have told me that their phone can last up to 2 days without charging??
    If they are getting 2 days without charging, it's unlikely they use their device very much.
    A full day is pretty good....and if I'm careful, I can easily get a full day of usage.
    For me, normal is charging the iPhone mid afternoon at work, but I use it a lot.
    My typical usage is 35 mins of listening to podcasts, checking email, checking my RSS feed, and checking a few apps while I ride my bike when I first get up.  Then listening to several podcasts at work.
    I typically stream music while working out during my lunch hour and use the Men's Health Fitness app to track my progress.
    By about 2pm I'm ready to charge the device as it's getting low (somewhere between 20% and 50%).
    I leave bluetooth, Wi-FI, and location services turned on all the time.
    Personally, I just do not see the point in going into settings to turn on the feature when I need it... just too much hassle.  All of my listening to podcasts and music is via Bluetooth.
    I know I'm not the heaviest user, but I just do not see how anyone can realistically make it two days on a single charge, it makes me think they simply do not use the features of the device and would be just as well served with a basic or feature phone.

  • HT5654 What is the "other" section in my cellular usage and how do I get rid of it? It is taking almost 75% of my usage space.

    It is taking almost 75% of my usage space and I have no idea what it entails and how to get rid of it. I deleted almost all of my pictures and apps, emails, and emptied my safari cache and browsing history.

    "Other" is typically less than a GB.
    More generally indicates a corrupt file(s).
    A restore should resolve.

  • Startup Disk Almost Full, what can i do??

    When I'm adding things to my iTunes, or even just start up my laptop, i keep getting a message that says my startup disk is almost full and i need to delete stuff off of it. Where is the startup disk that i can look at a list of files so i can delete them or is there something else i can do like buy an external hard drive? Or do i just need to update my macbook software?

    It's almost certainly your stuff (music, video, etc) that's filling up the disk.
    On a laptop, your startup disk is typically the only disk.
    It's also the disk where your home directory and desktop are located.
    Start by looking at your home directory, desktop, downloads and such; select the detailed view in Finder, and look for big files, or stuff you don't need any more.
    Empty your trash, too.
    Get yourself an external disk, connect it, and relocate some of your stuff there.
    If you can delete enough stuff to load this, have a look at the [GrandPerspective|http://grandperspectiv.sourceforge.net> tool.
    This forum is the Mac OS X Server forum, and you're almost certainly not running the Server version of the software here. Here are the client forums for the recent client versions: [Tiger client 10.4|http://discussions.apple.com/category.jspa?categoryID=177],
    [Leopard client 10.5|http://discussions.apple.com/category.jspa?categoryID=235], and [Snow Leopard client 10.6|http://discussions.apple.com/category.jspa?categoryID=263]. The Mac OS X client software is far more commonly used on a Mac laptop than is the Server software.

  • Typical size of Acrobat Standard program installation?

    I have Acrobat Standard 9.4.6 installed on my Windows XP machine. (Note that this is Acrobat, NOT the Reader.)
    Is it normal or typical that my C:\Program Files\Adobe\Acrobat 9.0 folder takes up over 2GB of disk space?
    This seems awfully large, especially since my entire C:\Program Files folder is only a bit over 4GB. The Acrobat 9.0 program folder accounts for almost half of that!
    My C:\Program Files\Adobe\Acrobat 9.0\Update folder contains over 1000 files with extension RTP (and a few RTP.BAK). Many of the RTP files are over 13MB in size; the Updates folder is 469MB.
    (I believe the RTP files are leftovers/backups related to past program updates?)
    I can't believe the Acrobat installation needs to be this inefficient with regards to disk space!
    I don't mean to be a crank or a troll, but I have searched Adobe's help resources, these forums and the internet, and there is no information on the size of a typical Acrobat installation anywhere.
    I know someone knows this!  I can't believe that among millions of Acrobat users no one else is interested in this.
    Thanks for any info.

    My Acrobat Pro X is 1.5 GB in size. It hasn't had as many updates to store information into the folder yet. Is 2 GB large yes. However with todays drives 500 GB and larger are typical, I do not think Adobe worries about the ever increasing size of an application with updates. Especially, since they would like you to start with a new version every 18 months to two years.
    With the increasing speed of computers and size of hard drives, these concerns don't really worry computer companies. The days of small tight efficient machine code is long gone. It is not cost effective from computer companies to worry about it. Could Adobe write better smaller code, yes. It might cost much more and work on fewer machines and not be compatible with all of the following Windows XP, Windows Vista, and Windows 7. New versions might take 3 or 4 years to produce. Something that would not make Adobe stockholders happy.
    So, yes Adobe could make things more compact, but are you and tens or hundreds of thousands of others willing to pay the price premium it would cost?

  • Web Server 6.1 and ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    I am trying to set up the Oracle jdbc on Sun ONE Web Server Enterprise Edition 6.1 but do not seem to be having any luck. It seems that OCI and thin fails.
    I have installed the Oracle client in the folder c:\oracle\ora92. I have selected the following items to install in the Oracle client: Oracle 9i Client 9.2.0.1.0, Common files, JDBC/OCI, JDBC/Thin, and Internet Directory Client. (I then downloaded ojdbc14.jar and placed it in jdbc\lib folder.)
    I am seeing the following error: ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    From the following web page:
    <code>
    <%@page language="java"
    import="java.sql.*,
    oracle.jdbc.driver.*,
    oracle.sql.*
    "%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <%
    //connections to ops2
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@wydot-ops2","username","password");
    Statement stmt = conn.createStatement();
    ResultSet rset = null;
    rset = stmt.executeQuery("SELECT AGENCY_NUMID,AGENCY_NAME FROM flightsch.state_agencies ORDER BY agency_name");
    while(rset.next())
    String ag_name = rset.getString("agency_name");
    %>
    <%= ag_name%>
    <%
    } //end of while loop
    rset.close();
    stmt.close();
    conn.close();
    %>
    </body>
    </html>
    </code>
    I have made the following entries into the Sun One Administration pages:
    Java Tab
    JVM path Settings
    Classpath suffix = c:\oracle\ora92\jdbc\lib
    Ignore Env Class Path = on
    Native Lib Path Prefix = c:\j2sdk1.4.2_02\lib
    Native Lib Path Suffix =
    JDBC Connection Pools
    Pool = jdbc-oracle-pool
    DataSource Classname = oracle.jdbc.pool.Oracle.DataSource
    URL = wydot-ops2
    User = username
    Password = password
    (Rest of items = defaults)

    oracle.jdbc.driver.OracleDriver is deprecated, you may be having an issue with that. Try oracle.jdbc.OracleDriver instead.
    Typically you don't need to registerDriver, just load the classes:
    Class.forName("oracle.jdbc.OracleDriver");
    WEB-INF/lib is the correct place to place application jar files, it is part of the automatic CLASSPATH for typical containers.

  • ClassNotFoundException error for Business Operation Exceptions

    I am using WLPI 2.0 with Weblogic 6.0.
    I have written a business operation that calls a method in a java class which
    throws an exception. When
    I perform the business operation and pass good data, it does what is expected.
    However, when I call
    the method with bad data and the method has to throw the exception, the method
    in the java class
    throws the exception but WLPI opens a dialog with the error ClassNotFoundException
    with the name of
    the fully qualified exception class that I threw.
    I have tried putting the class files in a jar file and including the jar file
    in the CLASSPATH of the WLI
    server as well as leaving the classes in a subdirectory and including the subdirectory
    in the CLASSPATH.
    WLPI has no problem find the class that performs the business process, however,
    it can't find the
    Exception class (which is in the same directory) that the business process class
    throws when there is a
    failure. I have the same package names in both files, so I'm not sure why it is
    not finding it.
    Can anyone think of what "t" I don't have crossed?
    My calls and definition of the business operation looks almost exactly like one
    of the examples. I just
    seem to be missing one little thing.
    Eddie

    Folks,
    Never mind. I had the CLASSPATH in the WLPI server set, but
    didn't realize you had to update the worklist classpath as well.
    I would have realized this if the worklist would have needed the
    external class I was calling in the business operation, but now
    see how the worklist must have at least the exception class.
    Eddie
    "Eddie Arnold" <[email protected]> wrote:
    >
    I am using WLPI 2.0 with Weblogic 6.0.
    I have written a business operation that calls a method in a java class
    which
    throws an exception. When
    I perform the business operation and pass good data, it does what is
    expected.
    However, when I call
    the method with bad data and the method has to throw the exception, the
    method
    in the java class
    throws the exception but WLPI opens a dialog with the error ClassNotFoundException
    with the name of
    the fully qualified exception class that I threw.
    I have tried putting the class files in a jar file and including the
    jar file
    in the CLASSPATH of the WLI
    server as well as leaving the classes in a subdirectory and including
    the subdirectory
    in the CLASSPATH.
    WLPI has no problem find the class that performs the business process,
    however,
    it can't find the
    Exception class (which is in the same directory) that the business process
    class
    throws when there is a
    failure. I have the same package names in both files, so I'm not sure
    why it is
    not finding it.
    Can anyone think of what "t" I don't have crossed?
    My calls and definition of the business operation looks almost exactly
    like one
    of the examples. I just
    seem to be missing one little thing.
    Eddie

  • Keep getting a popup window stating" startup disc almost full, need to delete files"

    keep getting a popup window stating" startup disc almost full, need to delete files", what can i do to help with this, i generally have only photos in iphoto, some imovies, and a small amount of documents

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • Submitted my podcast (The Maggy Thump Show) to itunes a month ago, haven't heard from them. Is this typical? Any info/suggestions would be greatly appreciated. Thanks

    Hello! I submitted my podcast (The Maggy Thump Show) to Itunes about a month ago, I
    haven't received any correspondence yet. Is this typical? Please help! Any information,
    suggestions would be really helpful. Thanks

    Hey braswell4AU: I have a similar issue. I purchased 2 iPhone 5's the first day they came out. Black 64gb for myself and white 32gb for my wife. She is having somewhat the same issues as you have. Wifi is weak and keeps dropping the signal, and also her phone almost never has LTE. And we are in a very strong Verizon LTE area in north Los Angeles county. My phone has never had any signal issues, wifi or LTE. I have been researching the issue to no avail. I though maybe the white with the brushed alluminum may cause signal issues, but haven't found anything on that and posts about the black one haven't problems blew that theory up.
        I have also changed the SIM card and the phone itself and still the same problem. I saw a post about someone getting their phone swapped out and the apple rep told him not to restore the phone, but to just set it up as new. I have yet to try it, gonna try this weekend.. But it makes sense! I, like you have 6 apple devices (2 iPhone 5's, 2 iPhone 4's apple tv3, and the ipad3) and have no issues running all my devices via router.
         So I am thinking about the history of the restores and backups and my wife is the only one that went from the 4 to the 5.. Every other device was setup as new. So my theory is that he iphone 5 has issues when you restore from previous backups.. Maybe something a little different from the backups of the previous models create issues in the iPhone 5's?
         Like I said, I'm going to give it a shot this weekend and see what happens. If you get a chance to try this before, please let me know if it works and if I try before you I will update you.
        Good luck and hopefully we can get these wonderful phones working like they should!
      Nate

  • ClassNotFoundException trying to replication session state...

              Help! This has been bugging me for almost a week now and noone's been able to shed
              any light on it. My evaluation of the product is about to end and, as things currently
              stand, I've concluded that "it doesn't work"! Surely that's not right?!
              I'm getting a ClassNotFoundException when I try to store one of my classes in
              the session.
              If I have session state replication disabled then I don't get it. As soon as I
              enable replication it gets thrown. Clearly 6.1b is unable to replicate my object
              to the secondary server. Session persistence and failover is working fine with
              Strings, ArrayLists etc. It doesn't want to know about my Serializable class,
              though!
              The class is definitely on both servers since I've deployed the web application
              from the admin server and can successfully run the application on both servers
              in the cluster. It's just the persistence mechanism that is unable to find the
              class!
              Anyone got any ideas as to what I'm doing wrong?
              I'm not too keen on having to replace 6.1b with 6.0sp2 since 6.1b was recommended
              by BEA support for our evaluation and it would undo a week's work.
              Thanks,
              K.
              

    Which machine gets the error, the primary where you are doing the
              session.putValue() or does it appear on the replicated server?
              I assume your class is Serializable..
              Is the class in question in the Java classpath, or just in the web app? Try
              placing the class in the java classpath during boot on both sides, see if
              that helps.
              A full error stack would be helpful..
              -Greg
              "KPSeal" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Help! This has been bugging me for almost a week now and noone's been able
              to shed
              > any light on it. My evaluation of the product is about to end and, as
              things currently
              > stand, I've concluded that "it doesn't work"! Surely that's not right?!
              >
              > I'm getting a ClassNotFoundException when I try to store one of my classes
              in
              > the session.
              > If I have session state replication disabled then I don't get it. As soon
              as I
              > enable replication it gets thrown. Clearly 6.1b is unable to replicate my
              object
              > to the secondary server. Session persistence and failover is working fine
              with
              > Strings, ArrayLists etc. It doesn't want to know about my Serializable
              class,
              > though!
              > The class is definitely on both servers since I've deployed the web
              application
              > from the admin server and can successfully run the application on both
              servers
              > in the cluster. It's just the persistence mechanism that is unable to find
              the
              > class!
              >
              > Anyone got any ideas as to what I'm doing wrong?
              >
              > I'm not too keen on having to replace 6.1b with 6.0sp2 since 6.1b was
              recommended
              > by BEA support for our evaluation and it would undo a week's work.
              >
              > Thanks,
              > K.
              

  • What is "activateSettings" and why is it almost freezing my Mac?

    I recently upgraded to Mac OS X 10.5, then to 10.5.8 via the Combo update. Everything seemed fine at first, but I am regularly experiencing problems, at unpredictable times that I haven't been able to associate with any specific applications or actions.
    Unpredictably, everything will become glacially slow. Practically any click on any window will evoke the spinning pizza wheel. Attempting to launch almost any application, such as Activity Monitor, will result in that application bouncing in the Dock for over a minute.
    Whenever this happens, I know exactly what I will find: if I try to shut down or restart the Mac, I will get a message saying "The application 'activateSettings' cancelled shutdown." However, if I press control-option-Escape, there is no such application. Nor is there any process by that name in the Activity Monitor. I do not see them if I look before shutting down, nor do I see them after I get the message. Nor does a search of the hard drive uncover any such application.
    What is "activateSettings" and what is it doing?

    Could be, I'll have to start paying attention. Typically Mail is open continuously... I check mail soon after I log in and leave it open.
    I haven't seen it yet on my brand new spiffy Mac Mini running 10.6.2 but I've seen it on an oldie-but-goodie Power Mac running 10.5.8, so whatever it is, it isn't limited to one specific system or user account.
    I still want to know what "activateSettings" IS. Why isn't it posting the name of the actual application that's cancelling shutdown? Or, if there is some application named "activateSettings" why can't I find it with Spotlight?

Maybe you are looking for