As per my previous post, I'm setting up Tomcat 6.0.24 with Apache on Mac OS X Server 10.5, using the built-in versions that come with the OS, and Java 1.5.0_26 (the latest from Apple, just released).
When I invoke a specific operation in my servlet from my Web client, which involves uploading an image and then using the ImageIO package to resize the image and save it to disk, I get the following exception: Oct 21, 2010 7:29:49 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet RaffleBackend threw exception java.lang.InternalError: Can't connect to window server - not enough permissions. at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1824) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1725) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.image.ColorModel.loadLibraries(ColorModel.java:188) at java.awt.image.ColorModel.<clinit>(ColorModel.java:196) at javax.imageio.ImageTypeSpecifier$Packed.<init>(ImageTypeSpecifier.java:275) at javax.imageio.ImageTypeSpecifier.createPacked(ImageTypeSpecifier.java:327) at javax.imageio.ImageTypeSpecifier.<clinit>(ImageTypeSpecifier.java:63) at com.sun.imageio.plugins.gif.GIFImageReader.getImageTypes(GIFImageReader.java:240) at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:962) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1322) ... And then immediately, another exception in the same place: Oct 21, 2010 7:30:06 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet RaffleBackend threw exception java.lang.NoClassDefFoundError at com.sun.imageio.plugins.gif.GIFImageReader.getImageTypes(GIFImageReader.java:240) at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:962) at javax.imageio.ImageIO.read(ImageIO.java:1400) at javax.imageio.ImageIO.read(ImageIO.java:1322) ... My spidey-sense tells me the mention of "window server" is related to the fact that Tomcat is running via launchd on a Mac OS X Server. I can run this code fine in a desktop environment on my iMac (which uses Tomcat 6.0.26 and Java 1.6.0_20). Looking at the ImageIO package, it's been available since 1.4, so I don't think this is a Java version mismatch problem. Any ideas? T -- "If you have a procedure with ten parameters, you probably missed some." -- Alan J. Perlis --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org