Run iTunes on a headless server

I am wanting to run iTunes as a Music server on a headless server without an audio card. I have installed it copied over my entire library and turned on Homesharing. It works awesome with my Apple TV and any other iTunes computer but there is one problem. Since this is a Homeserver box (HP EX495) there isn't an audio card so every time I launch iTunes it first says there isn't a audio device. I push OK and everything works. I want to enable autologin and put iTunes in the start menu so I never have to remote into the box to push ok. Is there a command line switch with iTunes to not check on Audio/Video hardware?

I finally found help for setting up itunes on startup with no sound card. This worked for my HP Smartmedia server so it may work for you as well.
Copied from another forum (Mediasmartserver)
Step 1: Remove iTunes
Remove any install of iTunes form the server by logging in using RDC (Remember: Administrator, servername /console or /admin), After iTunes uninstall, go to Add/Remove Programs from Control Panel and also uninstall the following:
"Apple Application Support", "Bonjour", " Apple Software Update" and "QuickTime" (don't worry if some are not there to uninstall)
Now restart the server.
Step 2: iTunes Service Errors
Dial back into the server using RDC, Download the latest version of iTunes installer (32bit) from Apple, Run the installer, when the installer gets to "running services" it will hang for a bit then a error message will pop up regarding "ipodservice failed to start", Click IGNORE and the iTunes install will complete.
After install has completed you may get several windows error messages regarding "iPodservice 32bit" and, or "iTunesHelper" simply keep clicking "Don't Send" until the messages stop appearing.
Now disable iTunesHelper and the iPodService. Do this by:
iPodService:
Start > Run > type msconfig > Services Tab > Uncheck iPodService.
iTunesHelper:
Startup Tab > Uncheck iTunesHelper (you should also uncheck "Logon Warning" also to stop the annoying popup warning every time you login using RDC)
Apply Changes, Click Restart LATER.
Step 3: Add iTunes to the DEP list
Now you need to add iTunes components to the DEP exempt list. Do this by:
While in your server desktop using RDC,
Right click "My Computer" > Properties > Advanced Tab > Under Performance section click Settings > Data Execution Prevention tab >Ensure "Turn on DEP for all programs and services except those I select" is selected > Click ADD > Add "iTunes.exe", "iTunesHelper.exe", "iPodService.exe", "iTunesPhotoProcessor.exe"
you will find iTunes.exe, iTunesHelper.exe and iTunesPhotoProcessor.exe at C:/Program Files/iTunes/ (default location)
you will find iPodService.exe at C:/Program Files/iPod/bin/ (default location)
Restart the Server.
You may think why not just select "Turn on DEP for essential windows programs and services only" I thought the same but I can ensure you, you will run into issues if you do this!
Step 4: Audio Configuration Error
Login in using RDC, you should hopefully not see any iTunes/iPod related error messages when logging into Windows. If you do check your DEP list to ensure all of the above are on there, OR you could try disabling Windows Error Reporting:
Right click "My Computer" > Properties > Advanced Tab > Error Reporting > Disable Error Reporting.
Launch iTunes, You will notice you get a " iTunes had detected a Audio Configuration Error" Click OK, iTunes will launch. Close iTunes
this happens because the server has no Audio Hardware, You need to install a "virtual audio cable" Download the following free program:
http://www.softpile.com/Multimedia/Audio/Review13135index.html(this is the virtual audio cable)
Now disconnect from the Server by closing RDC connection
Now for this to work you must change a setting in the RDC program: Sound output MUST be selected to: "from the windows based computer only" (RDC for Mac) or "leave at remote computer" (Windows RDC) you need to do this for the Virtual Audio Cable to install correctly on the server. Log back in using RDC and run the Virtual Audio Cable setup file. Now start iTunes, you should not see any Audio configuration error messages.
If you do,
close iTunes, go to: Start > Control Panel > Quick Time > Audio Tab > Select "Direct Sound" > Apply settings and close > Try iTunes again.
If you still have a issue make sure you changed the sound option in RDC correctly or try a restart of the server.
This should now mean iTunes can start without any user input.
You should also add your iOS remote device now if you are going to be using one.
Step 5: iTunes auto launch on startup
Now that iTunes is free of errors, we need to make it auto start up when your server starts without needing to login into your server via RDC every time to start iTunes.
Simply add iTunes to the Start up folder, by either dragging the desktop shortcut to the start menu > all programs > and drop it into the startup folder OR place the iTunes shortcut into C:\Documents and Settings\Administrator\Start Menu\Programs\Startup\
Now to make the Administrator console login automatically on Windows start up, To do this you need to edit the registry of windows, Don't be afraid its simple and easy!
Start > Run > type regedit.exe > HKEYLOCALMACHINE > SOFTWARE > Microsoft > Windows NT >CurrentVersion > Winlogon
Double-click the DefaultUserName entry, type Administrator, and then click OK.
Double-click the DefaultPassword entry, type your password, and then click OK.
NOTE: If the DefaultPassword value does not exist, it must be added. To add the value, follow these steps:
On the Edit menu, click New, and then point to String Value.
Type DefaultPassword, and then press ENTER.
Double-click DefaultPassword.
In the Edit String dialog, type your password and then click OK.
Now Double-click AutoAdminLogon entry
In the Edit String dialog box, type 1 and then click OK. (delete the zero (0) if there is one)
Quit Registry Editor.
As a nice touch (you don't have to do this)but if your like me, when logging in using RDC you see iTunes open, really you want it to startup minimized to the tray right? Yes! Do so by downloading and installing iTunes Control onto your server, its a free program.
You can get iTunes Control form here:
http://itunescontrol.com/download.php
Once installed, open iTunesControl > Startup & Shutdown > Select Minimize iTunes on Startup > Apply setting and close.
Also in iTunes go to: Edit > Preferences >Advanced > Select "Show iTunes icon in system tray" and also select "Minimize iTunes window to system tray"
Your Done! if you restart the server it should automatically launch iTunes without ANY user input, easy way to check is by using a iOS device remote app to see if it connects after a server restart. or by using your apple tv to confirm iTunes is running. If you are streaming to a AirPort Express make sure it is selected as the speaker output from iTunes or via Remote App.

Similar Messages

  • Running iTunes 8 on Windows Server 2003, avoiding 2096 error

    Since QuickTime 7.5,nor iTunes neither QuickTime would run on my Server 2003, and the famous 2096 error came up. Unfortunately the new 2+ iPod firmware required iTunes 8 so I had to do something about it. The solution by apple was to turn off compatibility mode, but that was not on in the first place. Reinstalling, searching the net for solutions,.. nothing helped.
    So here is how I solved my problem. QuickTime 7.5+ requires at least XP SP2 so i followed this guide > http://www.sheebz.net/post/2008/03/Running-Photoshop-CS3-on-Windows-2003-Server. aspx
    and did the same both for the QuickTime and iTunes executables(instead of the setup.exe in the guide), and viola they are running. Note that the Microsoft Application Verifier program must be running when you start iTunes or QuickTime. The cool thing is that you have to do this only once, seems it just needs to pass the first check and after that you're good to go, no need for the Microsoft Application Verifier to be running anymore. Enjoy

    Well now we're getting somewhere.
    The RDP connection is fast, as there is nothing but 100Mb/s LAN and a switch between my desktop and the server, so thats not it. Quicktime is fine, so thats not it.
    I AM, however, running iTunes 4.8.0.32. I'm not very keen on the idea of moving to 6.0.2 for reasons that I'd rather not go into on this particular board... Is (the upgrade) this something i can do on the one machine unassociated with my apple ID? What parts of the older version are problematic?
    thanks!

  • I want to run iTunes on a home server, how do I do this?

    My iTunes music files take up too much space/room on my laptop hardrive.  I want to store the music and a separate storage area.  Is that possible?

    To move just the content and not the library files, see:
    iTunes: Moving Your iTunes Music Folder
    IMPORTANT: do not delete the iTunes folder or the preference files it contains from your boot hard drive; delete ONLY the tracks themselves (i.e. the contents of the old iTunes Music folder).
    You can also just drag the entire iTunes folder (the _entire_ folder, _not_ just the iTunes Music folder) to your desired location. Then hold down the Shift key (Windows)/Option key (Mac) while launching iTunes. You'll be given a dialog box where you can select the iTunes library you want to use. Navigate to and select the iTunes folder in it's new location. Note that this procedure assumes that all of your tracks are contained in the iTunes Music folder. If they're scattered around your volumes, moving them becomes much more complex.  And don't launch iTunes with the external drive not mounted or iTunes will default back to the internal drive. If it does, though, just mount the external drive and launch iTunes with the Shift/Option key again.
    In either case, don't delete the tracks from the old location until you've confirmed that they're working correctly from the external drive.
    Regards.

  • I am getting error messages when importing CD's. I keep getting a message saying 'unable to connect to CDDB server'. I run itunes on a macbook pro. Any ideas/solutions?

    I am getting error messages when importing CD's. I keep getting a message saying 'unable to connect to CDDB server'. I run itunes on a macbook pro. Any ideas/solutions?

    Don't worry I've sorted it! I just had to turn off Reminders as well in iCloud. Calendar then worked fine, even when I turned Calendar and Reminders back on.

  • Running iTunes from server as a service?

    I have itunes running on a windows server that i would like to use for sharing/streaming to clients on the network. I can turn itunes on once i'm logged in (via remote desktop) and it will work fine, but it eventually logs me off and therefore looses sharing.
    Is there a way to run itunes as a service with sharing? I figured out how to create a service that works, but it's not sharing - so I'm sure there's something missing.
    At any rate, is this possible? To have itunes running when the machine turns on...WITHOUT having to log in? Thanks!!!

    I wrestled with the same thing. The aggravating part is that even if I have a "master" system set up with iTunes running and the entire library shared, I can't share playlists, and I can't create playlists on the "clients" that contain songs on the master system's shared library... at least I couldn't the last time I attempted it.
    So here's my workaround. It's kinda clunky, but it works:
    All my music is contained in an iTunes directory on a shared drive on a server. I then configure a "master" system to use that directory for storage of music files, and have "copy to iTunes folder" and "keep iTunes folders organized" checked. Anytime I import a CD, I use that system.
    For every "client" system, I install iTunes normally, then I change the music directory to the directory on the shared drive, and UNCHECK both "copy to iTunes folder" and "keep iTunes folders organized". Then I simply do an "add folder to library" from iTunes, reference the shared iTunes directory, and voila!
    The really clunky part, however, is that every time you import a new CD using the master, you have to go in and do "add folder to library" on all the clients for it to show up on the clients' libraries.
    Also, if you make sure all the clients use the same drive mapping to the shared directory, you can export and import playlists.
    It works.... and as long as you have them all configured correctly and only import music on the "master" system, it works quite well.

  • HT201210 i updated my iphone 3gs to iphone 6 . while installing the software it gets error and closed. then i restored my previous version. when i turned on the phone it gets usb and itunes symbol on screen. when i run itunes error is coming like server c

    i updated my iphone 3gs to iphone 6 . while installing the software it gets error and closed. then i restored my previous version. when i turned on the phone it gets usb and itunes symbol on screen. when i run itunes error is coming like server contact problem. what can i do to start my phone????  plz help me

    I will need a little bit of information about your phone. What kind of error are you getting?

  • When using Apple TV, is the system running iTunes forced to handle the media?

    I've got an Apple TV, a PC running iTunes with Home Sharing turned on, and a NAS (network attached storage) device. All of the iTunes content (music, movies, etc.) is stored on the NAS. When I first set up the Apple TV, everything worked well. I recall watching a movie (stored on the NAS) on the apple tv and seeing little to traffic on the PC's network card. i.e. the apple tv had (apparently?) determined where the movie was located and pulled the content direct from the NAS. Note: the apple tv and PC are both connected to the network wirelessly but the NAS is hard-wired to the switch/wireless access point.
    Flash forward a few months (and a number of ATV updates) and the apple tv has been running VERY slowly to the point where it's essentially unusable. It works fine for NetFlix or YouTube or other content coming from the Internet but can't pull and present any local media.
    I've wiped the apple tv unit and set it back up. I've wiped iTunes (full uninstall and removed original library) and had it re-find all of the media. I now even have the media location referenced as \\server\share\path\file instead of <drive letter>:\path\file
    But it is still running horribly. After some more checking, I now see that when I'm asking the Apple TV to access media from the NAS, the PC's network card is working furiously. For some reason, it appears the PC is being forced to pull the content from the NAS and then forward it to the ATV. This is terribly inefficient and is making a mess of what was an otherwise great media center experience.
    Anyone have any thoughts? If this setup never worked, I think I'd be fine. But the fact that it once worked the way I expected it to but now doesn't is very frustrating. Obviously, the PC needs to be involved upfront to share the catalog and notify the player where the files are located. But, after that, it should be able to step out of the picture (no pun intended) and let everything work.
    Message was edited by: GatchamanG1 to remove some strange formatting that I never put in there to begin with

    Alley_Cat wrote:
    I assume no other tasks on the computer are using internet/network data concurrently reducing the bandwidth available for AppleTV.
    I'm not surprised at the 50-60% (if that's when it's working ok) as AppleTV will take the media stream faster than the rate it needs to play back.
    Are you maybe playing HD now and SD in the past?
    AC
    Nope.  Made sure the PC was nice and quiet and off of a fresh cold start.
    As for the SD/HD question - no to that as well.  The content hasn't changed.  Same files on the same NAS.
    Posted my question to facebook last night to see if my friends had any thoughts.  I was surprised to hear that two other friends with ATVs had pretty much the same problem I was describing (worked great after initial setup but slowed down considerably recently).  And they both experienced the issue around the same time (starting about a month ago).
    One fixed it by resetting the ATV and setting it back up again.  That hasn't worked for me.  My other friend said the problems cleared up after adding iTunes as an allowed application in Windows firewall.  So I'll see if I can fiddle with some settings there.  Don't recall there being too many options but it's at least an avenue of attack.  I'll report back if I learn anything.

  • I have a new iMac running iTunes 10.4 in OS 10.6.8, and a new Mac Air running iTunes 10.4 in Lion.  I was able to transfer all my music etc. from the iMac onto the Air, but cannot figure out how to get the Playlists from the iMac to the Air.  iTunes Help

    I have a new iMac running iTunes 10.4 in OS 10.6.8, and a new Mac Air running iTunes 10.4 in Lion.  I was able to transfer all my music etc. from the iMac onto the Air, but cannot figure out how to get the Playlists from the iMac to the Air.  iTunes Help says File >Library >Export playlist and choose XML, or to save a copy of all your playlists, File > Library > Export Library, "the Exported info is saved in XML format."  Then it says, "to import an iTunes playlist, File > Library > Import Playlist".  Now I am assuming I do that import part on the Air, but when I try it doesn't recognize anything that can be imported - what am I missing??? Aside from a clue...

    Thanks, Jim, for taking the time, but the reply is unfortunately vague in the exact area of my confusion!  "you need to copy that file to your new computer..."  Well, the Import/Export instructions make it seem as if the two computers should be able to communicate this file thru wifi, but that's the linkage I can't seem tocreate with Import/Export.  Should I instead email a copy to myself (thats what applecare suggested)?  Copy it to and from a thumb drive?  But then place the file where?  And the article was helpful, but should I be trying to move the Library file or the Library.xml file (as iTunes Help suggests)?  Sorry to be so clueless about it...I suppose I buy Apple in the hopes of not having to think about this stuff, which approach seems not to be serving me well. Thanks again for your time!

  • How do i share music libraries between an older Mac running iTunes 4 and a new one running iTunes 11?

    I have an older G4 Mac laptop that I use exclusively for playing music.  Trouble is that it's limited to an older system and thus runs iTunes 4.  Much of my music is on my newer machine which runs iTunes 11.x.  I have made certain libraries available for sharing on my newer machine, but cannot see those libraries on the shared list on the older Mac.  How do I get both machines to see each other.  Note: they also do not see each other if I try to Go -> Connect to server -> Browse.  However, they will connect if I type in the address (e.g. afp...) of the machine that I'm trying to connect to.  Anyway, I'm hoping there's some soft of back compatability setting that I've overlooked.
    rr

    This article has the directions:
    http://support.apple.com/kb/HT1203
    The important steps for you are these
    +To listen to another account's music files+
    +Open iTunes.+
    +From the iTunes menu, choose Preferences.+
    +Click Advanced.+
    +Deselect the "Copy files to iTunes Music folder when adding to library file" option.+
    +Click OK.+
    +From the File menu, choose Add File to Library.+
    +Note: Windows users can also choose Add Folder to Library to add a folder of songs.+
    +Navigate in the Add File To Library window to the location where the other user's music is saved (the iTunes Music folder in the case above).+
    +Click Open.+
    +Repeat these steps for each account that is listening to shared music.+
    +When another user of the computer has imported new music from CD, repeat steps 6 through 8 to add the music to your library.+

  • Running Itunes as Daemon on Boot

    Hello,
    I have a question about running itunes as a daemon on boot on my mac mini server? I have 2 apple tv's and I don't not want to have to constantly login on the server. Is there anyway to have itunes run as the user in the background on boot?

    I think the only solution you will find is enabling autologin and have itunes in the startup items for the user.
    I think it's about time that the server part of iTunes was a daemon though. I was hoping to do that myself.

  • Installing iTunes on Windows Home Server.

    I've installed iTunes on my Windows Home Server and connected it to my AppleTV. To have it running 24/7 I need to log onto WHS run iTunes then exit without logging off. Is there any way to run iTunes as a Windows SERVICE ?
    Mark

    Hi all,
    after some further 'googeling' I found the solution that works. Take a look at: http://goolier.com/index.php/2010/09/itunes-10-on-windows-server-2003-or-home-se rver/
    kellerth

  • Use macbook to manage 1 itunes library in a server

    Hi all, I'm planning my move to MAC but need the answer to some key questions before.
    I'm planning on having a itunes installed on a mac mini (server) connected to an external USB hard-drive holding all my music. I don't want to use this server itself (via mouse, keyboard, screen), I want to use it exclusively via my macbook/wifi (which will hold no music itself).
    Is this possible? to have only one itunes library in the server and fully use and manage it via the macbook. Also I would need to move files and run programs on the server via macbook.
    To throw in another variable... what if instead of a mac mini server, it was a regular PC with windows XP? would all this be possible too?
    If this information is somewhere else, please point me out and I'll read it.
    THANKS in advance for your input, it is greatly appreciated.

    Jorge83 wrote:
    Hi all, I'm planning my move to MAC but need the answer to some key questions before.
    a wise choice, Jorge83 ! welcome to Apple discussions and the bright side of computing.
    I'm planning on having a itunes installed on a mac mini (server) connected to an external USB hard-drive holding all my music. I don't want to use this server itself (via mouse, keyboard, screen), I want to use it exclusively via my macbook/wifi (which will hold no music itself).
    Is this possible? to have only one itunes library in the server and fully use and manage it via the macbook. Also I would need to move files and run programs on the server via macbook.
    yes. you may need to have mouse, keyboard and monitor connected to the mini for the initial setup. but once that is done, you can access/control the mini vis +screen sharing+ from your MacBook.
    To throw in another variable... what if instead of a mac mini server, it was a regular PC with windows XP? would all this be possible too?
    it would not be a simple as with the mini (there's no screen sharing possible between Mac and PC AFAIK) but it should be an option, yes. i can't provide any steps for that scenario but perhaps another user can.
    good luck and happy holidays !

  • How to run adt.jar in headless mode?

    Hi,
    I am facing issues packaging flex iOS applicaition in headless mode. Here is the error I am getting: After googling, I found this error might not occur when run in headless mode. I have already set the <headless-server>true</headless-server> in the air-config.xml and others.
         [java] Exception in thread "main" java.lang.InternalError: Can't connect to window server - not enough permissions.
         [java]     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         [java]     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
         [java]     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
         [java]     at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         [java]     at java.lang.System.loadLibrary(System.java:1045)
         [java]     at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
         [java]     at java.security.AccessController.doPrivileged(Native Method)
         [java]     at java.awt.Toolkit.loadLibraries(Toolkit.java:1605)
         [java]     at java.awt.Toolkit.<clinit>(Toolkit.java:1627)
         [java]     at java.awt.Dimension.<clinit>(Dimension.java:70)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator.validateImageUri(ApplicationDescri ptorValidator.java:183)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator20.validateElement(ApplicationDescr iptorValidator20.java:121)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator25.validateElement(ApplicationDescr iptorValidator25.java:65)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator26.validateElement(ApplicationDescr iptorValidator26.java:62)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator30.validateElement(ApplicationDescr iptorValidator30.java:52)
         [java]     at com.adobe.air.validator.ApplicationDescriptorValidator31.validateElement(ApplicationDescr iptorValidator31.java:46)
         [java]     at com.adobe.air.validator.DescriptorValidator.endElement(DescriptorValidator.java:239)
         [java]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser .java:601)
         [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XML DocumentFragmentScannerImpl.java:1782)
         [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDri ver.next(XMLDocumentFragmentScannerImpl.java:2939)
         [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImp l.java:648)
         [java]     at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScanne rImpl.java:140)
         [java]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo cumentFragmentScannerImpl.java:511)
         [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:808)
         [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.ja va:737)
         [java]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
         [java]     at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java :1205)
         [java]     at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.j ava:522)
         [java]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
         [java]     at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
         [java]     at com.adobe.air.Descriptor.validateXML(Descriptor.java:182)
         [java]     at com.adobe.air.Descriptor.<init>(Descriptor.java:56)
         [java]     at com.adobe.air.ApplicationDescriptor.<init>(ApplicationDescriptor.java:84)
         [java]     at com.adobe.air.ApplicationPackager.validateApplicationDescriptor(ApplicationPackager.java: 101)
         [java]     at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:64)
         [java]     at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:217)
         [java]     at com.adobe.air.ADT.parseArgsAndGo(ADT.java:557)
         [java]     at com.adobe.air.ADT.run(ADT.java:414)
         [java]     at com.adobe.air.ADT.main(ADT.java:464)
    Please help.
    Thanks,
    Swathi.

    Hi Swathi,
    Can you quickly check the following:
    1) Are you using the <headless-server> tag correctly, i.e. inside the <compiler> tag?
    2) Are you able to run it as a normal user and the problem is only when running via Jenkins?
    3) Can you check that the libraries you are trying to load are loadable via a daemon process?
    4) Does your daemon process have sufficient permissions for reading/writing/executing as per your requirements?
    5) Does the issue exist for an application not using native extensions(ANE) or is it specific to when using extensions?
    Also, please check your firewall settings.

  • Automating a flex app on a headless server

    I have a flex chart drawing application that needs to be automated. When automated it will read in data from the DB, draw the charts, and save them as .png files. This works flawlessly on my localhost version of oc4j on my Mac. However it has never worked on our Solaris oc4j deployment which is a headless server. I've set flex to run as headless in the config files but no dice. How can I get this working? Here are some of the error messages I'm getting:
    LINUX/UNIX browser attempting to launch /opt/sfw/bin/firefox http://flexdomain.yadayadyada
    08/11/06 14:41:53
    user dir: /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/j2ee/home
    08/11/06 14:41:54 ERR>The application 'firefox-bin' lost its connection to the display flexdomain. yadayadyada:1.0;
    08/11/06 14:41:54 ERR>most likely the X server was shut down or you killed/destroyed
    08/11/06 14:41:54 ERR>the application.
    08/11/06 14:41:54 ExitValue: 1
    And here's a snippet from the Java which launches the flex app in the firefox browser:
    String cmd = "/opt/sfw/bin/ff.sh "+ url; // ff.sh is a script which sets DISPLAY and launches firefox with the flex url
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec(cmd);
    I'm using 10g, by the way.
    Thanks!
    Edited by: Solerous on Nov 7, 2008 7:04 AM

    Ok, I'm convinced that this is some sort of configuration problem. I can get the browser to launch when written as a simple java program compiled at the command line:
    import java.util.*;
    import java.io.*;
    public class Launcher {
    public static void main(String args[]) throws IOException {
    String url = "http://www.ebay.com";
    String[] commands = {"/bin/sh", "-c", "/opt/sfw/bin/firefox ", url, "-width", "1600", "-height", "1200", ":5"};
    ProcessBuilder pb = new ProcessBuilder(commands);
    Map<String, String> env = pb.environment();
    env.put( "DISPLAY", ":5" );
    Iterator it = env.entrySet().iterator();
    while (it.hasNext()) {
    Map.Entry pairs = (Map.Entry)it.next();
    System.out.println("\t>> environ: "+pairs.getKey() + " = " + pairs.getValue());
    Process process = pb.start();
    The output is just to show the environment variables and it looks like this:
         >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
    >> environ: LANG = C
    >> environ: DISPLAY = :5
    >> environ: ORACLE_BASE = /oracle
    >> environ: ORACLE_TERM = vt100
    >> environ: PWD = /usr/local/u00/de8
    >> environ: _ = /usr/bin/java
    >> environ: MAGICK_HOME = /usr/ImageMagicK/ImageMagick-6.4.4
    >> environ: ORACLE_SID = cots
    >> environ: USER = de8
    >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
    >> environ: EDITOR = /bin/vi
    >> environ: MOZILLA_SOLARIS_PATCHCHECKER = disable_patchchecker
    >> environ: HOME = /u00/de8
    >> environ: SSH_CONNECTION = 128.219.196.118 64994 160.91.230.33 22
    >> environ: LD_LIBRARY_PATH = /usr/jdk/instances/jdk1.5.0/jre/lib/sparc/server:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/jdk1.5.0/jre/../lib/sparc:/opt/SUNWspro/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ImageMagicK/ImageMagick-6.4.4/lib::/oracle/product/9.2.0/lib
    >> environ: LOGNAME = de8
    >> environ: SHELL = /bin/ksh
    >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    >> environ: SSH_TTY = /dev/pts/1
    >> environ: MAILMSG = [YOU HAVE NEW MAIL]
    >> environ: MANPATH = /usr/opt/SUNWmd/man:/usr/man:/usr/local/man:/usr/share/man:
    >> environ: NNTPSERVER = time.ornl.gov
    >> environ: SSH_CLIENT = 128.219.196.118 64994 22
    >> environ: MAIL = /var/mail/de8
    >> environ: TZ = US/Eastern
    >> environ: PS1 = ${PWD###/} $
    >> environ: TERM = vt100
    >> environ: PATH = /oracle/product/10.1.3.2.0/OracleAS_1:/oracle/product/10.1.3.2.0/OracleAS_1/OPatch:/usr/xpg4/bin:/usr/ccs/bin:/usr/local/bin:/usr/bin:/usr/ucb:/etc:/usr/sbin:/u00/de8/bin:/opt/NSCPcom:/sbin:/usr/local/etc:/usr/lib:/usr/opt/SUNWmd/sbin:/usr/bin:/usr/local/bin/perl5.00502:/usr/openwin/bin:/opt/sfw/bin:/usr/ImageMagicK/ImageMagick-6.4.4/bin:.:/oracle/product/9.2.0/bin
    I decided to output the env vars in hopes that it would show what needs to be reset. But if I use the exact same code in my deployment, it fails and I get the following env settings:
    08/12/09 14:14:27 >> environ: XFILESEARCHPATH = /usr/dt/app-defaults/%L/Dt
    08/12/09 14:14:27 >> environ: LANG = C
    08/12/09 14:14:27 >> environ: DISPLAY = :5
    08/12/09 14:14:27 >> environ: ORACLE_CONFIG_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    08/12/09 14:14:27 >> environ: NLSPATH = /usr/dt/lib/nls/msg/%L/%N.cat
    08/12/09 14:14:27 >> environ: TMP = /tmp
    08/12/09 14:14:27 >> environ: TZ = US/Eastern
    08/12/09 14:14:27 >> environ: NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
    08/12/09 14:14:27 >> environ: ORA_NLS33 = /oracle/product/10.1.3.2.0/OracleAS_1/ocommon/nls/admin/data
    08/12/09 14:14:27 >> environ: LD_LIBRARY_PATH = /usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc/server:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/lib/sparc:/usr/local/src/oracle/product/10.1.3.2.0/OracleAS_1/jdk/jre/../lib/sparc:/oracle/product/10.1.3.2.0/OracleAS_1/opmn/lib:/oracle/product/10.1.3.2.0/OracleAS_1/lib32
    08/12/09 14:14:27 >> environ: X_LD_LIBRARY_PATH_64 = /oracle/product/10.1.3.2.0/OracleAS_1/lib
    08/12/09 14:14:27 >> environ: ORACLE_HOME = /oracle/product/10.1.3.2.0/OracleAS_1
    08/12/09 14:14:27 >> environ: SHELL = /bin/bash
    Does anyone know how I can get the deployed version (running in the server container) to work exactly in the same way as the version run from a simple command line?

  • Can we run itunes as a service on windows

    Can we run itunes as a service? If not we really need the dev team to step up and fix it.
    With the new option for sync over wifi we really need a service that runs in the background of our home pc's for the sync. As you know this takes place everytime you apply power, or when you hit the sync now button. So, unless we run itunes in its fullest all the time we can't count on the wifi sync to do what it is designed for. Running itunes eats up computer resources that some people need when doing school work, job work, and other important things. So please build a new version of itunes that allows it to run in the background and serve as a sync service.
    Anyway this might be the wrong place for a suggestion but hopefully someone will get it to the right people.

    Take a look at something called java service wrapper ,
    http://wrapper.tanukisoftware.org/doc/english/introduct
    on.htmlNot seen that one before. Ta.
    Alexandria software used to support a simpler app called JavaService... google for that maybe if the above is too much.
    /k1

Maybe you are looking for

  • How to use a table to fill an array

    I have a cFP 2110 with a couple of relay modules I'm using to automate a process.  I'm  using an array of a cluster of elements to turn the relays on and off with a time delay for each step.  This was the first version I started with and I have since

  • Setting up records management for a custom list in SharePoint 2013

    In a workflow 2013, I am planing to 'declare a record' on a custom list. I am doing this since I do not want users to be able to change the custom list once the record is submitted to workflow 2013. There are options in record declarations settings t

  • WL6.1 SocketException

    "I am facing this problem of SocketException being thrown on server console a number of times. I have just moved to weblogic 6.1 from 6.0. I have compiled all the classes with references to weblogic.jar and jdk from WL6.1. The cause of this exception

  • Scroll Position ReportViewer

    Hello, is there a way to retrieve and set the scroll position (Horizontal and Vertical of course) of the WinForm CrystalReportViewer. I tried everything (includinng the analysis of the controls of the control CrystalReportViewer) and none of the cont

  • PHP and Postgresql nightmare

    Hello all.. I have read numerous articles and how-to's on compiling PHP that includes the PostgreSQL extensions and have followed all their recommendations. Yet, my apache insists on reading the PHP directive from /usr/libexec/apache2 and my installa