Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 45906 invoked by uid 500); 14 Mar 2002 03:00:57 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 45895 invoked from network); 14 Mar 2002 03:00:56 -0000 From: Dave Dunkin To: axis-dev@xml.apache.org Date: Wed, 13 Mar 2002 18:59:38 -0800 Mime-Version: 1.0 (Apple Message framework v481) Content-Type: multipart/mixed; boundary=Apple-Mail-1--887126798 Subject: [PATCH] JavaProvider NoClassDefFoundError Message-Id: <8616CA75-36F7-11D6-9476-000393101E78@attachmate.com> X-Mailer: Apple Mail (2.481) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --Apple-Mail-1--887126798 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed The attached patch addresses a problem with JavaProvider where if a class is not found while generating the WSDL, the NoClassDefFoundError makes it all the way out to the servlet engine. Instead, an AxisFault should be generated that contains the message from the NoClassDefFoundError. I also fixed a few debug statements. Dave Dunkin --Apple-Mail-1--887126798 Content-Disposition: attachment; filename=patch.txt Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="patch.txt" Index: JavaProvider.java =================================================================== RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/providers/java/JavaProvider.java,v retrieving revision 1.42 diff -u -r1.42 JavaProvider.java --- JavaProvider.java 6 Mar 2002 23:39:17 -0000 1.42 +++ JavaProvider.java 14 Mar 2002 02:54:17 -0000 @@ -273,7 +273,7 @@ */ public void generateWSDL(MessageContext msgContext) throws AxisFault { if (log.isDebugEnabled()) - log.debug(JavaUtils.getMessage("enter00", "JavaProvider::editWSDL (" + this + ")")); + log.debug(JavaUtils.getMessage("enter00", "JavaProvider::generateWSDL (" + this + ")")); /* Find the service we're invoking so we can grab it's options */ /***************************************************************/ @@ -327,8 +327,12 @@ msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); + } catch (NoClassDefFoundError e) { + throw new AxisFault(e.toString(), e); } + if (log.isDebugEnabled()) + log.debug(JavaUtils.getMessage("exit00", "JavaProvider::generateWSDL (" + this + ")")); } private String getAllowedMethods(Handler service) --Apple-Mail-1--887126798--