JAXWS has problems finding JAXB classes when the application jar file resides 
in a Windows directory containing spaces
----------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4134
                 URL: https://issues.apache.org/jira/browse/AXIS2-4134
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: jaxws
    Affects Versions: 1.4.1
         Environment: Windows
            Reporter: Lizet Ernand
            Priority: Minor


JAXWS has problems finding JAXB classes when users place their application 
classes inside a jar file that resides in a Windows directory containing spaces
i.e For example:
C:\Documents and Settings\mytemp\myApp.jar

Exceptions will be thrown saying the class is not known to the JAXB context, 
i.e:
Throwable occurred: javax.xml.ws.WebServiceException: 
javax.xml.bind.JAXBException: class xxxx nor any of its super class is known to 
this context.
       at 
org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
       at 
org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)

The fix is simple. Create an encoded URI.. which takes care of the spaces in 
file URL.
At:
org.apache.axis2.jaxws.message.databinding.impl.ClassFinderImpl.getClassesFromJarFile()
From:
         File f = new File(url.getPath());
To:
         File f = new File(url.toURI().getPath());



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to