Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 36771 invoked from network); 14 Oct 2006 08:03:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2006 08:03:00 -0000 Received: (qmail 35697 invoked by uid 500); 14 Oct 2006 08:02:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 35573 invoked by uid 500); 14 Oct 2006 08:02:58 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 35562 invoked by uid 500); 14 Oct 2006 08:02:58 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 35559 invoked by uid 99); 14 Oct 2006 08:02:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 01:02:58 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Oct 2006 01:02:54 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 7829C1A981A; Sat, 14 Oct 2006 01:02:34 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r463898 - in /webservices/axis2/branches/java/1_1/modules: kernel/src/org/apache/axis2/deployment/util/Utils.java spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java Date: Sat, 14 Oct 2006 08:02:34 -0000 To: axis2-cvs@ws.apache.org From: saminda@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061014080234.7829C1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: saminda Date: Sat Oct 14 01:02:33 2006 New Revision: 463898 URL: http://svn.apache.org/viewvc?view=rev&rev=463898 Log: Improved the way the ServiceObjectSupplier work in deployment time. If the serive object couldn't find in the deployment time, still it can populate the OperationDescription with standard Axis2 ways. Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java webservices/axis2/branches/java/1_1/modules/spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?view=diff&rev=463898&r1=463897&r2=463898 ============================================================================== --- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original) +++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Sat Oct 14 01:02:33 2006 @@ -19,6 +19,8 @@ import org.apache.ws.java2wsdl.Java2WSDLConstants; import org.apache.ws.java2wsdl.SchemaGenerator; import org.apache.ws.java2wsdl.utils.TypeTable; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.codehaus.jam.JMethod; import javax.xml.namespace.QName; @@ -49,6 +51,9 @@ */ public class Utils { + + private static Log log = LogFactory.getLog(Utils.class); + public static void addFlowHandlers(Flow flow, ClassLoader clsLoader) throws AxisFault { int count = flow.getHandlerCount(); @@ -243,7 +248,8 @@ obj = method.invoke(serviceObjectMaker.newInstance(), new Object[]{axisService}); } if (obj == null) { - throw new Exception("ServiceObjectSupplier implmentation Object could not be found"); + log.warn("ServiceObjectSupplier implmentation Object could not be found"); + return; } serviceClass = obj.getClass().getName(); } else { Modified: webservices/axis2/branches/java/1_1/modules/spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java?view=diff&rev=463898&r1=463897&r2=463898 ============================================================================== --- webservices/axis2/branches/java/1_1/modules/spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java (original) +++ webservices/axis2/branches/java/1_1/modules/spring/src/org/apache/axis2/extensions/spring/receivers/SpringServletContextObjectSupplier.java Sat Oct 14 01:02:33 2006 @@ -22,6 +22,8 @@ import org.apache.axis2.description.Parameter; import org.apache.axis2.i18n.Messages; import org.apache.axis2.transport.http.HTTPConstants; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; import org.springframework.context.ApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; @@ -29,6 +31,9 @@ import javax.servlet.ServletContext; public class SpringServletContextObjectSupplier implements ServiceObjectSupplier { + + private static Log log = LogFactory.getLog(SpringServletContextObjectSupplier.class); + public static final String SERVICE_SPRING_BEANNAME = "SpringBeanName"; /** @@ -64,7 +69,8 @@ ApplicationContext aCtx = WebApplicationContextUtils.getWebApplicationContext(servletContext); if (aCtx == null) { - throw new Exception("Axis2 Can't find Spring's ApplicationContext"); + log.warn("Axis2 Can't find Spring's ApplicationContext"); + return null; } else if (aCtx.getBean(beanName) == null) { throw new Exception("Axis2 Can't find Spring Bean: " + beanName); } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org