Messing with JavaCompiler

I have a following problem :
I need to put into webservice a method that at runtime compiles custom source code and executes it.Compilation is done by calling JavaCompiler class that I've rewrote to make compilation from/to memory and put error messages to custom stream.During compilation some of webservice classes have to be visible for compiler.Problem is that they are inside jar nested in ear file.
My question : is there any possible way to do this without using classpath parameter ? All classes are allready loaded when compilator is called, so maybe i could do some magic with class loaders ?

I have done a very indirect form of compilation, using generated JSPs, as hot swapping was needed (just what JSPs offer). That involved an extra redirect/forward.
If the library classes are available (loaded) then the rest is a pure ClassLoader problem. The best advice there, is that you digest the tricky materia yourself, by reading and testing. If you did the JavaCompiler, that should be no great challenge. Probably you'll find a couple of container related class loaders at your application.
Sometimes it is easier to do an interface or even use a proxy class.

Similar Messages

  • Mess with accounts in OneNote and OneDrive for Business - can't open documents from Office 365

    Hello!
    [Reposted from
    here]
    I've got Office 365 subscription (E3) with Office.
    I can view and edit OneNote notebooks on Office 365 via browser, but can't open it in OneNote.
    The similar problem exists for OneDrive for Business - some libraries are syncing, some cannot - asking for Enter credentials, but when I click - nothing happens.
    There were two accounts bound to Office 2013 - personal Microsoft ID as primary account and corporate Office 365 linked to it.
    Windows 8.1 corporate profile is linked to Microsoft ID account as well.
    Something happen with these accounts after password was changed - it seems like some account information was cached and can't be cleaned.
    I tried to uninstall Office and install it - no success.
    I cleaned computer with
    this utility from Support - no luck.
    On other Windows 8.1 computer I created new profile (with Microsoft ID account) - surprise, there are problems there as well.
    I deleted all Office15 entries from Credentials Manager - Office asked me about Office 365 login/password - I entered them, it is syncing, Haliluja, but, when Microsoft ID account was linked to Office 365 account in Office - problem appears again.
    It seems that Office 2013 uses Microsoft ID credentials for Office 365 content.
    I'd like to use Microsoft ID as primary account for Office and link Office 365 account to it, but don't want such problems. It worked fine, but I don't know what happened and how it can be analyzed and fixed.
    Update: It seems I localized the problem, but still don't know the solution.
    Scenario to reproduce error for me:
    1. Create fresh new Corporate/Domain user profile on Windows 8.1 with Office Pro 365 installed on computer with latest updates
    2. Go to SharePoint Online and browse some Libraries and OneNote notebooks - all ok
    3. Start to sync them using OneNote and OneDrive for Business - ok
    4. Link Microsoft Account with Corporate Account in Windows 8.1 - ok
    5. Syncing of _some_ (not all) Office 365 libraries and notebooks stop working - errors with access, permissions. I'm trying to enter credentials but this doesn't help
    6. Disconnect Microsoft Account and Reboot - all libraries and notebooks of Office 365 work fine again. But OneNote notebooks from OneDrive stop working :)
    How I can fix this situation and have Microsoft and Corporate account connected?

    Update 2:
    I installed PowerShell for SharePoint online cmdlets and found this user using get-SPOUser.
    I removed this user using remove-SPOUser -site
    https://mysitename.sharepoint.com -LoginName
    [email protected]
    but when I'm trying to access sharepoint from the browser with Microsoft account credentials - new record for this user is created again and I can see it with get-SPOUser :(
    So, problem is still not solved - this user is still can be authenticated (there is no such user in SharePoint site collection, there is no such user profile) and Office 2013 syncing doesn't work for Office 365 due this mess with accounts.
    I know that I can remove Sharing with external users from Site Collection and information about these users will be permanently deleted - but I don't want to do this, there are several customers who work with our documents.

  • How do I disable Autocomplete COMPLETELY without messing with other settings such as with the location bar? I still like to see websites there that I've been to, without typing it in every time, but just hate the autocomplete part.

    Case: When I go to Tools - Options - Privacy then Location Bar options, there should be another option to where we can disable auto-complete from the Location Bar without messing with other settings. Example #1: I click "Nothing" and then I gotta type in the website I wanna go to every single time. Example #2: I click "History & Bookmarks" and then it auto-completes. Is there any other option just to disable Auto-Complete all together??

    Is inline autocomplete enabled?
    See:
    * http://kb.mozillazine.org/Inline_autocomplete

  • I have some old cd's I have burned on itunes. How can I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe . Please be gentle.

    I have some old cd's I have burned onto itunes. Howcan I copy them to my iphone without using the cloud? I donot want to mess with my cloud settings because I am a technophobe. Please be gentle

    Willy, the procdedure you describe works perfectly for AppleTV G1. In fact, I frequently play DTS music discs ripped to my iTunes library as Apple Lossless (ALAC) and synched to the ATV. What happens is that, as far as iTunes and the ATV are concerned, a conventional stereo 16/44 audio file is being played; however my reciever detects the DTS data stream, and instead of outputting static, it decodes the 5.1 channels correctly. This process parallels the way DTS discs were designed to be played back: a conventional CD player is connceted, via digital out, to a DTS-aware reciever/pre-amp and the two channels of static are recognized as 6 channels of DTS-encoded audio.
    However this process will only work if the player (CD, ATV, PC, etc.) sends a "bit-perfect" 16 bit/44.1 khz data stream to the decoding device. In the case of ATV G2 and G3, as has been discussed elsewhere, the unit resmaples all audio - including 16/44 PCM (Redbook CD)  - to 16/48. While this is not a big deal for conventional audio CDs, MP3s, and AAC files, it mangles the fragile DTS datastream and renders it undecodable. The resulting static that you hear is just like the static you would hear if you played a DTS CD on a non-DTS capable system.
    Sadly, I'm not aware of any easy way around this. You could use a program like Foobar (and the DTS plugin) to convert your DTS CDs to 6-ch .wav or .flac file. From there you could transcode the file to AC-3 and then mux it into a video container that ATV supports. You may need add a dummy video track, for iTunes/AppleTV to be ok with the file, though I'm not sure. This may be a lot of work.
    Sorry for the bad news. I wish that the iTunes/ATV ecosystem had better multi-channel audio support.
    Steven

  • Windows 7, 64 bit, iTunes 10.3. Nothing works anymore! I keep getting error 7, 14001 along with a side by side app error. I've tried wiping out all apple programs and re-installing a 100 times, nothing works. I've been messing with this 2 weeks!

    I've searched the net , and I've noticed a lot of people seem to b having this same problem. I've tried everything I can think of. I'm out of options and getting rather annoyed with apple. Please help me!  I think I've given all the info needed about my operating system. Windows 7, 64 bit, iTunes 10.3. I've erased everything re-installed it, no joy; removed again and downloaded QuickTime and iTunes separately, no good; I've removed and re-installed numerous different ways, numerous times and nothing works. All of the apple programs that are installed with iTunes have this same error.  Ive been messing with this for over 2 weeks! Any help would be appreciated, especially if it works!!!!

    I've searched the net , and I've noticed a lot of people seem to b having this same problem. I've tried everything I can think of. I'm out of options and getting rather annoyed with apple. Please help me!  I think I've given all the info needed about my operating system. Windows 7, 64 bit, iTunes 10.3. I've erased everything re-installed it, no joy; removed again and downloaded QuickTime and iTunes separately, no good; I've removed and re-installed numerous different ways, numerous times and nothing works. All of the apple programs that are installed with iTunes have this same error.  Ive been messing with this for over 2 weeks! Any help would be appreciated, especially if it works!!!!

  • I had completed my iDVD project and burned a disc. It worked great! Then someone messed with the project and put a red frame around the opening screen. Now when I burn the project, it no longer has the opening frame. How can I fix?

    I had completed my iDVD project, a Wedding Slideshow with pictures and music, and burned it on a disc. It worked great! Then someone messed with the original project on my computer and clicked around and put a red frame around the opening screen that has the Wedding theme with music. Now when I burn the project to make more DVDs, it burns but no longer has the opening frame. It immediately opens to the iMovie slideshow. How can I fix so I can burn the entire project with opening frames?

    As Bengt suggested make a disk image of the successfully burned DVD using Disk Utility. Then you can burn copies any time you need one.
    In the future once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option.  This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image and launch DVD Player and play it.  If it plays OK with DVD Player the encoding was good.
    You can then burn it to disk with Disk Utility at the slowest speed available to assure the best burn quality.  Always use top quality media:  Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Translucent impromptu possible "hacker" message interrupts current session, locks MacBook Pro screen and demands that I restart by holding down the power button of my LapTop to turn it off first. Any thought? Could this be another way to mess with us?

    I was listening to a YouTube video on the history of X15 rocket airplanes. All of sudden, out of the blue a translucent back message drops top down, stops the video, locks up my MacBook Pro screen and demands that I restart my lapTop by first holding down my power switch, then turn the lapTop back on. This has never happened to me before. The message was in black & white, and in about 6 languages: English, French, Spanish, Dutch, Japanese, Chinese. Does any one recognize what this might be?
    The Computer turned back on just fine as if nothing had Now I am freeking out that they could be reading my key strokes or something. Could they have used this tactic to install malicious software on my computer by first taking away my ability to do anything about it being that I am not a software engineer? Can any one think of anything simillar? I reported this as a bug to APPLE the regular way, then cleared my Safari cookies, then run software update which returned nothing new as in " your software is up to date at this time."
    Can any one please help?
    A-NmN. 

    Hi stedman1,
    Thank you so much. This seems to make sense to me now. I was freaking out a bit that some hacker could be messing with my MacBook Pro. I will be monitoring this issue from now on as it has never happened before. 
    A-NmN.

  • Using Style Function in AdvancedDataGrid to mess with Colours

    Hi
    I am using a styleFunction in an Advanced  Data grid to change the background colours - the function is bellow
    I can mess with the test to my hearts content, but i cant chage the row background.  Is this possible?
    backgroundcolor is just one of many attempts! Looked everywhere, but aside from using a itemrenderer to override I cant come up with a solution (cant use this due to all kinds of nesting issues)
    Any ideas?
              public function myStyleFunc(data:Object,
                col:AdvancedDataGridColumn):Object
                 if (data["RAG"] == "Red")
                    return {color :0xFF0000, backgroundcolor:0xFFF552,fontWeight:'bold',fontStyle:'italic'}; 
                else if (data["RAG"] == "Amber")
                    return {color :0xf7ba48};
                else  return {color :0x1bea15};

    Hi,
    Based on your description, you don't want to meet the following issues:
    The first row returns back all the data from the list up to the value selected.
    Any new item added, replaces the value in the other items.
    Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
    http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
    Besides, here is a similar post, you can use as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • My itunes keeps crashing every time i open it with my windows 7. im active military and dont have time to be messing with this. please help

    my itunes keeps crashing every time i open it with my windows 7. im active military and dont have time to be messing with this. please help

    Hello there, Staver13.
    The following Knowledge Base article provides some assistance in troubleshooting your issue:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Particularly:
    Troubleshoot issues on an iPhone, iPad, or iPod touch
    If you haven't been able to connect to the iTunes Store:
    Make sure your date, time, and time zone are correct in Settings > General > Date & Time.
    Note: Time Zone may list another city in your time zone.
    Make sure that your iOS software is up to date by tapping Settings > General > Software Update (iOS 5 or later) or connecting your iOS device to iTunes and clicking Check for Update on your device's Summary page.
    Check and verify that you're in range of a Wi-Fi router or base station. If you're on a device with cellular service, make sure that cellular data is turned on from Settings > General > Cellular.
    Note: If connected to cellular data, larger items may not download. You may need to connect to Wi-Fi to download apps, videos, and podcasts.
    Make sure that you have an active Internet connection. You can check the user guide for your device for help with connecting to the Internet.
    Make sure that other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Try resetting (turning off and then on again) your Wi-Fi router.
    If the issue persists, try troubleshooting your Wi-Fi networks and connections.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?

    marykaymaas wrote:
    How do I get rid of dead time at the beginning of the song without messing with the timing of staggered entrances of various tracks/instrument?
    either Select All and drag to the left (turn on the Lock Automation menuItem if you have any automation curves)
    or
    use the Cycle Region to export the exact length you wish:
    http://www.bulletsandbones.com/GB/GBFAQ.html#exportexactlength
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • My sibling was messing with my ipod, trying to figure out my passcode.  Now they have disabled it.  I tried connecting it to itunes, but that didn't work becuase it kept telling me to enter my passcode.  Anyone know how to fix a disabled ipod touch?

    My sibling was messing with my ipod touch and trying to figure out my passcode.  Now it is disabled.  I tried connecting it to Itunes, but that didn't work.  Itunes kept telling me to enter my passocode.  Any suggestions?

    omg the sixth time i did it it worked jeeej
    thank you very much guys <3 xD

  • I need to backup all the music on my nano - my library is a mess with all my kids music

    I am sending in my 1st generation ipod nano for battery replacement. I need to back up all the music on my nano. My library is a huge mess with all of my kids music.  How do I just get everything on my nano in a playlist without getting mixed in the library mess?

    You will need to use a third-party program, you computer's iTunes can only copy iTunes purchases back (File > Transfer Purchases, File > Devices > Transfer Purchases on iTunes 11). There are a number of programs listed half-way down this page which you could try : https://discussions.apple.com/docs/DOC-3991

  • My iMac 20 inch 2.4 has developed a very annoying flicker. It looks like somebody is messing with the brightness but than really quick. Any ideas on how to solve this problem ?

    My almost four year old iMac 20 inch 2.4 ghz Intel Core 2 Duo has recently been giving me a headache. The screen is flickering a lot. It looks like somebody is messing with the screen brightness at a really fast rate. I have no idea what it could be but have tried to recalibrate the screen, stopped certain dashboard apps, even changed the desktop picture and screensaver. Has anybody else had the same problem or could somebody help me in getting rid of this flicker. It feels like it is a software issue as it happens intermittently rather than continuous.
    Pleas help me !
    Gersom

    My almost four year old iMac 20 inch 2.4 ghz Intel Core 2 Duo has recently been giving me a headache. The screen is flickering a lot. It looks like somebody is messing with the screen brightness at a really fast rate. I have no idea what it could be but have tried to recalibrate the screen, stopped certain dashboard apps, even changed the desktop picture and screensaver. Has anybody else had the same problem or could somebody help me in getting rid of this flicker. It feels like it is a software issue as it happens intermittently rather than continuous.
    Pleas help me !
    Gersom

  • !!! Statements of Logic Deleting Files and messing with System are True !!!

    This morning I answered some guys post about Logic deleting everything in the same level as the project folder under certain circumstances. I Tried trouble shooting for him but could not recreate it.
    Then this happened to me today:
    When working in Logic 8 in Leopard all of a sudden it stopped communicating with my Unitor8 via USB. I restarted but the Unitor 8 Which I reset twice would NOT communicate with L8 anymore. It would remain in patch mode (red light lit though CPU is running)
    I've had this erratic behavior many times since the past years on many computers so it wasn't really new. All one needs to do is reinstall the Unitor Family driver.
    So I decided to do so:
    I inserted my Logic Studio DVD and opened the installer and checked ONLY the Unitor family Drivers. After completed install I restarted the Mac. Everything went fine. So I booted L8. While booting I saw my hardrives on the right side of the desktop flash once. I thought that to be strange and took closer look.
    Now my boot drive was missing from all the drives on the desktop and in the sidebar window...
    I tried to Apple+Click on a Application in the dock. The finder opened the applications folder and showed me the app I had clicked on. But I could not navigate to the root of my System Drive even via the "path" sysmbol in the toolbar. So I hit shiftappleg and entered /Volumes/MySystemVolume - it showed my volume "Grayed Out" in the finder window...
    I tried repairing the disk and permissions but nothing was wrong with my boot drive apparently besides the fact that the finder (and all other applications when wanting to open or save) could not "see" my system drive... I could launch all the apps normally that were residing on the SystemDrive in the AppFolder... So this kept getting weirder...
    So I opened my favorite application Tinkertool System and went to the Tab Files and chose the underlying tab "Attributes" which shows me Macintosh HFS and Finder Attributes... I pulled my SystemDrive onto the Drop Area and discovered something VERY amazing: The Display in Finder option had mysteriously been altered to "INVISIBLE"
    I changed it to Visible and there it was - My System Drive... Showing up in the finder...
    I made a restart to make sure everything was OK....
    After the restart the following settings had VANISHED:
    1) Pixadex = ALL ICONS (I had 230 MB) of sorted icons stored in my Application Support Folder
    2) All my Safari Book marks were gone - They were still in ~/Library/Safari - but the Bookmarks.plist was UNREADABLE even with a text editor and XML editor
    3) Numerous other applications had LOST their authorization preferences so I had to re-authorize many of my Audio Unit plug-ins...
    4) My Dock had been reset
    5) My Monitor arrangement had been reset...
    6) My date and time had been reset
    7) My energy settings had been reset.... (I had NOT zapped the P-RAM)
    Since installing Leopard 2 weeks ago - I have CAREFULLY monitored ANY activity after INSTALLING anything in order to be able to troubleshoot - and this problem definitely occurred right after installing the USB Family Drivers and launching L8....
    There was really NO HARM done other than the sweating that I did troubleshooting but if L8 is capable of doing what happened to this other guy loosing his whole folder and now doing this to me - where are the limits? When is someone going to get REAL hurt.
    Please Apple - I am sending you this post as a BUG report as well - could you PLEASE look into this as there has to be some kind of VERY dangerous MALFUNCTION within Logic or its Installers.

    Wow, I was just joking with the medication thing. I didn't actually think it was seriously a mental health issue. Sorry.
    In any case, though, if he has full access to the Mac, mental health issues or no, there's not a whole lot to do about it. If it is possible to take away administrative privileges without causing a huge fuss, then you can limit his access to certain things. However, you can't mess with privileges on a Time Machine backup (doing so breaks it), and that means he's going to have access to at least parts of the backup. Which means he can trash at least some of the backup data, and if he deletes files from the TM backup using the Finder, he'll have essentially trashed the whole backup. He might as well have the ability to delete all the files on the machine if he has the power to delete backups.
    Honestly, in this situation, he should either only be allowed to use an account with Parental Controls on, which may not be an option (I don't know how offended he would be at such a suggestion), or he should be using a different computer entirely and have no access at all to his wife's computer. Alternately, have his wife keep a backup that is hidden - ie, connect the backup drive periodically and then remove it and hide it so he can't mess with it. That will at least secure the backup.

  • I was messing with my keyboard languages and i put it on a different language, then i got distracted and my iphone went on autolock and now it wont unlock. What do i do? And if i restore it will it unlock my iphone?

    I was messing with my keyboard languages and i put it on a different language then i got distracted then my iphones autolock locked my phone and now when i try to unlock my phone it doesnt have the correct letters that i have in my password so now it wont unlock. If i restore it will unlock or will i just be screwed??
    HELP ASAP!

    Yo can't. apps are locked to the account thatpurchased them and in-app purchases can only be mad with the account that originally purchased the app.
    You will have to recover use of the first account
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    If necessary:
    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions
    If you have not uses any of the $10 you redeemed to the new account, you can likely get that refunded by contacting iTunes
    Contact iTunes

Maybe you are looking for