[ 
http://issues.apache.org/jira/browse/YOKO-92?page=comments#action_12422440 ] 
            
Matteo Vescovi commented on YOKO-92:
------------------------------------

On Linux, tools test might fail if the locale specifies 'ISO8859_15' file 
encoding.

Class com.ibm.wsdl.xml.WSDLWriter (wsdl4j) throws a WSDLException when method 
writeWSDL() is invoked and file encoding 'ISO8859_15' is in use.

The exception thrown is:

The exception is  WSDLException: faultCode=CONFIGURATION_ERROR: 
Unsupported Java encoding for writing wsdl file: 'ISO8859_15'.:

A workaround is to change the locale setting to use a different encoding, such 
as UTF-8.



> tools tests fail on Linux
> -------------------------
>
>                 Key: YOKO-92
>                 URL: http://issues.apache.org/jira/browse/YOKO-92
>             Project: Yoko - CORBA Server
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: Lars Kühne
>             Fix For: 1.0-incubating-M1
>
>         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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to