Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 11539 invoked from network); 6 Sep 2007 07:57:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 07:57:36 -0000 Received: (qmail 36836 invoked by uid 500); 6 Sep 2007 07:57:21 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 36801 invoked by uid 500); 6 Sep 2007 07:57:21 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 36761 invoked by uid 99); 6 Sep 2007 07:57:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 00:57:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ning.jiang@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 07:58:38 +0000 X-IronPort-AV: E=Sophos;i="4.20,214,1186372800"; d="scan'208";a="5011163" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 06 Sep 2007 03:56:59 -0400 Received: from [10.129.9.192] ([10.129.9.192]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Thu, 6 Sep 2007 03:56:57 -0400 Message-ID: <46DFB2BD.4070804@iona.com> Date: Thu, 06 Sep 2007 15:56:45 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: jaxws:endpoint and depends-on attribute References: <200709061727.19780.doug.duboulay@gmail.com> In-Reply-To: <200709061727.19780.doug.duboulay@gmail.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Sep 2007 07:56:57.0612 (UTC) FILETIME=[7F8F0CC0:01C7F05B] X-Virus-Checked: Checked by ClamAV on apache.org Hi doug , I just committed a patch CXF-955 which is contributed by Fred into the trunk. It added the depends-on attribute in the jaxws:endpoint. I think you just want that :) You can try latest version in the trunk , or wait for the next snapshot. Willem. doug wrote: > I have implemented some services and configure them in a > WEB-INF/beans.xml file. I was using this file to specify some > initialization parameters that get stored in a bean (FileUtilities) > and which are subsequently accessed by several other jaxws:endpoint > definedservices. I thought everything was configured ok because all > services are loaded without problems on my development server, running > apache-tomcat-5.5.20 Unfortunately when I try to deploy to our > production server, apache-tomcat-5.5.16 it fails to load, on account of the > error below. > > Basically, it seems to me that the FileUtilities bean hasn't been > loaded or initialized at the time the endpoint is being instatiated, > whereas it was under tomcat 5.5.20. > > I read that there is a attribute that induces > otherID beans to be loaded and initialized first, but apparently that > doesn't exist for jaxws:endpoint > > Is there another way to achieve the same result? > > Thanks > Doug > > > > 879 [main] ERROR org.springframework.web.context.ContextLoader - Context > initialization failed > org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected > exception parsing XML document from ServletContext r > esource [/WEB-INF/beans.xml]; nested exception is > org.springframework.beans.FatalBeanException: Could not load class: au.net.mm > sn.pfc.servlet.serbices.rfio.impl.RemoteFileImpl; nested exception is > java.lang.NullPointerException > Caused by: > org.springframework.beans.FatalBeanException: Could not load class: > au.net.mmsn.pfc.servlet.serbices.rfio.impl.RemoteFileImpl; > nested exception is java.lang.NullPointerException > Caused by: > java.lang.NullPointerException > at > au.net.mmsn.pfc.servlet.serbices.rfio.impl.FileUtilities.getServicePreference(FileUtilities.java:76) > at > au.net.mmsn.pfc.servlet.serbices.rfio.impl.RemoteFileImpl.(RemoteFileImpl.java:29) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > >