Getting Unit Of Work without JSP context

We are developing an application using Toplink and ADF Datacontrols. We have timer (which starts right after deploy) which reads data from magnetic card reader and stores them into database (via Toplink). Our main problem is getting Unit Of Work (server session). If user interacts with application via jsp pages, obtaining uow is done from TopLinkDataControl (getAssociatedUnitOfWork()). But timer lives on its own, it has no jsp pages to get context from.
We know one solution - getting server session from toplink descriptor (absolute path needed) - XMLProjectReader.read("c:\\...\\toplink-deployment-descriptor.xml"). Is there another way to create Unit Of Work for our timer in order to last whole application existence? Thanks.

I was wrong, when I thought, that XMLProjectReader.read() with absolute path works. Your solution seems to be similar, with the same result. I'll describe my problem more closely:
- Our web apllication consists of 2 projects - Model and ViewController. Each has set the classpath pointing to classes of the opposite project.
- The only way, that I know of starting a Clock (from Model, Runnable) without creating JSP page is instatiating it in some servlet's init() method. (Servlet has set 'Load This Servlet When the Web App is Strted" in WEB.XML).
- When I try in my clock to create UnitOfWork by XMLProjectReader.read("c:\\...\\toplink-deployment-descriptor.xml"), I get this error:
EXCEPTION [TOPLINK-3007] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.ConversionException
EXCEPTION DESCRIPTION: The Object [mypackage.MyClass], of class[class java.lang.String] could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate
API passing in the appropriate class loader as required, or setting it
on the default ConversionManager/
INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mypackage.MyClass
- mypackage.MyClass is one of many classes from Model, mapped in toplink-deployment-descriptor.xml. It is in classpath of ViewController.
- For the time being, our application runs in JDeveloper, it will be deployed to OracleAS 10g.
Either somebody please help me how to solve above error or maybe suggest how to start my clock together with application deployment (no jsp context).
Thanks.

