Looks more like libawt.so has an unsatisfied link to libXp.so.6 .... this is a security exeption first so maybe libXp.so.6 is in a protected area somehow...either through java's sandbox or some stupid windows permissions thing
Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 -----Original Message----- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:36 PM To: Tomcat Users List Subject: Re: Please help, i have to be missing something very simple I created a little test program(see below), and i get the following error java com.unitnet.utils.testcolor Just Before Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1437) at java.awt.Toolkit.<clinit>(Toolkit.java:1458) at java.awt.Color.<clinit>(Color.java:250) at com.unitnet.utils.testcolor.main(testcolor.java:13) ======================================================== yet ls -ls /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so 2972 -rwxr-xr-x 1 root bin 3034008 Feb 24 2004 /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so ================================ package com.unitnet.utils; import java.awt.*; public class testcolor { public static void main (String[] args){ try{ System.out.println( "Just Before" ); Color bgcolor = new Color( 1 , false ) ; System.out.println( "Just After" ); }catch (Exception ex){ ex.printStackTrace(); } } } =================================================== On 1/6/06, Mike Sabroff <[EMAIL PROTECTED]> wrote: > Do you have a package statement in your servlet? > > You should > > > Mike Sabroff > Web Services Developer > [EMAIL PROTECTED] > 920-568-8379 > > -----Original Message----- > From: Randy Paries [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 3:24 PM > To: users@tomcat.apache.org > Subject: Please help, i have to be missing something very simple > > Hello, > I am moving an App from a devel server to a production server > > When i run the app everything works fine except the new stuff (of > course) > > in my servlet i am calling > Color bgcolor = new Color( > Integer.parseInt(album.getBGcolor().substring(1), 16) ) ; > > and as soon as i do i get Class not found > > FYI > i am using tomcat-5.0.24 > > ./catalina.sh run > Using CATALINA_BASE: /usr/java/jakarta-tomcat > Using CATALINA_HOME: /usr/java/jakarta-tomcat > Using CATALINA_TMPDIR: /usr/java/jakarta-tomcat/temp > Using JAVA_HOME: /usr/java/j2sdk1.4.2_04 > classpath=/usr/java/j2sdk1.4.2_04/lib/tools.jar:/usr/java/jakarta-tomcat > /bin/bootstrap.jar:/usr/java/j2sdk1.4.2_04:/usr/java/j2sdk1.4.2_04/lib > > path=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin > :/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_04/bi > n:/root/bin > > java_home=/usr/java/j2sdk1.4.2_04 > > > Any ideas what i am overlooking. It has to be simple > ========================================================== > > > StandardWrapperValve[galleryPubServlet]: Servlet.service() for servlet > galleryPubServlet threw exception > java.lang.NoClassDefFoundError > at galleryPubServlet.startUpload(galleryPubServlet.java:245) > at galleryPubServlet.MYdoGet(galleryPubServlet.java:156) > at galleryPubServlet.doGet(galleryPubServlet.java:101) > at galleryPubServlet.doPost(galleryPubServlet.java:66) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:237) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:157) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > e.java:214) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 20) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon > textValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > e.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 20) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > :137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > :117) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:102) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535 > ) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 20) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo > ntext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5 > 20) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:296) > at > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:372) > at > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694) > at > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: > 626) > at > org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > .java:644) > at java.lang.Thread.run(Thread.java:534) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]