You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2008/11/18 14:19:44 UTC

[jira] Resolved: (AXIS2-4134) JAXWS has problems finding JAXB classes when the application jar file resides in a Windows directory containing spaces

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

Davanum Srinivas resolved AXIS2-4134.
-------------------------------------

    Resolution: Fixed

fixed in svn revision 718571.

thanks Lizet.

-- dims

> 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
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org