Session.xml greyed out

I built a simple test application around five main tables. One of the classes represents data taken from the combination of two tables and another class represents one table with two child tables ie it has one-to-many relationships with two other classes, each of which has a one-to-one relationship with it.
I used the mapping work bench to create the descriptors and model Java code and the Sessions Editor to create sessions.xml. I then moved everything into JDeveloper following the published instructions and successfully ran tests to insert rows into the tables.
Starting with a completely new workspace I attempted to repeat the exercise solely using JDeveloper and making the main business class a session bean rather than a POJO. My code falls over when trying to access sessions.xml. I've tried to create a file by right clicking on Toplink Mappings, but the option to create a sessions.xml is always greyed out. I've also tried putting my old sessions.xml in all the obvious places with the same result.
What am I doing wrong? I'm using JDeveloper 9052(1618)and Toplink 9042(040311)
Mike

Not sure on the JDeveloper issue, but in general when looking up your sessions.xml file from a J2EE application you need to provide the class-loader to the SessionManager.getSession call with the class-loader that was used to load the application that includes the sessions.xml file.
i.e.
serverSession = (Server) SessionManager.getManager().getSession("my_session", this.getClass().getClassLoader());
If you sessions.xml file is not named sessions.xml or stored in the root resource directory, you may also require to pass an XMLLoader to the call.
i.e.
serverSession = (Server) SessionManager.getManager().getSession(new XMLLoader("com/mycorp/persistence/sessions.xml"), "my_session", this.getClass().getClassLoader());

