Certain Java methods only available on Tomcat, when logged in as a user

Certain java methods are only available in a Tomcat webapp, when the Tomcat server is started in a terminal window, while the user is directly logged into the system
When one of those methods are called from a command line app, for a split second an app pops up in the dock, even though no UI-method is called directly.
For example include a method like javax.imageio.ImageIO.createImageInputStream into a servlet inside a tomcat webapp and start tomcat through a ssh-connection.
The servlet will crash with following exception:
java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.Disposer
javax.imageio.stream.FileImageInputStream.<init>(FileImageInputStream.java:82)
javax.imageio.stream.FileImageInputStream.<init>(FileImageInputStream.java:57)
com.sun.imageio.spi.FileImageInputStreamSpi.createInputStreamInstance(FileImage InputStreamSpi.java:37)
javax.imageio.ImageIO.createImageInputStream(ImageIO.java:331)
com.sage.utility.ImageUtil.getFormatName(ImageUtil.java:76)
When Tomcat is started from a normal terminal window, while being logged into Mac OS, the very same method works without a problem.
It looks like the problem only exists on Mac OS X... on Linux it runs without a problem under the same configurations
I just noticed, that when the user logs out, the server will remain active, but another exception is raised:
Can't connect to window server - not enough permissions.
It looks like the reason for this is a crooked implementation of the java api by apple.
Since it doesn't really work for us, doing all out administration though screen sharing, I would love to hear, that there is a way around this.

After I filed a bug-report an Apple engineer contacted me, and asked me to try running java in headless mode: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
That solved the problem!

