From owner-freebsd-java@FreeBSD.ORG Fri Jul 17 00:10:21 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 280A0106566C for ; Fri, 17 Jul 2009 00:10:21 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id AFBDB8FC1E for ; Fri, 17 Jul 2009 00:10:20 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MRaeI-0000VM-M6 for freebsd-java@freebsd.org; Thu, 16 Jul 2009 16:46:02 -0700 Message-ID: <24526351.post@talk.nabble.com> Date: Thu, 16 Jul 2009 16:46:02 -0700 (PDT) From: Hegazy To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: engmohheg@gmail.com Subject: java native code error X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 00:10:21 -0000 Dear All, i have a problem after compilation of a java application to native code , the first time when i ran the native code there was a run time java exception class not found (sping.framework.collectionfactory ) the application uses spring version 2 , i updated the application with the latest version of spring library , and also there was an error about edu.emory.mathcs.backport.java.util.concurrent so i added the backport library , after adding the latest version of the spring and backport i have this error : Caused by: java.lang.UnsatisfiedLinkError: registerNatives i don't know what is the problem , could anyone tell me what is the problem 2009-07-15 19:36:39.210::INFO: Logging to STDERR via org.mortbay.log.StdErrLog2009-07-15 19:36:39.363::INFO: jetty-6.1.02009-07-15 19:36:39.446::INFO: Started SelectChannelConnector @ 0.0.0.0:525012009-07-15 19:36:49.966:/:INFO: Initializing Spring FrameworkServlet 'org.springframework.web.servlet.DispatcherServlet'2009-07-15 19:36:49,966 [btpool0-2] INFO DispatcherServlet - FrameworkServlet 'org.springframework.web.servlet.DispatcherServlet': initialization started2009-07-15 19:36:50,000 [btpool0-2] INFO XmlWebApplicationContext - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@919be70: display name [WebApplicationContext for namespace 'org.springframework.web.servlet.DispatcherServlet-servlet']; startup date [Wed Jul 15 19:36:50 GMT 2009]; root of context hierarchy2009-07-15 19:36:50.165::WARN: EXCEPTION javax.servlet.ServletException: init at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:391) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:468) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: java.lang.UnsatisfiedLinkError: registerNatives at sun.misc.Unsafe.(Unsafe.java:28) at java.lang.Class.initializeClass(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.(AbstractQueuedSynchronizer.java:2153) at java.lang.Class.initializeClass(Unknown Source) at java.lang.Class.initializeClass(Unknown Source) at java.lang.Class.initializeClass(Unknown Source) at edu.emory.mathcs.backport.java.util.concurrent.locks.ReentrantLock.(ReentrantLock.java:237) at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$Segment.(ConcurrentHashMap.java:291) at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.(ConcurrentHashMap.java:614) at edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.(ConcurrentHashMap.java:645) at org.springframework.core.CollectionFactory$BackportConcurrentCollectionFactory.createConcurrentHashMap(CollectionFactory.java:342) at org.springframework.core.CollectionFactory$BackportConcurrentCollectionFactory.access$400(CollectionFactory.java:335) at org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(CollectionFactory.java:200) at org.springframework.core.SimpleAliasRegistry.(SimpleAliasRegistry.java:41) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.(DefaultSingletonBeanRegistry.java:74) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.(FactoryBeanRegistrySupport.java:40) at org.springframework.beans.factory.support.AbstractBeanFactory.(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.(AbstractAutowireCapableBeanFactory.java:151) at org.springframework.beans.factory.support.DefaultListableBeanFactory.(DefaultListableBeanFactory.java:121) at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:176) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:121) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:354) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:292) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:262) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126) at javax.servlet.GenericServlet.init(GenericServlet.java:241) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:442) at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:370) ...14 more Thanks Hegazy -- View this message in context: http://www.nabble.com/java-native-code-error-tp24526351p24526351.html Sent from the freebsd-java mailing list archive at Nabble.com.