Problem using Jar to include external jars in an application

Ok so, I've just completed a project, and i want to be able to jar it up so its executable by just using the jar file. I can do this, and it will load the first screen. However, i used eclipse to develop it so I just added two files to the eclipse path and it all worked. But when I jar up my application (and include the two external jars in my app), and try to use any class that needs the external jar, it dies and says java.lang.NoClassDefinitionError: javax/servlet/http/HttpServlet
How do i set it up so it actually finds the classes in the external jar?? Its fairly important that i get this to work :)

If this app is not running as part of Tomcat, you have two options. One, as ejp pointed out, is to put the missing jars into your $JAVA_HOME/lib/ext dir. If you've already tried that and it's not working, then the jars your putting there do not have the necessary classes in them. Use 'jar -tf <jarname>' to see a list of the classes in the jar.
The second approach, which it sounds like you've already tried, is using the Class-Path entry in the Manifest file. You must make sure that the jar you're referencing (servlet.jar) has the missing classes in it, and that the jar is in the same directory as the application jar. Another potential gotcha with this approach is to make sure that the jar is not indexed (they're not indexed by default).

Similar Messages

  • Problem Using Aperture as an External Editor

    I'm having a problem using Aperture as an external editor for iPhoto. I've set preferences to "Edit in Aperture" and selected the Aperture application. When I click edit a photo in iPhoto, Aperture fires up as expected, but it does not load my photo. Nothing seems to be exported from iPhoto into Aperture.
    I can export the same photo to my desktop and then load it into Aperture fine.
    When I set preferences to edit in CS2, this works fine, only Aperture seems to be the problem.
    What am I doing wrong?
    I'm using the following versions:
    - iPhoto 7.0.2
    - Aperture 1.5.4

    If you have Photoshop CS2 then you'd have a better editor using it within iPhoto as follows:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Major problems using DV cam with external drive connected. HELP

    I am running Final Cut Pro 5.0.4 and Quicktime Pro 7.0.4 and I want to use one of my external Firewire drives as my scratch disk, and when I connect my Canon GL2 FCP either crashes if it is open, or hangs when trying tro start uo if external hard drives are connected. As I need to use an external to capture to I really need to resolve this A.S.A.P.
    Thanks in advance for your reading and replying to my post,
    Sebastian

    firewire external hd is a perfectly acceptable medium for capturing footage. it works pretty flawlessly and has little issues or problems
    This type of blanket statement really can't be supported in my view.
    There are issues with single bus firewire captures.
    And many cams, including Canons, don't play well with firewire hard drives on the same bus.
    Glad it works for you, but that's doesn't mean it works for everyone.
    You might want to take a peak at this:
    http://www.adamwilt.com/Tidbits.html#FireWireFrustrations

  • Big problem- using ipod as an external Drive

    Hello
    Right now i am tring to save my School work (i do Homeschool) on myipod, using it as an External Drive. I plug my ipod, amd i go to my computer, and i see the ipodd drive, i open it, and after 5 seconds it colses by itself. Itunes does not open eiter, what shall i doÉ its really urgent!
    (doe sit have to do ith disabling Disk Mode? if yes, tell me how...cuz my itune is in French...and i do now how ou call that in French)
    Chris

    If you restore the iPod you will delete the files, so don't do it unless you have backups. Sorry I don't know about the error code.

  • Problem when using inlineFrame to include external web page.

    I built a ADF web application which include some external web pages.
    I use the ADF components: panelTabbed + showDetailItem + inlineFrame.
    Each tab is point to a external web page. see my code belows:
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1"
    disclosureListener="#{myBackingBean.disclosureListener}">
    <af:inlineFrame source="http://www.baidu.com" id="ilf1" shortDesc="4444444444"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if1" source="query_refresh_by_poll_2.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:inputText label="Label 1" id="it1"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi4">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    It almost done except one thing: When I switched the tab back and forth, the input parameter in the previous tab will be lost.
    It seems af:inlineFrame always reload the page and clear every input by user !
    How to preserve the user input when switched the tab back and forth?
    Thanks.

    Hi Frank, thanks for you reply.
    Let me explain my case again to make sure you know what I want to do.
    because I do think it is a usual requirment, I want you give me a clear answer about it.
    In my ADF web App, I have 3 pages: main.jsf,untitled1.jsf,untitled2.jsf
    main.jsf content:
    <af:form id="f1">
    <af:panelTabbed id="pt1">
    <af:showDetailItem text="showDetailItem 1" id="sdi1">
    <af:inlineFrame id="if1" source="untitled1.jsf"/>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 2" id="sdi2">
    <af:inlineFrame id="if2" source="untitled2.jsf"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:form>
    untitled1.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    untitled2.jsf content:
    <af:inputText label="Label 1" id="it1"/>
    Run main.jsf, in tab1, fill someting in the inputText, then click tab2, then click tab1 back, the input text that I just entered was cleared.
    I want to keep the user input when switch between the tabs.
    Is it possible in ADF?

  • Reports using xsl:fo - include external pdf

    Not strictly an Apex question, but posted here as the application is in Apex.
    I have a report layout defined in xsl:fo in my application. As part of this report, I also need to pick up an external pdf file (scanned document) and print with the report. I have added the external document to my fo definition as follows:
    <fo:page-sequence master-reference="portraitblank">
    <fo:flow flow-name="region-body">
         <fo:block>
              <fox:external-document content-type="pdf" src="url('http://myhostaddress:8088/filepath/docname.pdf')" />
         </fo:block>
    </fo:flow>
    </fo:page-sequence>
    (Obviously the url of the file is not as shown above, this is just for example purposes)
    If I do not have the above, my report generates 100%. When I include the external pdf, however, the report fails with a "File does not begin with '%PDF-'" error. I have opened the external pdf with Notepad, and it does start with '%PDF-'
    Any suggestions?

    After much browbeating and head scratching, I now know where the problem is - but not yet how to fix it. The apex_fop supplied with apex does not contain the java packages which enable the use of xsl:fox extensions. Either a new fop distribution, with servlet, must be created, or the apex_fop distribution must be updated to include the necessary java packages.
    Edited by: Andre Olivier on May 9, 2013 4:02 AM

  • How to access and use "Jar Launcher" OSX application

    I have encountered a road-block, it seems, in an attempt to get some files ready for publishing on the web. When I try to open one of the Crausword Express.com files which I must use, I get a message that "jar launcher" could not be launched, and that I should check the "Console." Well, I found the Counsole, and got this message:
    "Exception in thread "main" java.lang.NoClassDefFoundError: cweaplet" I haven't the slightest idea what this means.
    Secondly, when I double click the Mac OS application "Jar Launcher", I get nothing. In fact, many of the files in this CoreServices Apple folder give me no response.
    I'm presuming (maybe incorrectly) that my problems are being caused by some sort of inappropriate setting in Jar Launcher, but since I cannot open it, or even see anything in it, I'm stuck.
    Lastly, and a bit off my main question--how come Spotlight couldn't find the Jar Launcher for me? Had it not been for Wikipedia, I'd still be searching!
    Thanks to anyone for some direction! Alinde

    Hello,
    By chance do you have StuffIT Expander installed to decompress .sit.hex files?
    If not, here is a link and it's free: http://www.stuffit.com/mac/expander/index.html
    I downloaded the files from Crausword and didn't have any problems launching the program. I didn't see anything that says JarLauncher at all. Did you download the update as well??
    Carolyn

  • Problem using PAPI-WS for external process notifcation

    Hello,
    I'm trying to have an external Java application send a process notification using PAPI-WS.
    I have a process instance currently sitting at a notifcation wait step (configured to wait for an external notification) but each time I call processSendNotification I get the an unspported operation exception. I'm not even sure this is the correct ws operation to use but looking at the PAPI API reference it seemed the most likely.
    Below is a snippet from the code I'm testing this with and the corresponding output including the exception:
    for (InstanceInfoBean instance : instances.getInstances())
    String waitStep = "WaitForDelivery";
    System.out.println("-> process id = " + instance.getId());
    // find which instance are waiting on delivery
    if (waitStep.equals(instance.getActivityName()))
    System.out.println(" -> " + instance.getAuthor() + " is waiting on delivery!");
    papiWebServicePort.processSendNotification(instance.getId(), waitStep, null, null);
    Process: WhatToHave
    -> process id = /WhatToHave#Default-1.0/2/0
    -> process id = /WhatToHave#Default-1.0/1/0
    -> Andy is waiting on delivery!
    Could not perform the requested operation
    stubs.OperationException_Exception: The BEA AquaLogic® BPM Engine version does not support the required operation.Please ask BEA AquaLogic® BPM Administrator for assistance.
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:127)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
         at $Proxy31.processSendNotification(Unknown Source)
    I'm doing this all using BPM Studio 6.0.2 (build 85749) on Linux.
    Any help or pointers greatly appreciated,
    Thanks,
    Mike

    Hello,
    I'm trying to have an external Java application send a process notification using PAPI-WS.
    I have a process instance currently sitting at a notifcation wait step (configured to wait for an external notification) but each time I call processSendNotification I get the an unspported operation exception. I'm not even sure this is the correct ws operation to use but looking at the PAPI API reference it seemed the most likely.
    Below is a snippet from the code I'm testing this with and the corresponding output including the exception:
    for (InstanceInfoBean instance : instances.getInstances())
    String waitStep = "WaitForDelivery";
    System.out.println("-> process id = " + instance.getId());
    // find which instance are waiting on delivery
    if (waitStep.equals(instance.getActivityName()))
    System.out.println(" -> " + instance.getAuthor() + " is waiting on delivery!");
    papiWebServicePort.processSendNotification(instance.getId(), waitStep, null, null);
    Process: WhatToHave
    -> process id = /WhatToHave#Default-1.0/2/0
    -> process id = /WhatToHave#Default-1.0/1/0
    -> Andy is waiting on delivery!
    Could not perform the requested operation
    stubs.OperationException_Exception: The BEA AquaLogic® BPM Engine version does not support the required operation.Please ask BEA AquaLogic® BPM Administrator for assistance.
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:127)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
         at $Proxy31.processSendNotification(Unknown Source)
    I'm doing this all using BPM Studio 6.0.2 (build 85749) on Linux.
    Any help or pointers greatly appreciated,
    Thanks,
    Mike

  • Problems using SetCommState to configure external device

    Hello, I am trying to use the kernel32.lib function SetCommState to set the communications for and external I/O board. The board is by Sealevel Systems, and they supply VB example code. The problem I have is this: in the code, they run the function GetCommState, then they individually modify the baudrate, bytesize, parity, and stopbits to match the settings fo the device. Finally, they take the updaded settings and input them into the function SetCommState. This all works well in VB, where it is possible to set the baudrate, bytesize, etc. individualy, but in labview, I cannot seem to do this. So I either need to be able to set these individually, or I need to know the protocol for inputting all four parameters into SetCommState through labview. Another option is to use internal labview code (like VISA), but I am not sure that approach would work. Any help would be much appreciated. Thanks,
    JOe

    If the I/O board presents its self as COM ports under windows (check this out using the Device Mangager) then I suspect that using VISA to configure the commstate should work nicely.

  • Problem using a Western Digital external drive

    All,
    I am using Oracle 11.2.0.1 32-bit Windows on Windows Vista Ultimate, in conjunction with McAfee Antivirus Plus.
    I have issues using an external Western Digital Elements USB drive, which has the Flash Recovery Area. Please note my Windows Backups to these drive also fail with the same error 'Can't find sector'
    The error stack in Oracle is following, but this can also happen during archiving
    Spooling started in log file: diskerror.log
    Recovery Manager11.2.0.1.0
    RMAN>
    Starting backup at 09-06-2011
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=81 device type=DISK
    channel ORA_DISK_1: starting compressed archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=2532 RECID=2694 STAMP=753243442
    input archived log thread=1 sequence=2533 RECID=2695 STAMP=753265574
    input archived log thread=1 sequence=2534 RECID=2696 STAMP=753286016
    input archived log thread=1 sequence=2535 RECID=2697 STAMP=753314521
    input archived log thread=1 sequence=2536 RECID=2698 STAMP=753315118
    input archived log thread=1 sequence=2537 RECID=2699 STAMP=753327717
    input archived log thread=1 sequence=2538 RECID=2700 STAMP=753331024
    channel ORA_DISK_1: starting piece 1 at 09-06-2011
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 06/09/2011 08:31:51
    ORA-19504: failed to create file "H:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_06_09\O1_MF_ANNNN_TAG20110609T083149_%U_.BKP"
    ORA-27044: unable to write the header block of file
    OSD-04008: WriteFile()-fout. Kan niet naar bestand schrijven.
    O/S-Error: (OS 27) Het station kan de aangevraagde sector niet vinden.
    I have already disabled Mcafee Antivirus Plus Real life scanning, this didn't work.
    I have yet to isolate this doesn't happen on other drives, but I already relocated the FRA, because a different external drive was too slow.
    (and archivelog failed because of this)
    I tried looking for error 27 on Technet.Microsoft.com but failed.
    What should I do, apart from re-formatting the drive using my own laptop (it came pre-formatted)? I downloaded a WD tool to check the drive, and it came up with nothing.
    Sybrand Bakker
    Senior Oracle DBA

    Hi Sybrand,
    I just wish to please check below:
    1.As Aman suggested to deinstall anti-virus program
    2.free space on external hard disk
    3.Path and Permission issue (if any)
    4.May be filesystem of the external drive issue
    5.May be issue of filesystem size limit.
    5(i).FAT32 is 4GB and NTFS is 16 exabytes. FAT16 (mainly DOS) was 2GB, but some instances supported 4GB. A windows server class machine is almost 100% going to be using NTFS. Same issue on SQL Server with a local account trying to do things on an NFS. Use a domain account/NTFS.
    Source:http://dbaforums.org/oracle/lofiversion/index.php?t20108.html
    6.ORA-27044: unable to write the header block of file
    OSD-04008: WriteFile()-fout. Kan niet naar bestand schrijven.
    O/S-Error: (OS 27) Het station kan de aangevraagde sector niet vinden.
    I just understood the message of ORA-27044; rest line's messages may be of your country's languages; but i think its all something related to RMAN is not able to write the file.
    If you please resolve the issue by your own way/findings, i wish to request to please post the solution too.
    Regards
    Girish Sharma

  • Problems using a php include file with an Add-on Domain.

    Hello,
    I am having an issue getting a php include file to work with a new add-on domain I am working on getting up and running.
    This include file is one that supplies the rest of the php code to a contact form page.  It works as it should for my original domain, same file no difference.  I made sure that the files hosted on the remote server had all read, write, execute permissions turned on.
    I have tried putting the include file in several different locations as a test, such as:
    I don't remember the exact name of the include file at the moment, as I'm at work so I will designate it below as 'includefile.php'.
    file path for add-on domain - ../public_html/lorentzpainting/includes/includefile.php
    alternatives I tried moving the file to - ../public_html/lorentzpainting/includefile.php
    When none of those options worked, I tried just pointing the path towards other places on the server that have the include file such as:
    ../public_html/includes/includefile.php
    ../public_html/includefile.php
    What can I do here?  Should I just give up on using the include and put all the code back in the page?  Doesn't seem like it should be this complicated, it works perfectly fine for my other site.. and still does.
    Thanks ahead of time to those who may assist me.

    here is the contents of the include file:
    <?php
    if (isset($_SERVER['SCRIPT_NAME']) && strpos($_SERVER['SCRIPT_NAME'],
    '.inc.php')) exit;
    // remove escape characters from POST array
    if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
      function stripslashes_deep($value) {
        $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
        return $value;
      $_POST = array_map('stripslashes_deep', $_POST);
      // assume that there is nothing suspect
        $suspect = false;
        // create a pattern to locate suspect phrases
        $pattern = '/Content-Type:|Bcc:|Cc:/i';
          // function to check for suspect phrases
      function isSuspect($val, $pattern, &$suspect) {
        // if the variable is an array, loop through each element
        // and pass it recursively back to the same function
        if (is_array($val)) {
          foreach ($val as $item) {
            isSuspect($item, $pattern, $suspect);
        else {
          // if one of the suspect phrases is found, set Boolean to true
          if (preg_match($pattern, $val)) {
            $suspect = true;
    //check the $_POST array and any subarrays for suspect content
    isSuspect($_POST, $pattern, $suspect);
        if (!empty($_POST['url'])) {
            $suspect = true;
        if ($suspect) {
            $mailSent = false;
            unset($missing);
        } else {
        //process the $_POST variables
        foreach ($_POST as $key => $value) {
            // assign to temporary variable and strip whitespace if not an array
            $temp = is_array($value) ? $value : trim($value);
            // if empty and required, add to $missing array
            if (empty($temp) && in_array($key, $required)) {
                array_push($missing, $key);
            } elseif (in_array($key, $expected)) {
                // otherwise, assign to a variable of the same name as $key
                ${$key} = $temp;
        //validate the email address
        if (!empty($email)) {
            // regex to identify illegal characters in email address
    $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
    //reject the email address if it doesn't match
    if (!preg_match($checkEmail, $email)) {
        $suspect = true;
        $mailSent = false;
        unset($missing);
    //go ahead only if all required fields OK
        if (!$suspect && empty($missing)) {
    //initialize the $message variable
            $message = '';
    // loop through the $expected array
            foreach($expected as $item) {
    // assign the value of the current item to $val
                if (isset(${$item}) && !empty(${$item})) {
                    $val = ${$item};
                } else {
    // if it has no value, assign 'Not selected'
                    $val = 'Not selected';
    // if an array, expand as comma-sparated string
                if (is_array($val)) {
                    $val = implode(',', $val);
    // add label and value to the message body
      $message .= ucfirst($item).": $val\r\n\r\n";
    //limit line length to 70 characters
        $message = wordwrap($message, 70);
    //create Reply-To header
        if (!empty($email)) {
            $headers .= "\r\nReply-To: $email";
    // send it
        $mailSent = mail($to, $subject, $message, $headers);
        if ($mailSent) {
    // $missing is no longer needed if the email is sent, so unset it
            unset($missing); echo('Thank you for contacting Common Wealth Web Solutions');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>

  • Problems using iTunes and my external drive.

    So I initially had a little trouble getting my iTunes to work smoothly with my external drive, a My Book 1Tb, but after a lot of trouble shooting and help from people on the forum I got it and it worked brilliantly. But now, it seems to have run out of gas, the drive is on (indicated by the blue light on the front of the case) but there is no disk image on my desktop and no matter how many time I 1) search for the drive, 2) disconnect it physically from the computer and reconnect it, 3) shut everything down and boot back up it is still unresponsive. I started having problems with my TimeMachine saying it could not back up files onto the disk and couldn't figure that problem out either. And now this, I am really hoping it isn't the drive, even though I thought it was. However, my Mac (iMac G5) has really been acting up now too.
    Every time I try to verify and repair the disk permissions in DiskUtility it freezes while still verifying. And my iTunes has been locking up and constantly unresponsive. I am not that savy with technology and so I am now at the end of my rope.
    Please help me solve my issues?

    You might want to take this over to the Leopard discussion group since it really sounds like it is a drive or computer issue. It will get better attention that way.

  • Problems using LIBRARY to access external DLL

    Windows 2003, Oracle 10g and 11g.
    We have an external dll that we can call using 'create library' and a wrapper function. The wrapper functios works well from SQL*Plus - our function is executed and the external dll does its work.
    When we add the function to some Apex processing, the session hangs at the point at which the wrapper function is invoked and control never returns - we have to kill the database session.
    Any ideas as to what might be happening? I thought that a permissions error would be returned immediately, I don't know what would just make the session hang.

    Windows 2003, Oracle 10g and 11g.
    We have an external dll that we can call using 'create library' and a wrapper function. The wrapper functios works well from SQL*Plus - our function is executed and the external dll does its work.
    When we add the function to some Apex processing, the session hangs at the point at which the wrapper function is invoked and control never returns - we have to kill the database session.
    Any ideas as to what might be happening? I thought that a permissions error would be returned immediately, I don't know what would just make the session hang.

  • What is the best way to include external files in an application?

    I am developing a vocabulary-training program (Adobe AIR using Flex Builder 3). Asks you what an equivalent of a czech word is in english and the other way. I am storing the "dictionaries" in external XML files. I would like to include about twenty of them in the installation. So far I just had them in the applicationDirectory, but now, I added an editing feature and I ran across the fact, that I cannot write into the applicationDirectory. So I figured the most intuitive place for the dictionaries would be in the documentsDirectory/name of program. However, how do I tell the AIR installation to make the according folder and include the files?
    How do I do this, or what do you think is a better solution? Thanks!

    If this post answers your question or helps, please mark it as such.
    I'm creating an application that stores data in the "applicationStorageDirectory".      
    Mac storage directory is <appData>/<appId>/Local Store/
      where <appData> is user preferences folder, typically /Users/<user>/Library/Preferences
    Win: storage directory is <appData>\<appId>\Local Store\
      where <appData> is typically C:\Documents and Settings\<userName>\Application Data
      Note: Vista uses "junctions", which behave like shortcuts but look just like regular folders.
        It is not possible to access them, and any attempt to do so will give you an "Access Denied" error.
        Here is the real folder location:
          C:\Users\<userName>\AppData\Roaming\ContactManager\Local Store\contacts.xml
    Linux: <appData>/<appID>/Local Store/    where  <appData>  is  /home/<user>/.appdata
    Here is how to code to read from and write to a file there in an AIR app:
    var contactsFile:File;
    var contactsXML:XML;
    var contactsXLC:XMLListCollection;
    var stream:FileStream;
    contactsFile = File.applicationStorageDirectory;
    contactsFile = contactsFile.resolvePath("contacts.xml");
    stream = new FileStream();
    if (contactsFile.exists) {
        stream.open(contactsFile, FileMode.READ);
        contactsXML = XML(stream.readUTFBytes(stream.bytesAvailable));
        stream.close();
        contactsXLC = new XMLListCollection(contactsXML..contact);
    }else{
        var outputString:String = '<?xml version="1.0" encoding="utf-8"?>\n<contacts>\n';
        for each(var xml:XML in  contactsXLC){
          outputString += xml.toXMLString();       
          outputString += "\n";
        outputString += "</contacts>\n";
        outputString = outputString.replace(/\n/g, File.lineEnding);
        stream = new FileStream();
        stream.open(contactsFile, FileMode.WRITE);
        stream.writeUTFBytes(outputString);
        stream.close();

  • I was going to purchase Office for Mac 2011, including Outlook.  However, I am hearing many problems with this software including the inability to sync Outlook with iPhone and iPad

    I currently sync my iPhone and iPad with Outlook on my Windows Desktop, but want to switch and still do this on my new Mac running Lion.  However what I am reading about the nightmares of syncing with Outlook in Office for Mac 2011 is making me think twice about going down this road.  What an awful situation of purchasing a Mac and being potentially stumped by 'Office for Mac 2011'.
    I want to continue using Microsoft Office including Outlook for my business applications - but on the Mac.  I like Keynote for presentations, however I also have to create presentations in PowerPoint for some business situations.  So, although I don't ideally want to put Windows onto my Mac, would it be more efficient and less hassle to use Parallels 7, Windows 7 and Office 2010, rather than endure the issues associated with OFM 2011?
    If I decide to use Parallels 7 and Windows 7 am I then into using software to protect against virus' and malware?
    I wouldn't be asking this question if Office for Mac 2011 (including Outlook) wasn't a problem - sadly from what I'm reading, it is. 
    Thank you in anticipation.

    I just resolved my Outlook 2010 + iPhone Calendar sync issue today :  if you have multiple email accounts set up in Outlook (like I do), then you'll find that each account has it's own Calendar (a rather pointless feature IMO).  However you probably only use one Calendar like most people, and what has happened is that the mail account which is set as default for Data Files is not the one you are using.  Try this:
    Outlook 2010 -->  Account Settings -->  click "Data Files" tab -->  select as default whichever acct. is associted with the Calendar you use.  

Maybe you are looking for