Similar Messages

  • ORACLE Not Available - only when logged on as another user

    I can't figure out what I forgot. I installed everything (RH 6.1
    and standard) and can login as internal from user oracle no
    problems.
    When I login from a user I have granted dba to I get Error
    01034: ORACLE not Available. This is in sqlplus. I am sure it is
    something obvious as I had it working before my 5th reinstall.
    Thanks,
    Jon Griffin
    null

    Jon,
    Are you sure that the Database is started? You will get this
    error if it isn't.
    Chris
    Jon Griffin (guest) wrote:
    : I can't figure out what I forgot. I installed everything (RH
    6.1
    : and standard) and can login as internal from user oracle no
    : problems.
    : When I login from a user I have granted dba to I get Error
    : 01034: ORACLE not Available. This is in sqlplus. I am sure it
    is
    : something obvious as I had it working before my 5th reinstall.
    : Thanks,
    : Jon Griffin
    null

  • Local apps crash when logged in as Xserve user - HELP!

    I run a new elementary school mac lab: 24 eMacs (OS 10.4.2) as managed users/groups with remote home directories on an Xserve. We run the programs locally and save to the server. Many of our apps are crashing leaving the OS fine. These are new OSX educational titles from various quality vendors including The Learning Company (Kid Pix Deluxe 4, Storybook Weaver Deluxe) and Tom Snyder Productions (Neighborhood Map Machine). And these are the only apps run so far! Our eMacs have 512 MB Ram. I use an iMac G5 with 1GB Ram as the instructor. These apps quit ALOT; however, when logged in as an administrator to the local machine, the apps do NOT quit. I've tried the various solutions posted in the Tiger discussions regarding font removal and system cache cleaning...to no avail. I'm beginning to think it may be server-related. HELP!!!

    "System Administrator" is the system access for the xserve. "Administrator" is your system access for the user/client computers, when logged in as that, it allows you access to the system "no restriction". I use one "name" for system access for all servers and clients on campus. I have alot of older applications that we run that have their own issues but not permissions, they run under OS 9. Newer apps like Mavis Beacon16 and Carmen SanDiego I had to tweak, I run them server based. I assume you have Apple Remote Desktop running. Set one of your lab computers up as a back up administrator/tester with ARD and all the server apps installed. I had all my new iMac G5 go bad (Bad Capacitors) and they were my Admin computers. Tweak one app at a time, get it running the way you want it to. Have a student abuse/test the app. Once it works correctly shoot the app to the other clients via ARD. This way your only fixing on machine. Setting Read/Write is a quick fix to get them up and running, But you are opening up the applications to the students who a very creative and never read dialog boxes. If you leave them open you will have to reinstall them occasionally to get them working again. I have had students change the name of a file and the app quits working. That is the major problem of Read/Write.
    otto

  • Local apps quitting when logged in as Xserve user

    I run a new elementary school mac lab: 24 eMacs (OS 10.4.2) as managed users/groups with remote home directories on an Xserve. We run the programs locally and save to the server. Many of our apps are crashing leaving the OS fine. These are new OSX educational titles from various quality vendors including The Learning Company (Kid Pix Deluxe 4, Storybook Weaver Deluxe) and Tom Snyder Productions (Neighborhood Map Machine). And these are the only apps run so far! Our eMacs have 512 MB Ram. I use an iMac G5 with 1GB Ram as the instructor. These apps quit ALOT; however, when logged in as an administrator to the local machine, the apps do NOT quit. I've tried the various solutions posted in the Tiger discussions regarding font removal and system cache cleaning...to no avail. I'm beginning to think it may be server-related. HELP!!!

    could be a corrupt computer list. We have run into this quite a bit. Create a new computer list, not from a template, add the apps and see what happens.

  • Adobe Illustrator file will not display correctly when logged in as a user

    I am working with an Adobe Illustrator CS2 file that will open and display correctly if I log in as Administrator, but will not display correctly if I am logged on as a user. The error message is that there is not enough memory to display the file correctly and I am forced into preview mode. The user Home folder is on a server. Other than this, I have made certain that the criteria for opening the file match under both interfaces. I have opened the AI CS2 file on other Macs and it opens fine. I conclude that the problem is with the user Home folder, but beyond that, I'm stumped. Any help will be appreciated.

    After I filed a bug-report an Apple engineer contacted me, and asked me to try running java in headless mode: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
    That solved the problem!

  • Why does terminal behave differently when logged in as different users?

    when I'm logged into my mba as my regular normal user, bash behaves normally;  but when I create a new user or use any user other than my default the behavior is different.  (might be bash or sh)
    Specifically, the tab autocomplete function works fine when I'm logged in as my regular user (tab-complete;  tab twice for all available selections/options).
    But on a newly-created user (also an admin) there is no tab complete, no 'tab twice, other options' etc. 
    Has anyone else seen this?
    I searched in this forum and found some instructions for creating an .inputrc file but I don't appear to have one on my default user so not sure why I would need this on the new user ?!?!?
    p.s. here are the instructions I found previously via a post on this forum:
    http://www.ernieflores.net/osx-page-4/how-to-enable-tab-completion-in-mac-os-x-t erminal/

    Done!  Thanks!
    https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.0.9
    https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.1.9

  • Delegated task not listing in the BPEL Portlet when logged in as that user

    Hi All,
    A task delegated to say a user JCOOPER (which is picked from OID) is not listing in the BPEL Portlet when logged in as user jcooper...
    Is there any workaround to solve this issue?The issue persists in PROD environment..Somebdy pls suggest..
    Thanks,
    ChitraDevi D

    Hi All,
    Any body pls help out for this issue
    Thanks,
    ChitraDevi D

  • Application won`t start - starts when logged in as another user

    An application created by Unity doesn`t start. When I double click (or right mouse click and choose `open`) nothing happens. However, when I log in as another user, or when I try to run the same program from a flash drive, it works. I tried a lot, including repairing permissions, but nothing helped.
    Thanks in advance !

    Try logging into your user while holding down the shift key on your keyboard, to supress any startup items that may be interfering with your program.
    If that does not do it, look for a preference file in you user folder by choosing the Go menu from the Finder and selecting Go to Folder and enter ~/Library/Preferences and checking for files having to do with your application. If there are any, move them to your desktop and try again.
    If that does not fix it, move them back, replacing the new ones that will be built. Also, if your program uses any data files or libraries when started up, try removing those. Again, if not fixed, put them back.

  • Calling a external Java method from JSP - using Tomcat server

    Hi all,
    I am trying to call a method in an external Java file from my JSP. I am using Tomcat server.
    I have my class within the package package "mypackage" and it is called myclass.class. It has only one static method mymethod() which reads from a file and writes to a file.
    I compiled the java class and I put the class file under webapps/ROOT/web-inf/classes/mypackage/myclass.class
    I am trying to say something like this from my JSP file(which is under webapps/ROOT) :
    <%@ page import = "mypackage.myclass"%>
    <% myclass.mymethod(); %>
    I am not instatiating the class as its a static method.
    This is what I get while accessing my jsp file :
    javax.servlet.ServletException: try to access class mypackage.myclass from class org.apache.jsp.index_005ftest_jsp
    To put my problem in a nutshell, Can someone guide me how to access a method of an external class from a JSP page? I have a bunch of pages doing the same operation so I thought I would have it in a method and call it from every page. Even though I tried to put the file under web-inf/classes, The JSP is not able to see the class.
    Please help.
    Thanks
    -Uday

    I have a situation that is a bit similar. I have successfully used beans for storing methods used in JSPs and used by other methods in the same class as was suggested above. Now I would like to break some methods into another (utility) class since they are lower level and can be used by lots of things. They are for database operations (given a String query and String dbname, it queries and returns ResultSet for example). I want to have them in a separate class for reusability and OOP.
    I am having problems calling those public static methods in the public class from my bean that communicates with the JSP. I can't compile the class that calls the method in the database ops class. I get an error like :
    loginHelper.java:45: cannot find symbol
    symbol : variable sqlHelper
    location: class dbHelperBean.loginHelper
    and when I include the package name in the call I get
    loginHelper.java:45: cannot find symbol
    symbol : class sqlHelper
    location: package dbHelperBean
    That's strange since the package of both classes is dbHelperBean and the class is indeed called sqlHelper. I tried to compile it in the same directory as sqlHelper as well. What am I doing wrong?
    Thanks for any help.

  • Podcast episodes only available for download when subscribed to podcast

    I have a newly created podcast that I created for a client and you can locate the podcast in itunes, however none of the podcast show up.  Once you subscribe to the podcast you can download episodes.  What could be wrong?
    Podcast Link:  https://itunes.apple.com/us/podcast/global-outreach-center-jacksonville/id696239 758?mt=2
    Podcast Feed:  http://feeds.feedburner.com/globaloutreachcenter/xkzn
    I set this up like all other podcasts I control however this one is acting funny.
    Any help you can give would be appreciated.
    Thanks!

    There are three episodes in the feed. All three show when subscribing, and on the Store web page. However in the Store within iTunes only two show - oddly enough the middle one is missing - but the Store claims to be showing three items.
    We've seen this before: it's a bug in the Store, and I'm afraid there isn't anything you can do about it - your feed is fine. It will probably sort itself out eventually.

  • After upgrading to Mavericks App store only works for me when I switch over other users

    After upgrading to Mavericks, the only options that work for me on App Store are Updates and Purchases, anything else only works if I switch my user either to guest or root? Any idea?  Thx in advance. 

    Read this whole message before doing anything.
    Back up all data.
    Quit the App Store application if it’s running.  Wait at least 10 seconds before continuing.
    Step 1
    Hold down the option key and select
    Go ▹ Library
    from the Finder menu bar. Delete the following items from the Library folder (some may not exist):
    Caches/com.apple.appstore
    Caches/com.apple.storeagent
    Caches/storeagent
    Cookies/com.apple.appstore.cookies
    Preferences/ByHost/com.apple.appstore.plist
    Preferences/ByHost/com.apple.storeagent.plist
    Preferences/com.apple.storeagent.plist
    Leave the Library folder open. Try the App Store again. If it works now, stop here. Close the Library folder.
    Step 2
    If you still have problems, quit again and wait 10 seconds. Go back to the Finder and move the following items from the open Library folder to the Desktop:
    Cookies/com.apple.appstore.plist
    Preferences/com.apple.appstore.plist
    Test. If the App Store now works, delete the files you moved to the Desktop. Otherwise, quit again. Put back the files you moved, overwriting the newer ones that may have been created in their place, and post your results.

  • [SOLVED] XFCE4 Will Not Open When Logged On as Regular User

    Please excuse me if I am being a noob, but I only installed ArchLinux yesterday. Whenever  I run
    startxfce4
    as a regular user, the screen goes dark, flashes the Nvidia logo, then exits to a dialog box that reads:
    Unable to load a failsafe session Unable to determine failsafe session name. Possible causes: xfconfd isn't running (D-bus setup problem); environment variable $XDG_CONFIG_DIRS is set incorrectly (msut include "/etc"), or xfce4-session is installed incorrectly."
    When I check the output after I click "Quit" on the dialog box, the output at the end reads
    gpg-agent[1538]:error creating '/home/mordecai/.cache/gpg-agent-info' : Permission denied (xfce4-session:1515): Pango-WARNING **:error opening config file '/home/mordecai/.config/pango/pangorc' : Permission denied
    However, when I run
    startxfce4
    logged on as root, everything opens fine. Thanks for any help and/or pointers.
    Last edited by mordecaifeilbach (2012-11-03 21:51:33)

    Also, when I try to start xfconfd it gives me this:
    $ /usr/lib/xfce4/xfconf/xfconfd
    (xfconfd:20910: xfconfd-CRITICAL **: Xfconfd failed to start: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    I also checked the environment variable $XDG-CONFIG-DIRS and it is set correctly, and the xfce4-session installation did not return any error messages.

  • Mail cashing immediatly when logged in as second user.

    I try to create a first time user account in mail for my sister.
    This is on my brother in law's (BIL) Macbook dualcore.
    So BIL has his account and sister also
    Both have admin. rights (?) and BIL uses mail already.
    When I log in on my sister's desktop by quickswitch and I try to open mail; it will not, instead the "mail stopt unexspected" window opens.
    Same happens when I log out Bil and try again.
    I did delete de pref. mail file, but no changes.
    Just for the record: iChat does the same, and safari disappears after a few clicks.
    So something must be wrong.
    Running 10.4.10 with all the updates available exept those of today(12-07-07)
    macbook dualcore   Mac OS X (10.4.10)  
    macbookpro dualcore   Mac OS X (10.4.10)  

    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    Take a look at the following article, in case this is a font issue:
    Font Management in Mac OS X Tiger and Panther
    You may also want to read this:
    Multiple applications quit unexpectedly or fail to launch

  • IWeb '08 works when logged-in as 'root' user

    Hi,
    iWeb '08 converted my old sites and crashed. Since then, iWeb crashes when starting. I logged-out and logged-in as root, in this case iWeb can open my old sites. But, if I log-in again as usual (not root) then iWeb refuses to open my old sites... Any help?
    follow-up:
    I changed the permissions of 'Domain.sites2' and then iWeb seems to open it and suddenly crashes again...
    Xtoff
    Message was edited by: Christophe THEVIGNOT

    I had a similar permission error message when attempting to publish, that also said that the disk could be full. Turned out to be that I had a mp3 file name with an equals and / sign in it - must have been an illegal character? The old iWeb didn't choke on it for some reason...
    Might not apply to you, but I hope this helps -

  • Software center dont show the package(not applications) on the client as installed when logging in with other User ID.

    It is showing as Installed in software center with user ID through which it is actually installed but not from other User ID's.
    Please send me suggestions or how we can resolve this issue.

    Software center might not show it if there are multiple users logged in. It will only be shown to the
    user that got the highest (lowest? Can't remember it) session id.
    http://social.technet.microsoft.com/Forums/en-US/a3c20fe1-226d-4667-afeb-74879ee93c6a/applications-but-not-programs-showing-in-software-centre?forum=configmanagerapps
    Regards, Ibrahim Hamdy

Maybe you are looking for

  • Zen vision M 30GB blank white screen

    I have scanned the forum for a smiliar problem but I need more help. My Zen vision M, 30GB player is a 2004 model, my Operating system is Windows Vista, 32-bit. I'm not sure what firmware I have on my player. As of last week, I have only a blank whit

  • Business Content not Loaded?

    Hi Folks, Is it possible that during a BI install certain business content does not get loaded into the system? Is there a way to reload missing business content. The problem I have is as follows: When activating business content cube 0CRM_C08 with d

  • Reagrding export tab declaration  in function module

    Hi, I am populating an error structure in the function module and want to export that error structure to calling program. Now I have to create this error structure using data: statement inside the function module. The error structure has following fi

  • Problems with Moving Contacts on 5310

    Hi I moved my contacts from phone to Sim today.... Then i realised my phone memory was free .. did not mean to do this.. Anyway when i try and copy contacts back to phone it wont copy saying not copied...even if i mark them all So Basically i am tryi

  • How do you modify my settings on my Ping?, How do you modify my settings on my Ping?

    I have a Ping and for one I cant figure put how to modify my settings so that i can like and post things And for 2 i dont know how to set a profile picture Can someone please help