[ 
https://issues.apache.org/jira/browse/AXIS2-5817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15632893#comment-15632893
 ] 

Martin Gainty commented on AXIS2-5817:
--------------------------------------

NP as mime_message.txt was not included in that distro i deleted 
UnknownContentBuilderTest.java and UnknownContentBuilderTest.class TC and 
surefire ran to completion

> 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:<[email protected]>
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Header><wsa:To
>  
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>http://localhost:8070/axis2/services/MTOMService/mtomSample</wsa:To></soapenv:Header><soapenv:Body><x:EchoTest
>  xmlns:x="http://example.org/mtom/data";><x:Data><xop:Include 
> href="cid:[email protected]" 
> xmlns:xop="http://www.w3.org/2004/08/xop/include";></xop:Include></x:Data><x:Data><xop:Include
>  href="cid:[email protected]" 
> xmlns:xop="http://www.w3.org/2004/08/xop/include";></xop:Include></x:Data></x:EchoTest></soapenv:Body></soapenv:Envelope>
> ----MIMEBoundary258DE2D105298B756D
> content-id:<[email protected]>
> 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:
> <error message="The system was looking for the &apos;axisconfig&apos; element,
>     but it found 
> &apos;%AXIS2_HOME%\modules\integration\test-resources\mime_message.txt&apos;" 
>     
> type="org.apache.axis2.deployment.DeploymentException">org.apache.axis2.deployment.DeploymentException:
>  
>     The system was looking for the &apos;axisconfig&apos; element, 
>     but it found 
> &apos;C:\Axis\axis-2.1.5\modules\integration\test-resources\mime_message.txt&apos;
>       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 <axisconfig name="AxisJava2.0"> element



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to