You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/05/27 00:55:58 UTC

[jira] Resolved: (CXF-1379) tools tests fail on Linux

     [ https://issues.apache.org/jira/browse/CXF-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies resolved CXF-1379.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.1

I checked all the uses of the WSDLWriter, and I fixed the only one that wasn't using a UTF-8 stream.

> tools tests fail on Linux
> -------------------------
>
>                 Key: CXF-1379
>                 URL: https://issues.apache.org/jira/browse/CXF-1379
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>         Environment: Linux
>            Reporter: Lars Kühne
>            Assignee: Benson Margulies
>             Fix For: 2.1.1
>
>         Attachments: WSDLToIDLTest_linux_failures_fix.diff
>
>
> Several tests in WSDLToIDLTest fail on Linux, e.g.
> [surefire] testBindAndIDLGen(org.apache.yoko.tools.WSDLToIDLTest)  Time elapsed: 0.091 sec  <<< ERROR!
> java.lang.NullPointerException
>         at org.apache.yoko.tools.WSDLToIDLTest.testBindAndIDLGen(WSDLToIDLTest.java:238)
> The problem is that the file in resources/wsdl is called simple-binding.wsdl, while it is sometime referenced with a capital 'B'. This will fail on systems with a case sensitive filesystem, like Linux/Unix and probably also Mac OS X
>          String[] cmdArgs = {"-i", "BasePortType",
>                             "-b", "BaseOneCORBABinding",
>                             "-d", output.getCanonicalPath(),
> // the following call to getResource() will work on Windows (case insensitive filesystem) but return null on Linux/Unix
>                             getClass().getResource("/wsdl/simple-Binding.wsdl").toString()};
>         int exc = execute(cmdArgs);
>         assertEquals("WSDLToIDL Failed", noError, exc);
>         File f1 = new File(output, "simple-Binding-corba.wsdl");
>         assertTrue("simple-Binding-corba.wsdl should be generated", f1.exists());
>         File f2 = new File(output, "simple-binding.idl");
>         assertTrue("simple-binding.idl should be generated", f2.exists());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.