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 "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/04/12 14:21:04 UTC

[jira] Resolved: (AXIS2-3735) JAX-WS: JAXBUtils should not load classes from nested packages

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

Rich Scheuerle resolved AXIS2-3735.
-----------------------------------

    Resolution: Fixed

Revision:647440

> JAX-WS: JAXBUtils should not load classes from nested packages
> --------------------------------------------------------------
>
>                 Key: AXIS2-3735
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3735
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Rich Scheuerle
>            Assignee: Rich Scheuerle
>
> Background:
> JAXBUtils is the utility class that loads and caches JAXBContext objects.  A two stage algorithm is used.  
> First, a JAXBContext.newInstance(packageContext) is attempted with the list of input packages.  
> Second, if the first initialization fails (i.e. due to missing ObjectFactory classes), then JAXBContext attempts to finds the JAXB related classes in the packages and constructs JAXBContext with the newInstance(Class[]) method.
> Problem:
> During this second (fallback) step in the algorithm, JAXBUtils is incorrectly trying to load classes in nested packages.  (For example, if the input package is "foo", the algorithm should only consider the classes in "foo", but instead it is also considering the classes in "foo.bar". ) This leads to failures.
> Solution:
> I am correcting the finder algorithm in JAXBUtils and ClassFinderImpl.  

-- 
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