Similar Messages

  • Since updating to firefox 25 my "undo closed tab", "restore recently closed tabs", and "restore previous session" are greyed out, I have tried resetting default

    I have only had this problem since updating to firefox 25. I have already tried resetting the ff deafaults. it did restore the "undo close tab" for a short while. but when i exited and restarted ff i have the same problem again. I don't want to have to keep resetting the defaults, because it is too time consuming to then set all my preferences again.

    I had the same difficulty. Could not use the Ctrl+Shift+T combo to undo close tabs. The solutions mentioned here did not work. I turned off the add-on "Tab Mix Plus" and the keystroke combo worked. Updating to the latest version of Tab Mix Plus solved the issue.

  • Browser won't open - greyed out - says trying to restore last session - I am at a total loss on how to fix this-have restarted -- i still can't get it to work

    i can't do anything when i open it up - it's greyed out -- have tried everything i can think of -- says restoring last session but never comes on - just says not responding if i try to click on toolbar or anywhere

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls

  • Safari Reopen All Windows from last session greyed out

    Hi there,
    I am using Safari 7.0.6 version. I have a Macbook Pro OS X  10.9.4  I have made sure that under my Safari Preferences/General/ the Close all windows .... is UNCHECKED but I still can't get the "Reopen All Windows From Last Session" to be activated.  I can't even do it manually as it is greyed out.
    Any suggestions? 

    Unfortunately no, but there is a free Safari extension that offers this feature.
    Glims for Safari | www.MacHangout.com
    Once Glims is installed, you can access the settings in Safari > Preferences > Extensions then select the General tab then toggle: Restore Tabs and Launch on.
    Other handy features as well.
    And you can have Glims check for updates automatically.

  • Crystal report print button greyed out in user citrix sessions

    Hi,
    We are running Citrix Enterprise Server 4.5 on Windows 2003 servers.
    We have a ERP app called Epicor 7.3.6 installed on them.
    Crystal Reports 9 is installed on all these servers and the epicor app displays and prints crystal reports.
    Some users when logged into their Citrix profile session and running Crystal Reports from within Epicor application can not print the Crystal report because the Print button is greyed out.
    We have compared users that can print against users who can not not print and not found anything at the network, file permissions, application permissions, printer setup setting level.
    Also, if we were to take citirx completely out of the discussion, what might cause the print button to be greyed out in a crystal report when it is displayed (not the developer, but in the minmal window that shows the export, print, magnify options only).
    Thanks
    Chris

    Check with Epicor. We don't know how Epicor implemented the solution so it's kinda like you asking a mechnic to fix your car, but he can't open the hood to see the engine.
    A tip; this is more than likely due to permissions. So, compare between boxes thast work and don't work. Use [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] to track permission issues.
    Ludek

  • Trying to sync selected (greyed out) contacts to my replacement 4s.  Get error messages - computer not setup to sync - override or OK.  OK - session could not start.  How do I fix?

    I have a new replacement 4s.  I am trying to set it up.  I hate iCloud but need it to sync my calendar to my phone.  I mistakenly set it up to sync Contacts too and found out it synced ALL contacts which I do NOT want.  I used to use iTunes to sync only selected contact folders (one I call Sync).  Others are too sensitive to have on my phone.  So I turned off "where is my iPhone", and turned off "Contacts" on iCloud.  It said it would delete all my contacts on my phone the next time I sync (using iTunes).  So I try to sync my Contacts using iTunes and find that under "Info" on the device tabs my only possible selection is ALL contacts with the "Selected" button greyed out.  But even leaving all checked, I get the message "iTunes cannot sync information with the iPhone because syncing has been disabled on this computer (my Mac).  Do you want to enable syncing?"  I hit the button "Enable syncing" and I get the error message "Syncing cannot be enabled on this computer"  with "Override" and "OK" my choices.  If I select "OK" I get the error message "iTunes could not sync information to the iPhone (Name) because a sync session could not be started".  I can sync my music and my apps but get this stupid message otherwise.  What gives and I do I fix this?  Thanks

    Actually I can't sync anything - no music, photos, etc.  And it tries to start syncing as soon as I plug in my iphone and itunes is open.  It ends "sync" but hasn't done anything.  I have tried deleting lockdown files (per "solution" found here).  I have deleted all my backups (per other "solutions").  I have restored my iphone 2x.  I have done soft boots of my iphone.  My macbookpro 10.9.3.  iphone 7.1.1.  iTunes 11.2.2 (3). 

  • The Restore Previous Session is always greyed out in my Firefox.

    I have do not have any possibility to restore my previous session in my Firefox as the option under the History menu is always greyed out.
    I am using Firefox 33.1.1 on OS X Yosemite (10.10.1).

    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Append to XML remains greyed out

    Hi folks,
    I am using MII 15.0 SP2 Patch 8. I created a new transaction having a xML transcation variable called "test" defined as you cans ee in below screenshot. It is a plain XML having a root node called options.
    Thereafter I created a new transaction adn placed an assignment block there. I treid to use append XML link type to extend my transaction variable. Unfortunately, when trying to append some new xml to test{/OPTIONS}, append XML functions remain greyed out...see screenshot below
    Any idea why that happens? Thanks for your help!

    Hi Anuji, thanks for your answer, u r right. But what if I do not want to choose some value from menue? My plan was to define a new XML segment as string in Expression Editor and append it to my XML. Does that mean this is not possible?
    I somehow need to build a multiline XML looking like this:
    <option>
    <item><text>content...</text></item>
    <item><text>content...</text></item>
    <item><text>content...</text></item>
    <option>
    Content should define a multiline "where clause". Eventually, I want to map resulting XML to options input section of RFC_READ_TABLE to query data from ERP using JCO connector.
    What's a suitable approach to get there?
    Greetings, Marco

  • Why doesn't fcpx see my xml - its greyed out

    I exported an xml from FCP7 and want to import it into X. On import it shows a greyed out xml file. Help please!

    You need 7toX. FCPX doesn't read legacy XML files.

  • "Capture Exporter XML" is greyed out

    Hi all,
    I am trying to migrate an Access app to APEX, using the documentation that I see in the SQL Developer help page. I am going through the steps, and so far no problems.
    I am able to run the Microsoft Access Exporter, that creates the XML file, and the next step says to click on Migration, Capture Exporter XML. But when I click on Migration, the bottom 3 options are all greyed out:
    - Migrate Data
    - Capture Exporter XML
    - Script Generation
    Has anyone else seen this? Did I miss a step, to be able to click on this option?
    Thanks!

    OK, it looks like maybe this is helping to point out the problem - when I run sqldeveloper this way, and then I try to do the "Convert to Oracle Model", I am seeing the following errors in the command window:
    Exception while performing action Convert to Oracle Model
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.dbtools.migration.translation.api.ITranslationManager
    Dependent class: oracle.dbtools.migration.convert.ConverterWorker
    Loader: main:11.0
    Code-Source: \C:\Oracle\SQL Developer\sqldeveloper\sqldeveloper\extensions\oracle.dbtools.migration.jar
    Configuration: system property C:\Oracle\SQL Developer\sqldeveloper\sqldeveloper\extensions\oracle.dbtools.migration.jar
    The missing class is not available from any code-source or loader in the system
    Does this help?? There is quite a bit more below that, but I can't copy and paste from a command window. Let me know if you need to see more.

  • Restore Session no longer works properly, the window shows as blank, and the restore button is greyed out. On the history tab, the three associated links are also greyed out and unusable. How do I restore functionality?

    Just as the question says, I get a restore session tab whenever I open Firefox, but it no longer shows my tabs, and the Restore button is greyed out. If I open and then close a side, it no longer shows up in the "recently closed tabs" in the History menu. "restore previous session" and "Recently closed windows" are also greyed out.
    I'd like this function to work correctly again.

    Make sure that you do not use Clear History to clear the <i>Browsing History</i> when you close Firefox.
    *Tools > Options > Privacy: History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.com/kb/Clear+Recent+History
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • My FF crashes many a times and the last opened tabs are not restored. The Restore Previous Session under the history tab is greyed out and the the Session restore button on about:home is not there and im using FF 8.0.1

    The tabs on about:home is not there instead there are Firefox advertisements and the restore button under history is greyed out>

    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    To see all History and Cookie settings, choose:
    *Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    See also:
    *http://kb.mozillazine.org/Session_Restore
    *https://support.mozilla.com/kb/Session+Restore

  • How to grey out column in NewForm.aspx

    Good morning,
    I have created a custom list.  In this list, I have a Drop-Down Column with various options and also a Text Column. 
    What I am hoping to achieve is that if, for example, if Choice 3 is selected from the drop-down column, then the Text Column becomes "available".  Otherwise this column remains greyed out.
    I am no master at coding so hopefully a solution that is not too complex.
    Thanks!

    If you're building out the form in InfoPath, you can also do this with some simple rules.
    Load the form in InfoPath, and select the textbox control
    Select 'Manage Rules' from the Home ribbon
    Create a formatting rule for the text box as follows
    Conditions = If dropdown column=blank, OR dropdown column=option 1, OR dropdown column=option 2 (see below screenshot)
    Select the 'Disable this control' checkbox
    I also recommend changing the color of the textbox so that it is greyed out, otherwise people could be confused as to why they can't edit the text field. You can do this in the same rule, with the paint bucket icon
    (Where 'session' is your dropdown column and "Option 1" and "Option 2" is the text for your first two options.)
    If you want to provide even more user guidance, you could add some text underneath the textbox which is only displayed when the textbox is disabled, saying something like "This textbox is only available when option 3 is selected". To do this, add the text
    to the form and then add a formatting rule to the displayed text:
    Conditions = If dropdown column=option 3
    Select 'Hide this control'
    Hope that helps!

  • My music won't sync to my phone, it's greyed out and details below.

    Hey everyone,
    So I have an iPhone 4 running iOS 5.0.1 (I know I should upgrade but I don't think it really matters in this issue), and I had like 700 songs on it, right. Then I had downloaded some new songs into my iTunes on my PC. I wanted to just sync them onto the phone. When I clicked the Synch Music (from my Library) and then proceeded to apply and sync, the two arrows were turning as usual, but then BAM a very helpful error message pops up "Your iPhone could not be synced because the sync session didn't finish." I'm like, ok, that's cool, I'll just try it again. Bam, same message. By now I'm getting really irritated and I figure that perhaps I should free up some space. I proceed to delete like 3/4 of my photos. Then when I try it again, not only will they not let me do so, but the "Apply" button is greyed out. I'm like you know what, screw this, I'll just drag and drop them the old fashioned way. By then I realize that all of my songs are indeed in my phone's music tab on the dropdown menu once you select the device from iTunes. But here's the catch: they're all freaking GREYED OUT for no reason. And not only the new ones, ALL OF THEM. Soooo when I grab my phone and enter the Music app, the songs are greyed out on there too, and the album artworks aren't displayed. It's like they're mocking me, 'your songs are right there, but you can't reach them'. I tried to check the "Manually manage music" didn't change a thing. And no, the songs don't have an exclamation mark next to them. It's just like iTunes is deciding whether or not to trust my decisions to sync my music and the small arrows that are supposed to be revolving are just grey, frozen. Please help me. It's late and I'm seriously considering killing an Apple employee with an iPad. (joke of course, Apple, don't take me seriously.)

    Have you tried to force quit the app? Got to Finder, Apple icon on top left and then select 'Force quit'.

  • IPhoto won't open, gives me an error message and the icon is greyed out on the dock

    My iPhoto icon is greyed out on the dock and wont open. When I click on it it says it may be damaged or incomplete. Went to All Images and the photos are still in there. Went to aplications and the iphoto icon looks normal. Clicked on it and got the following error message. "You can't open your current photo library using this version of iPhoto. You have made changes to your photo library using a newer version of iPhoto. Do you want to quit and use the latest version of iPhoto, or do you want to create a new photo library?" There is a quit button with the message, but nothing to allow me to create a new photo library. So neither my wife nor myself have tried to upgrade iphoto. Not sure how it got a newer version. It was working fine a few weeks ago. Anybody have any ideas how to fix or restore the icon and iPhoto without losing pictures? 

    Hmm.
    Rather than assume the account is "kinda" damaged, I would instead work on the basis that something in the account is damaged, and - as iPhoto is working correctly in the other account - that something is specific to this account.
    So: Check on things that are specific to the account:
    The Libraru
    The plist files
    The Cache files
    are obvious approaches.
    In the case you describe an awful lot of the time the issue is with the Library. This simple test will tell you if it is:
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?
    If you can make a new Library and get it to work, then the issue has to be with the old library.
    In that case:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords 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. .
    Regards
    TD

Maybe you are looking for