Similar Messages

  • When i tried to download iOS8 on my iPad Mini it told me that I needed to connect my iPad to iTunes, I have done that and now it says I need to restore my iPad. How can I get my iPad working without losing everything on my iPad?

    When i tried to download iOS8 on my iPad Mini it told me that I needed to connect my iPad to iTunes, I have done that and now it says I need to restore my iPad. How can I get my iPad working without losing everything on my iPad? I don't want to lose my apps and photos!
    Help would be much appreciated!

    If you are getting the connect to iTunes screen then it's too late to take a new backup and/or copy anything off it. Prior to starting the update did you take a backup, either to the cloud and/or to your computer's iTunes ? If not then have you recently taken a backup that might have your photos and apps content/settings in it ?
    As long as the apps are still in your country's store then you should be able to redownload them via the Purchased tab in the App Store app (and the Purchased link under Quick Links on the right-hand side of the iTunes store homepage on your computer's iTunes), and if the apps store their content on a server/cloud service then you might be able to get their content back from that - if they store their content on the device then you will need to have a backup.
    For our photos you could try doing a search for programs that claim to be able to recover content from a device - I haven't used any so I can't suggest one.

  • How do i get album art work without itunes account?

    How to i get the album art work without haveing an itunes account?

    Copy the cover art from anywhere on the web: amazon, allmusic, etc. Right-click the song, Get Info, go to the Artwork tab, and paste it in.

  • Is there some way of getting adobe to work without having to download a document first, then adobe will show the pages.

    Hello,
    I am trying to find out what I can do, to get adobe to open up a pdf file so that I can read all pages, without having to download the document first. I get the first page only; then I download and have access to all pages. Then I delete. Seems like such a long process. Is there another way? Do I need to download a different adobe?
    Thanks for your help.

    How are you seeing your document on iCloud from your laptop? Web browser, or OS X Pages open dialog?
    If you have MS Word or .pages formatted files parked on iCloud, the web interface will not permit their download as PDF, and in fact, PDF is an inactive option in that download menu for these word processing files. There is no copy facility available, but duplicate functionality exists from the iWork category within the iCloud web presence.
    If you have Pages v4.2 or later installed on your (assumption: Mac) laptop, launch Pages and in the open file dialog, select iCloud on the dialog toolbar. Now, press and hold the option key as you drag and drop a copy of our document from iCloud to your desktop. The reverse works also.
    See if you can open that document on your laptop now.

  • How can I get URL forwarding working without touching the obj.conf

    It won't work right after it is set up from the Admin server. I have to manually edit the obj.conf so that the [NameTrans fn="redirect"] lines are ahead of any other lines NameTrans lines. Why the Admin server cannot do this when adding the "redirect" lines to obj.conf, or did I miss anything when I config the URL forwarding?
    SunOne WebServer6.1 SP4

    This is a full copy of the obj.conf file, right after I set up a URL Forwarding. The URL Forwarding is added as the 3rd [NameTrans] line. I have to manually move it as the 1st [AuthTrans] line, else it won't work.
    # You can edit this file, but comments and formatting changes
    # might be lost when the admin server makes changes.
    # Use only forward slashes in pathnames--backslashes can cause
    # problems. See the documentation for more information.
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="c:/Sun/WebServer6.1/ns-icons" name="es-internal"
    NameTrans fn="redirect" from="/AuxFiles" url-prefix="http://pdiweb.pdi.sci.com:8080/AuxFiles"
    NameTrans fn="document-root" root="$docroot"
    PathCheck fn="nt-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    PathCheck fn="set-cache-control" control="private"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log" name="access"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>

  • My phone is frozen....this is the second phone that has done this.  How can I get my phone working without going into a store spending countless hours only for them to minimize the problem.

    My phone froze this morning while I was replying to an email.  Is there anything I can do to get it working and to avoid going into Apple?

    Assuming it is charged and did not shutdown due to low battery, have you tried an power off/on?  Or a reset by holding the power and home buttons until the apple logo appears and it restarts?

  • How can i get my apple id to work without a credit card?

    i try to get it to work without a credit card but it wont let me. it is not fair to me.....

    If you have an account that previously had a credit card and you're now trying to remove it, see:
    http://support.apple.com/kb/ts5366
    If you are trying to set up an iTunes Store account without a credit card, presuming you only want the free apps take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free apps without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • HT1459 I don't have wi-fi so my iTouch isn't working. How do I get it to work so I can make app purchases?

    I just got an iTouch, gen.4 but I don't have wi-fi service on my home PC. Is there a way to get it to work without having to pay for wi-fi (on a monthly basis)? I heard someone talking about getting a router? Please help! I wanna use my iPod really bad!

    - If you have iCloud backup setup n the iPod it should automaticallu backup one per day when connected to power/charging.
    - Next find a computer with iTunes and backup the iPod.

  • TS3694 I got my cracked screen fixed , and ever since my phone has been acting up. Now Im trying to restore it and it wont restore. Also my phone wont work without being on the charger. It just wont disconnect from ITunes Can I get help ASAP

    I got my cracked screen fixed , and ever since my phone has been acting up. Now Im trying to restore it and it wont restore. Also my phone wont work without being on the charger. It just wont disconnect from ITunes Can I get help ASAP

    nadiamilan wrote:
    I think that is an great idea . But I wanna know if there is anything else i can do besides going all way back to the place i got if fixed at ....
    Probably not.

  • In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?

    In disk utility, it shows that my external hard drive is somehow unmounted and I can't access it in finder or repair it in Disk Utility. How can I get this working without losing my important data?
    Thank you!

    When you erased the disk did you select Mac OS Extended Journaled as the format option?

  • Airplay icon on ipad is gone, trying to play spotify on my ipad and use airplay  to the Bose unit, it worked yesterday, but today the airplay icon is gone , how do I get it back

    airplay icon on ipad is gone, trying to play spotify on my ipad and use airplay  to the Bose unit, it worked yesterday, but today the airplay icon is gone , how do I get it back

    I just had the same problem. Took the first unit back and the problem is still occuring on the second one. I solved it by setting up again with the USB, but it keeps dropping out every few days.

  • I updated my OS from 10.6.4., to 10.8.2 I want to buy iDVD and I Movie, but bought iPhoto and can't get it to work yet.  Hesistant to buy the others without now having the original applications on my laptop. Do I need to buy the older versions first?

    I updated my OS from 10.6.4., to 10.8.2.  I want to buy iDVD and iMovie, but I bought iPhoto and can't get it to work yet.  I'm hesitant to buy the others without now having the original applications on my laptop. Do I need to buy the older versions first?  They are probably on my Snow Leopard install disc, but I am now running Mt Lion that I bought, and downloaded a few days ago...so I don't want to insert the old OS disc, thinking it might want to reinstall the old OS...  Thanks,
    KathyH-P

    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • CANON VIXIA TO DVD FROM FCPX - APPARENTLY YOU HAVE TO TRANCODE THE FOOTAGE.  IS THERE A WAY TO GET A CLEAN DVD WITHOUT FREAKING TRANSCODING.  DONT HAVE THE TIME  TO MUCH WORK.

    FCPX - editing system

    IS THERE A WAY TO GET A CLEAN DVD WITHOUT FREAKING TRANSCODING. (?)sic
    Nope.
    DONT HAVE THE TIME  TO MUCH WORK.
    Then you need to find another delivery method.
    x

  • I was listening to music on my ipod shuffle when it went off.It hasn't turned on since then.When i connect it to the computer,the connection and disconection sounds play continuously without the ipod showing.What could be wrong or how can i get it to work

    I was listening to music on my ipod shuffle when it went off.It hasn't turned on since then.When i connect it to the computer,the connection and disconection sounds play continuously without the ipod showing.What could be wrong or how can i get it to work?

    Hello,
    I am currently an owner of an Ipod Touch 4th generation. I see you are having problems with your Ipod Touch, so I will try to find a solution to your problem.
    Hold down the Sleep/Wake and Home buttons for at least 10sec. or until Apple logo appears (Nothing will be lost, this is just a "Hard Reset")
    Hope that helps!
    If none of the above solutions work, can you please respond back ASAP as I will try to find another solution to your problem (This might even help others with the same problem!)
    Cheers!
    Pizza98704

  • Zen Touch optional wired remote control to play FM radio how do I get it? or can it work without

    One of the reasons why i am thinking of buying a zen touch is becuase it has a FM radio built in. From the website it says you need an optional wired remote control to listen to the radio, where can i get one in the uk? or can it work without it's

    The Zen Touch doesn't have a radio built-in. You'd need this:
    http://uk.europe.creative.com/shop/category.asp?cate=5
    The Zen Micro does have an FM tuner built-in.

Maybe you are looking for