Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA367200BB1 for ; Thu, 3 Nov 2016 20:59:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D8E7C160AFF; Thu, 3 Nov 2016 19:59:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2AE81160AE5 for ; Thu, 3 Nov 2016 20:59:01 +0100 (CET) Received: (qmail 16387 invoked by uid 500); 3 Nov 2016 19:58:59 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 16157 invoked by uid 99); 3 Nov 2016 19:58:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2016 19:58:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CCE682C0D55 for ; Thu, 3 Nov 2016 19:58:58 +0000 (UTC) Date: Thu, 3 Nov 2016 19:58:58 +0000 (UTC) From: "Andreas Veithen (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5817) org.apache.axis2.builder.UnknownContentBuilderTest error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 03 Nov 2016 19:59:02 -0000 [ https://issues.apache.org/jira/browse/AXIS2-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15634046#comment-15634046 ] Andreas Veithen commented on AXIS2-5817: ---------------------------------------- BS. The Axis2 distribution does contain mime_message.txt. > org.apache.axis2.builder.UnknownContentBuilderTest error > -------------------------------------------------------- > > Key: AXIS2-5817 > URL: https://issues.apache.org/jira/browse/AXIS2-5817 > Project: Axis2 > Issue Type: Bug > Components: Integration > Affects Versions: 1.5.6 > Environment: jdk 1.8 > Reporter: Martin Gainty > Priority: Minor > Original Estimate: 24h > Remaining Estimate: 24h > > org.apache.axis2.builder.UnknownContentBuilderTest testNoBuilder test > File file = getTestResourceFile("mime_message.txt"); > MIMEBuilder mimeBuilder = new MIMEBuilder(); > FileInputStream fis = new FileInputStream(file); > ConfigurationContext configContext = null; > try { > String path=file.getAbsolutePath(); > configContext=ConfigurationContextFactory.createDefaultConfigurationContext(path); > } > catch(Exception excp) { System.out.println("UnknownContentBuilderTest::testNoBuilder LINE 81 throws Exception mssage="+excp.getMessage()); } > where mime-message.txt contains: > ----MIMEBoundary258DE2D105298B756D > content-type:text/plain; charset=ISO-8859-1; format=flowed > content-transfer-encoding:binary > content-id:<0.15B50EF49317518B01@apache.org> > http://localhost:8070/axis2/services/MTOMService/mtomSample > ----MIMEBoundary258DE2D105298B756D > content-id:<11.BBFC8D48A21258EBBD@apache.org> > content-type:text/csv;name="test.csv" > content-transfer-encoding:binary > saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda saminda > there is no axisconfig element inside message.txt so Exception is thrown: > type="org.apache.axis2.deployment.DeploymentException">org.apache.axis2.deployment.DeploymentException: > The system was looking for the 'axisconfig' element, > but it found 'C:\Axis\axis-2.1.5\modules\integration\test-resources\mime_message.txt' > at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:177) > at org.apache.axis2.context.ConfigurationContextFactory.createBasicConfigurationContext(ConfigurationContextFactory.java:427) > at org.apache.axis2.context.ConfigurationContextFactory.createDefaultConfigurationContext(ConfigurationContextFactory.java:409) > at org.apache.axis2.builder.UnknownContentBuilderTest.testNoBuilder(UnknownContentBuilderTest.java:77) > disable testNoBuilder test to stop UnknownContentBuilderTest from failing > OR sub in axis2.xml that contains element -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org