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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to